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

  1. class application.contents.InstallerSelectionContent extends MovieClip implements application.models.IContent
  2. {
  3.    var configObj;
  4.    var systemObj;
  5.    var dataObj;
  6.    var internalContent;
  7.    var loadingManager;
  8.    var externalContent;
  9.    var instCounter;
  10.    var install;
  11.    var headline;
  12.    function InstallerSelectionContent()
  13.    {
  14.       super();
  15.    }
  16.    function build(mc, dataObj, systemObj, configObj)
  17.    {
  18.       this.configObj = configObj;
  19.       this.systemObj = systemObj;
  20.       this.dataObj = dataObj;
  21.       this.internalContent = mc;
  22.       var _loc2_ = application.core.ContentManager.getInstance();
  23.       var _loc7_ = _loc2_.getActiveMain();
  24.       var _loc5_ = _loc2_.getActiveSub();
  25.       var _loc3_ = _loc2_.getIface();
  26.       application.core.FocusManager.getInstance().reset();
  27.       application.core.FocusManager.getInstance().setContent(this);
  28.       _loc3_.coBrandHolder.coBrand.hide();
  29.       this.loadingManager = _loc2_.getLoadingManager();
  30.       this.externalContent = this.internalContent.createEmptyMovieClip("externalContent",this.instCounter);
  31.       this.instCounter = this.instCounter + 1;
  32.       var _loc4_ = dataObj.install.contentList[_loc5_].site;
  33.       var _loc6_ = this.externalContent;
  34.       this.loadingManager.addListener(this);
  35.       this.loadingManager.load(_loc4_,_loc6_,"onInitialLoad");
  36.    }
  37.    function remove()
  38.    {
  39.       this.install.removeMovieClip();
  40.       this.headline.removeMovieClip();
  41.       this.externalContent.removeMovieClip();
  42.    }
  43.    function update(state, activeMain, activeSub)
  44.    {
  45.       this.remove();
  46.       application.core.ContentManager.getInstance().showContent(3,8,0);
  47.    }
  48.    function openInstaller()
  49.    {
  50.       application.core.ContentManager.getInstance().openInstaller();
  51.    }
  52.    function onInitialLoad()
  53.    {
  54.       this.loadingManager.removeListener(this);
  55.       this.externalContent.gotoAndStop(1);
  56.       var _loc2_ = application.core.ContentManager.getInstance();
  57.       var _loc5_ = _loc2_.getActiveMain();
  58.       var _loc3_ = _loc2_.getActiveSub();
  59.       var _loc4_ = _loc2_.getIface();
  60.       Object.registerClass("dummy",application.screens.HeadlineScreen);
  61.       this.headline = application.screens.HeadlineScreen(this.internalContent.attachMovie("dummy","headline" + this.instCounter,this.instCounter));
  62.       this.instCounter = this.instCounter + 1;
  63.       this.headline.setDataObj(this.dataObj);
  64.       this.headline.setConfigProvider(this.configObj);
  65.       this.headline.setAciveContent(_loc5_,_loc3_);
  66.       this.headline.setContainer(this);
  67.       this.headline.build();
  68.       this.headline.update(_loc3_);
  69.       Object.registerClass("dummy",application.screens.InstallScreen);
  70.       this.install = application.screens.InstallScreen(this.internalContent.attachMovie("dummy","install" + this.instCounter,this.instCounter));
  71.       this.instCounter = this.instCounter + 1;
  72.       this.install.setSystemProvider(this.systemObj);
  73.       this.install.setConfigProvider(this.configObj);
  74.       this.install.setDataObj(this.dataObj);
  75.       this.install.setContainer(this);
  76.       this.install.build();
  77.       if(this.systemObj.isWinXP == true)
  78.       {
  79.          this.externalContent.gotoAndStop(1);
  80.       }
  81.       else
  82.       {
  83.          this.externalContent.gotoAndStop(2);
  84.       }
  85.       if(this.dataObj.showSoftwarePlus == false)
  86.       {
  87.          this.externalContent.softwarePlus._visible = false;
  88.       }
  89.       if(this.dataObj.showTOSP == false)
  90.       {
  91.          this.externalContent.TOSP._visible = false;
  92.       }
  93.       _loc4_.contentBackground.gotoAndStop(3);
  94.    }
  95.    function showDisclaimScroll(tf)
  96.    {
  97.    }
  98.    function openRegistration()
  99.    {
  100.    }
  101.    function onChangeRateContent(isSubscreen)
  102.    {
  103.    }
  104.    function getPreviousContent()
  105.    {
  106.    }
  107.    function getNextContent()
  108.    {
  109.    }
  110.    function openSoftware(id)
  111.    {
  112.    }
  113.    function showInfo(id)
  114.    {
  115.    }
  116.    function updateView(height, showBlind, id)
  117.    {
  118.    }
  119.    function getScrollBar()
  120.    {
  121.       return null;
  122.    }
  123.    function getMask()
  124.    {
  125.       return null;
  126.    }
  127. }
  128.