I know how to load an external swf file with the following AS3
var req:URLRequest = new URLRequest(“http://www.beholdcreative.com/slide_home.swf”);
var loader:Loader = new Loader();
loader.x = -442;
loader.y = -194;
However, I want to load an external swf that is triggered by a mouse click. I have a button with an instance name if photogallery_btn and I want to apply AS3 to this so when this button is clicked, an external swf is loaded. Can some one please show me how to right this code?
Also, how do you unload a external swf? For example, say I get the code working for the photogallery_btn so when it’s clicked, an external swf file is loaded. I would like to know how to unload another external swf file once the photogallery_btn is clicked.