It's been a long time and I'm always appreciative of your help.
I'm working on a Datagrid at the component level in Flex.
I know that I can expand a row within the Datagrid by clicking on a row:
Expand|Select|Wrap|Line Numbers
- private function onItemClick(e : ListEvent) : void
- {
- // setting these xml properties will automatically update the itemRenderers on the fly
- // expand the item clicked on
- var selData : AssetInfo = e.itemRenderer.data as AssetInfo;
- if (selData.expanded != true)
- selData.expanded = true;
- }
Nevertheless, I am able to see what the mouse is rolling over by way of trace:
Expand|Select|Wrap|Line Numbers
- I use the datagrid's property of rollOver="onCreationComplete()" to call the addEventListener
- private function onCreationComplete():void
- {
- //register for the mouse_over enter event
- var myListener = addEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
- }
- private function onMouseOver(myListener):void
- {
- trace(myListener);
- }
Here's what is returned in the trace
Expand|Select|Wrap|Line Numbers
- [MouseEvent type="mouseOver" bubbles=true cancelable=false eventPhase=3 localX=12 localY=91 stageX=999 stageY=270 relatedObject=MyAppAir0.$MyApp.Shell114.HDividedBox115.$browser.$am.$tabnav.Canvas371.$assetList.ListBaseContentHolder376.DataGridItemRenderer1733 ctrlKey=false altKey=false shiftKey=false buttonDown=false delta=0 commandKey=false controlKey=false clickCount=0]