PDA

View Full Version : flash form, error checking


flash_fish
05-26-2003, 08:35 PM
I've a flash form that has four single line text fields. Each field must contain an entry before it can be submitted so my error checking function just needs to make sure that none of the fields are blank. I'm currently using a 'for in' loop which checks that none of the fields equal null. Is there a better way to do this because I am not abble to get it to perform efficiently???

spriggan
05-26-2003, 10:01 PM
sounds like it should work...can you post the FLA so I can have a look at the code?

flash_fish
05-27-2003, 09:10 AM
it does work (kind of). It checks for blank spaces using an embedded 'if' statement and if all fields are complete it carries out the 'else' part which is to send the form. However, because the 'if' statement is embedded in the 'for in' loop it sends it four times. Once for each field.

I could write and if-else statement for each field but I thought there may be a shorter way of doing it