flash on 2010-8-19
♥0 |
Line 16 |
Modified 2010-08-19 10:13:18 |
MIT License
archived:2017-03-20 13:37:24
ActionScript3 source code
/**
* Copyright 9re ( http://wonderfl.net/user/9re )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/dy44
*/
package {
import flash.events.Event;
import flash.text.TextField;
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var tf:TextField = new TextField;
tf.appendText(this + '\n');
addEventListener(Event.ENTER_FRAME, function doNextFrame(e:Event):void {
removeEventListener(Event.ENTER_FRAME, doNextFrame);
tf.appendText(this + '\n');
addChild(tf);
});
}
}
}