# LoadMovie from button in external navigation?

**URL:** <https://forum.kirupa.com/t/loadmovie-from-button-in-external-navigation/70955>\
**Category:** flash\
**Created:** [November 19, 2004, 4:21am UTC](https://forum.kirupa.com/t/loadmovie-from-button-in-external-navigation/70955 "2004-11-19T04:21:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cyberious](https://avatars.discourse-cdn.com/v4/letter/c/3ab097/32.png) [@Cyberious](https://forum.kirupa.com/u/Cyberious)\
**Post date:** [November 19, 2004, 4:21am UTC](https://forum.kirupa.com/t/loadmovie-from-button-in-external-navigation/70955/1 "2004-11-19T04:21:01Z")

</div>

I’ve got an empty mc on my main timeline. First, an external navigation is loaded. Then, a background animates into focus. Then, at the end of that background anim (which is an mc on the main timeline) I want the movie to load whatever page (external swf) was called from my external navigation.

Problem is, I don’t want the empty mc to show the loaded swf until after the background is finished animating.

In my external swf, I want to tell the buttons to play the background anim:  
myBtn.onRelease = function() {  
\_root.play();  
movie1Called = true;  
};

Then in my background mc, on the last frame of the animation, I have code telling the external nav to load whatever swf…

\_root.myNav.btnContact.onRelease = function() {  
if (movie1Called = true) {  
\_root.pageContainer.loadMovie(“myMovie.swf”,"");  
};

This seems to work but ONLY for the last button’s movie in the AS. So, my actionscript I have for my buttons (in a frame within my background mc) only recognizes the last loadMovie - no matter what button I push…

What am I missing in this code? I will send $ via PayPal, if you know the answer… it’s driving me crazy!

:jail:
