Our Flash tutorials provide you with step-by-step instructions on how to create beautiful Flash animations and integrate them into your website.  Home Flash & Swish Flash Tutorials Jigsaw Variables

Jigsaw Variables


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;

Although the line is:     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:

Jigsaw Variables
(Click to enlarge)

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.

Back to jigsaw page



Author's URL: Phil
Final results of our readers
New!
Passed through all the steps? Share your result!
Your result will be premoderated.
Please make sure you choose the right image.
 
 



Captcha

*Required fileds
Our Flash tutorials provide you with step-by-step instructions on how to create beautiful Flash animations and integrate them into your website. More Flash Tutorials: Featured Materials | Fresh Materials | More Flash Tutorials at FlashPerfection.com

No comments yet...
Add comments to "Jigsaw Variables"

Captcha