-
load text problem
I am trying to load a text file into a dynamic tex box. I have the following code on each button. There are a total of 3 buttons all going into the same box. But i get this error:
The identifier 'loadVars' will not resolve to built-in object 'LoadVars' at runtime.
loadText = new loadVars();
Here is the code:
on (release) {
loadText = new loadVars();
loadText.load ("meetinfo.txt");
loadText.onLoad = function (success)
{
if (success)
{
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
}
};
}
-
Actionscript is case sensitive (since flash player 7/mx2004). You need to use
loadText = new LoadVars();
instead of,
loadText = new loadvars();
-
Thanks Cat..
that was the problem....