开发者

Using the standard Flash AS3 scrollbar class

Flash has a 开发者_如何学编程scrollbar class, documented here:

http://help.adobe.com/en_US/AS3LCR/Flash_10.0/fl/controls/ScrollBar.html

However, besides listing functions and variables, there's no real explanation of how to hook an instance of this class to a textfield.

Everything I've tried either ends up in errors or the scrollbar not showing. The documentation lacks a clear way of how you should bind the textfield and the scrollbar toghether, and CS4 isn't providing any help either.

Can someone explain, or link to an example of how scrollbars work with textfield?


if your question is how to attach scrollbar to textfiled in design view then just add textfiled to the stage, make sure the textfiled is multiline drag a scrollbar component over it, add some lines to the textfiled then run it.


If you just want a textfield with a scrollbar attached, you can use the premade "TextArea" component which already provides this functionality.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜