same result. I accidently left that true in there by mistake was testing. thanks
To: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Fri, 15 Feb 2008 17:53:01 +0000Subject: Re: [flexcoders] Checkbox with function problem Maybe it should really be: if (!signature_include.selected) { Paul ----- Original Message ----- From: steven pollard To: flexcoders@yahoogroups.com Sent: Friday, February 15, 2008 5:43 PM Subject: RE: [flexcoders] Checkbox with function problem I tried that and still the same results.. here is my code <mx:Script> <![CDATA[ import mx.controls.Alert; private function Checked():void { if (!signature_include.selected==true) { signature.text= login_user.lastResult.signaturelookup.signature.signaturetext; } else { signature.text=""; } } ]]></mx:Script> To: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Fri, 15 Feb 2008 17:34:34 +0000Subject: RE: [flexcoders] Checkbox with function problem Use == rather than = (the former compares, the latter sets the value). (That’s from your first example, not sure If I’m missing the actual point you’re making, tbh). -----Original Message-----From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ghus32Sent: 15 February 2008 17:33To: [EMAIL PROTECTED]: [flexcoders] Checkbox with function problem Hello Everyone,I am emailing because I have a problem whenever I write a function with if (Checkbox.selected=ture/false){something}or if (!checkbox.selected){something}Flex reads the function before I call it, or it reads the selected. So when I run the program the checkbox is already selected by default.Anyone know of a solution?thanksSteve ______________________________________________________________________This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577.This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person.This email has been scanned for Primal Pictures by the MessageLabs Email Security System.______________________________________________________________________ _________________________________________________________________