View Single Post
  #1 (permalink)  
Old Mar 25th, 2008, 19:31
Andy K Andy K is offline
Reputable Member
Join Date: May 2005
Location: Sheffield
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Post LoadVariables from text file into Actionscript.

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?
Reply With Quote