I actually had it working earlier, but accidentaly erased the code that made it work. I have a text file that says:
taken=x7y7
Now, what I want Flash to do with that is tell a movieClip called x7y7 to gotoAndStop(2);. I think I used LoadVars() to get it to work. This was the last chuck of code that I tried:
lv = new LoadVars();
lv.onLoad = function (success){
if (success){
_root.crap = this.taken;
trace (crap);
_root[crap].gotoAndStop(2);
}
}
lv.load("taken.txt");
I’m using the individual pieces of code in other places, so I know that it works, just not here. Am I missing something?? Or does anyone have a different idea??