flash on 2009-11-26

by coppieee
♥2 | Line 17 | Modified 2009-11-26 22:51:16 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    import flash.utils.*;
    import flash.text.*;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var tf:TextField = new TextField();
            tf.multiline= true;
            tf.autoSize = TextFieldAutoSize.LEFT;
            addChild(tf);
            tf.text = describeType(f);
            tf.appendText("\n\n"+
              describeType(function(x:int):int{return x+1;}));
             
        }
        private function f(x:int):int{return x+1;}
    }
}