View Full Version : animations
crinity
June 16th, 2003, 06:41 AM
im sort of new and i been trying to figure this out so id aprecaite it if some one could tell me how to do this
when i press the right key it plays the animation in my movie clip i want to do something like if i press left i plays a diffrent section like 1-4
and ifi press right say 5-6 and so on could some one please explain this
iLikePie
June 16th, 2003, 07:00 AM
not sure if i quite understand you... are you using a pc? if so, is the 'right key' enter? and do you mean it plays the movie you've created in flash, or do you mean that you've got multiple scenes that you want to distinguish between?
it's just that when you use the numbers like 1-4 i'm not sure if you're talking about scenes or individual frames...
If you're just talking about frames, i think you can just stop the animation when you've seen what you want, and likewise, start it from any frame you like...
HTH
STuart
crinity
June 16th, 2003, 06:44 PM
i am asking i have a movie clip and i what it so when i press the lets say right arrow key that it keeps playing frames 1-4 untill i let go and lets say if i press down i want it to play frames 5-7 how can i do this
radicaljugnu
June 17th, 2003, 05:57 AM
I think i know what you mean, crinity.
You could have a movie clip with two animations from frames 1 to 4 and 5 to 7.
On frame 1 add a stop action, frame 4 add a gotoAndPlay(1) action and on frame 7 add a gotoAndPlay(5) action.
In the object actions of the mc add code that while the key is pressed, gotoAndPlay(2) or gotoAndPlay(5)
I hope that solves ur problem
crinity
June 17th, 2003, 06:05 PM
ill go try that right now thanks
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.