ThomasJSmart
Programmer
- Sep 16, 2002
- 634
iv got a variable issue 
i want this to work:
name = "test"
name2 = name+1
//trace(name2) returns "test1"
now i want to use the content of name2 as the name of a new variable.
????? = "test3"
//trace(test1) should return "test3"
is this possible in flash?
or should i look for another solution?
im trying to make a function in flash that gets passed a name var, this name var is used to make some other vars and objects.
any help apreciated
Thomas
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
i want this to work:
name = "test"
name2 = name+1
//trace(name2) returns "test1"
now i want to use the content of name2 as the name of a new variable.
????? = "test3"
//trace(test1) should return "test3"
is this possible in flash?
or should i look for another solution?
im trying to make a function in flash that gets passed a name var, this name var is used to make some other vars and objects.
any help apreciated
Thomas
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!