# SWF inside another SWF, help please!

**URL:** <https://forum.kirupa.com/t/swf-inside-another-swf-help-please/96561>\
**Category:** Uncategorized\
**Created:** [December 10, 2003, 10:07pm UTC](https://forum.kirupa.com/t/swf-inside-another-swf-help-please/96561 "2003-12-10T22:07:15Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![berkoWitZ](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@berkoWitZ](https://forum.kirupa.com/u/berkoWitZ)\
**Post date:** [December 10, 2003, 10:07pm UTC](https://forum.kirupa.com/t/swf-inside-another-swf-help-please/96561/1 "2003-12-10T22:07:15Z")

</div>

ok, I want in the moment I pressed a button another SWF to come out in a corner with another options, I know I can do it with the LoadMovie command, but I don´t know exactly what to do?? help please!!

---

<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:** [December 10, 2003, 11:06pm UTC](https://forum.kirupa.com/t/swf-inside-another-swf-help-please/96561/2 "2003-12-10T23:06:43Z")

</div>

You want another swf to load in a specific place?

---

<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:** [December 10, 2003, 11:08pm UTC](https://forum.kirupa.com/t/swf-inside-another-swf-help-please/96561/3 "2003-12-10T23:08:58Z")

</div>

exactly but when I clic a button, I read something about movieclip target or something…

---

<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:** [December 10, 2003, 11:13pm UTC](https://forum.kirupa.com/t/swf-inside-another-swf-help-please/96561/4 "2003-12-10T23:13:02Z")

</div>

What 's the code on your button?

---

<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:** [December 10, 2003, 11:16pm UTC](https://forum.kirupa.com/t/swf-inside-another-swf-help-please/96561/5 "2003-12-10T23:16:04Z")

</div>

on(release) {  
loadMovie(“manda.swf”,\_root.container);  
}

but when I export the movie it comes out an output screen ant it says: Symbol=send, Layer=Layer 1, Frame=1: Line 1: Mouse events are permitted only for button instances  
on(release) {

---

<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:** [December 10, 2003, 11:25pm UTC](https://forum.kirupa.com/t/swf-inside-another-swf-help-please/96561/6 "2003-12-10T23:25:08Z")

</div>

If you click your button, is the AS still to be seen in the actions window?

Can you post your fla?

---

<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:** [December 10, 2003, 11:25pm UTC](https://forum.kirupa.com/t/swf-inside-another-swf-help-please/96561/7 "2003-12-10T23:25:27Z")

</div>

Is your “send” symbol a movie clip instance or an actual button symbol?

---

<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:** [December 10, 2003, 11:26pm UTC](https://forum.kirupa.com/t/swf-inside-another-swf-help-please/96561/8 "2003-12-10T23:26:14Z")

</div>

it´s a movie clip instance

---

<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:** [December 10, 2003, 11:31pm UTC](https://forum.kirupa.com/t/swf-inside-another-swf-help-please/96561/9 "2003-12-10T23:31:09Z")

</div>

sorry I can´t post the FLA, I don´t have permission(it´s not mine)

---

<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:** [December 10, 2003, 11:37pm UTC](https://forum.kirupa.com/t/swf-inside-another-swf-help-please/96561/10 "2003-12-10T23:37:03Z")

</div>

lol!

on(release) is for actual “button” symbols. If yours is actually a movie clip then you want to use  
[AS]  
send.onRelease = function() {  
put actions here;  
}  
[/AS]  
if your send button is not on the main timeline then you’ll have to put the whole path before the “onRelease” part.

Hope that helps!

---

<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:** [December 10, 2003, 11:42pm UTC](https://forum.kirupa.com/t/swf-inside-another-swf-help-please/96561/11 "2003-12-10T23:42:19Z")

</div>

ok I just made something, I used this AS

on (release) {  
loadMovie(“manda.swf”, “container”);  
}

and it worked but after that my button disappear and the loaded swf appears in the center, and I want it in other place…???

---

<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:** [December 10, 2003, 11:46pm UTC](https://forum.kirupa.com/t/swf-inside-another-swf-help-please/96561/12 "2003-12-10T23:46:36Z")

</div>

So now your button is a button symbol? :h:

Leave the quotes off of container. You also might need to include the pathway to the container file, like:

[AS]  
on(release){  
loadMovie(“manda.swf”, \_root.container);  
}  
[/AS]  
or wherever your container mc is.

---

<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:** [December 10, 2003, 11:51pm UTC](https://forum.kirupa.com/t/swf-inside-another-swf-help-please/96561/13 "2003-12-10T23:51:33Z")

</div>

ok, I´m almost done, but still my other SWF appears in other place and the only way I can change where it appers is by editing the manda.swf and changing the position there, and do you know why my button dissapears after I clic it?

---

<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:** [December 10, 2003, 11:53pm UTC](https://forum.kirupa.com/t/swf-inside-another-swf-help-please/96561/14 "2003-12-10T23:53:42Z")

</div>

:h: what do you mean by “appears in other places”?

Set your container clip where you want it on the stage. Take note of where the origin point is. Do same with external swf. It helps if they have an origin point in the same place, like upper left hand corner. Also helps if they are same size. If manda.swf is 500 x 600 say then having container be 500 x 600 will give you exactly the result you want.

Where is your button originally?

---

<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:** [December 11, 2003, 12:14am UTC](https://forum.kirupa.com/t/swf-inside-another-swf-help-please/96561/15 "2003-12-11T00:14:56Z")

</div>

ok, got it, I really aprecciate your help!! The only issue i have is when I clic the button, I clic it, ok the external SWF comes out but my button dissappears!! Do u know why? Thanks a lot!
