flash on 2010-3-2
♥0 |
Line 20 |
Modified 2010-03-02 21:49:10 |
MIT License
archived:2017-03-20 17:12:53
ActionScript3 source code
/**
* Copyright zahir ( http://wonderfl.net/user/zahir )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/ks3G
*/
package {
import flash.display.Sprite;
import flash.events.Event;
import flash.text.TextField;
public class FlashTest extends Sprite {
private var t:TextField;
private var count:Number = 0;
public function FlashTest() {
// write as3 code here..
addChild( ( t = new TextField() ) );
t.width = 465;
t.height = 465;
t.text = String( count++ );
stage.frameRate = 0.01;
addEventListener(Event.ENTER_FRAME, onEnter);
}
private function onEnter(e:Event):void{
t.text = String( count++ );
}
}
}