|
|
 |
|
|
|
|
|
This is a small tutorial on how to use a variable in a path. This tutorial is also an example on how to make different objects invisible on one mouseclick.
Try to follow :
1. Make an empty movie 2. draw 5 different shapes and give them all the same name ending with a different number. For example : Myobject1 Myobject2 Myobject3 Myobject4 Myobject5 3. checkmark the target of each object. You can do that by checking the box next to the name of each object. 4. make a button and give it this script :
on (release) { for (a=0; a<6; a++) { _root["Myobject" add a]._visible=false; } }
5. put a stop at the end of your movie.
THAT'S ALL
- Notice that you are able to make 5 different objects invisible at one mouseclick - Notice that you may not put a period between _root and the brackets !
This is a working example : http://users.skynet.be/fa019951/path.swf This is the source : http://users.skynet.be/fa019951/path.swi
Feel free to ask,
|
|
|
|