I am loading an external swf file, which works fine. My return button is on my main timeline. So when I press return, I want to remove the external swf file.
I am having a hard time doing so, since on my main timeline, the removeChild(myExternalSWF) wont work. On the timeline where I load & addChild(myExternalSWF), the return button can't be accessed. How do I go about removing the ext swf???
it is always good to add some code so we can see what we are dealing with. Otherwise, we are just taking stabs at your request for help.
here is a good scenario for loading and unloading an external swf via a 'load_btn' and an 'unload_btn' on the main timeline stage, which will load and unload an external swf 'externalSWF.swf'
the traces are there just to show/prove what is on the stage( object MainTimeline as referred to by 'this')
note that the 'unloadAndStop()' method is only available from CS4 on var myLoader:Loader = new Loader();
var url:URLRequest = new URLRequest('externalSWF.swf');