You have a typo. This line: if ( ((NameBox.text.length<3) || (NameBox.text = "Enter Name Here....")) && (PhoneBox.text.length < 11) )
has "(NameBox.text = "Enter Name Here....")", which is an assignment statement. Change the = to ==. Doug --- In flexcoders@yahoogroups.com, "Tolulope Olonade" <[EMAIL PROTECTED]> wrote: > > I have this code piece in an achordion control > > public function ValidateEntries():void > { > if ( ((NameBox.text.length<3) || (NameBox.text = "Enter Name > Here....")) && (PhoneBox.text.length < 11) ) > { > Alert.show("Please supply appropriate\n search criterion!", > "Error:", Alert.OK); > } > else > Alert.show("We call web\n service here..!", "Good To Go", > Alert.OK); > > Which I intend to use to validate entries into the form below: > > < </mx:Canvas> > <mx:Canvas label="Search Result" width="100%" height="211"> > <mx:DataGrid x="6" y="5" width="184" height="196"> > <mx:columns> > <mx:DataGridColumn headerText="Staff Name" dataField="NameCol"/> > <mx:DataGridColumn headerText="Phone No." dataField="PhoneCol"/> > </mx:columns> > </mx:DataGrid> > </mx:Canvas> > > However its not working as expected. and from my C,C++,Javascript > experience it seems ok by me. I know I can use validatord but I really > want to be explicit in my implementation. > > ISSUE no 2 is I made the background color of the canvas to be RED. > This worked find before until I updated my flash player 9 to the > official release copy this morning. > Now it shows RED in design mode and GREY at run time :( > > PLEASE HELP! > ------------------------ Yahoo! Groups Sponsor --------------------~--> See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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/