Security.allowDomain

by ile
なし
♥0 | Line 16 | Modified 2011-11-11 12:31:29 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    import flash.display.Loader;
    import flash.net.URLRequest;
    import flash.system.Security;
    
    public class Main extends Sprite {
        private var loader:Loader;
        private static var buttonPath:String = "http://ile.jp/wp-content/uploads/2011/10/buttonile.swf";
        public function Main() {
            Security.allowDomain("*");
            loader = new Loader();
            loader.load(new URLRequest(buttonPath));
            addChild(loader);
        } 
    }
}

Forked