chrisbare
10-23-2003, 12:36 PM
I've read all about swonking, and I have things working as long as there are no errors.
What I want to know is how to detect http protocol or php syntax errors.
For instance, if I call loadVariables with a url that does not exist, the server sends me a 404, but my swonking code just spins because I'm never going to get the variable that it's checking.
Similarly, if I have a syntax error in my php code, loadVariables will get data, but not the variable I'm expecting.
I'd like to be able to catch both of these possibilities and display an error message in flash. I know how to debug these things in other ways, but when testing on a slow remote server, it would be very helpful to have the flash code tell me what went wrong, rather than digging through log files and running scripts by hand.
Is this possible at all in flash?
I'm using flash 5, BTW.
What I want to know is how to detect http protocol or php syntax errors.
For instance, if I call loadVariables with a url that does not exist, the server sends me a 404, but my swonking code just spins because I'm never going to get the variable that it's checking.
Similarly, if I have a syntax error in my php code, loadVariables will get data, but not the variable I'm expecting.
I'd like to be able to catch both of these possibilities and display an error message in flash. I know how to debug these things in other ways, but when testing on a slow remote server, it would be very helpful to have the flash code tell me what went wrong, rather than digging through log files and running scripts by hand.
Is this possible at all in flash?
I'm using flash 5, BTW.