flash on 2012-3-12

by tnRaro
♥0 | Line 19 | Modified 2012-03-12 17:40:30 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.events.Event;
    
    public class firstStudy extends Sprite {
        public function firstStudy() {
            var 뿜값:TextField = new TextField();
            var 딱히:int = 0;
            addChild(뿜값);
            뿜값.x = 50;
            function 연습뙇(:Event):void
            {
                ++딱히;
                뿜값.text = String(딱히);
            }
            stage.addEventListener(Event.ENTER_FRAME,연습뙇)
        }
    }
}