play next 5 frames and then GoTo

Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default play next 5 frames and then GoTo

    Hi there

    I have a button, which when clicked I want to continue playing the movie for
    an additional 5 frames, then go to the desired location. I can do this by
    having the button "play" and then 5 frames later using a "GoToandPlay". This is
    no good if I have several buttons with different destinations however. Can I
    actionscript the button to "play next 5 frames and then GoTo"?

    eschacha Guest

  2. Similar Questions and Discussions

    1. goto on indexed clips
      I bet this one has already been post, but I didn't find it. I have several instances, named mc_1, mc_2.... mc_20, I would kike to be able to do...
    2. goto command
      Does perl have a goto command. For example if you tell scrip to do something and it returns a 1 then it should go to a block of code that does...
    3. checking for the existence of a global variable, continuous play vs. single play (code included)
      I have a director application that I'm working on. There's a version that's called "full play" that basically is a copy of the interactive portion,...
    4. Problem with GOTO Label:
      HIi all, Trying to execute the following code within a procedure: DECLARE CONTINUE HANDLER FOR SQLSTATE 'WW033' GOTO create_batch; .....some...
    5. goto net page [Please Help]
      Sure, Lingo doesn't do that. The gotoNetPage() function only allows for two arguments, the URL and the target. Further, you'll probably find that...
  3. #2

    Default Re: play next 5 frames and then GoTo

    Set a variable to different value depending on which button is pressed. On
    the frame with your gotoAndPlay command, use the variable:

    btnBut0.onPress = function(){
    sNextFrame = "portfolio";
    play();
    }

    btnBut1.onPress = function(){
    sNextFrame = "clients";
    play();
    }

    Then on the 5th frame:
    gotoAndPlay(sNextFrame)

    hth
    }`¬P

    --
    ---------------------------------------
    [url]http://www.phageinteractive.com[/url]
    PhageInteractive Ltd.
    remove mm_ to mail
    ---------------------------------------
    'I wish we lived in a world where it was possible to be religious and think
    at the same time.' - Jonh Graves



    Peter Blumenthal Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139