10 Replies Latest reply on Nov 11, 2006 8:03 AM by kglad

    Smooth Transitions-  Cant figure out what im doing wrong

    fanmap81
      Im trying to make it so that when i click on a button in the navigation, it loads its corresponding external movie file into a movie clip on the main timeline. It seems to load the movies, with intro animation, with no problem, but it dosent play the outro animation in each movie clip when i click to go the next page. It just goes to the next page without any transition. One thing it is doing that i do not want it to do is I cant get the external movies to load into the target movieclip, they load into the main timeline itself and my navigation, which is in the main movie, isnt there anymore once the new movie is loaded in. I want these movies to load into a target movie clip i have named "ph". This is the code in my main movie.


      //stop this timeline
      stop();
      //hide the preloader
      preloaderGraphics._visible=false;
      //initialise a variable
      nextMovie="Page1-Home.swf";
      //load the starting movie into level 1
      loadMovie(nextMovie,"ph");


      //button1 actions
      Button1.onRelease=function(){
      //this makes sure that content 1 isn't already loaded
      if(nextMovie!="Page1-Home.swf"){
      //set the variable that holds the name of the movie to be loaded
      nextMovie="Page1-Home.swf";
      //tell the currently loaded content movie to play it's outro animation
      ph.gotoAndPlay("outro");
      }
      }

      //button2 actions
      Button2.onRelease=function(){
      //this makes sure that content 2 isn't already loaded
      if(nextMovie!="Page2-AboutUs.swf"){
      //set the variable that holds the name of the movie to be loaded
      nextMovie="Page2-AboutUs.swf";
      //tell the currently loaded content movie to play it's outro animation
      ph.gotoAndPlay("outro");
      }
      }

      //button3 actions
      Button3.onRelease=function(){
      //this makes sure that content 3 isn't already loaded
      if(nextMovie!="Page3-Collection.swf"){
      //set the variable that holds the name of the movie to be loaded
      nextMovie="Page3-Collection.swf";
      //tell the currently loaded content movie to play it's outro animation
      ph.gotoAndPlay("outro");
      }
      }

      //button4 actions
      Button4.onRelease=function(){
      //this makes sure that content 4 isn't already loaded
      if(nextMovie="Page4-PressRoom.swf"){
      //set the variable that holds the name of the movie to be loaded
      nextMovie="Page4-PressRoom.swf";
      //tell the currently loaded content movie to play it's outro animation
      ph.gotoAndPlay("outro");
      }
      }

      //button5 actions
      Button5.onRelease=function(){
      //this makes sure that content 5 isn't already loaded
      if(nextMovie!="Page5-Events.swf"){
      //set the variable that holds the name of the movie to be loaded
      nextMovie="Page5-Events.swf";
      //tell the currently loaded content movie to play it's outro animation
      ph.gotoAndPlay("outro");
      }
      }

      //button6 actions
      Button6.onRelease=function(){
      //this makes sure that content 6 isn't already loaded
      if(nextMovie!="Page6-Retailers.swf"){
      //set the variable that holds the name of the movie to be loaded
      nextMovie="Page6-Retailers.swf";
      //tell the currently loaded content movie to play it's outro animation
      ph.gotoAndPlay("outro");
      }
      }


      This is the code in each external movie:

      //this gets the value of a variable set by our buttons and loads the appropriate movie into level 1
      loadMovie(_level0.nextMovie,ph);

      This code is on the last frame of the animation and should be accessed upon the outro animation playing, which it isnt. Can anyone tell me what im doing wrong here and how i can fix this problem? Flash 8