Flash Script – Scroller Component


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

Flash provides an easy-to-use scroller component — here’s how to put it into action.

Download the sample files here.

1. Hit ctrl+f7 to open the components panel.

2. Drag the Scroller component onto the stage.

3. Create a multiline input text box, and give it a variable name of "content".

4. Select the Scroller component in Frame 1. The component’s parameters display in the Property inspector.

5. In the Target Textfield parameter, type "content". Leave the Horizontal parameter as "false".

1186_1

That should do it! To test the movie, enter a large amount of text and see the scroller activate.

Free book: Jump Start HTML5 Basics

Grab a free copy of one our latest ebooks! Packed with hints and tips on HTML5's most powerful new features.

No Reader comments

Comments on this post are closed.