home *** CD-ROM | disk | FTP | other *** search
/ T-Online 6 / T-Online.iso / Animation / content / intro / intro.swf / scripts / __Packages / application / screens / InstallScreen.as < prev    next >
Encoding:
Text File  |  2005-10-20  |  2.4 KB  |  84 lines

  1. class application.screens.InstallScreen extends application.screens.AbstractScreen implements application.models.IScreen
  2. {
  3.    var format;
  4.    var dataObj;
  5.    var configObj;
  6.    var btn0;
  7.    var btn1;
  8.    var rootMC;
  9.    function InstallScreen()
  10.    {
  11.       super();
  12.       this.format = new TextFormat();
  13.       this.format.align = "left";
  14.       this.format.color = 0;
  15.       this.format.font = "Tele-GroteskNor";
  16.       this.format.leading = 2;
  17.       this.format.size = 12;
  18.    }
  19.    function build()
  20.    {
  21.       var _loc2_ = 0;
  22.       while(_loc2_ < 2)
  23.       {
  24.          if(!(_loc2_ == 0 && this.dataObj.showTOSP == false))
  25.          {
  26.             if(!(_loc2_ == 1 && this.dataObj.showSoftwarePlus == false))
  27.             {
  28.                var _loc5_ = this.createEmptyMovieClip("btn" + _loc2_,_loc2_ + 1);
  29.                var _loc4_ = _loc5_.attachMovie("nextbtn","btn",1);
  30.                this.buildButton(_loc4_);
  31.                _loc4_.mainId = null;
  32.                _loc4_.subId = null;
  33.                this.createFocusRec(_loc4_,_loc4_._width,_loc4_._height,0,0);
  34.                application.core.FocusManager.getInstance().registerButton(_loc4_,11 + _loc2_);
  35.                _loc5_.createTextField("tf",2,0,36,40,20);
  36.                var _loc3_ = _loc5_.tf;
  37.                _loc3_.autoSize = true;
  38.                _loc3_.embedFonts = true;
  39.                _loc3_.selectable = false;
  40.                _loc3_.text = this.configObj.textList["install" + _loc2_ + "Label"];
  41.                _loc3_.setTextFormat(this.format);
  42.                var _loc6_ = this.format.getTextExtent(this.configObj.textList["install" + _loc2_ + "Label"]);
  43.                _loc3_._x = (36 - _loc6_.textFieldWidth) / 2 - 1;
  44.                _loc3_._y = 33;
  45.             }
  46.          }
  47.          _loc2_ = _loc2_ + 1;
  48.       }
  49.       this.btn0._x = 674;
  50.       this.btn0._y = 155;
  51.       this.btn1._x = 674;
  52.       this.btn1._y = 307;
  53.    }
  54.    function onButtonRollOver(mc)
  55.    {
  56.    }
  57.    function onButtonRollOut(mc)
  58.    {
  59.    }
  60.    function onButtonPress(mc)
  61.    {
  62.    }
  63.    function onButtonRelease(mc)
  64.    {
  65.       switch(mc._parent._name)
  66.       {
  67.          case "btn0":
  68.             this.rootMC.openInstaller();
  69.             break;
  70.          case "btn1":
  71.             this.rootMC.update();
  72.       }
  73.    }
  74.    function onButtonDisable(mc)
  75.    {
  76.    }
  77.    function onButtonEnable(mc)
  78.    {
  79.    }
  80.    function onButtonReleaseOutside(mc)
  81.    {
  82.    }
  83. }
  84.