PDA

View Full Version : ScrollPane Scroll Position



ThaJock
June 7th, 2009, 07:01 PM
I have a scrollpane with the source set to ImageMovieClip. ImageMocieClip is long in length with 50 images stacked vertically. Because of the size of the scrollpane only 15 are visible at a time.

I have a button, navBtn, that I want to jump the scrollpane's scroll position to half way down. Is it possible? What scrollpane property do I need to use?

colouredFunk
June 8th, 2009, 05:17 AM
something like 'scrollpane.verticalScrollPosition = 0' should do the job

http://help.adobe.com/en_US/AS3LCR/Flash_10.0/fl/containers/BaseScrollPane.html#verticalScrollPosition

ThaJock
June 8th, 2009, 03:23 PM
You da bomb colouredFunk!