Production Errors

I am testing a movie in development(my computer) and it works fine. However when i post it to production(remote server) it does not work. Is there a way i can record errors from a .swf to a text file or something of this nature so that i can see what is happening in production?