4 Replies Latest reply on Jun 23, 2006 6:48 PM by kglad

    Problem in gotoAndStop

    john@blastoffnow.com
      Here's my problem. I'm trying to use a string variable to pass a marker name to be used to navigate to a new area of my Flash movie. When I hardcode the name of the marker, it works, but if I declare it as a variable, it jumps to a comepletely different frame. Here's the actionscript:

      //This one works
      on (keyPress "<Right>") {
      gotoAndStop("Output Format1-1");
      }


      //This one incorrectly hops to a frame much later in the movie
      on (keyPress "<Right>") {
      var JumpLink:String = "Output Format1-1";
      gotoAndStop(JumpLink);
      }


      Anyone have an idea as to what I'm doing wrong!?

      Many thanks for any help.

      JR