Hi,

You may use the following properties which all the containers in Flex have to 
do the set the scroll position. Check out the conainer properties which you 
would see in the Flex Help.

Some of them are below :
horizontalLineScrollSize : Number 
Number of pixels to move when the left- or right-arrow button in the horizontal 
scroll bar is pressed.
horizontalPageScrollSize : Number 
Number of pixels to move when the track in the horizontal scroll bar is pressed.
horizontalScrollPosition : Number 
The current position of the horizontal scroll bar.

The same goes well replacing "horizontal" with "vertical" for the vertical 
scroll control.

You can set the scroll value for the verticalScrollPosition property of the 
Canvas to get the desired output.
like... canvasInstance.verticalScrollPosition = 30, where '30' could be your 
calculated value.

Regards, 

Amol.



----- Original Message ----
From: jmfillman <[EMAIL PROTECTED]>
To: [email protected]
Sent: Sunday, February 11, 2007 1:15:49 AM
Subject: [flexcoders] Scroll Position

I have canvas whose content scrolls verticaly about 3 "pages". However, 
I don't want this to always start at the top, but is dependant on the 
user. The question is, how do I set the vertical scroll position to 
something other than the top, while still allowing the user to scroll 
up or down as needed?





 
____________________________________________________________________________________
Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

Reply via email to