I have a Spark TextArea, which includes a scroller, and a regular Spark scroller. I need to scroll the regular scroller when the TextArea is scrolled - they need to scroll together.
I've tried listening for various things on the TextArea's scroller, including the FlexEvent.CHANGING on textArea.scroller.verticalScrollBar. I can't seem to figure out what event is fired when the vertical bar is scrolled. What am I missing? Can anyone help?
You could try valueCommit or propertyChange.
I filed an enhancement request for the Spark Scroller to dispatch a "scroll" event, but it was deferred from the 4.0 release; http://bugs.adobe.com/jira/browse/SDK-21357 (feel free to comment/vote).
Thank for the reply Peter. I added a PropertyChangeEvent listener to textArea.scroller.viewport and that's doing the job.
As an API user, not having a fundamental UI component like a scroller fire its own core event is counter-intuitive. This is confusing design and I've voted for your issue.