Skip navigation
Currently Being Moderated

Code correction, please!

May 7, 2012 2:33 AM

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.

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points