Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Highlighted
Developer
Posts: 157
Registered: ‎12-16-2010
My Device: Torch 9800, PlayBook
My Carrier: I carry it myself

Event when user hold finger on list item

I have a list and want to execute an action (display context menu) when user presses and holds particular list item. Searched this forum and docs and cant seem to find event for it?

----------
If you find this post helpful please "like" it and accept as a solution.
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Event when user hold finger on list item

You can trap the mouse down event, fire off a timer (Timer) for X seconds to show the menu.  If mouse up occurs, you can either cancel the timer or at the timer complete event (before showing the menu), see if the mouse up event has occured.

Developer
Posts: 157
Registered: ‎12-16-2010
My Device: Torch 9800, PlayBook
My Carrier: I carry it myself

Re: Event when user hold finger on list item

many thanks. will try to implement that way!

----------
If you find this post helpful please "like" it and accept as a solution.