Error messages

hi i just wanted to know if you could display custom error messages in a flash site and how you would go about doing it.

for example if the user clicks for the contact page and for some reason it is unavailable then a custom error message appears.

any help would be appreciated.