Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flex > Flex 2, 3 & 4

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-31-2012, 04:43 AM   #1
springframework
Senior Member
 
Join Date: Mar 2006
Posts: 470
Default Detect when a spark Scroller is changing scroll position

ActionScript Code:
<s:Scroller right="0" left="0" top="0" bottom="0" > <s:horizontalScrollBar> <s:HScrollBar id="hbar" change="bottomscoller_hScrollBar_change(event)" /> </s:horizontalScrollBar> <s:HGroup gap="0"> ....stuff here </s:HGroup> </s:Scroller>

then i have that function "bottomscoller_hScrollBar_change" but it never gets called.


anyone know how to find out when this scroller has been scrolled?

Last edited by springframework; 07-31-2012 at 04:59 AM.
springframework is offline   Reply With Quote
Old 07-31-2012, 08:45 PM   #2
springframework
Senior Member
 
Join Date: Mar 2006
Posts: 470
Default

I used the flash.events.Event.RENDER event to determine if the spark Scroller has been scrolled/repositioned

a pretty bad listener to be doing "if" statements inside. anyone know a better idea?

what does this mean? "This property can be used as the source for data binding. When this property is modified, it dispatches the propertyChange event."

Last edited by springframework; 08-02-2012 at 06:31 PM.
springframework is offline   Reply With Quote
Old 09-12-2012, 06:38 AM   #3
drkstr
Flexpert
 
drkstr's Avatar
 
Join Date: Sep 2006
Location: Seattle, WA: USA
Posts: 1,587
Default

Just incase you were uneasy about implementing such a hacky solution, you did in fact stumble across a design flaw (or possibly a bug based on the docs).

Basically the only thing you can do is periodically "probe" the current scroll position. How you do this is up to you (EG. render event).

Last edited by drkstr; 09-12-2012 at 06:40 AM.
drkstr is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:24 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.