Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically Load text in Multiple Text Boxes 1

Status
Not open for further replies.

WalksWithSky

Instructor
Dec 11, 2002
49
CA
Hello:

I have a Flash file where I have multiple dynamic text boxes. I would like to load the variables for these text boxes from one txt file, but I can't seem to get it to work. All it does is load the first variable into the text box.

Is this possible, or do I have to find another way?

Thanks for the help,

Walks With Sky
 
text file

&var1=blalhblah&
&var2=sssssssss&

flash

mydata = new loadvars();
mydata.onload = function(){
box1.text = mydata.var1;
box2.text = mydata.var2;
}
mydata.load("mytext.txt");

//box1. box2 instance names
 
Bill, thanks! I was hoping you'd be able to help, and I'm so glad you were. Thanks again! I owe you one!

Walks With Sky
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top