Friday, September 09, 2005

Flash Lite [12] Scroll Text

We could use Action Script to scroll the dynamic text field. Create a dynamic text, choose multiline, and open "Text" pull down menu and choose scrollable. Paste/Input contents in it and set the var to "content".

You can use slash or dot syntax,

If you use slash syntax, just write down below Action Script in the button.
on(keyPress "<Up>"){
tellTarget("/"){
content.scroll--;
}
}

If you would like to use dot syntax, you need to covert the text field to a MovieClip.
on(keyPress "<Up>"){
_root.page_mc.content.scroll--;
}

Please notice the text field's height, if your device use different font, maybe it will show uncompleted content.

1 Comments:

Anonymous Anonymous said...

HIHI~因為找不到適當的留言位置,只好留言在這了。想說您是目前我知道UI DESIGN上的線上人員,想請您介紹幾本UI的書,不論是中文或英文。謝謝你。

5:23 PM  

Post a Comment

<< Home