Hi,
I have the following code on a frame label called “allemande” (frame 890). The first part loads a swf when I click a button called “allemande” that sends me to this frame. This part works correctly.
The second part is code that sends the timeline to the “home” frame label when I click the “home” button. This works OK too.
I would like to insert code that will unload the “allemande_slideshow” swf when I click the “home” button to go back to the “home” frame label.
/############### loads allemande slideshow swf ############/
var myrequest_allemande:URLRequest=new URLRequest
(“http://floramultimedia.com/musicGarden/slideshowProFiles/allemande/allemande_slideshow.swf”);
var myloader_allemande:Loader=new Loader();
myloader_allemande.load(myrequest_allemande);
stage.addChild(myloader_allemande);
/############### home button ######################/
btn_home.addEventListener(MouseEvent.CLICK, go_home_from_allemande);
function go_home_from_allemande (e:MouseEvent):void{
MovieClip(root).gotoAndStop (“home”);
}
I added the code below on the “home” frame label and it removed the allemande_slideshow.swf just fine when I click the “home” label, but when I click the “allemande” button, the allemande_slideshow.swf does not re-load.
stage.removeChild(myloader_allemande);
Any guidance would be appreciated.