Connection status?

I´m dealing with a connection problem. I´ve made a flash application/site who is loading and saving to a database via ASP. When it reads or writes to the database an MC is shown thar tells the user- ‘Loading data’ or ‘Saving data’
The application is used by people in countries that are relatively new in IT. The infrastructure is not solid. Sometimes the internet connection is interrupted for a second or two. When that happens flash don´t realise the connection is up again but freezes the loading MC. The user can go back and forward and everything works just fine but in that particular part it looks like it can´t establish a connection, which is true. What I´m looking for is a way to check the connection status in Flash. Is there a way for flash to check the connection status?