Re: [Flashcoders] Scroll to maximum vPosition?
_root.sp.vPosition = _root.sp.content._height - _root.sp.height + 4; The height is probably bigger than the max scroll position so it's ignoring it. The +4 is for the border. Derek Vadneau http://tracethis.com - Original Message - From: "Mendelsohn, Michael" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 22, 2007 4:23 PM Subject: SPAM-LOW: [Flashcoders] Scroll to maximum vPosition? Hi list... Setting a V2 ScrollPane's vPosition is easy enough, but for sending it all the way to the bottom. The following isn't working for me: _root.sp.vPosition = _root.sp.content._height; Anyone know if a trick is involved? Thanks, - Michael M. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Scroll to maximum vPosition?
Hi, remember had the same problem, and i had to did this: hope that helps // manage the position of the scrollbar private function manageScrollBar(scrollMax:Boolean):Void{ // :KLUDGE: this line is needed to force the scroll mcScrollPane.vScrollPolicy = "auto"; mcScrollPane.invalidate(); if (scrollMax) mcScrollPane.doLater(this, "putScrollBarMax"); } // forces the scrollBar to Max position private function putScrollBarMax():Void{ mcScrollPane.vPosition = mcScrollPane.maxVPosition; } -- Nicolas TASKY conseil, analyse et développement multimédia ntasky.com - T.(514) 251-6267 C.(514) 839-6426 - Original Message - From: "Mendelsohn, Michael" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 22, 2007 4:23 PM Subject: [Flashcoders] Scroll to maximum vPosition? Hi list... Setting a V2 ScrollPane's vPosition is easy enough, but for sending it all the way to the bottom. The following isn't working for me: _root.sp.vPosition = _root.sp.content._height; Anyone know if a trick is involved? Thanks, - Michael M. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Scroll to maximum vPosition?
Thanks Nicolas. It works fine. I just think it's funny that maxVPosition isn't listed under the ScrollPane component's help documentation (at least in 8). - MM ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Scroll to maximum vPosition?
maxVPosition is a property of the ScrollView class, which isn't documented. mx.core.ScrollView regards, Muzak - Original Message - From: "Mendelsohn, Michael" <[EMAIL PROTECTED]> To: Sent: Thursday, August 23, 2007 2:25 PM Subject: RE: [Flashcoders] Scroll to maximum vPosition? Thanks Nicolas. It works fine. I just think it's funny that maxVPosition isn't listed under the ScrollPane component's help documentation (at least in 8). - MM ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com