在某些场景下,需要将滚动条居左显示(默认居右),只需要改变scrollbar的x坐标即可。
1: public override function validateDisplayList():void
2: {
3: super.validateDisplayList();
4:
5: if (verticalScrollBar && verticalScrollBar.visible)
6: {
7: verticalScrollBar.x = 0;
8: }
9: }