Flash Script – Scroll Bar in Flash 5

By Georgina Laidlaw

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.

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.