# Loading ext. movies?

**URL:** <https://forum.kirupa.com/t/loading-ext-movies/12333>\
**Category:** Uncategorized\
**Created:** [January 29, 2003, 8:29pm UTC](https://forum.kirupa.com/t/loading-ext-movies/12333 "2003-01-29T20:29:39Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![eggplant\_wizard](https://avatars.discourse-cdn.com/v4/letter/e/3be4f8/32.png) [@eggplant\_wizard](https://forum.kirupa.com/u/eggplant_wizard)\
**Post date:** [January 29, 2003, 8:29pm UTC](https://forum.kirupa.com/t/loading-ext-movies/12333/1 "2003-01-29T20:29:39Z")

</div>

i have a button that creates a blank movie clip when clicked , and loads an external movie in the blank movie, but after that movie is played i need it to load another movie and play that one in the the same blank movie.  
on (release) {  
\_root.createEmptyMovieClip(“blank”, 1);  
blank.\_x = 10 ;  
blank.\_y = 60 ;  
loadMovie(“transitions.swf”, “blank”);

```
}

```

there is the code on the button, but what do i put after that to load another movie in the blank movie to play right after the 1st one is done?

---

<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:** [January 29, 2003, 9:09pm UTC](https://forum.kirupa.com/t/loading-ext-movies/12333/2 "2003-01-29T21:09:41Z")

</div>

Ok I read your PM and here is another way you could do it. Have your transition inside a movieclip and give it an instance name of “load” for example. Then have a section of your timeline used for the transition and give it a label name something like “transition” for example. So let’s say on frame 1 is your link, place a stop there as well. Next frames 2-10 would be the trasition so place your transition MC into frame 2 then on frame 10 place these actions:

```php
stop();
loadMovie ("external.swf", "load"); 

```

This will replace your transition with the external movie. And on your link, you would use an action like this:

```php
on (release){
	gotoAndPlay("transition");
}

```

]  
This will tell flash to go to and play the frame label “transition”

I hope that gives you an idea, I use a similar method on my site as well, maybe you can use it as well.

---

<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:** [January 29, 2003, 9:22pm UTC](https://forum.kirupa.com/t/loading-ext-movies/12333/3 "2003-01-29T21:22:58Z")

</div>

ok that worked great, but i have about 10 links that need that transition to play when clicked, and if i have

stop();  
loadMovie (“external.swf”, “load”);

at the end of frame 10 it will only load the movie that i have put in that line of code. what about all the other links?

---

<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:** [January 29, 2003, 9:29pm UTC](https://forum.kirupa.com/t/loading-ext-movies/12333/4 "2003-01-29T21:29:57Z")

</div>

after frame 10, frames 11-20 would be the transition section again, just give it a new label name like “transition 2”, just repeat all the steps that I told you and just replace the name of the external swf for the actions on the next link. Do this for all your links.

---

<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:** [January 29, 2003, 9:40pm UTC](https://forum.kirupa.com/t/loading-ext-movies/12333/5 "2003-01-29T21:40:33Z")

</div>

ok i see thanks so much for all your 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:** [January 29, 2003, 9:54pm UTC](https://forum.kirupa.com/t/loading-ext-movies/12333/6 "2003-01-29T21:54:29Z")

</div>

ah man there is still a problem. the transition plays and it loads the movie, the transition plays under the movie. here is the .fla for it. maybe you can tell me what i did wrong.

---

<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:** [January 29, 2003, 10:00pm UTC](https://forum.kirupa.com/t/loading-ext-movies/12333/7 "2003-01-29T22:00:20Z")

</div>

post the external movie as well so i can load it into your main movie.

---

<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:** [January 29, 2003, 10:02pm UTC](https://forum.kirupa.com/t/loading-ext-movies/12333/8 "2003-01-29T22:02:20Z")

</div>

ok sorry here you go

---

<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:** [January 29, 2003, 10:03pm UTC](https://forum.kirupa.com/t/loading-ext-movies/12333/9 "2003-01-29T22:03:27Z")

</div>

heres the other one

---

<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:** [January 29, 2003, 10:12pm UTC](https://forum.kirupa.com/t/loading-ext-movies/12333/10 "2003-01-29T22:12:10Z")

</div>

The reason why your loaded movie loaded at the bottom is because the registration point for you movieclip was in the middle when it was suppose to be in the upper left hand corner. I went ahead and fixed it for you and organized your timeline as well so things should work now. Here is 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:** [January 29, 2003, 10:22pm UTC](https://forum.kirupa.com/t/loading-ext-movies/12333/11 "2003-01-29T22:22:26Z")

</div>

yeah but you took out the

{  
\_root.createEmptyMovieClip(“blank”, 1);  
loadMovie(“main.swf”, “blank”);  
blank.\_x = 10 ;  
blank.\_y = 60 ;  
}

in the 1st frame, so when the page loads there is no content. the problem is that when i have that code in the 1st frame the transition plays under the content that loads on the 1st frame. i can’t get the movie that loads (main.swf) to disappear when the transition starts playing.

---

<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:** [January 29, 2003, 10:25pm UTC](https://forum.kirupa.com/t/loading-ext-movies/12333/12 "2003-01-29T22:25:56Z")

</div>

Why don’t you just have the main content on there already, like have it sit on just frame one, so when the link is clicked, the main content is gone and the transition plays and loads the new content in.

---

<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:** [January 29, 2003, 10:29pm UTC](https://forum.kirupa.com/t/loading-ext-movies/12333/13 "2003-01-29T22:29:32Z")

</div>

Here is an example of what im talking about.

---

<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:** [January 29, 2003, 10:30pm UTC](https://forum.kirupa.com/t/loading-ext-movies/12333/14 "2003-01-29T22:30:43Z")

</div>

when i put it on frame 1, it still does go away when the transition plays. the main.swf won’t unload, it just stays on the screen.

---

<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:** [January 29, 2003, 10:33pm UTC](https://forum.kirupa.com/t/loading-ext-movies/12333/15 "2003-01-29T22:33:03Z")

</div>

ok If you want it to stay then extend the timeline of the maincontent layer like in this example.

---

<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:** [January 29, 2003, 10:33pm UTC](https://forum.kirupa.com/t/loading-ext-movies/12333/16 "2003-01-29T22:33:10Z")

</div>

haha i posted after you already had, yeah that works. thanks.

---

<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:** [January 29, 2003, 10:37pm UTC](https://forum.kirupa.com/t/loading-ext-movies/12333/17 "2003-01-29T22:37:02Z")

</div>

haha ok I’m glad it worked, if you have anymore problems then post them. =)
