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

Download the sample files here.

1. Create a text field as shown above, with its multiline property checked. Call it "field".

2. Create a button as shown above.

3. Drag one more button instance from the library, and arrange both as above.

4. In the top button, set the action as:

on (press)  

{field.scroll = field.scroll-1;}

5. In the bottom button, insert the action:

on (press)  

{field.scroll = field.scroll+1;}

6. Run the movie and enter some text in the text field. The text should fill the text field.

7. Click on the buttons, and watch the text scroll as you press the button down.

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