I have a number of dynamic txt fields embedded inside a few MCs and I’m trying to load text into them from an external txt file. The first part of the code works fine…but not when I try to load the txt on release, then no text appears…does anyone know how I could solve this problem, please?
On the frame:
myData = new LoadVars();
myData .load("anastasio2.txt");
//creating the loadVarsText function
myData .onLoad = function() {
//this is were it fails
aa.text = this.aa1;
aaa.text = this.aaa1;
ab.text = this.ab1;
};
_root.aa._visible = false;
_root.aaa._visible = false;
_root.ab._visible = false;
_root.answer4._visible = false;
_root.answer5._visible = false;
On the button:
//show me the goods
on(release){
_root.aa._visible=!aa._visible
}
and finally inside the txt:
aa1=cool
&aaa1=man
&ab1=luke
Help!