3 Replies Latest reply on Feb 19, 2009 9:11 AM by Ned Murphy

    Passing Variables

    andy-man
      Okay... simple, but not for me... this is an AS2 question.

      I have a Flash document and in this document I have an empty movie clip that I'm using for a placeholder to load another Flash movie. When I load the second swf document into the main swf document, I have buttons that generate values of 1 to 9 (depending on what button the user clicks)... the variable is defined as pageNumber.

      I then return to the main timeline in the movie using "_root.gotoAndPlay". Depending on the value of the variable, the timeline performs a specific function.

      Here's my problem... the variable pageNumber sets correctly; however, when I execute the _root command to return to the main timeline, the value always resets to 1.

      Why is the value resetting to 1?