A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: gotoAndPlay error

  1. #1
    Junior Member
    Join Date
    Mar 2005
    Posts
    29

    gotoAndPlay error

    flash cs3 on actionscript 1 & 2 (with flash 8) gives this error when i try to preview the .fla as a .swf:
    Code:
    Wrong number of parameters; gotoAndPlay requires between 1 and 2.
    why is it doing that? what does it mean? and how can i fix it?
    thanks

  2. #2
    Senior Member
    Join Date
    Nov 2004
    Posts
    928
    gotoAndPlay(parameter here)
    eg
    gotoAndPlay(10) - this will make the playhead go to frame 10

  3. #3
    Junior Member
    Join Date
    Mar 2005
    Posts
    29
    i have gotoAndPlay(30); and it still says it

  4. #4
    Senior Member sharma's Avatar
    Join Date
    Oct 2004
    Location
    Canadia
    Posts
    1,017
    my guess would be that the timeline you have that gotoAndPlay(30); sitting on, does not actually have a 30th frame, and thus the error...

    you may be missing a _root. or a _parent.

    ie: _parent.gotoAndPlay(30);
    what the hell's a motion tween?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center