Hi there,
Im putting together a flash site and for each "page" i wish to load in an
external movie. For example when the "Home" button is pressed the "home.swf"
movie is loaded onto the page.
I have done this before and it worked ok but on this site my buttons are in a
movieclip (buttonsmovie) instead of just sitting on my main page. I "think"
this is where my problem lies but im not sure. The buttons just dont work you
see.
Im using this code
//stop this timeline
stop();
//hide the preloader
preloaderGraphics._visible=false;
//initialise a variable
nextMovie="content1.swf";
//load the starting movie into level 1
loadMovieNum(nextMovie,1);
//button1 actions
button1.onRelease=function(){
//this makes sure that content 1 isn't already loaded
if(nextMovie!="content1.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="content1.swf";
//tell the currently loaded content movie to play it's outro animation
_level1.gotoAndPlay("outro");
}
}
//button2 actions
button2.onRelease=function(){
//this makes sure that content 1 isn't already loaded
if(nextMovie!="content2.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="content2.swf";
//tell the currently loaded content movie to play it's outro animation
_level1.gotoAndPlay("outro");
}
}
//button3 actions
button3.onRelease=function(){
//this makes sure that content 3 isn't already loaded
if(nextMovie!="content3.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="content3.swf";
//tell the currently loaded content movie to play it's outro animation
_level1.gotoAndPlay("outro");
}
}
I got this from this tutorial
http://www.hed.swin.edu.au/design/tutorials/flash/smooth_transitions/index.php
The site is