Hi Kelly,

As always u got it right.

It works fine ;-) but I am getting this error in the compile panel
"parameter 'event' has no type declaration"

and its talking about this line:
public function handleCheckEmailExists(event){

I even tried it like this:
public function handleCheckEmailExists(event):void{


Any ideas?

Thanks,
Alex




--- In flexcoders@yahoogroups.com, "Kelly @ Dekayd Media Inc." 
<[EMAIL PROTECTED]> wrote:
>
> Unless something has changed in Flex 2 that I am not aware of, you 
need to
> define a result handler for Remote Object call and do the check in 
there.
> 
> RO Calls are asynchronous.
> 
> Something like:
> 
> public function checkEmailExists():void {
>       srv.checkEmail({email:userEmailInput.text});
> }
> 
> 
> public function handleCheckEmailExists(event){
>           if (event.result == 'true'){
>             submitSignup.enabled = true; 
>             }   else {
>             submitSignup.enabled = false;
>           }
> }
>  
> 
> And in your Remote Object tag:
> 
> <mx:method name="checkEmail" result="handleCheckEmailExists
(event)" />
> 
> 
> 
> 
> -----Original Message-----
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Alexander Tsoukias
> Sent: Tuesday, April 04, 2006 11:34 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] GENERAL actionscript question
> 
> Hi all, I know this is not advanced, but I have a deadline for a 
> FLEX app tomorrow and the client needs to see a login and signup 
> sample.
> 
> I have a CFC which has a method that checks if the email inputed 
> already exists in the database.
> 
> The cfc function returns TRUE or FALSE
> 
> This is the actionscipt that I have:
> 
>         public function checkEmailExists():void {
>             if ((srv.checkEmail({email:userEmailInput.text})) == 
> true){
>             submitSignup.enabled = true; 
>             }   else {
>             submitSignup.enabled = false;
>             }
>   }  
> 
> 
> Is this correct? It doesn't seem to work.
> 
> 
> 
> 
> 
> 
> 
> --
> 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
>







--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to