Flash Script – Load a Text File Into Flash

By Georgina Laidlaw

Download the sample files here.

1. Create two textfields. Name the first "text1", and second "text2".

2. Open notepad or any other text editing software, and enter the text below:

text1=This is text1 


text2=This is text2 

3. Go to Flash, and in the current layer frame insert the action:

loadVariablesNum ("text.txt", 0); 

4. That’s it! Press ctrl+enter to test the movie.

No Reader comments



Learn Coding Online
Learn Web Development

Start learning web development and design for free with SitePoint Premium!

Instant Website Review

Use Woorank to analyze and optimize your website to improve your website to improve your ranking!

Run a review to see how your site can improve across 70+ metrics!

Get the latest in Front-end, once a week, for free.