PDA

View Full Version : Having variable issues with variables


BeoWolfe
04-15-2005, 03:12 PM
Greetings,

Here is the code I am using in frame 1 of my document:

var datafile:LoadVars = new LoadVars();
datafile.onLoad = function() {
textbox.text=this.var1
}
datafile.load("vardata.txt");


stop ();

One frame 1 of the movie, my textbox correctly displays the information. I have the box come up again in frame 15, but the box shows up as empty.

I have tried using _global.textbox.text=this.var1 but that doesn't work either.

Any idea on how I would beable to get this to work?

BeoWolfe
04-15-2005, 03:53 PM
BLARgGGggG! I am an idiot!!!


Never mind, I figured this one out :)