This would mean that e.currentTarget.selectedItem is not an instance of
TileListVO. To check this you can run these traces:

*var vo:TileListVO = new TileListVO();

trace(getQualifiedClassName(vo));
trace(getQualifiedClassName(e.currentTarget.selectedItem));*

If they trace the same name you can cast your object like this:

*var vo:TileListVO = TileListVO(e.currentTarget.selectedItem);*

Else you would have to make sure that your list contains instances of
TileListVO.


Greetz Erik


On 5/19/08, flexawesome <[EMAIL PROTECTED]> wrote:
>
> humm same error msg.
>
> I can set data like this...
>
> var vo:TileListVO = new TileListVO();
>
> vo.id = e.currentTarget.selectedItem.id
> vo.name = e.currentTarget.selectedItem.name
>
> but I would like to set it at once. any suggestion?
>
> thanks
>
>

Reply via email to