# Small correction in code, please!

**URL:** <https://forum.kirupa.com/t/small-correction-in-code-please/328314>\
**Category:** flash\
**Created:** [May 7, 2012, 10:15am UTC](https://forum.kirupa.com/t/small-correction-in-code-please/328314 "2012-05-07T10:15:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![learner\_7n](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Post date:** [May 7, 2012, 10:15am UTC](https://forum.kirupa.com/t/small-correction-in-code-please/328314/1 "2012-05-07T10:15:13Z")

</div>

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:  
[COLOR=#ff0000]1084: Syntax error: expecting rightparen before colon.[/COLOR]

And it highlights the following line:  
[COLOR=#ff0000]myGrid.addEventListener(Event:ListEvent.ITEM\_CLICK, gridItemClick);[/COLOR]

[COLOR=#000000]Thanks.[/COLOR]
