flash on 2016-6-16

by www0z0k
♥0 | Line 15 | Modified 2016-06-16 19:16:12 | MIT License
play

ActionScript3 source code

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

package {
    import flash.text.TextField;
    import flash.display.Sprite;
    import flash.external.ExternalInterface;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var tf:TextField = new TextField();
            addChild(tf);
            tf.multiline = true;
            tf.autoSize = 'left';
            tf.text = 'test\n';
            tf.text += ExternalInterface.available;
            //tf.text += ExternalInterface.call('');
        }
    }
}