flash on 2012-6-27

by bkzen
♥0 | Line 18 | Modified 2012-06-27 19:38:42 | MIT License
play

ActionScript3 source code

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

package {
    import flash.text.TextField;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var txt:TextField = new TextField();
            txt.width = stage.stageWidth;
            txt.height = stage.stageHeight;
            txt.wordWrap = true;
            addChild(txt);
            var param: Object = loaderInfo.parameters;
            for (var key: String in param)
            {
                txt.appendText('"' + key + '": "' + param[key] + '"\n');
            }

        }
    }
}