Been trying once again to achieve a AS2 eval() equivalent.
- I have a variable in main timeline var test:String = “Hello World”;
- I have a MC with a user input text field for variable effecttext
- I put MC on main timeline and type in text input field test
Now if in the MC I do the action
*trace( parent[effecttext] ); *
it nicely traces Hello World
But if it type in input field **parent.test **
and do the action
*trace( this[effecttext] ); *
I get a undefined instead of Hello World.
If it would allow the path to be typed in the text field, one basically would have the old AS2 eval() back. Seems I’m so close… Anybody any thoughts?