Try:
if (event.result.action.item is ObjectProxy ) I had to do the same thing to fix the 1 xml node problem. ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of oneproofdk Sent: Monday, February 05, 2007 1:39 PM To: [email protected] Subject: [flexcoders] Re: Why does it fail when only 1 item in the result xml (HTTPservice) Thanks for your reply! How can I test what datatype Flex has "decided" ?, I cant always tell if there will be more than one item in the result. Thanks, Mark --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "jer_ela" <[EMAIL PROTECTED]> wrote: > > When Flex converts xml into flex data types, it makes its best guess > as to hat is appropriate. When it sees repeating elements it decides > arrayCollection. When it sees a single element or multiple different > elements it decides objectProxy. > > You need to check the type of the event.result.action.item and set > jobDetails to it if it is an array collection, or make jobDetails a > new arrayCollect and addItem(event.result.action.item) to it if it is > an objectProxy. > THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION.

