Detect when stop user to scroll the list of the spark

Hello.

I have a spark list component mwith a horizontal provision, which I use to display a slideshow of images.

The user can scroll the slides by clicking on the two buttons or by dragging them on the list (the project is mobile, but it will be also exported as air project).

I need the slides is perfectly centered in the viewport (the list and each slide is 1024px width) and I want to avoid that two slides are partly shown.

It is quite easy to achieve when I scroll with the buttons, because I always scroll in 1024px in time.

Things become more difficult when the user makes a scrolling by dragging on the list (by performing a drag of the classic mouse, but also a gesture of shot on the mobile device), because it could leave the list in an 'intermediary' State in which the two blades are partially displayed.

What I would like to know if there is some kind of event that is triggered when the user ceases to scroll, and then read the position of the roll so I can decide how to scroll to display only a single slide.

do you know if there is such an event?

Thanks in advance!

Best regards

Luca

I think that you might be looking for touchInteractionEnd that is raised after the scroll animation is complete (http://opensource.adobe.com/wiki/display/flexsdk/Mobile+List%2C+Scroller+and+Touch)

Tags: Flex

Similar Questions

  • (OSControl Xtra) How to detect when a user clicks on the bottom and upward when

    Hi all

    How can I detect when I click on a scroll bar downwards and upwards? I want something like:

    If sprite (1) ravishing (#down) then

    -do something

    on the other

    If sprite (1) ravishing (#up) then

    -do something else


    Any ideas? The question applies only to the OS control xtra

    I do not understand why you put the sprite.value and maxValue for
    a global event #prepareFrame - can you explain to us why, and 'who' it is
    who is responsible for these values?
    I tried to "simplify" your script, but I don't have a clear picture
    what your problem is - can you maybe post a simple example
    somewhere that clearly demonstrates?
    --
    pSprite property
    pScrollAmt property
    Global tMaxVal, maxbarvalue

    on beginSprite (me)
    pSprite = sprite (me.spriteNum)
    end beginSprite

    on prepareframe
    pSprite.maxValue = maxbarvalue
    pSprite.value = tMaxVal - position of the thumb
    end

    Update (me, aClickedPart)

    CASES (aClickedPart)
    #up:
    pScrollAmt = - 5

    #down:
    pScrollAmt = 5

    #thumb:
    If pSprite.value< tmaxval="" then="" pscrollamt="">
    otherwise if pSprite.value > tMaxVal then pScrollAmt = 10
    else exit
    CASES OF TERMINATION

    -It is important to 'catch up' the return value when you create a
    -timeout object, even if it is in a local variable that will be
    -immediately go out of scope
    t = timeout("scrollImage"&me.spriteNum).new (10, #sendScrollMessage, me)
    end

  • Detect how far user made scroll to the bottom of the screen

    Hello

    About BB9800 im having some scrolling problems, its delicate for the user scroll completely to the bottom of the screen.

    Is it possible to detect when the user has navigated about 9/10 of the way down the screen and programmatically and then scroll to the bottom of the screen?

    Thank you

    If you add a listener of scrolling to the manager who manages this scrolling, you can do it yourself.  Use setVerticalScroll to position your managers.

    That said, I would want to add something like a NullField at the end of your screen so that the user can scroll right to the bottom.  I think what you try to do is overcome the symptoms, you need to resolve why your users have a problem rather than work around the problem.

  • When I try to scroll the information takes minis jumps (staggers) rather than moves smoothly

    ORIGINAL TITLE: Cannot scroll.

    When I try to scroll information comes minis jumps (staggers) instead of moving smoothly as in the past - I am running XP

    Hello
     
    Activate the slow scrolling and search for the issue.
     
    a. right-click on desktop and select Properties.
    b. click on "advanced system settings".
    (c) in the Advanced tab, click settings, ongoing enforcement.
    d. on the Visual effects tab (in the box that opens), check "smooth scroll list boxes" (down) and click OK.
    See also:
     
    I hope this helps.
  • Windows XP crashes intermittently when stopping. Stuck on the screen with the default windows background color and the mouse pointer.

    We are an OEM that systems of electronic Assembly is based, in our machine is a PC running Windows XP Professional that provides the interface for the operator. Some of our systems have begun to crash intermittently when stopping.  Up to now we have seen it on three machines.  There has been no change to hardware or drivers that we put on these machines.

    The PC is supposed to stop at the point were he said "It is now turn off your computer", but it hangs when the only thing on the screen is the default windows background and the mouse pointer. The mouse moves, but that's all. He is unresponsive to ctrl-alt-delete, or any other entry.

    This was reported 5 times, and in any case there's nothing in any log file which would tend to indicate where the problem is maybe.

    I guess we have a bad driver or device, but the problem only happens once all stops of 5-10, and only after the machine is turned on for a while.

    I just turned on the detailed status messages, but they did not stop the machine since.

    What I asked is: is it possible to get windows to connect to all events stop? I really want to know what he was doing when he stopped.  Can someone else think something I can look at, or a better way to debug this?

    Re: a suggestion on this new monitor to 'prove' is the source of the problem
    Disconnect it, connect a type non-ecran touch "ordinary".
    stop/restart in safe MODE, make sure that the old monitor is not appear in the Device Manager [what we used to call a ghost]
    If it IS, delete it & uninstall the sw provided with touch screen
    Reboot in normal mode
    Try a stop
    If you get the old orange it'S now SAFE, tell the seller about IT.

  • I get an error code 80070005 when all users outside of the administrator are trying to connect to the Internet.

    On a recently purchased HP laptop, access to internet and "computer" are blocked and trigger an error 80070005 Windows for all users other than the administrator. Is there a solution?

    Original title: error 80070005 blocking internet connection (and more) for all users other than the administrator.

    Hi tired of flamel,

     

    Thank you for keeping us posted.

    Glad to know that the problem is solved. Do not hesitate to contact Microsoft Windows Forums for issues related to Windows in the future.

  • [ADF, JDec12.1.3] Which is the right approach in ADF to detect when a user leaves an inputText (or in general a UIC)?

    Hallo,

    I would like to know what is the correct approach in the ADF to run a function in a bean when the user leaves / exits a field (a form).

    In the particular case, when the user leave a field in the form, I need to call a function that executes a query using the value of the field and then fills the other 4 fields in the form.

    Thank you

    Federico

    You must implement a valueChangeListener for the inputText and also set the autosubmit to true property.

  • Windows 10 - ADE not detected when I download books from the public library

    Since installing Windows 10 and 4.5 of the ADE, when I download a book in a public library it just downloads the file to some directory .epub I chose.  To get it in ADE, I have to go through the "Add to library" function in the ADE.

    That's fine, but ADE does not recognize it as a borrowed book, so I can't return it when I finished it.  I approach the maximum number of books I have checked with my local library because these books will not be returned.  Apparently, I have to wait for them has expired.

    Ideas?

    Well, I got the answer today at our local library.

    Books, that I was just downloading was be books "Open EPUB", which means they have no DRM protection.  I can keep them as long as I want.

    An unexpected consequence of these 'loans' is that there is no way to return the books before their expiration date, so that they are based on my library account, running the number of books I checked.  The librarian told me that if I really need to send back them at the beginning so I can consult books more I could send a request it and it can return manually.

    Problem solved.

  • GPIB has not detected when connected to the internet

    Hello

    I have keysight power supply connected to the PXI-8880 via GPIB, it does not detect when it is connected to the internet & it was detected when its not connected. Any body can help me to solve this problem.

    Hello

    This problem occurs because of a conflict in present multiple network adapters in the system. It was a question that has used for detection of targets ethernet to the system that has been resolved. But then this question has also resolved to do the same thing. You can follow the link on how to change the order of the present network adapters in the system.

    http://digital.NI.com/public.nsf/allkb/FD9E1AF5AB1343098625736F0076DE6B

    You must also make sure that the IP addresses of the network adapters are different, otherwise conflict can happen also.

  • Scroll the images at the same time

    How to synchronize the picture 2D control scroll bars?

    Scroll bar Image1 = Image 2 scroll bar (or vice versa)

    Use a mouse down or the event of moving the mouse over each image to detect when a person can move the scroll bars.

    Read the original of an image property and write it in the original property of the other image node.

  • Detect when HorizontalScroll position changes

    I created a horizontalfieldmanager which takes the width of the screen and allows the user to scroll through the images. Each field of the bitmap is the width of the screen as well. I know there is a getHorizontalScroll method to get the current position of the scroll, but how can I know when to call this method? Is there some sort of reminder that says that when a user navigated to the next focused image?

    Ah I found setScrollListener() and implement the ScrollChangeListener interface.

  • Fixed navigation bar, fixed the sidebar, scroll the main content

    Can someone direct me to a good documentation to learn how to design a page to have a fixed, fixed navigation bar side and essential bar that scrolls?

    My goal is to have the nav bar sidebar visible at all times when the user is scrolling the main content.

    Thank you.

    On line 135, you have this:

     

    How It Started

    images/dean.jpg" alt="Dean" width="138" height="141" hspace="15" vspace="5" border="1" align="left" />

    Try this:

      

    How It Started

    images/dean.jpg" alt="Dean" width="138" height="141" hspace="15" vspace="5" border="1" />

    Be sure to close the division right before the closing of the cell.

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB
    http://ALT-Web.blogspot.com

  • Detect when TextInput is selected

    I'm trying to detect when a user clicks a text entry area. The project will be displayed on a touch screen and I have a keyboard on the screen, so I need to find a way to tell what text box entry the user tries to type in... Thank you!

    You can use the textfields onSetFocus() property.

  • iPhoto has stopped working. When I try to download the latest version, I massage "this update is not available for this Apple ID either because it was bought by another user or the item has been refunded or cancelled."... why?

    iPhoto has stopped working. When I try to download the latest version, I massage "this update is not available for this Apple ID either because it was bought by another user or the item has been refunded or cancelled."... why?

    Mac OS X 10.10.3 and newer include Photos, which is designed as a replacement for iPhoto. If you want to go on the use of iPhoto in addition to or instead of switch to Photos, click here and try following the instructions; you will only be able to do if you got before where associated with iPhoto on the Mac App store.


    (138042)

  • The mouse to stop that rises to the top of the page when I scroll to the bottom of the page

    How can I get my mouse to stop that rises to the top of the page when I'm scrolling down the page?

    my mouse

    Hello
     
    • What version of the Windows operating system do you use?
    • Do you use the computer laptop or desktop?
    • This happens to you while you browse Internet only?
     
    I suggest you run this fix and check.
    Open the hardware and devices Troubleshooter

Maybe you are looking for

  • Center multimedia USB Audio/USB HUB

    Today, I bought this station for my M60-139 for a 5.1. After I installed everything, I see, a creative card is... nice inside but... I can not change sovereignty ang bass (sorry for my bad English). For a better understanding see my screenshot:http:/

  • Can I use Microsoft OS on Motorola XOOM Android Tablet?

    Original title: Motorola XOOM Android Tablet IM asking if microsoft plans to make an OS for motorola xoom, I hope that I can use motorola xoom with microsoft operating system.

  • What is an exception in DisplayRunMap.runMap?

    I have a HP Pavilion (processor AMD Athlon XP) with both a DVD-RW/CD-RW DVD writer/CD writer combo & a player of CD-ROM I tried to do a test of the dvd - rom drive and when she started I received the following message. "Message from the Web page: Exc

  • Added to my rocket 4 GB - 16 GB card how to appear correctly?

    After you add a 16 GB card supplied to my 4 GB Fuze, I then connected on the pc. In my computer, when I click on the properties of the rocket , it still shows 4 GB, but when I click on removable disk , it will show the 14 GB... When I turn on the "ro

  • Windows Live Mail connects not to the roadrunner pop server.

    I am trying to add my RoadRunner e-mail account to Windows Live Mail, but get the message that the server has rejected the email address