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:
- The dragable shape is a movie clip and goes to frame two and becomes invisible.
- The target object is also a movie clip and starts play. There is an action on the last frame that tells the movie clip to stop.
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;
I t 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.



