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
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: How to interact display object inside a custom list ?

On the click event, stop the propagation of the event.
Also, looks like you are not adding and removing the items in the renderer with onAdded and onRemoved override functions.
Developer
Posts: 235
Registered: ‎12-13-2011
My Device: Curve 9380
My Carrier: Vodafone-IN

Re: How to interact display object inside a custom list ?

Hi jtegen,

 

At first "ITEM_CLICKED " event is trigerring after that mouse click trigerring ... I  need to perform defferent action on the list item click and list image click.

 

How to stop propagation event when user tap on the image ??

 

Thanks

Deepu George Jacob

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: How to interact display object inside a custom list ?

event.stopImmediatePropagation();
Developer
Posts: 235
Registered: ‎12-13-2011
My Device: Curve 9380
My Carrier: Vodafone-IN

Re: How to interact display object inside a custom list ?

I didi this inside "ListEvent.ITEM_CLICKED" Listner but it is not working, again Listevent triggered at first. Also I am tried to set priorites same issue is there..

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: How to interact display object inside a custom list ?

Then there is another event being triggered that you probably cannot access. If you are trying to prevent the item from being selected (or unselected) from when the image is being selected, might have to restore the selection state when the callback is called from the image click event.
Developer
Posts: 235
Registered: ‎12-13-2011
My Device: Curve 9380
My Carrier: Vodafone-IN

Re: How to interact display object inside a custom list ?

Hi John Tegen,

Finally we achieved... Instead of onClick I am used on mousedown event it is working very fine..

Thankyou for your kindness and support
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: How to interact display object inside a custom list ?

Glad you got it to work.