Hi,
The following code throws an error. Correct it please.
myGrid.addEventListener(Event:ListEvent.ITEM_CLICK, gridItemClick);
function gridItemClick (e:ListEvent):void{
var urlR:URLRequest=new URLRequest(e.target.getItemAt(e.rowIndex).PDF)
navigateToURL(urlR, "_blank");
}
I am getting the followign error:
1084: Syntax error: expecting rightparen before colon.
And it highlights the following line:
myGrid.addEventListener(Event:ListEvent.ITEM_CLICK, gridItemClick);
Thanks.
North America
Europe, Middle East and Africa
Asia Pacific