Thursday, February 4, 2010

TypeError: Error #1034: Type Coercion failed: cannot convert mx.utils::ObjectProxy to mx.collections.ArrayCollection”.

While we are accessing data from server in most cases the result is return as an ArrayCollection. But there is a chance that it may reach the client as ObjectProxy. For example if we are reading an XML file only having zero or one tag , it will not return the result as ArrayCollection rather as ObjectProxy.  So it is recomended to use the following  conditions in the result handler.  Otherwise will not get the data in the first tag. In this I am trying to read an XML file whose root tag is ‘Items’ and sub tag is ‘item’. The function resultData() is the result handler for the http service. 


No comments:

Post a Comment