Monday, March 28, 2011

Flex AutoScroll to component with focus

Really useful library for ensuring that the active component (i.e. the one which has focus) is currently viewable: Flex AutoScroll Library

Particularly useful for users who can only use the keyboard. To setup I added an event listener to my main MXML component:

[code language="as3"]
this.addEventListener(FocusEvent.FOCUS_IN, AutoScroll.autoScroll);
[/code]

No comments:

Post a Comment