Setting a varriable add

how can i set a variable named

add

in flash?? is it possible?? thanks…

Even if is was possible, it’s always a bad idea to name variables after reserved words.


this["add"] = 10;
trace(this["add"]); // 10

but listen to ilyaslamasse :wink:

Dude thanks a ton… that solved a wholeeeee chunck of problems for me…you rock . HOW THE HECK DO U KNOW THIS STUFFF… anyways thanks again

*Originally posted by jazzman121 *
**Dude thanks a ton… that solved a wholeeeee chunck of problems for me…you rock . HOW THE HECK DO U KNOW THIS STUFFF… anyways thanks again **

posts like this on Kirupa :stuck_out_tongue:
:beam:

*Originally posted by senocular *
**but listen to ilyaslamasse :wink: **
That’s a good advice, provided I’m 100% sober :stuck_out_tongue:

*Originally posted by ilyaslamasse *
**That’s a good advice, provided I’m 100% sober :stuck_out_tongue: **

Im going to assume thats most of the time :slight_smile:
[size=1](let me live in my dillusions!)[/size]

Don’t be so sure… :bad: