ActionScript 3 several buttons to open child SWFs can be able to close the child in the child

Here's the scenario... I have an image on the stage that has several elements that have hot/links on them that should open a child swf above the background and display the details of the items. then have a button in the child swf itself which abducts the child more of the background so that the user can click on another etc. I found this code in the message from someone and I'm trying to change that works for several swf files... He currently works for a single swf. I have a wan to pass the name of the button in front of the .swf in the URLRequest to have the same name as the instance name of the button referent. But I can't understand it. Here is the code I use on stage

If I understand your question, you should try this:

var biorequest:URLRequest = new URLRequest (e.target.name + ".swf");

Tags: Adobe Animate

Similar Questions

Maybe you are looking for