Skip to main content
Participating Frequently
January 15, 2010
Question

How to use BaseScrollPane

  • January 15, 2010
  • 1 reply
  • 697 views

I want to creat a class which extends from BaseScrollPane, but I don't know how to add content that can be controled by BaseScrollPane. For example, I use the addChild function to add a movieclip, at last the movieclip shows on top of BaseScrollPane, the scroll bar is not showed.

This topic has been closed for replies.

1 reply

Participating Frequently
January 19, 2010

Please, someone help me.

kglad
Community Expert
Community Expert
January 31, 2010

the BaseScrollPane class is used to customize (the appearance) your scrollpane(s).  you use the methods of the scrollpane class to add content to your scrollpane(s).

if you want to customize the functionality of the scrollpane, create a class that extends the scrollpane.

Participating Frequently
January 31, 2010

Indeed I know the class ScrollPane, and I am using it. I'm just want to know how to use the class BaseScrollPane.

For some requirements, I want to use the class TileList ( fl.control package), but I foud that the MovieClip added into TileList can not receive click event. So I have to wirte a class UITiliList similar with TileList, and I want UITileList to extend from BaseScrollPane, but I can't found the interface of adding item.

After all, I'm just wondering that is the utility of BaseScrollPane just for ScrollPane? I even can not create a subclass from BaseScrollPane?