台灣閩南語常用詞辭典上線
http://twblg.dict.edu.tw/tw/
台灣閔南語我嘛會_線上有聲功能網
http://guamae.moe.gov.tw/cgi-bin/mindb/gsweb.cgi?o=dmindb
2010年1月31日 星期日
2010年1月27日 星期三
2010年1月24日 星期日
[AS2] substr (String.substr 方法)實例
substr (String.substr 方法)
public substr(start:Number, length:Number) : String
以 length 參數中指定的字元數,從字串的 start 參數指定的索引位置傳回字元。substr 方法不會更改 my_str 指定的字串,而是傳回新字串。
參數
start:Number - 一個整數,指示 my_str 中要用來建立子字串的第一個字元位置。如果 start 是負值,表示開始位置是由字串的結尾決定,-1 就是最後一個字元。
length:Number - 建立的子字串中的字元數。如果未指定 length,這個子字串就會包含由字串開頭到結尾的所有字元。
↑ 以上引用自FLASH 8說明
----------------------------------------------------------------------------------------------------------------------
本實例
***可修改將被擷取的完整字串,此例,原預設值為"有點愛玩FLASH", 可同步更新被擷取的字串(最下方).
***可修改[起始字元索引]與[擷取字數]的數字,也可同步更新被擷取的字串(最下方).
SWF預覽
public substr(start:Number, length:Number) : String
以 length 參數中指定的字元數,從字串的 start 參數指定的索引位置傳回字元。substr 方法不會更改 my_str 指定的字串,而是傳回新字串。
參數
start:Number - 一個整數,指示 my_str 中要用來建立子字串的第一個字元位置。如果 start 是負值,表示開始位置是由字串的結尾決定,-1 就是最後一個字元。
length:Number - 建立的子字串中的字元數。如果未指定 length,這個子字串就會包含由字串開頭到結尾的所有字元。
↑ 以上引用自FLASH 8說明
----------------------------------------------------------------------------------------------------------------------
本實例
***可修改將被擷取的完整字串,此例,原預設值為"有點愛玩FLASH", 可同步更新被擷取的字串(最下方).
***可修改[起始字元索引]與[擷取字數]的數字,也可同步更新被擷取的字串(最下方).
SWF預覽
2010年1月23日 星期六
轉噗:台版柯博文負責晒衣服任務被國外engadget報導
轉噗:台版柯博文負責晒衣服任務被國外engadget報導
http://www.plurk.com/p/3hdgfj
Optimus Prime in the yard 媽!柯博文在我們家附近耶!
http://www.flickr.com/photos/eason/sets/72157623122213921/
Caption contest: Optimus Prime moonlights as clothes dryer
http://www.engadget.com/2010/01/22/caption-contest-optimus-prime-moonlights-as-clothes-dryer/
http://www.plurk.com/p/3hdgfj
Optimus Prime in the yard 媽!柯博文在我們家附近耶!
http://www.flickr.com/photos/eason/sets/72157623122213921/
Caption contest: Optimus Prime moonlights as clothes dryer
http://www.engadget.com/2010/01/22/caption-contest-optimus-prime-moonlights-as-clothes-dryer/
[AS2]MovieClip._name(Button._name) + MovieClip.enabled(Button.enabled)屬性
[AS2]MovieClip._name(Button._name) + MovieClip.enabled(Button.enabled)屬性
SWF預覽↓
SWF預覽↓
2010年1月21日 星期四
ActionScript 2.0 移轉_說明 ActionScript 2.0 和 3.0 的不同
ActionScript 3.0 語言和組件參考_ActionScript 2.0 移轉_說明 ActionScript 2.0 和 3.0 的不同
http://help.adobe.com/zh_TW/AS3LCR/Flash_10.0/migration.html
Adobe® Flash® CS4 Professional 線上說明
http://help.adobe.com/zh_TW/Flash/10.0_UsingFlash/WS816BB12E-70DE-48c7-9C6C-4735B11BC9E9.html
ActionScript 3.0 語言和組件參考
http://help.adobe.com/zh_TW/AS3LCR/Flash_10.0/index.html
http://help.adobe.com/zh_TW/AS3LCR/Flash_10.0/migration.html
Adobe® Flash® CS4 Professional 線上說明
http://help.adobe.com/zh_TW/Flash/10.0_UsingFlash/WS816BB12E-70DE-48c7-9C6C-4735B11BC9E9.html
ActionScript 3.0 語言和組件參考
http://help.adobe.com/zh_TW/AS3LCR/Flash_10.0/index.html
2010年1月20日 星期三
[AS3]複製影片實體、拖曳、碰撞偵測、音效
[AS3]複製影片實體、拖曳、碰撞偵測、音效
1. 主場景上提供一個複製鈕duplicate_btn, 一個垃圾桶trashCan. 每按duplicate_btn一次可複製一個星星, 星星可被拖曳,若拖曳碰觸到垃圾桶,則被移除.
2. 元件庫有一個影片元件star, 兩個音效檔POP.WAV和ARCHER1.WAV, 右鍵選單/屬性, 分別自訂類別為_starMC、_popSound、_archerSound. (詳細說明可參考前一主題).
SWF預覽
3.第一影格AS3
//
duplicate_btn.buttonMode=true;
duplicate_btn.addEventListener(MouseEvent.CLICK, duplicate);
function duplicate(e:MouseEvent) :void{
var myStar:MovieClip = new _starMC();
addChild(myStar);
myStar.x=Math.ceil(Math.random()*(stage.stageWidth-60)+20);
myStar.y=Math.ceil(Math.random()*(stage.stageHeight-230)+20);
var POP:_popSound=new _popSound();
var channel:SoundChannel = POP.play();
//
myStar.addEventListener(MouseEvent.MOUSE_DOWN, dragStar);
myStar.addEventListener(MouseEvent.MOUSE_UP, releaseStar);
};
function dragStar(e:MouseEvent):void{
e.target.startDrag();
}
function releaseStar(e:MouseEvent):void{
var myStar:MovieClip = e.target as MovieClip;
stopDrag();
if(myStar.hitTestObject(trashCan)){
var ARCHER:_archerSound=new _archerSound();
var channel:SoundChannel = ARCHER.play();
removeChild(myStar);
}
}
1. 主場景上提供一個複製鈕duplicate_btn, 一個垃圾桶trashCan. 每按duplicate_btn一次可複製一個星星, 星星可被拖曳,若拖曳碰觸到垃圾桶,則被移除.
2. 元件庫有一個影片元件star, 兩個音效檔POP.WAV和ARCHER1.WAV, 右鍵選單/屬性, 分別自訂類別為_starMC、_popSound、_archerSound. (詳細說明可參考前一主題).
SWF預覽
3.第一影格AS3
//
duplicate_btn.buttonMode=true;
duplicate_btn.addEventListener(MouseEvent.CLICK, duplicate);
function duplicate(e:MouseEvent) :void{
var myStar:MovieClip = new _starMC();
addChild(myStar);
myStar.x=Math.ceil(Math.random()*(stage.stageWidth-60)+20);
myStar.y=Math.ceil(Math.random()*(stage.stageHeight-230)+20);
var POP:_popSound=new _popSound();
var channel:SoundChannel = POP.play();
//
myStar.addEventListener(MouseEvent.MOUSE_DOWN, dragStar);
myStar.addEventListener(MouseEvent.MOUSE_UP, releaseStar);
};
function dragStar(e:MouseEvent):void{
e.target.startDrag();
}
function releaseStar(e:MouseEvent):void{
var myStar:MovieClip = e.target as MovieClip;
stopDrag();
if(myStar.hitTestObject(trashCan)){
var ARCHER:_archerSound=new _archerSound();
var channel:SoundChannel = ARCHER.play();
removeChild(myStar);
}
}
2010年1月19日 星期二
AS3取消了AS2的duplicateMovieClip方法,那麼,該如何複製影片實體呢?
AS3取消了AS2的duplicateMovieClip方法,那麼,該如何複製影片實體呢?
請參閱 --->
ActionScript 3.0 語言和組件參考_ActionScript 2.0 移轉_說明 ActionScript 2.0 和 3.0 的不同
http://help.adobe.com/zh_TW/AS3LCR/Flash_10.0/migration.html
(在 ActionScript 3.0 中,請使用
1.建立一個準備被複製的影片片段,在元件庫中,本例名為star
2.在元件庫中,右鍵按此star,在右鍵選單中點選[屬性]
3.在跳出的元件屬性面板的[連結]區塊,點選[匯出給ActionScript使用]核取方塊,此時,[匯出在第一影格]會自動被點選
4.在[類別]欄位,鍵入 _starMC , 這類別名稱可依Flash命名規則,自由命名. 其下方的[基底類別],預設為flash.display.MovieClip, 代表 _starMC繼承自flash.display.MovieClip類別.
5.按[確定]鈕後,會跳出[ActionScript類別警告]面板.這是說,在軟體預設的外部類別路徑找不到我們自訂的類別檔_starMC,將在匯出swf時,自動產生至swf檔. 所以,就按[確定]鈕.

6.第一影格AS3, 將使用FOR迴圈,產生10個來自_starMC類別的star實體,並控制其x與y
for(var i:uint=1; i<=10; i++){
var star:MovieClip = new _starMC(); //建構_starMC類別的實體star
addChild(star); //將star實體加入到顯示列表
star.x=i*50; //控制其x座標
star.y=i*30+10; //控制其y座標
}
SWF預覽
請參閱 --->
ActionScript 3.0 語言和組件參考_ActionScript 2.0 移轉_說明 ActionScript 2.0 和 3.0 的不同
http://help.adobe.com/zh_TW/AS3LCR/Flash_10.0/migration.html
(在 ActionScript 3.0 中,請使用
new
運算子來建立新實體)1.建立一個準備被複製的影片片段,在元件庫中,本例名為star
2.在元件庫中,右鍵按此star,在右鍵選單中點選[屬性]
3.在跳出的元件屬性面板的[連結]區塊,點選[匯出給ActionScript使用]核取方塊,此時,[匯出在第一影格]會自動被點選
4.在[類別]欄位,鍵入 _starMC , 這類別名稱可依Flash命名規則,自由命名. 其下方的[基底類別],預設為flash.display.MovieClip, 代表 _starMC繼承自flash.display.MovieClip類別.
5.按[確定]鈕後,會跳出[ActionScript類別警告]面板.這是說,在軟體預設的外部類別路徑找不到我們自訂的類別檔_starMC,將在匯出swf時,自動產生至swf檔. 所以,就按[確定]鈕.
6.第一影格AS3, 將使用FOR迴圈,產生10個來自_starMC類別的star實體,並控制其x與y
for(var i:uint=1; i<=10; i++){
var star:MovieClip = new _starMC(); //建構_starMC類別的實體star
addChild(star); //將star實體加入到顯示列表
star.x=i*50; //控制其x座標
star.y=i*30+10; //控制其y座標
}
SWF預覽
2010年1月14日 星期四
[AS3] fl.transitions.package包含類別的一些測試
[Flash cs4][AS3][ fl.transitions ]
fl.transitions.package所包含類別的一些測試
fl.transitions
fl.transitions.package所包含類別的一些測試
fl.transitions
2010年1月6日 星期三
[AS2]Flash的影格做亂數撥放,且不重覆
[AS2]Flash的影格做亂數撥放,且不重覆
@ 也是解答知識+提問
http://tw.knowledge.yahoo.com/question/question?qid=1009123003165
Flash的影格可以做到亂數撥放嗎?
@ 其實應該說是-->Flash的影格做亂數跳躍,且不重覆......而其需求是為了在每一影格放置評量題,並達到亂數出題的機制.

@ 也是解答知識+提問
http://tw.knowledge.yahoo.com/question/question?qid=1009123003165
Flash的影格可以做到亂數撥放嗎?
@ 其實應該說是-->Flash的影格做亂數跳躍,且不重覆......而其需求是為了在每一影格放置評量題,並達到亂數出題的機制.
2010年1月5日 星期二
訂閱:
文章 (Atom)