-
Client Software Programmer
How to load an swf in an swf
Hi, does anyone know how to load and swf in a parent swf, it works fine for me but the child swf can not use any stage. functions for some reason which causes me to only be able to scale the child swf by using a movieclip as a stage and stretching everything based on the mc stage.
-
.
Hi
Without seeing any example or code or fla regarding your issue, have you tried referencing the class
-
Client Software Programmer
The swf loader:
PHP Code:
var new_swf:Loader = new Loader();
var loader:Loader = new Loader(); var loaderInfoStuff:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, cache_load);
loaderInfoStuff.allowCodeImport = true;
function load_init_swf(a){ new_swf.contentLoaderInfo.addEventListener(Event.COMPLETE, init_swf_loaded); new_swf.load(new URLRequest(a)); } function init_swf_loaded(e:Event):void{ var myBytes=e.target.bytes; loader.loadBytes(myBytes, loaderInfoStuff); new_swf.contentLoaderInfo.removeEventListener(Event.COMPLETE, init_swf_loaded); }
function cache_load(e:Event):void{ var loaded_mc = e.target.content as MovieClip; addChild(loaded_mc) } load_init_swf("swf_client.swf");
For the child swf just use any stage.addEventlistener functions and they wont run but addEventlistener alone will, I'll treat your paypal to fix this.
-
Tim (Super Moderator)
When your swf2exe tool just HAS to work
there's only one choice... SWF Studio
-
Client Software Programmer
Wow I tried a few from online and none worked, well that link worked thanks northcode, let me get your paypal email or else.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|