I'd just like to mention - I'm very new to AS...and I apologize for such a weak post. I've searched and even tried coding for hours with no luck
I've followed the tut below - basically what happens...the "content1.swf" plays in the first scence. I'm trying to figure out how to stop "content1" from playing before the user/viewer hits button1.
Here's what the code looks like (minus the preloader from the tut).
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");
}
}
Any help would be great. Thanks for reading - and again, I apologize in advance for a boring post.
http://www.tableau.com.au/tutorials/smooth_transitions/