Sorry, got it... 

I used listEvent and got it to work.

Thanks


public function rollOverCtry(evt:ListEvent):void {
   trace(evt.itemRenderer.data.name);
}




--- In flexcoders@yahoogroups.com, "Mark" <[EMAIL PROTECTED]> wrote:
>
> I'm afraid I still don't understand what needs to be done --
> 
> <mx:DataGrid width="100%" height="100%" 
> dataProvider="{countryAndCount}" itemRollOver="itemRollOverFunction
> (event)">
> 
> 
> public function rollOverCtry(evt:Event):void {
>    trace(evt);
> }
> 
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui" <aharui@> wrote:
> >
> > For the column with dataField="name", when an itemRollOver 
occurs, 
> the
> > event.itemRenderer.data.name should be the value.
> >  
> > -Alex
> > 
> > ________________________________
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of Mark
> > Sent: Tuesday, March 27, 2007 7:40 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Need help with a dataGrid itemRollOver
> > 
> > 
> > 
> > I need to display a different image for each value in the 
> dataGrid. 
> > I'm trying to use the itemRollOver but for some reason I'm 
having 
> a 
> > hard time getting the value of the "name" column in the 
function. 
> Can 
> > someone help? I didn't post my function because I'm just trying 
to 
> > trace the value from the name column and I can't get it to work. 
> If I 
> > can get that value I'm confident I can get the image to work the 
> way I 
> > need it.
> > 
> > Thanks
> > 
> > <mx:DataGrid width="100%" height="100%" 
> > dataProvider="{countryAndCount}" 
itemRollOver="itemRollOverFunction
> > (Event);>
> > <mx:columns>
> > <mx:DataGridColumn headerText="Country" dataField="name"/>
> > <mx:DataGridColumn headerText="Projects" dataField="code"/>
> > </mx:columns>
> > </mx:DataGrid>
> >
>


Reply via email to