home *** CD-ROM | disk | FTP | other *** search
- var §\x01§ = 723;
- while(true)
- {
- if(eval("\x01") == 723)
- {
- set("\x01",eval("\x01") - 191);
- §§push(true);
- }
- else if(eval("\x01") == 39)
- {
- set("\x01",eval("\x01") - 25);
- if(§§pop())
- {
- set("\x01",eval("\x01") + 692);
- }
- }
- else if(eval("\x01") == 223)
- {
- set("\x01",eval("\x01") + 678);
- if(§§pop())
- {
- set("\x01",eval("\x01") - 699);
- }
- }
- else
- {
- if(eval("\x01") == 14)
- {
- set("\x01",eval("\x01") + 692);
- break;
- }
- if(eval("\x01") == 202)
- {
- set("\x01",eval("\x01") - 163);
- §§push(true);
- }
- else
- {
- if(eval("\x01") == 706)
- {
- set("\x01",eval("\x01") + 119);
- if(!_global.clickx)
- {
- _global.clickx = new Object();
- }
- §§pop();
- if(!_global.clickx.ui)
- {
- _global.clickx.ui = new Object();
- }
- §§pop();
- if(!_global.clickx.ui.UISoftwarePanel)
- {
- clickx.ui.UISoftwarePanel extends MovieClip;
- var _loc2_ = clickx.ui.UISoftwarePanel = function()
- {
- super();
- mx.events.EventDispatcher.initialize(this);
- }.prototype;
- _loc2_.slideIn = function()
- {
- var _loc2_ = (18 - this._x) / 2;
- if(Math.abs(_loc2_) < 0.2)
- {
- this._x = 18;
- if(this.validImage)
- {
- this.softImage_mc.image_mc.onEnterFrame = mx.utils.Delegate.create(this,this.handleImageLoading);
- }
- this.installBtn_mc._visible = true;
- this.installBtn_mc._alpha = 0;
- this.installBtn_mc.onEnterFrame = function()
- {
- this._alpha += 10;
- if(this._alpha >= 100)
- {
- delete this.onEnterFrame;
- }
- };
- delete this.onEnterFrame;
- }
- else
- {
- this._x += _loc2_;
- }
- };
- _loc2_.slideOut = function()
- {
- var _loc2_ = (-235 - this._x) / 2;
- if(Math.abs(_loc2_) < 0.2)
- {
- this._x = -495;
- delete this.onEnterFrame;
- if(this.softToLoad_ID != "")
- {
- this.renderDetail(this.softToLoad_GID,this.softToLoad_ID);
- this.softToLoad_ID = "";
- this.softToLoad_GID = "";
- this.onEnterFrame = mx.utils.Delegate.create(this,this.slideIn);
- }
- }
- else
- {
- this._x += _loc2_;
- }
- };
- _loc2_.slideOutCB = function()
- {
- var _loc2_ = (-235 - this._x) / 2;
- if(Math.abs(_loc2_) < 0.2)
- {
- this._x = -495;
- this.dispatchEvent({type:"onSoftwarePanelHidden"});
- delete this.onEnterFrame;
- }
- else
- {
- this._x += _loc2_;
- }
- };
- _loc2_.handleImageLoading = function()
- {
- var _loc2_ = this.softImage_mc.image_mc.container_mc.getBytesLoaded() / this.softImage_mc.image_mc.container_mc.getBytesTotal() * 100;
- if(_loc2_ == 100)
- {
- this.softImage_mc.image_mc.onEnterFrame = mx.utils.Delegate.create(this,this.fadeInSoftImage);
- }
- };
- _loc2_.fadeInSoftImage = function()
- {
- var _loc2_ = (- this.maskPosY) / 4;
- this.maskPosY += _loc2_;
- this.softImage_mc.mask_mc.clear();
- clickx.util.DrawingUtil.drawRectangle(this.softImage_mc.mask_mc,0,1,0,0,Math.round(this.maskPosY),200,109);
- if(this.maskPosY <= 0)
- {
- delete this.softImage_mc.image_mc.onEnterFrame;
- }
- };
- _loc2_.openLink = function()
- {
- clickx.shell.Shell.getInstance().launchURL(this.link);
- };
- _loc2_.renderDetail = function(groupId, softId)
- {
- this.installBtn_mc._visible = false;
- var _loc2_ = clickx.data.DataProvider.getInstance().getSoftware(groupId,softId);
- var _loc4_ = _loc2_.title;
- var _loc5_ = undefined;
- _loc5_ = this.titel_txt.getNewTextFormat();
- var _loc7_ = _loc5_.getTextExtent(_loc4_);
- this.titel_txt.autoSize = "left";
- this.titel_txt.text = _loc4_;
- this.type_txt.text = "Type: " + _loc2_.type;
- this.type_txt._y = this.titel_txt._y + this.titel_txt.textHeight + 5;
- this.prijs_txt._y = this.type_txt._y + 17;
- this.auteur_txt._y = this.prijs_txt._y + 17;
- this.platform_mc._y = this.auteur_txt._y + 16;
- this.platform_txt._y = this.auteur_txt._y + 22;
- this.content_txt._y = this.auteur_txt._y + 48;
- this.content_txt._height = 117 - (this.auteur_txt._y + 48 - 221);
- this.scroller_mc.scrollUp_mc._y = this.auteur_txt._y + 49 - 222;
- this.scroller_mc.slideArea_mc._y = this.scroller_mc.scrollUp_mc._y + 6;
- this.scroller_mc.slideArea_mc._height = 105 - (this.scroller_mc.scrollUp_mc._y - 1);
- this.scroller_mc.init(this.scroller_mc.scrollUp_mc._y + 19,91);
- this.prijs_txt.text = "Prijs: " + _loc2_.price;
- this.auteur_txt.text = "Auteur: " + _loc2_.author;
- this.platform_txt.text = _loc2_.platforms;
- this.content_txt.htmlText = _loc2_.text;
- this.content_txt.scroll = 0;
- if(this.content_txt.scroll < this.content_txt.maxscroll)
- {
- this.scroller_mc._visible = true;
- }
- else
- {
- this.scroller_mc._visible = false;
- }
- var _loc3_ = _loc2_.url;
- this.softwareLink = _loc2_.link;
- if(_loc3_.length > 45)
- {
- _loc3_ = _loc3_.substr(0,45) + "...";
- }
- this.link_txt.text = _loc3_;
- this.link_txt.autoSize = "left";
- this.link_btn.onPress = mx.utils.Delegate.create(this,this.openLink);
- this.link_btn._width = this.link_txt.textWidth;
- this.installBtn_mc.buttonText_txt.text = _loc2_.buttontext;
- this.link = _loc2_.url;
- this.linkType = _loc2_.buttontype;
- if(this.softImage_mc.image_mc != undefined)
- {
- this.softImage_mc.image_mc.removeMovieClip();
- }
- this.softImage_mc.createEmptyMovieClip("image_mc",1);
- this.softImage_mc.image_mc._y = 7;
- this.softImage_mc.image_mc.createEmptyMovieClip("container_mc",1);
- if(_loc2_.image != undefined && _loc2_.image != "undefined" && _loc2_.image != "")
- {
- if(clickx.util.PlatformUtil.getPlatform() == "pc")
- {
- this.softImage_mc.image_mc.container_mc.loadMovie(clickx.Application.getAppPath() + _loc2_.image);
- }
- else
- {
- this.softImage_mc.image_mc.container_mc.loadMovie(_loc2_.image);
- }
- this.validImage = true;
- }
- else
- {
- this.validImage = false;
- }
- this.softImage_mc.createEmptyMovieClip("mask_mc",2);
- this.maskPosY = 109;
- clickx.util.DrawingUtil.drawRectangle(this.softImage_mc.mask_mc,0,1,0,0,this.maskPosY,200,109);
- this.softImage_mc.image_mc.setMask(this.softImage_mc.mask_mc);
- };
- _loc2_.installSoftware = function()
- {
- var _loc2_ = "";
- if(clickx.util.PlatformUtil.getPlatform() == "mac")
- {
- _loc2_ = clickx.Application.getAppPath(true) + "assets:software:";
- }
- else
- {
- _loc2_ = clickx.Application.getAppPath(true) + "assets\\software\\";
- }
- if(this.linkType == "url")
- {
- clickx.shell.Shell.getInstance().launchURL(this.softwareLink);
- }
- else if(this.linkType == "install")
- {
- clickx.shell.Shell.getInstance().launchFile(_loc2_ + this.softwareLink);
- }
- else
- {
- clickx.shell.Shell.getInstance().execute(_loc2_ + this.softwareLink);
- }
- };
- _loc2_.loadSoftwareInfo = function(groupId, softId)
- {
- if(this._x > -495)
- {
- this.softToLoad_ID = softId;
- this.softToLoad_GID = groupId;
- this.installBtn_mc._visible = false;
- this.onEnterFrame = mx.utils.Delegate.create(this,this.slideOut);
- }
- else
- {
- this.renderDetail(groupId,softId);
- this.onEnterFrame = mx.utils.Delegate.create(this,this.slideIn);
- }
- };
- _loc2_.isOpen = function()
- {
- return this._x <= -495 ? false : true;
- };
- _loc2_.slideOutAndDoCallBack = function()
- {
- this.installBtn_mc._visible = false;
- this.onEnterFrame = mx.utils.Delegate.create(this,this.slideOutCB);
- };
- _loc2_.scrollTextTo = function(percent)
- {
- this.content_txt.scroll = Math.round(this.content_txt.maxscroll / 100 * percent);
- };
- _loc2_.onLoad = function()
- {
- this._x = -495;
- clickx.util.ButtonUtil.makeFrame_R_O_Effect(this.installBtn_mc,5);
- this.installBtn_mc.onPress = mx.utils.Delegate.create(this,this.installSoftware);
- this.installBtn_mc._visible = false;
- this.scroller_mc.addEventListener("onScrollBarChanged",this);
- };
- _loc2_.onScrollBarChanged = function(eventObject)
- {
- this.scrollTextTo(eventObject.scrollTo);
- };
- _loc2_.softToLoad_ID = "";
- _loc2_.softToLoad_GID = "";
- _loc2_.maskPosY = 146;
- _loc2_.link = "";
- _loc2_.linkType = "";
- _loc2_.validImage = false;
- _loc2_.softwareLink = "";
- §§push(ASSetPropFlags(clickx.ui.UISoftwarePanel.prototype,null,1));
- }
- §§pop();
- break;
- }
- if(eval("\x01") == 532)
- {
- set("\x01",eval("\x01") - 270);
- if(§§pop())
- {
- set("\x01",eval("\x01") - 230);
- }
- }
- else
- {
- if(eval("\x01") == 901)
- {
- set("\x01",eval("\x01") - 699);
- break;
- }
- if(eval("\x01") == 262)
- {
- set("\x01",eval("\x01") - 230);
- break;
- }
- if(eval("\x01") != 32)
- {
- break;
- }
- set("\x01",eval("\x01") + 191);
- §§push(true);
- }
- }
- }
- }
-