15 Replies Latest reply on Jul 8, 2007 2:58 PM by kglad

    Error Page in Flash for Full Flash Sites

    samuels2921
      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...



      [code]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;

      }

      };

      [/code]

      This One To



      [code]

      this.container.onLoad = function(success) {

      if (success) {

      trace("Page Loaded");

      } else {

      _global.error = true;

      }

      };



      [/code]



      Can some one help me with this?