flash on 2010-11-3

by enecre
♥0 | Line 20 | Modified 2010-11-03 18:00:08 | MIT License
play

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/yRSu
 */

package {
    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 vec:Vector.<int> = new Vector.<int>(10);
            var l:int = vec.length;
            for(var i:int = 0 ; i < l; i++){
                //vec[i] = 0;
            }
            tr(null);
        }
        
        private function tr(...o):void{
            tf.appendText(o + "\n");
            tf.scrollV = tf.maxScrollV;
        }

    }
}