as3swf test

by mash
see https://github.com/claus/as3swf/wiki
for details
♥5 | Line 16 | Modified 2010-11-14 03:36:50 | MIT License
play

ActionScript3 source code

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

package {
  import flash.display.*;
  import flash.events.MouseEvent;
  import flash.text.TextField;
  import com.codeazur.as3swf.SWF;
  
  public class as3swfTest extends Sprite {
      public function as3swfTest() {
        var tf :TextField = new TextField;
        tf.width = stage.stageWidth;
        tf.height = stage.stageHeight;
        addChild( tf );  
    
        var swf:SWF = new SWF(root.loaderInfo.bytes);
        tf.text = swf.toString();
      }

    
  }
}

Forked