Adobe Expert
April 6, 2009
Question
Loading external swf file in a new window
- April 6, 2009
- 1 reply
- 2805 views
Hi,
I've got a few .swf files with video tutorials I've created using Captivate 4.
I wanted to link them so I've created a main screen with menu with buttons in Flash.
I've added AS to load the external swf files but they load in the same window. How can I load these .swf files in seperate window so that you could get back to the main window after you've finished watching?
Here's my code:
stop();
var myLoader:Loader = new Loader();
button1_btn.addEventListener(MouseEvent.CLICK, movie1_1);
function movie1_1(e:MouseEvent):void
{
var myURL:URLRequest = new URLRequest("01_01_Welcome.swf");
myLoader.load(myURL);
addChild(myLoader);
}
I'm also attaching screenshot with menu in flash
