home *** CD-ROM | disk | FTP | other *** search
- class application.screens.PopupScreen extends application.screens.AbstractScreen implements application.models.IScreen
- {
- var tf0;
- var tf1;
- var tf2;
- var configObj;
- function PopupScreen()
- {
- super();
- }
- function build()
- {
- this.tf0 = this.tf0;
- this.tf1 = this.tf1;
- this.tf2 = this.tf2;
- var _loc3_ = 0;
- while(_loc3_ < 2)
- {
- var _loc2_ = this["btn" + _loc3_];
- _loc2_.gotoAndStop(1);
- this.buildButton(_loc2_);
- if(_loc3_ == 0)
- {
- this.setLabel(_loc2_,this.configObj.textList.cancelBtn);
- }
- else
- {
- this.setLabel(_loc2_,this.configObj.textList.okBtn);
- }
- this.createFocusRec(_loc2_,34,34,0,0);
- application.core.FocusManager.getInstance().registerButton(_loc2_,98 + _loc3_);
- _loc3_ = _loc3_ + 1;
- }
- this.tf0.html = true;
- this.tf0.selectable = false;
- this.tf0.embedFonts = true;
- this.tf0.htmlText = this.configObj.textList.popupTitle;
- this.tf1.html = true;
- this.tf1.selectable = false;
- this.tf1.embedFonts = true;
- this.tf1.htmlText = this.configObj.textList.popupHeadline;
- this.tf2.html = true;
- this.tf2.selectable = false;
- this.tf2.embedFonts = true;
- this.tf2.htmlText = this.configObj.textList.popupText;
- }
- function update(activateHome, activeMain)
- {
- }
- function onButtonRollOver(mc)
- {
- }
- function onButtonRollOut(mc)
- {
- }
- function onButtonPress(mc)
- {
- }
- function onButtonRelease(mc)
- {
- if(mc._name == "btn1")
- {
- application.core.ContentManager.getInstance().killPopup(true);
- }
- else
- {
- application.core.ContentManager.getInstance().killPopup(false);
- }
- }
- function onButtonDisable(mc)
- {
- }
- function onButtonEnable(mc)
- {
- }
- function onButtonReleaseOutside(mc)
- {
- }
- }
-