flash on 2010-11-2
♥0 |
Line 22 |
Modified 2010-11-02 18:37:41 |
MIT License
archived:2017-03-20 05:36:13
ActionScript3 source code
/**
* Copyright enecre ( http://wonderfl.net/user/enecre )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/kWIY
*/
package {
import flash.events.TimerEvent;
import flash.utils.Timer;
import flash.text.TextField;
import flash.display.Sprite;
public class FlashTest extends Sprite {
private var tf:TextField = new TextField();
public function FlashTest() {
// write as3 code here..
tf.width = tf.height = 465;
addChild(tf);
var timer:Timer = new Timer(3000);
timer.addEventListener(TimerEvent.TIMER, onTimer);
//timer.start();
}
private function onTimer(e:TimerEvent):void{
tr("hoge");
}
private function tr(...o:Array):void{
tf.appendText(o + "\n");
tf.scrollV = tf.maxScrollV;
}
}
}