all groups > flash actionscript > february 2005 >
You're in the

flash actionscript

group:

Action Script for stopping and starting interactively


Action Script for stopping and starting interactively Mary Burr
2/20/2005 6:26:11 PM
flash actionscript:
Re: Action Script for stopping and starting interactively derobinson
2/20/2005 6:41:39 PM
It's not the animation itself that is the key, it's the code that controls the
animation.

Here's the link to the LiveDocs page on capturing keypresses:

http://livedocs.macromedia.com/flash/mx2004/main_7_2/00000963.html

You'd probably want to do two things when the keypress is detected: start or
stop the MC (myMC.play() or myMC.stop() ), and also set some variable that
you've created so that you know the current state of the MC (playing or
stopped). You'll need to wrap all that in a conditional based on the start/stop
variable.

Hope that helps!

AddThis Social Bookmark Button