home *** CD-ROM | disk | FTP | other *** search
- class application.screens.ModulHolderScreen extends application.screens.AbstractScreen implements application.models.IScreen
- {
- var dataObj;
- var modul0;
- var modul1;
- var modulBackground;
- var log;
- var configObj;
- var systemObj;
- function ModulHolderScreen()
- {
- super();
- }
- function update(activeMain)
- {
- if(activeMain == 6)
- {
- if(this.dataObj.showClientModule == true)
- {
- this.modul0.btn.onRollOut();
- this.modul0.btn.onDisable();
- this.modul0._visible = false;
- }
- if(this.dataObj.showSoftwareModule == true)
- {
- this.modul1._visible = true;
- this.modul1.btn.onEnable();
- this.modul1.btn.onRollOut();
- this.modul1.background._visible = false;
- }
- this.modulBackground._visible = true;
- }
- else if(activeMain == 7 || activeMain == 8)
- {
- if(this.dataObj.showSoftwareModule == true)
- {
- this.modul1._visible = false;
- this.modul1.btn.onRollOut();
- this.modul1.btn.onDisable();
- }
- if(this.dataObj.showClientModule == true)
- {
- this.modul0._visible = true;
- this.modul0.btn.onEnable();
- this.modul0.btn.onRollOut();
- this.modul0.background._visible = false;
- }
- this.modulBackground._visible = true;
- }
- else if(application.core.ContentManager.getInstance().isClosing() == false)
- {
- if(this.dataObj.showClientModule == true)
- {
- this.modul0._visible = true;
- this.modul0.btn.onEnable();
- this.modul0.btn.onRollOut();
- this.modul0.background._visible = true;
- }
- if(this.dataObj.showSoftwareModule == true)
- {
- this.modul1._visible = true;
- this.modul1.btn.onEnable();
- this.modul1.btn.onRollOut();
- this.modul1.background._visible = true;
- }
- if(this.dataObj.showClientModule != true || this.dataObj.showSoftwareModule != true)
- {
- this.modul0.background._visible = false;
- this.modul1.background._visible = false;
- this.modulBackground._visible = true;
- }
- else
- {
- this.modulBackground._visible = false;
- }
- }
- else
- {
- if(this.dataObj.showClientModule == true)
- {
- this.modul0._visible = true;
- this.modul0.btn.onDisable();
- this.modul0.background._visible = true;
- }
- if(this.dataObj.showSoftwareModule == true)
- {
- this.modul1._visible = true;
- this.modul1.btn.onDisable();
- this.modul1.background._visible = true;
- }
- if(this.dataObj.showClientModule != true || this.dataObj.showSoftwareModule != true)
- {
- this.modul0.background._visible = false;
- this.modul1.background._visible = false;
- this.modulBackground._visible = true;
- }
- else
- {
- this.modulBackground._visible = false;
- }
- }
- }
- function build()
- {
- this.modulBackground._visible = false;
- var _loc2_ = 0;
- while(_loc2_ < 2)
- {
- if(_loc2_ == 0 && this.dataObj.showClientModule == true || _loc2_ == 1 && this.dataObj.showSoftwareModule == true)
- {
- this.log.showMessage("build Module=" + _loc2_);
- var _loc3_ = this["modul" + _loc2_];
- _loc3_.headline.text = this.configObj.textList["modul" + _loc2_ + "HeadLine"];
- if(this.systemObj.isWinXP)
- {
- _loc3_.description.text = this.configObj.textList["modul" + _loc2_ + "Description"];
- }
- else if(_loc2_ == 0)
- {
- _loc3_.description.text = this.configObj.textList["modul" + _loc2_ + "Description"];
- }
- else
- {
- _loc3_.description.text = this.configObj.textList["modul" + _loc2_ + "DescriptionNoneXP"];
- }
- this.buildButton(_loc3_.btn);
- _loc3_.btn.mainId = 6 + _loc2_;
- if(_loc2_ != 0)
- {
- _loc3_.btn.subId = 0;
- }
- else
- {
- _loc3_.btn.subId = 1;
- }
- this.setLabel(_loc3_.btn,this.configObj.textList["modul" + _loc2_ + "ButtonLabel"],false);
- this.createFocusRec(_loc3_.btn,100,52,0,0);
- application.core.FocusManager.getInstance().registerButton(_loc3_.btn,100 + _loc2_);
- }
- else
- {
- this["modul" + _loc2_]._visible = false;
- this["modul" + _loc2_].btn.gotoAndStop(1);
- }
- _loc2_ = _loc2_ + 1;
- }
- if(this.dataObj.showClientModule != true || this.dataObj.showSoftwareModule != true)
- {
- this.modul0.background._visible = this.dataObj.showClientModule;
- this.modul1.background._visible = this.dataObj.showSoftwareModule;
- this.modulBackground._visible = true;
- }
- }
- function onButtonRollOver(mc)
- {
- mc.label.textColor = 14418032;
- }
- function onButtonRollOut(mc)
- {
- mc.label.textColor = 3355443;
- }
- function onButtonPress(mc)
- {
- mc.label._y += 1;
- }
- function onButtonRelease(mc)
- {
- mc.label._y -= 1;
- mc.onRollOut();
- if(this.systemObj.isWinXP)
- {
- if(mc.mainId == 7)
- {
- if(this.systemObj.is64bit == false)
- {
- application.core.ContentManager.getInstance().showContent(3,mc.mainId,mc.subId);
- }
- else
- {
- application.core.ContentManager.getInstance().showInfoPopup64bit();
- }
- }
- else
- {
- application.core.ContentManager.getInstance().showContent(3,mc.mainId,mc.subId);
- }
- }
- else if(mc.mainId == 7)
- {
- application.core.ContentManager.getInstance().showPopup();
- }
- else
- {
- application.core.ContentManager.getInstance().showContent(3,mc.mainId,mc.subId);
- }
- }
- function onButtonDisable(mc)
- {
- mc.gotoAndStop(1);
- }
- function onButtonEnable(mc)
- {
- }
- function onButtonReleaseOutside(mc)
- {
- mc.label._y -= 1;
- mc.onRollOut();
- }
- }
-