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…
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
this.container.onLoad = function(success) {
if (success) {
trace("Page Loaded");
} else {
_global.error = true;
}
};
Can some one help me with this?