It's hard to say w/o seeing what code is in what methods. If you make a RemoteObject request, there's no way it will return before the if statement if all the code you showed is in one method.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Sent: Sunday, July 27, 2008 9:36 PM To: [email protected] Subject: RE:[flexcoders] Value of AS variable dissapearing Ok, I'm really not fully understanding what is happening here... I decided to move on and come back to this issue. So I started with more validations on the form entries. While testing the form fields I started to get the email validation to show 'true' for finding a duplicate email address in the remote DB. Why would this field not work on the first form validation but the 2nd or on works just fine? When I run the debug and set a breakpoint on the result function I see that it's getting set to true. When I continue to the if() statement in another function in the same class instance it changes back to false. Any ideas out there? ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Sent: Sunday, July 27, 2008 4:15 PM To: [email protected] Subject: {Disarmed} [flexcoders] Value of AS variable dissapearing I've got a weird issue that I'm trying to track down... It's all part of the life of a class instance that I posted before (I've got an update on that one coming soon). In my user registration validation class, I check to see if the email address already exists in the DB. I created a CFC function called val_email( string:strEMail):Boolean My remote object is defined as: <mx:RemoteObject id="authManager" destination="ColdFusion" source="FT.components.cfgenerated.managers.Auth" result="remote_result(event)"> <mx:method name="register" result="register_result(event)" fault="serverFault(event)" /> </mx:RemoteObject> In my AS script I have the following config: <mx:Script> <
