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
Contributor
Posts: 30
Registered: ‎02-20-2011
My Device: 9700
My Carrier: 3 Australia

ListEvent Issue

Hi Guys,

 

I have a list in my app and on its ListEvent.ITEM_CLICK event it's supposed to be invisible but it doesn't work all the time.

 

I can see that event gets fired but it doesn't go invisible.

 

Regards.

Developer
Posts: 2,462
Registered: ‎11-04-2010
My Device: Bold 9700

Re: ListEvent Issue

what does you ListEvent listener funciton look like?

J. Rab (Blog) (Twitter)
--
1. If you liked my post or found it useful please click on the thumbs up and provide a Like!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!

Approved Apps: OnTrack | ssShots | Hangman
Contributor
Posts: 30
Registered: ‎02-20-2011
My Device: 9700
My Carrier: 3 Australia

Re: ListEvent Issue

Hi JRab,

 

It has only single line of code:

 

private function onListItemClick(event:ListEvent):void

{

           list.visible=false;

}

 

It works almost 8/10 times.

Developer
Posts: 2,462
Registered: ‎11-04-2010
My Device: Bold 9700

Re: ListEvent Issue

instead of visible, try doing a removeChild(list) if you are trying to get rid of it. good luck!

J. Rab (Blog) (Twitter)
--
1. If you liked my post or found it useful please click on the thumbs up and provide a Like!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!

Approved Apps: OnTrack | ssShots | Hangman
Contributor
Posts: 30
Registered: ‎02-20-2011
My Device: 9700
My Carrier: 3 Australia

Re: ListEvent Issue

Thanks!

 

Okay I will try removeChild(list) and see how I go.....!!!

 

Regards