No, the availability of event.result has no relationship to the
resultFormat.  Is event.result null?

 

Post your HTTPService declaration.

 

The default result format is kinda the worst of both worlds.  First,
There is a performance hit when the result xml is processed into the
nested objects.  

 

Your UI components will be accessing properties of dynamic objects which
is slower than strongly typed objects, (but probably close in
performance to accessing XML). 

 

Finally, the xml class, (resultFormat="e4x") includes a powerful
selection, navigation and filtering API that the nested object tree does
not.  You will discover these differences for yourself someday, I am
just trying to save you some pain.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Jason B
Sent: Monday, June 02, 2008 3:46 PM
To: [email protected]
Subject: [flexcoders] Re: working with resulthandler httpservice and
referencing lastresult?

 

Tracy im confused? you keep mentioning my data from XML but that is
working fine like i said i am able to comment out the line throwing
the error and use alert.show and it works fine...

but this line event.result.DATARESULTS.SEVEND_ALOWED; will not work
for me and never has i think the reason is because you do it under
resultformat="e4x" and i do it as the default Object for httpservice

you mention i have to loop? i dont loop any results for binding? 

ALL I do is return this XML from php

<DATARESULTS>
<STATION_ID>XYZ12345</STATION_ID>
</DATARESULTS>

and then bind like this

<mx:TextArea x="20" y="187" height="135" width="178" id="station_id"
editable="false">

<mx:text>{httpservice_loadstationinfo.lastResult.DATARESULTS.STATION_ID}
</mx:text>
</mx:TextArea>

And it works fine 

Why would anyone not want to use object by default from Flex which is
so much less effort then conversion of XML like you just showed me?

Have you used the objects and ran into something that i have not?
or do you use it for another reason?

I just want to set a checkbox from actionscript? can this be done ?
i would think it would be syntax like this

OBJECT_ID.selected = true 

 

Reply via email to