Powered by Movable Type 3.16Syndicate this site(XML)
< AS3 : attachMovie changes to addChild | | AS3 : Button Event >
2008.04.19

[SCRIPTAS3 : setInterval changes to Timer Class

またもやAS3になって消えたアイツの話。setInterval君。
どうやらTimerクラスを使って同じ事を実現するらしい。

【多謝】
http://weblogs.macromedia.com/akamijo/archives/2006/04/index.cfm
http://tasii.com/pw/index.php?as30

以下のサンプルは、配列に書かれているのを順番にダイナミックテキストに表示させるヤツ。

何が面倒っていうと「型指定」だったりするんだけどね。タイマーで使う関数にはちゃんとevent:TimerEventって書かないといけない(のかな?)。

Posted by inami at April 19, 2008 11:13 PM
CopyRight© ´MNGN.COM´. All Rights Reserved.