PDA

View Full Version : what is the 'any' character in flash



shuga
January 30th, 2003, 12:58 PM
i don't know what to call it .... so that explains the lame name of this thread but here's my question.

in windows if i want to find a file of a particular type i can search for *.jpg. '*' is the 'any' character in that instance.

what i'm curious about is say for instance i have a bunch of buttons on the screen that create mouse effects and i want the handCursor not to show when you mouseOver them to create the effects. so in the main frame's actionscript i put

buttonName.useHandCursor = false

but i don't want to redo that script for all the buttons so i name the buttons sequentially "button1 - button65" for instance is it possible to say something like:

button*.useHandCursor = false ..... again the '*' is what i'm using for the random character

or something like (button+"*").useHandCursor = false

thanks for your help =)

Jubba
January 30th, 2003, 01:17 PM
http://www.kirupaforum.com/showthread.php?s=&threadid=13890

rynoe
January 30th, 2003, 01:19 PM
I think you may be better off using an array[]

senocular
January 30th, 2003, 02:25 PM
Originally posted by Jubba
http://www.kirupaforum.com/showthread.php?s=&threadid=13890

I knew this question was coming so I put that in the other post... yeah.. thats the ticket