# External loading

**URL:** <https://forum.kirupa.com/t/external-loading/57138>\
**Category:** flash\
**Created:** [July 10, 2004, 6:16pm UTC](https://forum.kirupa.com/t/external-loading/57138 "2004-07-10T18:16:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![NewToFlash](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@NewToFlash](https://forum.kirupa.com/u/NewToFlash)\
**Post date:** [July 10, 2004, 6:16pm UTC](https://forum.kirupa.com/t/external-loading/57138/1 "2004-07-10T18:16:41Z")

</div>

Hey.  
I have a Main movie (main.swf) a seperate button (button.swf) and a movie clip (clip.swf). The button is loaded into the main movie with loadMovie and when I press on that button I want the clip.swf to open in main.swf. (I have a empty movie clip in main.swf). My problem is that I don’t know how to link the button (that is loaded into main.swf) to go to the movie clip in main.swf and load clip.swf.

Could anyone help me with this? 🙂

---

<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:** [July 10, 2004, 6:24pm UTC](https://forum.kirupa.com/t/external-loading/57138/2 "2004-07-10T18:24:02Z")

</div>

Ok, so a swf with a button is loaded into your main movie. You want to click it and have another swf load into a container in the main movie? If so:

on(release){  
\_root.container.loadMovie(“whatever.swf”)  
}

---

<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:** [July 10, 2004, 6:57pm UTC](https://forum.kirupa.com/t/external-loading/57138/3 "2004-07-10T18:57:39Z")

</div>

Hmmm… it doesn’t work ☹  
The movie clip I move it into has the instance-name container, and there’s nothing more I should do there? There is probably something I’ve missed. :puzzled:

---

<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:** [July 10, 2004, 7:00pm UTC](https://forum.kirupa.com/t/external-loading/57138/4 "2004-07-10T19:00:20Z")

</div>

Can you upload your flas?

---

<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:** [July 10, 2004, 9:48pm UTC](https://forum.kirupa.com/t/external-loading/57138/5 "2004-07-10T21:48:36Z")

</div>

[http://w1.470.telia.com/~u47035396/flash/helpme/helpme.htm](http://w1.470.telia.com/~u47035396/flash/helpme/helpme.htm)

---

<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:** [July 11, 2004, 8:43am UTC](https://forum.kirupa.com/t/external-loading/57138/6 "2004-07-11T08:43:30Z")

</div>

I’ve noticed that it isn’t possible to put the code loadMovie into a movie clip (because the onEvent thing pops up). But it works if you put it in the first keyfram of the movie clip. So I guess I have to go to that keyframe then?

\_root.clip.keyframe.loadMovie(“main.swf”)

Should that make it go to the Main movie --\> root —\> MC with instance name clip —\> first keyframe that I name keyframe (says image etikett in swedish, not the swedish word for instance-name so I don’t know if that works the same?), and then in that keyframe load main.swf?

Hmmmm… the problem there is, how does it know it shall go to the other external .swf from there? I’m not used to AS and the linking. I guess I have to write this code longer and add the clip.swf somewhere (lots of different clips I’m talking about here).

I’m grateful for any help.

---

<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:** [July 11, 2004, 12:54pm UTC](https://forum.kirupa.com/t/external-loading/57138/7 "2004-07-11T12:54:18Z")

</div>

the problem is in the linkage. it has to refer to the original link. look it up in the search.
