All data access operation in Flex are
asynchronous.
You can not access the result in the same
function that invokes the send/operation call.
You must use an event handler function run
by the result event, or use binding.
Tracy
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of David Brown
Sent: Friday, August 25, 2006 9:58
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] If statment
runs before remote call returns data
I am writting a login function that calls a remote cfc and
returns data. Based on the length of lastresult either show different
view stack child or turn visiable on for label that displays no user found
The remote call works, but I have to press login button
twice to display the no user found message or to switch to another child of the
view stack.
It looks like the if statment exacutes before the
remoteobject is returned...
Thank you in adance.
David
8"?>
http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="logincall();">
"ColdFusion"
source="applications.Classifieds.CFCs.classifiedapp"
showBusyCursor="true" />
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
Visit your group "flexcoders" on the web.
To unsubscribe from this group, send an email to: [EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___