flash on 2011-11-26

by fujiopera
♥0 | Line 21 | Modified 2011-11-26 22:21:08 | MIT License
play

ActionScript3 source code

/**
 * Copyright fujiopera ( http://wonderfl.net/user/fujiopera )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/q1Bs
 */

package  
{
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.text.TextField;
    public class Main extends Sprite
    {
        public var _tf:TextField;
        public function Main() 
        {
            _tf= new TextField();
            addChild(_tf);
            _tf.text = "hello!";
            addEventListener(Event.ENTER_FRAME, update);
        }
        public function update(e:Event):void
        {
            _tf.text = "random" + Math.random();
        }
    }
}