Forum Moderators: open
i know the variable is being loaded because i can display it in a dynamic text box, but when i try to assign it a variable name in flash, and trace that variable, i just get 'undefined'
actionscript:
loadNum = new LoadVars ();
loadNum.onLoad = function (ok)
{
if (ok) {// tyring to assign a nnew variable, numPics the value ive just taken from the text file.
numPics=_root.loadNum.numb;// displaying loaded var in a text box
_root.numText.text= _root.loadNum.numb;
}
};
loadNum.load ("numpics.txt");// the trace just displays undefined
trace (numPics);