Unless there are focusable objects, they won't get focus.  I think you
want to catch the "change" even tinstead?

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Greg Hess
Sent: Monday, June 16, 2008 7:27 AM
To: [email protected]
Subject: [flexcoders] How to catch Focus In/Out event on TileList
ItemRenderer

 

Hi All, 

 

I have a TileList employing a custom ItemRenderer (VBox with Image and
labels). I would like to catch Focus In/Out on the ItemRenderer so that
when selected I can change the border style on the VBox to provide a
custom select indicator instead of the default provide by the TileList
(changing the background of the entire cell). I have not yet been able
to catch the Focus Event on this ItemRenderer my code is as follows:

<mx:VBox

xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> " mouseFocusEnabled="true"
focusEnabled="true" mouseEnabled="true"
mouseFocusChange="onMouseFocusChange(event)" > 

The onMouseFocusChangeEvent is never fired. I also tried adding an
eventListener on creationComplete method with not success.

How can I do this?

Any help much appreciated.

Thanks,


Greg

 

 

Reply via email to