03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Parameters<br />

scrolledField:TextField - A reference to the TextField object whose scroll position was<br />

changed.<br />

Example<br />

The following example creates a text field called my_txt, <strong>and</strong> uses two buttons called<br />

scrollUp_btn <strong>and</strong> scrollDown_btn to scroll the contents of the text field. When the<br />

onScroller event h<strong>and</strong>ler is called, a trace statement is used to display information in the<br />

Output panel. Create two buttons with instance names scrollUp_btn <strong>and</strong> scrollDown_btn,<br />

<strong>and</strong> add the following ActionScript to your FLA or ActionScript file:<br />

this.createTextField("scroll_txt", this.getNextHighestDepth(), 10, 10, 160,<br />

20);<br />

this.createTextField("my_txt", this.getNextHighestDepth(), 10, 30, 320,<br />

240);<br />

my_txt.multiline = true;<br />

my_txt.wordWrap = true;<br />

for (var i = 0; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!