First, don't use lastResult except in bindings. Use event.result.  I see
you have that in the handler, why did you switch back to lastResult?

 

Second, what is your resultFormat?  I think we have been through this
once before.

 

Third, what is: "DATARESULTS.SEVEND_ALOWED"?  Is this part of the data
that is being returned?

 

You first step needs to be verifying you have the data you expect within
the result handler.  How you do that depends on the answer to question 2
above.

 

Tracy

 

 

________________________________

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

 

im very lost when i need to handle things in the resulthandler from an
httpservice

heres what i got Not working

public function stationloadResult(event:ResultEvent){ 
var result:Object = event.result;

if(event.lastResult.DATARESULTS.SEVEND_ALOWED == "N")
Alert.show("sevenD not allowed");
else
Alert.show("sevenD is allowed");


}

im trying to understand how to handle referencing the httpservice when
it finishes loading data i can manipulate the flex front end while
looking at specific return data?
hope that makes sense.

 

Reply via email to