Monday, 2 September 2013

AS3/Flash: Calling a function MouseEvent from a datagrid click

AS3/Flash: Calling a function MouseEvent from a datagrid click

I'm calling a function by clicking a button:
searchBT.addEventListener(MouseEvent.CLICK,searchXML);
function searchXML(Event:MouseEvent)
I want to call the same function from a datagrid.
Right now, when clicking on the datagrid several dynamic text fields are
filled with the data of the clicked row.
I nead to perform the function (searchXML) at the same time. This and
other calls result in errors:
fullList.dataGrid.addEventListener(ListEvent.ITEM_CLICK, clickGrid);
function clickGrid(e:ListEvent):void
{
searchXML(Event);
...
}
Any idea?
Cheers.

No comments:

Post a Comment