Actionscript question.

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

  1. #1

    Default Actionscript question.

    Is there an ActionScript 2 variable that will, on release, play the remaining
    frames of a scene, and the go to the corresponding scene associatd with the
    button?

    Example:

    "Scene A" plays to frame 15 of a 30 frame scene and stops. At frame 15 the
    user has an option of 3 buttons, Each with a corresponding Scene. OnRelease of
    "Button B" the scene is to play to frame 30 of "Scene A" and then proceed to
    frame 1 of "Scene B".


    castlestudio Guest

  2. Similar Questions and Discussions

    1. ActionScript 3 question
      ActionScript 3 is only to be used in Flex 2 beta 2 and must have Flash Player 8.5? is there an option to use AS 3 in Flash ?
    2. radio buttons and actionscript question
      I have a flash form with 3 different questions on it. The third question is only needed if either question 1 or 2 (radio buttons) are answered "Yes"...
    3. Help on actionscript, newb question
      Ive got a question, i cant import a song that is mp3 format into one of my flash animations. I try to import it, and it gets cut off a few seconds...
    4. Math Actionscript question
      Hello, I am creating a number guess game like the one located here: http://digicc.com/fido/ But tailored to our company. Where I am getting lost...
    5. ActionScript Question: Bring tab layers forward onclick
      Hello, I have four tabs (4 buttons look like tabs). These are all on the same layer. When I click the tab of each layer I want to bring that...
  3. #2

    Default Re: Actionscript question.

    No, can't target scenes, only frames.
    So if you call frames from your buttons it will work.
    From buttons or frames you can write variables for future use.
    Then pick them up when you need them.
    PS don't use scenes, learn to use movie clips, it's much easier to deal
    with...
    Jon



    "castlestudio" <webforumsuser@macromedia.com> wrote in message
    news:c20n1b$enm$1@forums.macromedia.com...
    > Is there an ActionScript 2 variable that will, on release, play the
    remaining
    > frames of a scene, and the go to the corresponding scene associatd with
    the
    > button?
    >
    > Example:
    >
    > "Scene A" plays to frame 15 of a 30 frame scene and stops. At frame 15
    the
    > user has an option of 3 buttons, Each with a corresponding Scene.
    OnRelease of
    > "Button B" the scene is to play to frame 30 of "Scene A" and then proceed
    to
    > frame 1 of "Scene B".
    >
    >

    Sneelock Guest

  4. #3

    Default Re: Actionscript question.

    um. By the sounds of it this may be over your head a little but...

    place a stop(); action on frame 15
    In each of the buttons place the following code:

    // Button 1
    on (release){
    nextScene = 'scene A';
    play();
    }

    // Button 2
    on (release){
    nextScene = 'scene B';
    play();
    }

    // Button 3
    on (release){
    nextScene = 'scene C';
    play();
    }

    ANd then on frame 30 (last frame of this scene) place the following code:
    gotoAndPlay( nextScene, 1 ); // Place the first frame of the scene stored in
    'nextScene'

    Hope it helps,
    Pea

    Pea Guest

  5. #4

    Default Re: Actionscript question.

    Sneelock, yes about the scenes. I hope Macromedia gets rid of them in future version of flash
    Pea 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