home *** CD-ROM | disk | FTP | other *** search
- class application.contents.InprintContent extends MovieClip implements application.models.IContent
- {
- var scrollBar;
- var configObj;
- var systemObj;
- var dataObj;
- var internalContent;
- var loadingManager;
- var externalContent;
- var instCounter;
- var nav;
- var headline;
- var mask;
- function InprintContent()
- {
- super();
- }
- function build(mc, dataObj, systemObj, configObj)
- {
- this.scrollBar = null;
- 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.imprint.contentList[_loc5_].site;
- var _loc6_ = this.externalContent;
- this.loadingManager.addListener(this);
- this.loadingManager.load(_loc4_,_loc6_,"onInitialLoad");
- }
- function remove()
- {
- this.nav.removeMovieClip();
- this.headline.removeMovieClip();
- this.externalContent.removeMovieClip();
- this.scrollBar.removeMovieClip();
- this.mask.removeMovieClip();
- }
- function update(state, activeMain, activeSub)
- {
- }
- function getPreviousContent()
- {
- }
- function getNextContent()
- {
- }
- function onInitialLoad()
- {
- this.loadingManager.removeListener(this);
- this.externalContent.gotoAndStop(1);
- var _loc4_ = application.core.ContentManager.getInstance();
- var _loc6_ = _loc4_.getActiveMain();
- var _loc2_ = _loc4_.getActiveSub();
- var _loc3_ = _loc4_.getIface();
- Object.registerClass("dummy",application.screens.HorizontalSubNavigation);
- this.nav = application.screens.HorizontalSubNavigation(this.internalContent.attachMovie("dummy","subnav",this.instCounter));
- this.instCounter = this.instCounter + 1;
- this.nav._x = int(_loc3_.contentHolder._x + 2);
- this.nav._y = int(_loc3_.contentHolder._y - 2);
- this.nav.setSystemProvider(this.systemObj);
- this.nav.setConfigProvider(this.configObj);
- this.nav.setDataObj(this.dataObj);
- this.nav.setAciveContent(_loc6_,_loc2_);
- this.nav.setContainer(this);
- this.nav.build();
- this.nav.update(_loc2_);
- 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(_loc6_,_loc2_);
- this.headline.setContainer(this);
- this.headline.build();
- this.headline.update(_loc2_);
- _loc3_.contentBackground.gotoAndStop(2);
- var _loc5_ = 271;
- var _loc7_ = 699;
- if(this.externalContent._height > _loc5_)
- {
- this.buildScrollbar(_loc7_,_loc5_);
- }
- else if(this.mask != null)
- {
- this.mask.removeMovieClip();
- this.mask = null;
- this.scrollBar.removeMovieClip();
- this.scrollBar = null;
- }
- }
- function onChangeRateContent(isSubcontent)
- {
- }
- function showDisclaimScroll(tf)
- {
- }
- function openRegistration()
- {
- }
- function buildScrollbar(viewWidth, viewHeight)
- {
- if(this.scrollBar == null)
- {
- var _loc3_ = viewWidth;
- var _loc2_ = viewHeight;
- var _loc6_ = 20;
- var _loc5_ = 104;
- this.mask = this.internalContent.createEmptyMovieClip("mask" + this.instCounter,this.instCounter);
- this.instCounter = this.instCounter + 1;
- this.mask.clear();
- this.mask.beginFill(0,0);
- this.mask.moveTo(0,0);
- this.mask.lineTo(0,_loc2_);
- this.mask.lineTo(_loc3_,_loc2_);
- this.mask.lineTo(_loc3_,0);
- this.mask.lineTo(0,0);
- this.mask.endFill();
- this.mask._x = int(_loc6_);
- this.mask._y = int(_loc5_);
- this.externalContent.setMask(this.mask);
- Object.registerClass("dummy",application.screens.ScrollBarScreen);
- this.scrollBar = application.screens.ScrollBarScreen(this.internalContent.attachMovie("dummy","scrollBar" + this.instCounter,this.instCounter));
- this.instCounter = this.instCounter + 1;
- this.scrollBar.setContent(this.externalContent,viewHeight);
- this.scrollBar._y += 31;
- }
- else
- {
- this.scrollBar.setContent(this.externalContent,viewHeight);
- this.externalContent.setMask(this.mask);
- }
- }
- function removeScrollbar()
- {
- this.mask.clear();
- this.mask.removeMovieClip();
- this.scrollBar.removeMovieClip();
- this.scrollBar = null;
- }
- function openInstaller()
- {
- }
- function openSoftware(id)
- {
- }
- function showInfo(id)
- {
- }
- function updateView(height, showBlind, id)
- {
- }
- function getScrollBar()
- {
- return this.scrollBar;
- }
- function getMask()
- {
- return this.mask;
- }
- }
-