home *** CD-ROM | disk | FTP | other *** search
/ Champak 106 / Vol 106.iso / games / global_r.swf / scripts / __Packages / Application.as < prev    next >
Encoding:
Text File  |  2010-04-12  |  789 b   |  36 lines

  1. class Application extends MovieClip
  2. {
  3.    static var instance;
  4.    static var sBasePath;
  5.    function Application(root)
  6.    {
  7.       super();
  8.       root.__proto__ = this.__proto__;
  9.       root.__constructor__ = Application;
  10.       this = root;
  11.       Application.instance = this;
  12.       this.init();
  13.    }
  14.    static function main(root)
  15.    {
  16.       var _loc1_ = new Application(root);
  17.    }
  18.    static function tr()
  19.    {
  20.       trace(arguments.join(" : "));
  21.    }
  22.    function init(Void)
  23.    {
  24.       Application.sBasePath = _root.basepath;
  25.       ┬º┬ºpush(this.stop());
  26.       if(Application.sBasePath == undefined)
  27.       {
  28.          Application.sBasePath = "Scripts/";
  29.       }
  30.    }
  31.    static function goto(sLabel)
  32.    {
  33.       Application.instance.gotoAndStop(sLabel);
  34.    }
  35. }
  36.