1 Reply Latest reply on Jun 27, 2006 6:34 AM by kglad

    NAVIGATING TO NEW SWF FILES

    liamfahy
      Hello!

      I am creating my first Flash website. I was advised to created each page in a new SWF file.

      At the moment I have just 2 pages: "Home" and "Portfolio"

      I have a button in "Home" with the following script to take mt to "Portfolio":

      on (release) {
      loadMovieNum("Portfolio.swf", 1);
      gotoAndPlay("Scene 1", "Frame 1");
      }

      This works fine

      However, I also have a button in "portfolio" to take me back to "Home" - this is the script:

      on (release) {
      loadMovieNum("Home.swf", 1);
      gotoAndPlay("Scene 1", "Frame 1");
      }

      WHEN I CLICK THIS BUTTON, BOTH THE "Home" and "Portfolio" SWF FILES PLAY AT THE SAME TIME IN THE WINDOW - I NEED TO KNOW HOW TO HAVE THE "Home" SWF FILE REPLACE THE "Portfolio" SWF FILE WHEN THIS BUTTON IS CLICKED.

      ANY HELP GREATLY APPRECIATED!!

      Liam