unload swfs
hello all,
i have been trying to solve this for two days now, and nothing has helped me..i have a menu, that works with a xml file.
the xml has the specific code that triggers the .as file:
<buttons> <button name="HOME" linkType="custom" link="home.swf" /> <button name="ABOUT" linkType=" _custom" link="about.swf" /> <button name="BLOG" linkType=" _self" link="contact.html" /> <button name="CONTACT" linkType=" _self" link="contact.html" /> </buttons>
var loader:Loader = new Loader()
loader.load(request)
var swfContainer:MovieClip=new MovieClip ;
this.addChild(swfContainer)
swfContainer.addChild(loader);;when i press the button home for example, the home will load...
then i press the button about, and it loads as well, but the home still playing on the back...
how do i make the content for home to disapear when another button is clicked?because the code works for all the buttons, it has to be something generic .. that would work for the event of anybutton being clicked..any suggestions?totally appreciate it.