A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Importing a text file into a movie

  1. #1
    Junior Member
    Join Date
    Mar 2002
    Posts
    8
    Is there a way of grabbing a *.txt file and importing the contents of it into a Flash movie?


  2. #2
    Senior Member
    Join Date
    Jun 2001
    Posts
    2,943
    Text file format must be:

    varname1=here is some text in a textfile&varname2=here is some more

    Load it in Flash using:
    Code:
    loadVariablesNum("filename.txt",0);
    Now, the variables varname1 and varname2 are available and they contain the information assigned to them in the text file (after the '=' sign).

  3. #3
    Junior Member
    Join Date
    Mar 2002
    Posts
    8
    You're a star Sualdam. That worked a treat.

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center