A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [MX04] gotoAndPlay then gotoAndPlay

  1. #1
    Junior Member
    Join Date
    May 2008
    Posts
    21

    [MX04] gotoAndPlay then gotoAndPlay

    Newbie here... how would you do this...

    if (_currentframe=="concept_stop" or _currentframe=="develop_stop" or _currentframe=="gallery_stop") {
    gotoAndPlay(_currentframe + 1) THEN gotoAndPlay("develop_start");
    } else {
    gotoAndPlay("develop_start");

    Basically, I want it to play the frame after the current frame until it stops, then play the develop start frame... how would you do that?

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    after the playhead plays the stop labels+1 and reaches the end of that particular animation, put your gotoAndPlay("develop_start") on these end keyframe. As it seems, from your post, that it always goes there, you wouldn't need to use a variable.

    Also replace all your 'or' by || as in:
    if (_currentframe=="concept_stop" || _currentframe=="develop_stop" || _currentframe=="gallery_stop")

    or has been deprecated for a very long time now

    gparis

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