home *** CD-ROM | disk | FTP | other *** search
- function setBackgroundMask(w, h, bgcolor, asbackground)
- {
- var u = this._url;
- var maskclip;
- if(asbackground == true)
- {
- maskclip = this.createEmptyMovieClip("stagemask",this.getNextHighestDepth());
- }
- else
- {
- maskclip = this.createEmptyMovieClip("offlinemask",16000);
- }
- var bd = new flash.display.BitmapData(w,h,false,bgcolor);
- maskclip.attachBitmap(bd,0);
- if(asbackground == true)
- {
- maskclip.swapDepths(-16000);
- }
- else if(u.substr(0,4) == "file" || u.substr(-4,4) == ".swf")
- {
- this.setMask(maskclip);
- }
- }
- function urlHandler(obj, item)
- {
- getUrl("http://www.pastelgames.com", "");
- }
- function commentsHandler(obj, item)
- {
- getURL("http://www.pastelgames.com/index.php?dzial=comments&co=game&id=" + this.gameId,"");
- }
- function qualityHandler(obj, item)
- {
- if(_quality == "LOW")
- {
- mHQ.customItems[2] = new ContextMenuItem(" Quality: toggle to LOW",qualityHandler);
- mHQ.customItems[2].separatorBefore = true;
- _quality = "HIGH";
- }
- else
- {
- mHQ.customItems[2] = new ContextMenuItem("Quality: toggle to HIGH",qualityHandler);
- mHQ.customItems[2].separatorBefore = true;
- _quality = "LOW";
- }
- this.menu = mHQ;
- }
- function setContextMenu()
- {
- mHQ.hideBuiltInItems();
- mHQ.customItems[0] = new ContextMenuItem("© pastelgames.com",urlHandler);
- mHQ.customItems[1] = new ContextMenuItem("all rights reserved",urlHandler);
- mHQ.customItems[1].enabled = false;
- mHQ.customItems[2] = new ContextMenuItem("Quality: toggle to LOW",qualityHandler);
- mHQ.customItems[2].separatorBefore = true;
- this.menu = mHQ;
- }
- function load_oEF()
- {
- var gBL = this.getBytesLoaded();
- var gBT = this.getBytesTotal();
- var p = gBL / gBT;
- blend._y = flame.getBounds(this).yMax - flame._height * p;
- percents = Math.round(100 * p) + " %";
- if(gBL >= gBT && gBT > 123)
- {
- setBackgroundMask(550,420,6554114,true);
- this.stagemask.swapDepths(0);
- delete this.onEnterFrame;
- this.gotoAndStop("library");
- }
- }
- var mHQ = new ContextMenu();
- Stage.scaleMode = "noScale";
- getURL("FSCommand:trapallkeys",true);
- getURL("FSCommand:fullscreen",true);
- Button.prototype.tabEnabled = false;
- MovieClip.prototype.tabEnabled = false;
- setBackgroundMask(550,420,0);
- setContextMenu();
- var gameId = "venus";
- var gameName = "Mission To Venus";
- var gameYear = "2008";
- var mochiNumbers = ["6922f8ae"];
- var externalId = "agame.com";
- var percents = "0 %";
- percentsTXT.swapDepths(101);
- percentsTXTshadow.swapDepths(100);
- loadtxtMC.swapDepths(102);
- this.onEnterFrame = load_oEF;
-