Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setProperty all instances

Status
Not open for further replies.

firegambler

Technical User
Sep 25, 2002
455
AT
hello,

please could you tell me if it is possible to make all instances of different symbols invisible via ONE button so that i don't have to write one script-part for every instance? (wanna use that for a submenu)

some kind of setProperty(all, _visible, "false");
or something like that (i hope that there is a solution as easy as that which came to my mind)

thanks 4 your efford

firegambler
 
If your symbols were sequentially named, i.e. clip1 - clip2 - clip3, or something like that, you could use a for loop...

for (x=1; x<11; x++){
_root[&quot;clip&quot;+x]._visible = false;
} Regards,

oldman3.gif
 
sometimes one could just kick themselves when one sees how things work and one hasn't found the solution oneself.

thanks 4 your help, I appreciate that!!

firegambler
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top