1 Reply Latest reply on Jun 28, 2006 6:56 AM by kglad

    Displaying SWF files in sequence

    liamfahy
      Hi,

      I am quite new to Flash and am creating my first website.

      I currently have 3 SWF pages which I want to link together. these pages are "Home_Page", "Portfolio" and "Portfolio_outro".

      At the moment, when you click a button in "Home_Page" you are taken to "Portfolio".

      There is a button in "Portfolio" which when clicked I want to take the user back to the "Home_Page", but in order for the animation to work correctly, I want the "Portfolio_outro" page to display first!

      This means that in the action script for this home button, I need to somehow ask that when it is released, first one movie is played, then another. My current script for this looks like this:


      on (release) {
      //load Movie Behavior
      if(this == Number(this)){
      loadMovieNum("Home_Page.swf",this);
      } else {
      this.loadMovie("Home_Page.swf");
      }
      //End Behavior

      //load Movie Behavior
      if(this == Number(this)){
      loadMovieNum("Portfolio_outro.swf",this);
      } else {
      this.loadMovie("Portfolio_outro.swf");
      }
      //End Behavior

      }

      CAN ANYONE TELL ME WHY THIS ISN'T WORKING AND WHAT I NEED TO GET ONE MOVIE TO PLAY AFTER THE OTHER UPON PRESSING THIS BUTTON.

      THANKS A MILLION,

      LIAM