# Making animation play, then load movie

**URL:** https://forum.kirupa.com/t/making-animation-play-then-load-movie/29820
**Category:** Uncategorized
**Created:** [August 31, 2003, 12:12pm UTC](https://forum.kirupa.com/t/making-animation-play-then-load-movie/29820 "2003-08-31T12:12:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nayades](https://avatars.discourse-cdn.com/v4/letter/n/ee59a6/32.png) [@nayades](https://forum.kirupa.com/u/nayades)
#### Post date: [August 31, 2003, 12:12pm UTC](https://forum.kirupa.com/t/making-animation-play-then-load-movie/29820/1 "2003-08-31T12:12:21Z")

</div>

i have three buttons. each time i press one of them i tell them to play the same mc. at the end of that mc i want to ( depending on which button has been hit) load either movie 1, 2 or 3, corresponding to button 1, 2 and 3.

thanks in advanced

---

<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: [August 31, 2003, 2:00pm UTC](https://forum.kirupa.com/t/making-animation-play-then-load-movie/29820/2 "2003-08-31T14:00:22Z")

</div>

on(release) {  
playanimation…  
\_root.newload =“yourmovetobeloaded.swf”;  
}  
and in the last frame of the animation put:  
something.loadMovie(\_root.newload, 0);

Change somthing to the movieclip where you want the movie to be loaded in and also change “yourmovietobeloaded” to the movie you want to be loaded after clicking the specified buttons!

---

<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: [August 31, 2003, 7:55pm UTC](https://forum.kirupa.com/t/making-animation-play-then-load-movie/29820/3 "2003-08-31T19:55:40Z")

</div>

yeah thanks that helped. now i have another problem.

i tried to do the same process but with the animation to be played placed on level 1.

on my button i have:

on(press) {  
\_level1.slider.gotoAndPlay(2);  
\_root.newload =“mymovie.swf”;  
}

where “slider” is the mc placed on level 1 and the one that plays the anim.

in the last frame of slider i have this code:

stop();  
\_level1.loadMovie(\_root.newload, 0); [size=1]//here is my problem, because it is not working.[/size]  
unloadMovieNum(1); [size=1]//unloads the current movie where “slider” is placed[/size]

so the thing is, the animation plays, but the movie isn’t loaded. waht may the problem be??

thanks in advanced
