Skip to main content
September 28, 2013
Question

ActionScript between frames help

  • September 28, 2013
  • 1 reply
  • 736 views

Hello,

It's been a long time since I've worked with Flash, namely AS3 so I need some guidance on a project.

Here are some requirements for the project to be used during a play performance:

Make a string of animations that need to all be in the same SWF file that someone will run from their computer rather than over the Internet. That seems fine.

Nothing visible to the audience except the animation (i.e. no mouse icon, etc.).

Each frame must contain a Movieclip (animation) that plays when you enter it and stops/disappears (if in mid play) when you leave the frame. Most of the animations are going to be a simple text fading in and out until advanced to the next frame.

Use of the left arrow (keyCode: 37) on the keyboard to move to the previous frame and play that Movieclip.

Use of the right arrow (keyCode: 39) on the keyboard to move to the next frame and play that Movieclip.

Suggestions?  🙂

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
September 28, 2013

each animation should be a movieclip that's placed on a main timeline keyframe. 

put the first animation/movieclip on frame 1.  the next on keyframe2 etc.

use a keyboardevent listener to listen for the left and right arrow keys and execute prevFrame() or nextFrame().

if your animations contain any streaming (sound, video etc), you should use a removedfromstage listener to stop the stream.

October 1, 2013

Thank you very much for these suggestions.

kglad
Community Expert
Community Expert
October 1, 2013

you're welcome.