How can I put a movieclip on top of a loader-embedded SWF?
Hi there,
I am using AS3 and this is my code to load a SWF gallery onto my flash site:
var myLoader:Loader = new Loader(); myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, showMySWF); function showMySWF(e:Event):void { addChild(myLoader); myLoader.x=100; myLoader.y=150; myLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, showMySWF); } myLoader.load(new URLRequest( "xmlgallery.swf" ));
I have some movieclips that I want to place on top of a corner of the SWF. I have tried everything from reordering layers and even this handy script:
setChildIndex(mc_name, numChildren-1)
The above script works if you want your movieclip to appear on top of other movieclips. But it does not work if you want it to appear on top of an embedded SWF.
Can anyone show me the way I can do this? Thanks!
