[flexcoders] GENERAL actionscript question

2006-04-05 Thread Alexander Tsoukias
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

Re: [flexcoders] GENERAL actionscript question

2006-04-05 Thread Richard Turner-Jones
Looks like the parenthesis are in the wrong place Try: function checkEmailExists():void { if (srv.checkEmail({email:userEmailInput.text}) == true) { submitSignup.enabled = true; } else { submitSignup.enabled = false; } } or even better function

Re: [flexcoders] GENERAL actionscript question

2006-04-05 Thread Sonja Duijvesteijn
I'm not sure how Coldfusion gives results back, but i would assume the true or false is a string and not a boolean. public function checkEmailExists():void { if ((srv.checkEmail({email:userEmailInput.text })) ==true){ submitSignup.enabled = true; } else {

Re: [flexcoders] GENERAL actionscript question

2006-04-05 Thread Richard Turner-Jones
whoops, sorry, I left the public out of the function public function checkEmailExists():void { ... Richard Richard Turner-Jones wrote: Looks like the parenthesis are in the wrong place Try: function checkEmailExists():void { if (srv.checkEmail({email:userEmailInput.text}) == true) {

RE: [flexcoders] GENERAL actionscript question

2006-04-05 Thread Kelly @ Dekayd Media Inc.
(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