Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function openCutScene(F)
- {
- if (F + "" == "")
- {
- eval("/:cutScene").cutSceneFile = "";
- eval("/:cutScene").gotoAndStop(1);
- }
- else
- {
- eval("/:cutScene").cutSceneFile = "cutScenes/" + F;
- eval("/:cutScene").gotoAndStop("playCut");
- } // end else if
- } // End of the function
- function openInventory(currentObject, Type, useWith)
- {
- eval("/:Inventory").currentObject = currentObject;
- eval("/:Inventory").useWith = useWith;
- if (Type + "" == "")
- {
- Type = "All";
- } // end if
- eval("/:Inventory").gotoAndPlay(2);
- } // End of the function
- function closeInventory()
- {
- eval("/:Inventory").Close = true;
- eval("/:Inventory").currentObject = "";
- eval("/:Inventory").useWith = null;
- if (eval("/:Inventory")._currentframe > 1)
- {
- eval("/:Inventory").gotoAndPlay(4);
- } // end if
- } // End of the function
- function speachBubbleOpen(theText, X, Y, Animate, Timer)
- {
- removeMovieClip ("speachBubble");
- attachMovie("speachBubbleMov", "speachBubble", 2, {X: X, Y: Y, Message: theText, Animate: Animate, Timer: Timer});
- } // End of the function
- function speachBubbleClose()
- {
- eval("/:speachBubble").removeBubble();
- } // End of the function
- function inUseOpen(URL, Item)
- {
- removeMovieClip ("inUse");
- /:attachMovie("inUse", "inUse", 3);
- eval("/:inUse").URL = URL;
- eval("/:inUse")._x = 3;
- eval("/:inUse")._y = 190;
- eval("/:inUse").inUse = Item;
- } // End of the function
- function inUseClose()
- {
- inUse.play();
- } // End of the function
- function binoculars(switchon, Force, forceFrame)
- {
- if (Force)
- {
- /:binsOn = false;
- eval("/:bottomBar").Bins.gotoAndStop(1);
- eval("/:Bins").removeMovieClip("");
- var zL = eval("/:Scene").zoomItems.length;
- var n = 0;
- while (n < zL)
- {
- eval("_root.Scene." + eval("/:Scene").zoomItems[n])._visible = false;
- eval("_root.Scene." + eval("/:Scene").unzoomItems[n])._visible = true;
- ++n;
- } // end while
- delete n;
- delete zL;
- if (forceFrame)
- {
- /:gotoAndStop("bOff");
- } // end if
- }
- else if (switchon)
- {
- /:binsOn = true;
- var zL = eval("/:Scene").zoomItems.length;
- var n = 0;
- while (n < zL)
- {
- eval("_root.Scene." + eval("/:Scene").zoomItems[n])._visible = true;
- eval("_root.Scene." + eval("/:Scene").unzoomItems[n])._visible = false;
- ++n;
- } // end while
- delete n;
- delete zL;
- /:attachMovie("Binoculars", "Bins", 1);
- eval("/:bottomBar").Bins.gotoAndStop(2);
- }
- else
- {
- /:binsOn = false;
- var zL = eval("/:Scene").zoomItems.length;
- var n = 0;
- while (n < zL)
- {
- eval("_root.Scene." + eval("/:Scene").zoomItems[n])._visible = false;
- eval("_root.Scene." + eval("/:Scene").unzoomItems[n])._visible = true;
- ++n;
- } // end while
- delete n;
- delete zL;
- eval("/:Bins").gotoAndPlay(8);
- eval("/:bottomBar").Bins.gotoAndStop(1);
- } // end else if
- } // End of the function
- function killButtons(K)
- {
- if (K)
- {
- /:attachMovie("KillButtonsMov", "KButts", 2);
- KButts._x = 0;
- KButts._y = 0;
- }
- else
- {
- KButts.removeMovieClip("");
- /:removeMovieClip("KButts");
- } // end else if
- } // End of the function
- function stopPan(Stop, Buttons)
- {
- if (Stop)
- {
- /:Pan = false;
- /:xTSpeed = 0;
- /:yTSpeed = 0;
- if (Buttons)
- {
- /:killButtons(true);
- } // end if
- }
- else
- {
- /:Pan = true;
- if (Buttons)
- {
- /:killButtons(false);
- } // end if
- } // end else if
- } // End of the function
- function displayDescription(D)
- {
- if (D == 0)
- {
- eval("/:bottomBar").Hand.gotoAndStop(1);
- eval("/:bottomBar").Hand.handText = "";
- }
- else
- {
- eval("/:bottomBar").Hand.gotoAndStop(2);
- eval("/:bottomBar").Hand.handText = D;
- } // end else if
- } // End of the function
- function backButton(switchOn)
- {
- eval("/:bottomBar").backButton.gotoAndStop(switchOn + 1);
- } // End of the function
- function popUp(URL, N, sW)
- {
- fscommand("openWindow");
- } // End of the function
- function panTo(X, Y, theObj, endFunction, theSpeed)
- {
- /:panToCount = theSpeed < 1 ? (60) : (theSpeed);
- /:stopPan(true, true);
- Accel = 20;
- if (getProperty("/", _currentframe) > 140)
- {
- timesBy = 2;
- }
- else
- {
- timesBy = 1;
- } // end else if
- /:xDif = X * timesBy - eval("/:Scene").scene.X;
- /:yDif = Y * timesBy - eval("/:Scene").scene.Y;
- /:xSpeed = /:xTSpeed = 0;
- /:setXSpeed = eval("/:xDif") / eval("/:panToCount");
- /:ySpeed = /:yTSpeed = 0;
- /:setYSpeed = eval("/:yDif") / eval("/:panToCount");
- /:panToCount = eval("/:panToCount") + 2;
- /:timesSpeedBy = 1;
- theObj.endFunction = endFunction;
- theObj.onEnterFrame = function ()
- {
- /:panToCount = --eval("/:panToCount");
- switch (eval("/:panToCount"))
- {
- case 2:
- {
- /:timesSpeedBy = 0.500000;
- break;
- }
- case 1:
- {
- /:timesSpeedBy = 1 / 3;
- break;
- }
- case 0:
- {
- /:timesSpeedBy = 1 / 6;
- break;
- }
- } // End of switch
- /:xSpeed = /:xTSpeed = eval("/:setXSpeed") * eval("/:timesSpeedBy");
- /:ySpeed = /:yTSpeed = eval("/:setYSpeed") * eval("/:timesSpeedBy");
- if (eval("/:panToCount") < 0)
- {
- Accel = 6;
- /:xTSpeed = /:xSpeed = 0;
- /:yTSpeed = /:ySpeed = 0;
- delete /:setXSpeed;
- delete /:setXSpeed;
- delete this.onEnterFrame;
- /:stopPan(false, true);
- this[endFunction]();
- } // end if
- };
- } // End of the function
- function mapMonkeyOpen()
- {
- if (typeof(eval("/:mapMonkey")) == "movieclip")
- {
- eval("/:mapMonkey").gotoAndPlay(7);
- }
- else
- {
- eval("/:mapMonkey").removeMovieClip("");
- /:attachMovie("mapMonkey", "mapMonkey", 6);
- eval("/:mapMonkey")._x = 0;
- eval("/:mapMonkey")._y = 0;
- if (typeof(eval("/:Scene2")) == "movieclip")
- {
- eval("/:Scene2").removeMovieClip("");
- } // end if
- } // end else if
- } // End of the function
- function loadShopDetails(ID)
- {
- createEmptyMovieClip("shop", 80);
- if (ID > 0)
- {
- shop.loadMovie("XML3.swf", "");
- /:shopID = ID;
- }
- else
- {
- shop.loadMovie("ShopSelection.swf", "");
- } // end else if
- } // End of the function
- function gameLinksOpen()
- {
- if (typeof(eval("/:gameLinks")) == "movieclip")
- {
- eval("/:gameLinks").gotoAndPlay(5);
- }
- else
- {
- /:removeMovieClip("gameLinks");
- /:attachMovie("gameLinks", "gameLinks", 5);
- eval("/:gameLinks")._x = 489;
- eval("/:gameLinks")._y = 36;
- } // end else if
- } // End of the function
- function quickLinksOpen()
- {
- if (typeof(eval("/:quickLinks")) == "movieclip")
- {
- eval("/:quickLinks").gotoAndPlay(5);
- }
- else
- {
- /:removeMovieClip("quickLinks");
- /:attachMovie("quickLinks", "quickLinks", 5);
- eval("/:quickLinks")._x = 489;
- eval("/:quickLinks")._y = 36;
- } // end else if
- } // End of the function
- function quickLinksClose()
- {
- eval("/:quickLinks").gotoAndPlay(5);
- eval("/:gameLinks").gotoAndPlay(5);
- } // End of the function
- function sendToAFriend(XPos, YPos, URL, Name)
- {
- /:attachMovie("sTAF", "sTAF", 10);
- sTAF._x = XPos;
- sTAF._y = YPos;
- sTAF.sendURL = URL;
- sTAF.sendName = Name;
- } // End of the function
- function infoWindow(fileName)
- {
- /:removeMovieClip("infoWindowObj");
- /:attachMovie("infoWindow", "infoWindowObj", 5);
- eval("/:infoWindowObj")._x = 0;
- eval("/:infoWindowObj")._y = 0;
- eval("/:infoWindowObj").fileName = fileName;
- } // End of the function
- function filterString(Str, Filter)
- {
- if (Filter + "" == "")
- {
- Filter = "qwertyuiopasdfghjklzxcvbnm1234567890";
- } // end if
- var lC = Str.toLowerCase();
- var lCL = lC.length;
- for (lCN = 0; lCN < lCL; lCN++)
- {
- if (Filter.indexOf(lC.charAt(lCN)) == -1)
- {
- var tempLC = lC.substring(0, lCN);
- tempLC = tempLC + lC.substring(lCN + 1, lCL);
- lC = tempLC;
- delete tempLC;
- --lCL;
- --lCN;
- } // end if
- } // end of for
- return (lC);
- } // End of the function
- function checkBasket(success)
- {
- if (success)
- {
- saveBasket(true, this.firstChild.childNodes[0].childNodes[0].nodeValue);
- delete basketXML;
- }
- else if (typeof(basketXML) != "object")
- {
- basketXML = new XML();
- basketXML.ignoreWhite = true;
- basketXML.onLoad = checkBasket;
- basketXML.load("https://web.archive.org/web/20110517190649/http://www.gorillazshop.com/stock.aspx?count=1&rand=" + getTimer());
- } // end else if
- } // End of the function
- function saveBasket(Save, Count)
- {
- var SO = SharedObject.getLocal("Gorillaz");
- if (Save)
- {
- /:Basket = Count;
- SO.data.Basket = {Count: Count};
- SO.flush();
- }
- else
- {
- /:Basket = SO.data.Basket.Count;
- } // end else if
- delete SO;
- } // End of the function
- function getOS()
- {
- var os = System.capabilities.os;
- if (os.indexOf("Mac") > -1)
- {
- vendor = "Mac";
- V = os.substring(7, os.length);
- V = V.split(".")[0];
- }
- else
- {
- vendor = "PC";
- V = os.split(" ")[1];
- } // end else if
- return ({N: vendor, V: V});
- } // End of the function
- siteAddress = "http://p2kongstudios.000webhostapp.com/PHP/";
- infoColour = "#FFC70D";
- quickLinksArray = new Array({Folder: "Russel", Name: "Russels Room", URL: "Russel", Icon: "Russel", Description: "Russel\'s Room", Type: "Scene"}, {Folder: "2D", Name: "2Ds Room", URL: "2D", Icon: "2D", Description: "2Ds room", Type: "Scene"}, {Folder: "Carpark", Name: "Murdocs Room", URL: "g_carpark", Icon: "Murdoc", Description: "Murdoc\'s Room", Type: "Scene"}, {Folder: "Noodle", Name: "Noodles Room", URL: "Noodle", Icon: "Noodle", Description: "Noodles Room", Type: "Scene"}, {Folder: "S4AS", Name: "Search for a star", URL: "s4as", Icon: "s4as", Description: "Search For A Star Auditions Room", Type: "Scene"}, {Folder: "", URL: "http://forums.gorillaz.com", Icon: "Forum", Description: "Visit The Message Board", Type: "Link"}, {Folder: "", Name: "2Ds Computer", URL: "comp2d", Icon: "PC", Description: "2Ds Computer", Type: "Item"}, {Folder: "", Name: "Murdocs Computer", URL: "compmurdoc", Icon: "Laptop", Description: "Murdocs Computer", Type: "Item"}, {Folder: "", Name: "Noodles Computer", URL: "compnoodle", Icon: "Mac", Description: "Noodles Computer", Type: "Item"}, {Folder: "", Name: "Russels Computer", URL: "comprussel", Icon: "Atari", Description: "Russels Computer", Type: "Item"});
- gameLinksArray = new Array({Folder: "", URL: "http://p2kongstudios.000webhostapp.com/o/shootingRange/index.html", Icon: "shootingrange", Description: "Shooting Range", Type: "Link"}, {Folder: "", Name: "Pong", URL: "pong", Icon: "pong", Description: "Pong", Type: "Item"}, {Folder: "", Name: "Helly drop", URL: "hellydrop", Icon: "hellydrop", Description: "Hellydrop", Type: "Item"}, {Folder: "", Name: "Mahjong", URL: "mahjong", Icon: "mahjong", Description: "Mahjong", Type: "Item"}, {Folder: "", Name: "Attache", URL: "attache", Icon: "attache", Description: "Attache", Type: "Item"}, {Folder: "", Name: "Potato", URL: "potato", Icon: "potato", Description: "Potato Game", Type: "Item"}, {Folder: "", Name: "Darts", URL: "darts", Icon: "darts", Description: "Darts", Type: "Item"}, {Folder: "", Name: "Russel Says", URL: "russelSays", Icon: "russelsays", Description: "Russel Says", Type: "Item"}, {Folder: "", Name: "Froggaz", URL: "Froggaz", Icon: "Froggaz", Description: "Froggaz", Type: "Item"});
- Res = System.capabilities.screenResolutionX > 800;
- mediaURL = "http://exodus.interoutemediaservices.com/deliverMedia.asp?id=";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement