Home | Help Forums | Web Design Tutorials | Free Swishmax Downloads | All Downloads

 

 

Company

Home

Nework Details

Tutorials

SWiSH 2

SWiSHMax

Flash MX

PHP & MySQL

HTML / JScript

Adobe Photoshop

Corel Draw

Gimp

Miscellaneous

Downloads

Templates

Plugins

Fonts

Wallpapers

Free Images

Scripts and Codes

Products

E-Books

SWiSH BB

SWiSH Templates

SWiSH-DB Newsletter
Subscribe to our newsletter : GO
  Partners / Affiliates

   Swish Templates
   SWiSH Climax
   GimpTalk
   Idea Designs
   Sposatoettore
   Try Acai Berry Diet
   Download Free Ringtones
   Swishzone

Manage your site with Flax Article Content Management System
The use of a variable in a path
Category : SWiSHMax | Level : Beginner | Language : English
Ask Question | Read Comments | Post tutorial | Previous | Next

Web www.swish-db.com

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,


All rights reserved - swish-db.com