1 Reply Latest reply on May 30, 2006 7:43 PM by Newsgroup_User

    _root.movieclip.movieclip.gotoAndPlay("framename") ; Why syntax error!?

    complexity Level 1
      Hey all I get a syntax error everytime I add the second movieclip name ("1sml") to this line of code. If I take it out its fine, why is this?

      _root.sml_photos.1sml.gotoAndPlay("selecteda");

      I am running this as a single line of code in 1 frame in my timeline (meant to be like a trigger)


      Any help would be great,
        • 1. Re: _root.movieclip.movieclip.gotoAndPlay("framename") ; Why syntax error!?
          Level 7
          "complexity" <webforumsuser@macromedia.com> wrote in message news:e5itc4$5t1$1@forums.macromedia.com...
          > Hey all I get a syntax error everytime I add the second movieclip name ("1sml")
          > to this line of code. If I take it out its fine, why is this?
          >
          > _root.sml_photos.1sml.gotoAndPlay("selecteda");
          >
          > I am running this as a single line of code in 1 frame in my timeline (meant to
          > be like a trigger)
          >
          >
          > Any help would be great,

          It's just because you can't have a number as the first character in an instance name.
          tralfaz