Hi Everyone,
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:
But when I try to accomplish the same thing with a mouse rollover, then I can no longer access ListEvent. Probably because rollOver has to deal with MouseEvent.
Nevertheless, I am able to see what the mouse is rolling over by way of trace:
The question is, what can I do with the information being shown by the trace to expand one of the rows, as I do when I click on one of the rows.
Here's what is returned in the trace
Thanx n advance
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:
Code:
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:
Code:
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
Code:
[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]
Comment