This content has been marked as final.
Show 6 replies
-
1. Re: If statements with parameters
kglad Feb 3, 2008 7:23 AM (in response to pennsyfan)use the attach code option to display code in this forum. otherwise, code may be too difficult to read, like yours.
that said, you can remove the code related to the first name, in your check for the last name. and you can remove the code related to the first and last name in your email check: you already know the previous checks have failed or you wouldn't be executing code beyond one of those return statements. -
2. Re: If statements with parameters
pennsyfan Feb 3, 2008 9:22 AM (in response to kglad)Ok,
here is the revised code, when I run this the form defaults to having the errorText display please enter your email address. the default should be an empty string
-
3. Re: If statements with parameters
kglad Feb 3, 2008 9:31 AM (in response to pennsyfan)then assign an empty string to errorText_txt's text property. -
4. Re: If statements with parameters
pennsyfan Feb 3, 2008 3:39 PM (in response to kglad)It is the first line in the function and it also set in the initialization portion of the swf file itself -
5. Re: If statements with parameters
kglad Feb 3, 2008 8:43 PM (in response to pennsyfan)when the submit button is released, errorText_txt.text will contain no text or one of your error messages. if you're always seeing the email error message, even when you think you shouldn't, double check your email textfield's instance name. in particular, check for case mismatches and path issues. a trace() function can be helpful. -
6. Re: If statements with parameters
pennsyfan Feb 3, 2008 8:50 PM (in response to kglad)actually I just found the problem, the last if statement was not in baces but parenthesis, now to try and get the rest of the function to work



