views:

1784

answers:

3

Is there a way to programmatically scroll the canvas to its topmost position?

A: 

Try using DisplayObject's scrollRect property.

zenazn
+1  A: 

verticalScrollPosition = 0

Sean Clark Hess
Don't forget that you might need to make the call *after* the screen refresh, which you can do by using callLater()http://livedocs.adobe.com/flex/3/html/help.html?content=layoutperformance_12.html
ajh1138
A: 

Thank you very much!! I was looking for this since a long while ago!