Posted on Wed 24 June 2009
Scroll bars appear on the right in Flex (as with everything else) but it can sometimes be useful to move it across to the left. This simple technique of overwriting the updateDisplayList method puts it on the left:
protected override function updateDisplayList(w:Number, h:Number):void
{
super.updateDisplayList(w, h);
if( verticalScrollBar && verticalScrollBar.visible )
{
verticalScrollBar.scrollRect = new Rectangle(w,0,-w,h);
}
}
Permalink
|
Comments (0)
Tags: flex, scroll, scrollbar, updatedisplaylist.
Categories: Actionscript | Flex.
Comments
< go back to the main blog page