PDA

View Full Version : Tell me how to stick expressions


Renton
01-12-2002, 12:04 PM
Hi

I have made some script with variables like this:

aube = 50;

Now i wanted to access the variable in different way for making script easier like this:

currentbutton = "au"; currentbutton = "au";
trace (curentbutton + "be");

But only aube appeared in output window not the number 50, what is wrong!!

Tink
01-12-2002, 04:58 PM
this is a wild guess!

have u tried it without the quotation marks?

BLEEDA

pixelwit
01-13-2002, 01:50 AM
try this:aube=50;
currentButton="au";
trace(this[currentButton+"be"]);Hope it helps,

-PiXELWiT
http://www.pixelwit.com