Old newbie I think you would know the answer to my problem so I thought I wwould just ask you first.
I have attached a flash file for you to see what I am actualy trying to do.
What I am trying to do
---------------------------------------------
I have 3 keyframes each with a different coloured square.
Each different square has a fade in and fade out tween.
There are three buttons 1 for each square
When the movie plays it fades in the first square then stops on its keyframe
when I click the second green button what I want it to do is play out the tween of the first square so it appears to fade out then it would go to the start of the tween of the fading in of the green square.
What I am having trouble with is when I am at one square I want to be able to click a button and the movieclip knows to fade out the square it is on then jump to the frame label of the square I want to start the fade of so matter whic one your on it will always finish its tween before starting the next section tween.
I tried doing this by puttin a blank movieclip on the stage which elvaluates whether are variable is true or not which would be set by the button pressed in order to decipher which section to jump too.
At present it is just playing through to the second section.
WHAT AM I DOING WRONG!
Feel free to change the flash file that I have posted and that goes for anyone that knows the answer
The code is very sloppy, but if you want a quick solution, in your empty MC you forgot to reference the variable "two" as "_root.two" and the frame that you tell the play head to go to "lvl2Begin" does not even exist and you are telling that movie clip to go to those frames, not the root. take out that empty MC completely and put this in you main timeline where that empty MC is now:
It wasn't that bad, it's just that it takes a while to learn all of the functions and objects in flash (I don't even know half of them). The more you keep at it the more effecient your code will get. It just takes time. There is no magical tutorial that will teach you how to keep your code elegant. Besides, I am just giving my perspective. If I were to post some of the projects I have done you would say the same thing about my code, maybe worse . I just saying to keep at it and in a few months from now, look back at that code, and I bet you will have a better solution for solving the same problem.