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);
}
}

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy this password:

* Type or paste password here:

4,505 Spam Comments Blocked so far by Spam Free Wordpress

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>