actionscript-domain-Main.ax [swf] flex
package { import flash.display.*; import flash.net.*; import flash.events.*; import flash.system.*; public class @ax-actionscript-domain-Main extends Sprite { private var loader:Loader; public function @ax-actionscript-domain-Main() { loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.INIT, initListener); loader.load(new URLRequest("@ax-actionscript-domain-Module.swf"), new LoaderContext(false, ApplicationDomain.currentDomain)); } private function initListener (e:Event):void { trace("init"); actionscript_domain_Module(e.target.content).start(); } } }
(C) Æliens 27/08/2009
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.