Im loading variables in from a text file which looks like this...
variable1=hello&bigimage=main-graphic.jpg&title01=rebrand
This works fine, I can add a variable to a dynamic text field by adding
_root.variable1 ...... in the textfields' Properties Var: field.
However I want to use variables in ActionScript as a normal variable. i have tried this...
- Code: Select all
loadVariablesNum("title.txt", 0);
myVar = _root.variable1;
trace(myVar);
BUT it returns as 'undefined' ............ So, how can I get the variables into ActionScript usage?