hi all,
I got no problem with loadVars in the main stage but when I placed it in a function inside a movie clip (exactly a smart movie clip) like this:
Code:
function Init() {
this.createTextField("tf", 1, 0, 20, 300, 0);
this.tf.multiline = true;
this.tf.autoSize = "left";
this.tf.selectable = false;
this.tf.wordWrap = true;
this.tf.border = false;
this.tf.type = "dynamic";
myTextFormat = new TextFormat();
myTextFormat.font = "Verdana";
myTextFormat.size = 10;
myTextFormat.color = 0xffffff;
myTextFormat.leading = 1;
this.tf.setNewTextFormat(myTextFormat);
// may have trouble here ...............
loadVarsText = new loadVars();
loadVarsText.load(fileName);
loadVarsText.onLoad = function(success) {
if (success) {
this.tf.Text = this.varName;
}
};
// end of may have trouble here .................
}
When I debuged, the lines of code in the loadVarsText.onload function didn't work
Any idea? Any suggestion?
Thanks in advance