views:

14

answers:

1

In actionscript3, using the ScrollPane component and the TweenLite package, would it be possible to animate to a particular scroll position? This seems like it should be possible, but I'm not sure exactly how to go about it. Thanks!

+1  A: 

I figured it out, so I thought I should go ahead and post the solution. It is indeed possible to use TweenLite to animate to a scroll position on a ScrollPane component.

You just need to do:

TweenLite.to(yourScrollPane, 1, {verticalScrollPosition: yourScrollPane.verticalScrollPosition+amountToScroll});
xncroft