Hi,
Use the Lable Function [or] DataField to get the List Items from the
Object.. :)

2009/11/23 sharath <[email protected]>

> Hi All,
> I am getting [object Object]  problem while trying get data from List.
>
> I am trying to get the data from the list on itemRollOver, where list
> is filled on run time.
>
> My list control is:
>
> <mx:List
> id="empList"
> dataProvider="{ empDataProvider }"
> ........
> itemRollOver="getEmpName(event)"
> ........
> />
>
> & the corresponding action script is :
>
> private function getEmpName(event:ListEvent):void{
> var testEmp:String;
> testEmp = empList.dataProvider[event.rowIndex];
> ...............
> ................
> }
>
> Here i am getting [object Object] as the value for "testEmp" instead
> of actually value from list.
> What wrong i did here.  Please suggest me.
>
> Thanks
>
> -Sharath
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=.
>
>
>


-- 
With Regards,
Nizar.
Catch me @ 9790503327
Mail Me 2 [email protected]

--

You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=.


Reply via email to