The vPosition value is the y offset of the content, so the size of the scroll bar handle is irrelevant when you're trying to work out the visible are of the content.

On 10 Mar 2008, at 12:52, Mendelsohn, Michael wrote:

It certainly seems this simple, but what if the scrollPane on the stage is 100px tall, but its content is 587px tall. The scrollbar dragger is
then proportionately smaller and therefore, it's more difficult to
figure out what the visible range of the content is.  There would
probably be a formula for it, right?

- MM

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Piers
Cowburn
Sent: Friday, March 07, 2008 4:20 PM
To: Flash Coders List
Subject: Re: [Flashcoders] visible area of content in V2 ScrollPane

Hi Michael,

The top value is ScrollPane.vPosition, the bottom will be
ScrollPane.vPosition + ScrollPane.height

HTH,
Piers


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to