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

  1. class application.screens.PopupScreen extends application.screens.AbstractScreen implements application.models.IScreen
  2. {
  3.    var tf0;
  4.    var tf1;
  5.    var tf2;
  6.    var configObj;
  7.    function PopupScreen()
  8.    {
  9.       super();
  10.    }
  11.    function build()
  12.    {
  13.       this.tf0 = this.tf0;
  14.       this.tf1 = this.tf1;
  15.       this.tf2 = this.tf2;
  16.       var _loc3_ = 0;
  17.       while(_loc3_ < 2)
  18.       {
  19.          var _loc2_ = this["btn" + _loc3_];
  20.          _loc2_.gotoAndStop(1);
  21.          this.buildButton(_loc2_);
  22.          if(_loc3_ == 0)
  23.          {
  24.             this.setLabel(_loc2_,this.configObj.textList.cancelBtn);
  25.          }
  26.          else
  27.          {
  28.             this.setLabel(_loc2_,this.configObj.textList.okBtn);
  29.          }
  30.          this.createFocusRec(_loc2_,34,34,0,0);
  31.          application.core.FocusManager.getInstance().registerButton(_loc2_,98 + _loc3_);
  32.          _loc3_ = _loc3_ + 1;
  33.       }
  34.       this.tf0.html = true;
  35.       this.tf0.selectable = false;
  36.       this.tf0.embedFonts = true;
  37.       this.tf0.htmlText = this.configObj.textList.popupTitle;
  38.       this.tf1.html = true;
  39.       this.tf1.selectable = false;
  40.       this.tf1.embedFonts = true;
  41.       this.tf1.htmlText = this.configObj.textList.popupHeadline;
  42.       this.tf2.html = true;
  43.       this.tf2.selectable = false;
  44.       this.tf2.embedFonts = true;
  45.       this.tf2.htmlText = this.configObj.textList.popupText;
  46.    }
  47.    function update(activateHome, activeMain)
  48.    {
  49.    }
  50.    function onButtonRollOver(mc)
  51.    {
  52.    }
  53.    function onButtonRollOut(mc)
  54.    {
  55.    }
  56.    function onButtonPress(mc)
  57.    {
  58.    }
  59.    function onButtonRelease(mc)
  60.    {
  61.       if(mc._name == "btn1")
  62.       {
  63.          application.core.ContentManager.getInstance().killPopup(true);
  64.       }
  65.       else
  66.       {
  67.          application.core.ContentManager.getInstance().killPopup(false);
  68.       }
  69.    }
  70.    function onButtonDisable(mc)
  71.    {
  72.    }
  73.    function onButtonEnable(mc)
  74.    {
  75.    }
  76.    function onButtonReleaseOutside(mc)
  77.    {
  78.    }
  79. }
  80.