Hi Anoop,

I got the same error when i worked with ArrayCollections.
This comes when ArrayCollection contains only one item.
 so i uesd ArrayUtil.toArray(new ArrayCollection());
and it was solved.

If useful, use it or else ignore it.

Thanks.....

On 5/26/09, Anoop Max <[email protected]> wrote:
>
> Hi all,
>
> I am having one dictionary object in my local cache. I want to create
> another dictionary object with the same values of the first dictionary
> object. I tried the following way. But its giving me "TypeError: Error
> #1034: Type Coercion failed: cannot convert obj...@49ad0b1 to
> com.citi.gwm.pipeline.vo.MappingVO" error.
>
> heirData = new Dictionary();
> var tempDict:Dictionary = cache.getHeirarchialData();
> for (var key:* in tempDict){
>        var mVO:MappingVO = tempDict[key] as MappingVO;
>        heirData[key] = MappingVO(ObjectUtil.copy(mVO));
>       }
>
> Did I missed anything? I even tried
>
>        var mVO:MappingVO = new MappingVO();
>        mVO = tempDict[key] as MappingVO;
>
> this way also. Still no use. Is there any other way to copy the entire
> dictionary object to another? Please help. Am stuck up with this issue
> for a couple of days.
>
> Regards,
> Anoop
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to