troubleshooting Question

external swf to open in a new window

Avatar of RachaelF
RachaelF asked on
Adobe Flash
9 Comments1 Solution2796 ViewsLast Modified:
Hi I wonder if anyone can help ?
I am trying to get an external swf's to open in a new window from a button on my main swf.
Currently i have which works but lays on top of the main swf.
I am attempting to program in AS3
It would be a really good help if someone could advise as it is for an assignment for uni and i am running out of time.
Thanks
imageGallery.addEventListener(MouseEvent.CLICK,magPicture);
 
function magPicture(e:MouseEvent):void {
var imageRequest:URLRequest= URLRequest(magPicture.swf);
var imageLoader:Loader=new Loader();
imageLoader.load(imageRequest);
addChild(imageLoader);
}
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros