Broly
12-26-2006, 11:24 AM
Hi all,
I'm new in this forum :)
I've a problem in the Actionscript 3 Flash 9 Alpha.
I'm trying to give to a variable a name taken from another variable, for example
a = "pippo"
this[a] = 10
trace(pippo)
and this
b=1
this["pippo"+b] = 10
trace(pippo1)
works in Actionscript 2...but it doesn't work in Actionscript 3.
I tried in many ways but it doesn't work :(
Any help will be appreciated :)
Thanks!
I'm new in this forum :)
I've a problem in the Actionscript 3 Flash 9 Alpha.
I'm trying to give to a variable a name taken from another variable, for example
a = "pippo"
this[a] = 10
trace(pippo)
and this
b=1
this["pippo"+b] = 10
trace(pippo1)
works in Actionscript 2...but it doesn't work in Actionscript 3.
I tried in many ways but it doesn't work :(
Any help will be appreciated :)
Thanks!