|
||||||
|
||||||
As with the previous jigsaw there is a dragable shape and a target object. When the dragable shape is dropped into the target several things happen:
Until now it is the same as the previous jigsaw example. There are two important additions:
As well as the stop action there is an additional line in the script:
CarTargetNow = 1;
It could say: Anything = 1;
On the main stage is another movie clip with an instance name of vars and a library name of variable:

This movie clip has no graphic objects, therefore it is invisible. It has three frames all of which have an action:

If all the targets = 1 then play the movie clip board. This is the movie clip that has the end animation. This movie clip is on the stage at all times but frame one is invisible.
Also, the above action tells itself (vars) to go to frame three and stop. Frame three has nothing except a stop action. The only action frame two has is:
gotoAndPlay (1);
This is simply a way to ensure that the action in frame one continues to check the if statement.
|
previous tutorial |
next tutorial (not done yet) |
Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates
|
|
|
All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.
|