Copy link to clipboard
Copied
I've been having trouble in Flash CS6 using AS2. I have created a character with an idle animation and a walking animation. If I try to test either of them (Ctrl-Enter) it just shows the first frame. It was working when i had only one set of animations, but after adding a second it seems to have stopped working. The main reason I find this odd is because I have not added any code into the actions yet, so the reason can't be faulty code.
put both on your main timeline and test.
Copy link to clipboard
Copied
put both on your main timeline and test.
Copy link to clipboard
Copied
Thank you for the reply. Can you elaborate on what you mean by that? How would I move them to the main timeline?
Copy link to clipboard
Copied
while viewing the main timeline, drag each of those movieclips from your library to the stage. test.
Copy link to clipboard
Copied
THANK YOU SO MUCH. This really helped, and you saved me a lot of trouble.
Copy link to clipboard
Copied
you're welcome.
p.s. please mark helpful/correct responses.
Copy link to clipboard
Copied
So, say I make code for this to be in a game, to test keystrokes I would just move back to the main timeline and test it there?
Copy link to clipboard
Copied
by default, only your main timeline plays.
only animation/text/graphics that's attached to the main timeline will display. only code that's attachded to the main timeline will execute (unless you use class files).
HOWEVER, anything (like animation/text/code) that's in a movieclip, as long as that movieclip is attached to the main timeline, will also be displayed and execute.
so keystroke code could be attached to the main timeline. it could also be in a movieclip and that movieclip is attached to the main timeline.
note: just because nesting code in timelines will work does not make it a good idea. in fact, it's a bad idea. the only code should be on nested timelines is stop(),play() and gotoAndStop() and gotoAndPlay()
p.s. nesting animations is a central part of animation with flash.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now