You probably don't even need to subclass scrollbar. If you subclass VBox you can listen for rollOver/mouseMove/rollOut on the scrollbar and implement your logic by simply setting verticalScrollPosition as you see fit.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Hueners Sent: Thursday, August 30, 2007 7:04 PM To: [email protected] Subject: Re: [flexcoders] Scroll Accordion Headers Thankx Alex...appreciate the time and ascii you're providing. Such quick work for step 1 demands a followup... What i'm _really trying to do is implement a clickless scroller behavior. In an effort to avoid one of the worst keyboarding gestures (from an RSI point of view) for users is clicking a small thumb and holding or (worse) dragging. I'd like to explore using a call 'hover' event. What would it take to define a scrolling behavior where the scroll bar implements an additional behavior, a response to a hover state (or event) that's fired when a cursor is stationary > .5 sec (in other words, we move to a scroll bar, hover and scrolling starts on the hover, not the click) So scrolling begins slowly but accelerates at a rate determined by: 1. Time elapsed since non-movement over hoverHandler 2. Delta to midpoint of midline. Further off center, faster the scroll 3. Mouse movement with 2 branches: 1. if movement confined to hoverHandler 1. accell @ move away from midline, or 2. decel @ move toward midline 3. Mouse moves to Accordion header = 1. stop scroll 2. wait for hover 3. @ hover over accordion header = expand accordion panel. 2. if mouse moves outside hoverHandler && ouside accordion header = scroll returns to last pagetop. Have you seen that sort of effect/behavior explored? Make a great practicum for a MVC sample, wouldn't it? again...much appreciated. --steve... On 8/30/07, Alex Harui <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: I'd put the accordion in a VBox and use the VBox scrollbars ________________________________ From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com <http://ups.com> ] On Behalf Of Steve Hueners Sent: Thursday, August 30, 2007 11:28 AM To: flexcoders Subject: [flexcoders] Scroll Accordion Headers I'd like a component that allows a scrollable view on a stack of accordion panels allowing me to add way more panels than i'd otherwise have space for. Looking to the docs: The <mx:Accordion> tag inherits all of the tag attributes of its superclass, with the exception of scrolling-related attributes, and adds the following tag attributes: So where would i look to see this implemented? many thx --steve...

