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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

uploading a .txt, and displaying it in a dynamic text box

Status
Not open for further replies.

Glimmer23

Technical User
Feb 3, 2003
21
A1
how do you upload a .txt file from the same directory as the .swf file, into the movie, and then display it into a dynamic text box, usingf action script?
 
Regards,

oldman3.gif
 
Basics

TEXT FILE

text=blahblah

FLASH

textbox has instance name (mybox,say)

mydata = new loadvars();
mydata.onload = showtext;
function showtext (){
mybox.html = true;
mybox,htmltext = mydata.text; //or whatever variable name you use in the text file
}
mydata.load("mytextfile.txt");
 
Guess the young are getting restless!

What's the point? Joining up with BBD! Regards,

oldman3.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top