最近iphone 3G在台灣開始開賣,
心裡癢癢的,總希望自己的手上能夠擁有一隻.
結果,就在星期六早上,hinet公佈購買的價格.
心都涼了半截,真是有夠貴.
看來得存錢買.
結果,星期天晚上,回到家的時候.
我的手機就不見了.
寶貝,我真的沒有為了iphone,偷偷把手機給丟掉阿.
大人,冤望阿.小人是無辜的阿.
2008年11月30日 星期日
2008年11月26日 星期三
[ Flash ] - 自動偵測 Flash 版本並下載
描述: 自動偵測版本並下載
Flash Player Detection Kit
語法: 下載解壓縮Flash Player Detection Kit
將playerProductInstall.fla 裡面的AutoUpdater和AutoUpdaterLoaderClip兩個Movie Clip 複製到您的fla檔案裏
複製 playerProductInstall.as 和 player ProductInstallCallback.as到您製作的fla 目錄
只要這三個動作就可以做到自動偵測下載囉, 建議要做Flash 8 效果的人都加一下方便觀看囉
1. Add the "AutoUpdater" and "AutoUpdaterLoaderClip" MovieClips to an open Flash document. Drag the "AutoUpdater" MovieClip from the libray of this FLA, or copy and paste the MovieClip on the stage into an open document.
2. Position the MovieClip at the point in which the player should check for the latest update.
3. Make sure that "playerProductInstall.as" and "playerProductInstallCallback.as" a
Flash Player Detection Kit
語法: 下載解壓縮Flash Player Detection Kit
將playerProductInstall.fla 裡面的AutoUpdater和AutoUpdaterLoaderClip兩個Movie Clip 複製到您的fla檔案裏
複製 playerProductInstall.as 和 player ProductInstallCallback.as到您製作的fla 目錄
只要這三個動作就可以做到自動偵測下載囉, 建議要做Flash 8 效果的人都加一下方便觀看囉
1. Add the "AutoUpdater" and "AutoUpdaterLoaderClip" MovieClips to an open Flash document. Drag the "AutoUpdater" MovieClip from the libray of this FLA, or copy and paste the MovieClip on the stage into an open document.
2. Position the MovieClip at the point in which the player should check for the latest update.
3. Make sure that "playerProductInstall.as" and "playerProductInstallCallback.as" a
[ Flash ] - 文字區塊設定
描述: 困擾最久的文字區塊設定
語法:
//設定欄位可以支援html語法
mytext.html=true;
mytext.htmlText="文字變色效果";
//此種就沒有變色的效果,而把整段code寫出來。
mytext.text="文字變色效果";
//可選擇
mytext.selectable = true;
//多行
mytext.multiline = true;
//文字換行
mytext.wordWrap = true;
//控制文字欄位的自動調整大小和對齊方式。autoSize 可接受的值為 "none" (預設值)、"left"、"right" 及 "center"。設定 autoSize 屬性時,true 是 "left" 的同義字,而 false 是 "none" 的同義字。
mytext.autoSize=true;
var my_fmt:TextFormat = new TextFormat();
//紅色的字
my_fmt.color = 0xFFFFFF;
//courier字體
my_fmt.font = "Courier";
//套用文字顏色
this.type_name.setTextFormat(my_fmt);
語法:
//設定欄位可以支援html語法
mytext.html=true;
mytext.htmlText="文字變色效果";
//此種就沒有變色的效果,而把整段code寫出來。
mytext.text="文字變色效果";
//可選擇
mytext.selectable = true;
//多行
mytext.multiline = true;
//文字換行
mytext.wordWrap = true;
//控制文字欄位的自動調整大小和對齊方式。autoSize 可接受的值為 "none" (預設值)、"left"、"right" 及 "center"。設定 autoSize 屬性時,true 是 "left" 的同義字,而 false 是 "none" 的同義字。
mytext.autoSize=true;
var my_fmt:TextFormat = new TextFormat();
//紅色的字
my_fmt.color = 0xFFFFFF;
//courier字體
my_fmt.font = "Courier";
//套用文字顏色
this.type_name.setTextFormat(my_fmt);
[ Flash ] - combobox的問題
描述: combobox的bug (ctrl+enter)看的到~但是被loadmovie的時候就無法使用了
語法:
這個bug主要就是當把有包含comboBox的swf被另ㄧ個swf載入的時候,Combox就無法做下拉動作,
而Rainny的解決方法就是在要load的那個swf也放入ㄧ個combobox就可以正常使用了
語法:
這個bug主要就是當把有包含comboBox的swf被另ㄧ個swf載入的時候,Combox就無法做下拉動作,
而Rainny的解決方法就是在要load的那個swf也放入ㄧ個combobox就可以正常使用了
[ Flash ] - Flash支援big5不會亂碼
描述: 有時在load檔案的時候,編碼為big5的檔案會亂碼。就使用這個吧 System.useCodepage = true;
語法:
System.useCodepage = true;
語法:
System.useCodepage = true;
[ Flash ] - 測出textfield文字的高度
利用f1查詢textfield 可以查出許多動態文字區域的屬性。以下列出偵測文字的高度,並將textfield的高度動態改變。
//讓文字可以被偵測到
textfield.autoSize=true;
//將高度變更為文字的高度
textfield._height=textfield.textHeight;
//讓文字可以被偵測到
textfield.autoSize=true;
//將高度變更為文字的高度
textfield._height=textfield.textHeight;
[ Flash ] - 用迴圈跑btn,偵測案btn的狀態
this["mv_"+i].btn.onRelease = function (){
index=(Number(this._parent._target.slice(-2))) ?
this._parent._target.slice(-2):this._parent._target.slice(-1);
trace("index="+index);
clean_btn(index);
_parent._parent._parent._parent.man_do();
}
index=(Number(this._parent._target.slice(-2))) ?
this._parent._target.slice(-2):this._parent._target.slice(-1);
trace("index="+index);
clean_btn(index);
_parent._parent._parent._parent.man_do();
}
訂閱:
文章 (Atom)