flash on 2016-10-11

by soulodd
♥0 | Line 23 | Modified 2016-10-11 11:07:02 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    import flash.display.Sprite;
    import flash.display.Stage;
    import flash.text.TextField;
    import flash.text.TextFormat;

    public class FlashTest extends Sprite {
        public function FlashTest() {
            
            var text:TextField = new TextField();
            stage.addChild(text);
            
            // write as3 code here..
            text.text = new Test().value;

        }
    }
    
}

class Test {
    
    private static function test():String {
        return 'static';
    }
    
    public var value:String;
    
    public function Test():void {
        value = test();
    }
}