Hi guys,
I've read (and tried) that this works -
BUT - when i try this in a function - with a local variable, it wont workCode:var test1:string = "hello" trace(this["test" + 1])
I think it's because the local variable cannot be found by "this"Code:function myFunction():void{ var test1:string = "hello" trace(this["test" + 1]) }
Can someone please help how to get the variable name in the function - using a string!
Thankyou!





Reply With Quote