Groups | Blog | Home
all groups > flash actionscript > february 2004 >

flash actionscript : Scrollpane scrollbar question


David O.
2/13/2004 9:52:55 PM
Does anyone know how to "reset" the vScroller.maxPos property of a Scrollpane

As my application adds content within the scrollpane, the maxPos gradually
increases. My problem is that after dynamically shortening the contents of my
scrollpane, the maxPos property still retains the old value as before the
shortening of content. This causes a problem because even though the scrollpane
now contains data that no longer exceeds the bottom boundary of the scrollpane
(and hence, no longer the need for the scrollbar), the maxPos property still
contains the old value as it was prior to the truncation of content; and hence,
the vertical scroll bar would still appear and allow the user to scroll all the
way down, which of course will show nothing

I know if I can set the value of the maxPos property to 0, it will take care
of the problem, but it seems to be a read-only property. Does anyone know of a
way to change the value of that property

Thanks

James Fee
2/16/2004 9:09:22 AM
try using the setScrollProperties of the ScrollPane. This may cause it to
reset. You should be able to set it to the values that it already has.

Jim

[quoted text, click to view]

AddThis Social Bookmark Button