# Loading swf into swf

**URL:** <https://forum.kirupa.com/t/loading-swf-into-swf/65732>\
**Category:** flash\
**Created:** [September 29, 2004, 3:38am UTC](https://forum.kirupa.com/t/loading-swf-into-swf/65732 "2004-09-29T03:38:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Georgie](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Georgie](https://forum.kirupa.com/u/Georgie)\
**Post date:** [September 29, 2004, 3:38am UTC](https://forum.kirupa.com/t/loading-swf-into-swf/65732/1 "2004-09-29T03:38:49Z")

</div>

Hi, Big Problem and it feels huge.

I have a product (button) which is in an external swf file that gets loaded into the root timeline. When the button released its supposed to load a popup window, which is living on the root timeline in a movieclip in the second keyframe of the mc.  
The reason I have done it like this is because I want to use this popup graphic to load different dynamic text and images for each product(button) which is selected, but recycle the popup graphic.  
Dear God how do I do this. Have I gone the wrong way about this.

cheers Georgie

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 29, 2004, 4:19am UTC](https://forum.kirupa.com/t/loading-swf-into-swf/65732/2 "2004-09-29T04:19:29Z")

</div>

_shrugs_

can you try that again?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 29, 2004, 5:05am UTC](https://forum.kirupa.com/t/loading-swf-into-swf/65732/3 "2004-09-29T05:05:59Z")

</div>

Post your ActionScript… the Script on your button, if you have any.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 29, 2004, 6:06am UTC](https://forum.kirupa.com/t/loading-swf-into-swf/65732/4 "2004-09-29T06:06:57Z")

</div>

BUTTON  
on (release) {  
loadMovie("???", “\_root.dummypopup”);  
}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 29, 2004, 6:08am UTC](https://forum.kirupa.com/t/loading-swf-into-swf/65732/5 "2004-09-29T06:08:38Z")

</div>

Does anything happen with your script the way it is now?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 29, 2004, 8:32am UTC](https://forum.kirupa.com/t/loading-swf-into-swf/65732/6 "2004-09-29T08:32:07Z")

</div>

it would be so much easyer to use a function for it.  
you can put one function on the root, and link to it from every seperate button.

something like:  
//Call function:  
\_root.buttonclick(“content1.swf”);

//function on root:  
function buttonclick(content){  
loadMovie(content, \_root.dummypopup);  
}
