hello.
I am trying to make a movie in flash, and each character is its own movie clip symbol. I also have a variable for each character, to control the current animation running. I have one character in the movie, for now, and that movie clip symbol is called mann. It is just a simple draw, Im just testing this method out. Now, the first frame of the movie, has this action:
mann1_anim = 1;
that is the first time I use that variable, so then it will be created, right? anyway, then, the first frame of the mann movie clip symbol has this action:
mann.stop();
while (mann1_anim == 1) { }
mann.gotoAndPlay(mann1_anim);
on that first frame, my man character only stands, so this action should do so that while the mann1_anim variable is 1, the man should just stand there, right?
Then, the 9th frame of the MOVIE, has this action:
mann1_anim = 2;
then something should happend in the action of the first frame of the mann movie clip symbol, because mann1_anim is no longer 1. Then the mann movie clip should start and play at frame 2, right?
From frame 9 of the MOVIE to frame 22, I have created a motion tween for the mann symbol. from right of the screen to the left. Then, in the 2nd frame of the mann MOVIE CLIP to the 3th frame, is the “walk to the left” animation. At the 3rd frame of the MOVIE CLIP, I have this action:
while (mann1_anim == 2) {
mann.gotoAndPlay(2);
}
mann.gotoandplay(mann1_anim);
this should loop the walk to the left animation to frame 22 of the movie, cause in frame 22 of the movie, when the tween animation stops, is this action:
mann1_anim = 1;
so then, when the tween animation stops, the mann symbol should return to the stand animation (frame 1).
Well, that was a lot of explenation, and here is the problem.
When I test the movie, the mann runs its complete animation all the time! I don`t understand why, do you?
I have uploaded my work file(fla) here, it might help to understand better:)
http://gamespawn3d.netfirms.com/symbol_tst.zip
Thanks a lot for your time and please help