type = 'application/x-shockwave-flash'
data = 'http://sitepointstatic.com/flash/loadtext.swf'
width = '400'
height = '400'
bgcolor = 'black'

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.

Georgina has more than fifteen years' experience writing and editing for web, print and voice. With a background in marketing and a passion for words, the time Georgina spent with companies like Sausage Software and sitepoint.com cemented her lasting interest in the media, persuasion, and communications culture.

Get your free chapter of Level Up Your Web Apps with Go

Get a free chapter of Level Up Your Web Apps with Go, plus updates and exclusive offers from SitePoint.

No Reader comments

Related books & courses
Available now on SitePoint Premium

Preview for $1