# Error Page in Flash for Full Flash Sites

**URL:** <https://forum.kirupa.com/t/error-page-in-flash-for-full-flash-sites/231791>\
**Category:** flash\
**Created:** [July 8, 2007, 4:05am UTC](https://forum.kirupa.com/t/error-page-in-flash-for-full-flash-sites/231791 "2007-07-08T04:05:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![samuelr27921](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@samuelr27921](https://forum.kirupa.com/u/samuelr27921)\
**Post date:** [July 8, 2007, 4:05am UTC](https://forum.kirupa.com/t/error-page-in-flash-for-full-flash-sites/231791/1 "2007-07-08T04:05:57Z")

</div>

Hello I have built my full site in Flash but one thing that I notice is that if I make a mistake and forget to upload one of the swf files the site just hang until I upload the file. So I decided to draw up a File not Found Page in flash too. How would I write the Actionscript for this.

My Loader is “this.container”

Made this Code Up…

```auto
if (_global.error) {
 trace("Loading failed!");
this.container.loadMovie ("404.swf");
} else {
 trace("Loading Passed");
}
this.container.onComplete = function(success) {
 if (success) {
  trace("Page Loaded");
 } else {
  _global.error = true;
 }
};

```

This One To

```auto
 
this.container.onLoad = function(success) {
 if (success) {
  trace("Page Loaded");
 } else {
  _global.error = true;
 }
};
 

```

Can some one help me with this?
