傳統的Flash Button 有四種States:
up, down, over, hit
這四種States正式的屬性名稱為
upState, downState, overState, hitTestState
其中比較不一樣的就是 "hit"(hitTestState),
它決定了該按鈕(Button) 接受觸發的範圍
[code snippet] btn1 is a given button ...
var imgGray1:MovieClip = new imgGray();
var greenCircleShape:Shape = new Shape();
greenCircleShape.graphics.beginFill(0x00ff00);
greenCircleShape.graphics.drawCircle(0, 0, 20);
btn1.upState= imgGray1;
btn1.overState= imgGray1;
btn1.downState= imgGray1;
btn1.hitTestState= greenCircleShape;
2010年8月29日 星期日
Facebook 如何顯示所有的friends?
[Q] 登入後 首頁左方的 Friends 點下去
看到的是Find People You Email(以email尋找朋友)和People you may know
要如何看到所有的friends?
[try]
create a list (click the button on the top right of "friends" page)
and add all friends into that list.
看到的是Find People You Email(以email尋找朋友)和People you may know
要如何看到所有的friends?
[try]
create a list (click the button on the top right of "friends" page)
and add all friends into that list.
Disable drag of movie clip in Flash AS3
[Q] How to disable the dragging behavior of a movie clip in Flash AS3?
[try]
After searching on internet, some people said that , for a movie clip mc,
But they failed in my Flash CS3.
*** Found that beside changing mc.enabled to false, need accompanying check action
within the mouse_down/up event to control whether to activate startDragging ...
[Code snippet]
this.mcVolSlider.addEventListener(MouseEvent.MOUSE_DOWN, startScroll);
function startScroll(e:Event):void {
if (mcVolSlider.enabled==true) {
this.mcVolSlider.startDrag(false,bounds);
}
}
[try]
After searching on internet, some people said that , for a movie clip mc,
- mc.enabled= false;
- mc.mouseEnabled=false;
But they failed in my Flash CS3.
*** Found that beside changing mc.enabled to false, need accompanying check action
within the mouse_down/up event to control whether to activate startDragging ...
[Code snippet]
this.mcVolSlider.addEventListener(MouseEvent.MOUSE_DOWN, startScroll);
function startScroll(e:Event):void {
if (mcVolSlider.enabled==true) {
this.mcVolSlider.startDrag(false,bounds);
}
}
MsoCache
[Q] MsoCache 這個目錄/資料夾的用途?
目錄: directory; 資料夾: folder
[try]
MsoCache (cache on hard drive for microsoft office) , 也稱 Local Install Source (本機安裝來源)
在安裝 Microsoft Office 時 有個選項會將安裝/更新所需的檔案
複製到硬碟的 \MsoCache 目錄/資料夾下
[Q] 希望節省磁碟空間時,是否可以直接刪除 複製到MsoCache 的檔案?
[try] 不建議直接刪除 。當您刪除 MsoCache中的檔案後,未來在執行任何Office安裝動作時,還是會被要求提供 Office 光碟,而所有必要的來源檔案會再次複製到您的MsoCache 。
從硬碟移除MsoCache的建議方法,是使用
http://office.microsoft.com/en-us/ork2003/HA011402361033.aspx
//===
[Q] 如何控制 \MSOCACHE 資料夾的位置?
[try] 安裝時使用 LOCALCACHEDRIVE 屬性 來指定 \MSOCACHE 資料夾的位置。
可以從命令列(command line)或安裝程式設定檔案 (Setup.ini) 啟用 LOCALCACHEDRIVE 屬性。
安裝後要變更MsoCache的硬碟位置, 請至
http://office.microsoft.com/en-us/ork2003/HA011402361033.aspx
下載 Local Installation Source Tool (LISTool.exe)
"...
[ref]
http://support.microsoft.com/default.aspx?kbid=830168
http://office.microsoft.com/en-us/ork2003/HA011402361033.aspx
目錄: directory; 資料夾: folder
[try]
MsoCache (cache on hard drive for microsoft office) , 也稱 Local Install Source (本機安裝來源)
在安裝 Microsoft Office 時 有個選項會將安裝/更新所需的檔案
複製到硬碟的 \MsoCache 目錄/資料夾下
[Q] 希望節省磁碟空間時,是否可以直接刪除 複製到MsoCache 的檔案?
[try] 不建議直接刪除 。當您刪除 MsoCache中的檔案後,未來在執行任何Office安裝動作時,還是會被要求提供 Office 光碟,而所有必要的來源檔案會再次複製到您的MsoCache 。
從硬碟移除MsoCache的建議方法,是使用
「本機安裝來源工具」Local Installation Source Tool (LISTool.exe)
從本機硬碟移除檔案。您可以從微軟網站的 Office Resource Kit 中取得這項工具:http://office.microsoft.com/en-us/ork2003/HA011402361033.aspx
使用「本機安裝來源工具」移除MsoCache,同時也會移除參考檔案的登錄項目(registry),以避免將來發生問題。
//===
[Q] 如何控制 \MSOCACHE 資料夾的位置?
[try] 安裝時使用 LOCALCACHEDRIVE 屬性 來指定 \MSOCACHE 資料夾的位置。
可以從命令列(command line)或安裝程式設定檔案 (Setup.ini) 啟用 LOCALCACHEDRIVE 屬性。
安裝後要變更MsoCache的硬碟位置, 請至
http://office.microsoft.com/en-us/ork2003/HA011402361033.aspx
下載 Local Installation Source Tool (LISTool.exe)
"...
Using the Local Installation Source Tool, 'administrators' can:
- Disable the local installation source for users who are running short of hard disk space.
- Move the local installation source to a different drive.
- Enable the local installation source after Office is installed.
... "
[ref]
http://support.microsoft.com/default.aspx?kbid=830168
http://office.microsoft.com/en-us/ork2003/HA011402361033.aspx
2010年8月21日 星期六
Facebook的Likes and Interests
終於會用 Facebook 的 Likes and Interests (興趣與嗜好)!
想加入新的Likes and Interests 除了在輸入文字盒確認之外
還必須要在浮現的淺色底文字盒中確認
確認後 所輸入的文字會在 輸入文字盒的下方顯現
這時在按儲存(Save Change) 才有效
否則 ...
想加入新的Likes and Interests 除了在輸入文字盒確認之外
還必須要在浮現的淺色底文字盒中確認
確認後 所輸入的文字會在 輸入文字盒的下方顯現
這時在按儲存(Save Change) 才有效
否則 ...
2010年8月16日 星期一
2010年8月15日 星期日
如何抑制IE8網頁上的背景音樂?
[Q] 如何抑制IE8網頁上的背景音樂?
[Q] How to disable/mute the background music played with the web page browsed by IE8?
[try]
Tools -> Internet Options -> Advanced tab -> Mulitmedia options ->
uncheck "Play sounds on web pages"
[Q] How to disable/mute the background music played with the web page browsed by IE8?
[try]
Tools -> Internet Options -> Advanced tab -> Mulitmedia options ->
uncheck "Play sounds on web pages"
2010年8月10日 星期二
Orchard Cms
OrchardProject : http://www.orchardproject.net/
related project :
http://orchard.codeplex.com/
http://oxite.codeplex.com/
Orchard Forum:
http://social.msdn.microsoft.com/Forums/en-US/orcharddiscussions/threads
Walkthrough module development .pdf
orchardModuleWalkThrough.pdf on my GoogleDoc
Walkthrough module development .doc
http://www.orchardproject.net/privatedrops/orchardmodulewalkthrough.doc
Walkthrough module development web page
http://www.orchardproject.net/docs/Walkthrough-Writing-An-Orchard-Module.ashx?HL=module
(unfinished)
0. download Web PI(Web platform installer) from http://ww.microsoft.com/web
1. install .Net Framework 4.0
2. download the latest release of OrchardProject from http://orchard.codeplex.com/
3. follow
orchardModuleWalkThrough.pdf on GoogleDoc
http://www.orchardproject.net/docs/
//===
[Q] Comparison of Orchard and Drupal?
[Q] Comparison of Orchard and DotNetNuke?
[ref] http://www.orchardproject.net/faq
"....
How does Orchard compare with DotNetNuke(DNN)? ...
DNN is a mature and successful .NET-based project, a key partner for Microsoft, and a vital contributor to the .NET open source ecosystem.
Our hope is that new technology investments made by Orchard will serve existing applications like DNN in the long run, and ultimately provide infrastructure and components that our partners can leverage to enrich their own offerings.
Orchard aims to help our .NET partners, not to compete directly with them. Orchard is already working with several partners in the .NET open source space, including DNN, to identify opportunities to work together for mutual benefit.
... Orchard’s extensibility model also presents partners with another vehicle for delivering their solutions and expanding their audience.
..."
"...
What is the Orchard CMS application? How does it compare with Microsoft SharePoint?
Orchard CMS is an open source project which aims to provide a simple solution for small web agencies who want to quickly create Internet-facing Web sites.
For corporations wanting a fully-featured, Microsoft-supported, enterprise-level CMS solution out-of-the-box, ... , Microsoft SharePoint™ is a more natural choice.
SharePoint also provides capabilities beyond CMS including Team Collaboration, Document and Records Management, Business Process Integration and Business Intelligence.
....
"
related project :
http://orchard.codeplex.com/
http://oxite.codeplex.com/
Orchard Forum:
http://social.msdn.microsoft.com/Forums/en-US/orcharddiscussions/threads
Walkthrough module development .pdf
orchardModuleWalkThrough.pdf on my GoogleDoc
Walkthrough module development .doc
http://www.orchardproject.net/privatedrops/orchardmodulewalkthrough.doc
Walkthrough module development web page
http://www.orchardproject.net/docs/Walkthrough-Writing-An-Orchard-Module.ashx?HL=module
(unfinished)
0. download Web PI(Web platform installer) from http://ww.microsoft.com/web
1. install .Net Framework 4.0
2. download the latest release of OrchardProject from http://orchard.codeplex.com/
3. follow
orchardModuleWalkThrough.pdf on GoogleDoc
http://www.orchardproject.net/docs/
//===
[Q] Comparison of Orchard and Drupal?
[Q] Comparison of Orchard and DotNetNuke?
[ref] http://www.orchardproject.net/faq
"....
How does Orchard compare with DotNetNuke(DNN)? ...
DNN is a mature and successful .NET-based project, a key partner for Microsoft, and a vital contributor to the .NET open source ecosystem.
Our hope is that new technology investments made by Orchard will serve existing applications like DNN in the long run, and ultimately provide infrastructure and components that our partners can leverage to enrich their own offerings.
Orchard aims to help our .NET partners, not to compete directly with them. Orchard is already working with several partners in the .NET open source space, including DNN, to identify opportunities to work together for mutual benefit.
... Orchard’s extensibility model also presents partners with another vehicle for delivering their solutions and expanding their audience.
..."
"...
What is the Orchard CMS application? How does it compare with Microsoft SharePoint?
Orchard CMS is an open source project which aims to provide a simple solution for small web agencies who want to quickly create Internet-facing Web sites.
For corporations wanting a fully-featured, Microsoft-supported, enterprise-level CMS solution out-of-the-box, ... , Microsoft SharePoint™ is a more natural choice.
SharePoint also provides capabilities beyond CMS including Team Collaboration, Document and Records Management, Business Process Integration and Business Intelligence.
....
"
Microsoft.WebApplication.targets was not found?
[Q] What to do with the error: "The imported project "C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" was not found"?
[try]
0. install the vs patch(which one ?) to get Web Application Project support
1. or just copy the desired Microsoft.WebApplication.targets and its parent folder from somewhere else
e.g. copy from "C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\WebApplications\Microsoft.WebApplication.targets"
[ref]
http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/db5d2ec9-ee15-4de3-abe6-688d81a36461
"...
You should be OK just copying the contents of that directory to the same spot on your build machine. Alternatively, if you have VS installed on your build machine you should be OK after installing the VS patches.
..."
"... I just encountered the same problem for VS2008/TeamBuild 2008 and it was resolved the same way except by copying over the v9.0 version of the targets file..."
" ... still a problem in 2010.
... I don't want to have to install Visual Studio.
... expect that I ought to be able to build a web project with MSBuild without requiring Visual Studio to succeed.
...expect the WebApplication.targets to be installed with .NET 2.0 SP1.
...
"
[try]
0. install the vs patch(which one ?) to get Web Application Project support
1. or just copy the desired Microsoft.WebApplication.targets and its parent folder from somewhere else
e.g. copy from "C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\WebApplications\Microsoft.WebApplication.targets"
[ref]
http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/db5d2ec9-ee15-4de3-abe6-688d81a36461
"...
You should be OK just copying the contents of that directory to the same spot on your build machine. Alternatively, if you have VS installed on your build machine you should be OK after installing the VS patches.
..."
"... I just encountered the same problem for VS2008/TeamBuild 2008 and it was resolved the same way except by copying over the v9.0 version of the targets file..."
" ... still a problem in 2010.
... I don't want to have to install Visual Studio.
... expect that I ought to be able to build a web project with MSBuild without requiring Visual Studio to succeed.
...expect the WebApplication.targets to be installed with .NET 2.0 SP1.
...
"
2010年8月5日 星期四
訂閱:
文章 (Atom)