home *** CD-ROM | disk | FTP | other *** search
- class application.contents.InstallerSelectionContent extends MovieClip implements application.models.IContent
- {
- var configObj;
- var systemObj;
- var dataObj;
- var internalContent;
- var loadingManager;
- var externalContent;
- var instCounter;
- var install;
- var headline;
- function InstallerSelectionContent()
- {
- super();
- }
- function build(mc, dataObj, systemObj, configObj)
- {
- this.configObj = configObj;
- this.systemObj = systemObj;
- this.dataObj = dataObj;
- this.internalContent = mc;
- var _loc2_ = application.core.ContentManager.getInstance();
- var _loc7_ = _loc2_.getActiveMain();
- var _loc5_ = _loc2_.getActiveSub();
- var _loc3_ = _loc2_.getIface();
- application.core.FocusManager.getInstance().reset();
- application.core.FocusManager.getInstance().setContent(this);
- _loc3_.coBrandHolder.coBrand.hide();
- this.loadingManager = _loc2_.getLoadingManager();
- this.externalContent = this.internalContent.createEmptyMovieClip("externalContent",this.instCounter);
- this.instCounter = this.instCounter + 1;
- var _loc4_ = dataObj.install.contentList[_loc5_].site;
- var _loc6_ = this.externalContent;
- this.loadingManager.addListener(this);
- this.loadingManager.load(_loc4_,_loc6_,"onInitialLoad");
- }
- function remove()
- {
- this.install.removeMovieClip();
- this.headline.removeMovieClip();
- this.externalContent.removeMovieClip();
- }
- function update(state, activeMain, activeSub)
- {
- this.remove();
- application.core.ContentManager.getInstance().showContent(3,8,0);
- }
- function openInstaller()
- {
- application.core.ContentManager.getInstance().openInstaller();
- }
- function onInitialLoad()
- {
- this.loadingManager.removeListener(this);
- this.externalContent.gotoAndStop(1);
- var _loc2_ = application.core.ContentManager.getInstance();
- var _loc5_ = _loc2_.getActiveMain();
- var _loc3_ = _loc2_.getActiveSub();
- var _loc4_ = _loc2_.getIface();
- Object.registerClass("dummy",application.screens.HeadlineScreen);
- this.headline = application.screens.HeadlineScreen(this.internalContent.attachMovie("dummy","headline" + this.instCounter,this.instCounter));
- this.instCounter = this.instCounter + 1;
- this.headline.setDataObj(this.dataObj);
- this.headline.setConfigProvider(this.configObj);
- this.headline.setAciveContent(_loc5_,_loc3_);
- this.headline.setContainer(this);
- this.headline.build();
- this.headline.update(_loc3_);
- Object.registerClass("dummy",application.screens.InstallScreen);
- this.install = application.screens.InstallScreen(this.internalContent.attachMovie("dummy","install" + this.instCounter,this.instCounter));
- this.instCounter = this.instCounter + 1;
- this.install.setSystemProvider(this.systemObj);
- this.install.setConfigProvider(this.configObj);
- this.install.setDataObj(this.dataObj);
- this.install.setContainer(this);
- this.install.build();
- if(this.systemObj.isWinXP == true)
- {
- this.externalContent.gotoAndStop(1);
- }
- else
- {
- this.externalContent.gotoAndStop(2);
- }
- if(this.dataObj.showSoftwarePlus == false)
- {
- this.externalContent.softwarePlus._visible = false;
- }
- if(this.dataObj.showTOSP == false)
- {
- this.externalContent.TOSP._visible = false;
- }
- _loc4_.contentBackground.gotoAndStop(3);
- }
- function showDisclaimScroll(tf)
- {
- }
- function openRegistration()
- {
- }
- function onChangeRateContent(isSubscreen)
- {
- }
- function getPreviousContent()
- {
- }
- function getNextContent()
- {
- }
- function openSoftware(id)
- {
- }
- function showInfo(id)
- {
- }
- function updateView(height, showBlind, id)
- {
- }
- function getScrollBar()
- {
- return null;
- }
- function getMask()
- {
- return null;
- }
- }
-