Advertisement
Guest User

Untitled

a guest
Nov 7th, 2017
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.46 KB | None | 0 0
  1. function openCutScene(F)
  2. {
  3. if (F + "" == "")
  4. {
  5. eval("/:cutScene").cutSceneFile = "";
  6. eval("/:cutScene").gotoAndStop(1);
  7. }
  8. else
  9. {
  10. eval("/:cutScene").cutSceneFile = "cutScenes/" + F;
  11. eval("/:cutScene").gotoAndStop("playCut");
  12. } // end else if
  13. } // End of the function
  14. function openInventory(currentObject, Type, useWith)
  15. {
  16. eval("/:Inventory").currentObject = currentObject;
  17. eval("/:Inventory").useWith = useWith;
  18. if (Type + "" == "")
  19. {
  20. Type = "All";
  21. } // end if
  22. eval("/:Inventory").gotoAndPlay(2);
  23. } // End of the function
  24. function closeInventory()
  25. {
  26. eval("/:Inventory").Close = true;
  27. eval("/:Inventory").currentObject = "";
  28. eval("/:Inventory").useWith = null;
  29. if (eval("/:Inventory")._currentframe > 1)
  30. {
  31. eval("/:Inventory").gotoAndPlay(4);
  32. } // end if
  33. } // End of the function
  34. function speachBubbleOpen(theText, X, Y, Animate, Timer)
  35. {
  36. removeMovieClip ("speachBubble");
  37. attachMovie("speachBubbleMov", "speachBubble", 2, {X: X, Y: Y, Message: theText, Animate: Animate, Timer: Timer});
  38. } // End of the function
  39. function speachBubbleClose()
  40. {
  41. eval("/:speachBubble").removeBubble();
  42. } // End of the function
  43. function inUseOpen(URL, Item)
  44. {
  45. removeMovieClip ("inUse");
  46. /:attachMovie("inUse", "inUse", 3);
  47. eval("/:inUse").URL = URL;
  48. eval("/:inUse")._x = 3;
  49. eval("/:inUse")._y = 190;
  50. eval("/:inUse").inUse = Item;
  51. } // End of the function
  52. function inUseClose()
  53. {
  54. inUse.play();
  55. } // End of the function
  56. function binoculars(switchon, Force, forceFrame)
  57. {
  58. if (Force)
  59. {
  60. /:binsOn = false;
  61. eval("/:bottomBar").Bins.gotoAndStop(1);
  62. eval("/:Bins").removeMovieClip("");
  63. var zL = eval("/:Scene").zoomItems.length;
  64. var n = 0;
  65. while (n < zL)
  66. {
  67. eval("_root.Scene." + eval("/:Scene").zoomItems[n])._visible = false;
  68. eval("_root.Scene." + eval("/:Scene").unzoomItems[n])._visible = true;
  69. ++n;
  70. } // end while
  71. delete n;
  72. delete zL;
  73. if (forceFrame)
  74. {
  75. /:gotoAndStop("bOff");
  76. } // end if
  77. }
  78. else if (switchon)
  79. {
  80. /:binsOn = true;
  81. var zL = eval("/:Scene").zoomItems.length;
  82. var n = 0;
  83. while (n < zL)
  84. {
  85. eval("_root.Scene." + eval("/:Scene").zoomItems[n])._visible = true;
  86. eval("_root.Scene." + eval("/:Scene").unzoomItems[n])._visible = false;
  87. ++n;
  88. } // end while
  89. delete n;
  90. delete zL;
  91. /:attachMovie("Binoculars", "Bins", 1);
  92. eval("/:bottomBar").Bins.gotoAndStop(2);
  93. }
  94. else
  95. {
  96. /:binsOn = false;
  97. var zL = eval("/:Scene").zoomItems.length;
  98. var n = 0;
  99. while (n < zL)
  100. {
  101. eval("_root.Scene." + eval("/:Scene").zoomItems[n])._visible = false;
  102. eval("_root.Scene." + eval("/:Scene").unzoomItems[n])._visible = true;
  103. ++n;
  104. } // end while
  105. delete n;
  106. delete zL;
  107. eval("/:Bins").gotoAndPlay(8);
  108. eval("/:bottomBar").Bins.gotoAndStop(1);
  109. } // end else if
  110. } // End of the function
  111. function killButtons(K)
  112. {
  113. if (K)
  114. {
  115. /:attachMovie("KillButtonsMov", "KButts", 2);
  116. KButts._x = 0;
  117. KButts._y = 0;
  118. }
  119. else
  120. {
  121. KButts.removeMovieClip("");
  122. /:removeMovieClip("KButts");
  123. } // end else if
  124. } // End of the function
  125. function stopPan(Stop, Buttons)
  126. {
  127. if (Stop)
  128. {
  129. /:Pan = false;
  130. /:xTSpeed = 0;
  131. /:yTSpeed = 0;
  132. if (Buttons)
  133. {
  134. /:killButtons(true);
  135. } // end if
  136. }
  137. else
  138. {
  139. /:Pan = true;
  140. if (Buttons)
  141. {
  142. /:killButtons(false);
  143. } // end if
  144. } // end else if
  145. } // End of the function
  146. function displayDescription(D)
  147. {
  148. if (D == 0)
  149. {
  150. eval("/:bottomBar").Hand.gotoAndStop(1);
  151. eval("/:bottomBar").Hand.handText = "";
  152. }
  153. else
  154. {
  155. eval("/:bottomBar").Hand.gotoAndStop(2);
  156. eval("/:bottomBar").Hand.handText = D;
  157. } // end else if
  158. } // End of the function
  159. function backButton(switchOn)
  160. {
  161. eval("/:bottomBar").backButton.gotoAndStop(switchOn + 1);
  162. } // End of the function
  163. function popUp(URL, N, sW)
  164. {
  165. fscommand("openWindow");
  166. } // End of the function
  167. function panTo(X, Y, theObj, endFunction, theSpeed)
  168. {
  169. /:panToCount = theSpeed < 1 ? (60) : (theSpeed);
  170. /:stopPan(true, true);
  171. Accel = 20;
  172. if (getProperty("/", _currentframe) > 140)
  173. {
  174. timesBy = 2;
  175. }
  176. else
  177. {
  178. timesBy = 1;
  179. } // end else if
  180. /:xDif = X * timesBy - eval("/:Scene").scene.X;
  181. /:yDif = Y * timesBy - eval("/:Scene").scene.Y;
  182. /:xSpeed = /:xTSpeed = 0;
  183. /:setXSpeed = eval("/:xDif") / eval("/:panToCount");
  184. /:ySpeed = /:yTSpeed = 0;
  185. /:setYSpeed = eval("/:yDif") / eval("/:panToCount");
  186. /:panToCount = eval("/:panToCount") + 2;
  187. /:timesSpeedBy = 1;
  188. theObj.endFunction = endFunction;
  189. theObj.onEnterFrame = function ()
  190. {
  191. /:panToCount = --eval("/:panToCount");
  192. switch (eval("/:panToCount"))
  193. {
  194. case 2:
  195. {
  196. /:timesSpeedBy = 0.500000;
  197. break;
  198. }
  199. case 1:
  200. {
  201. /:timesSpeedBy = 1 / 3;
  202. break;
  203. }
  204. case 0:
  205. {
  206. /:timesSpeedBy = 1 / 6;
  207. break;
  208. }
  209. } // End of switch
  210. /:xSpeed = /:xTSpeed = eval("/:setXSpeed") * eval("/:timesSpeedBy");
  211. /:ySpeed = /:yTSpeed = eval("/:setYSpeed") * eval("/:timesSpeedBy");
  212. if (eval("/:panToCount") < 0)
  213. {
  214. Accel = 6;
  215. /:xTSpeed = /:xSpeed = 0;
  216. /:yTSpeed = /:ySpeed = 0;
  217. delete /:setXSpeed;
  218. delete /:setXSpeed;
  219. delete this.onEnterFrame;
  220. /:stopPan(false, true);
  221. this[endFunction]();
  222.  
  223. } // end if
  224. };
  225. } // End of the function
  226. function mapMonkeyOpen()
  227. {
  228. if (typeof(eval("/:mapMonkey")) == "movieclip")
  229. {
  230. eval("/:mapMonkey").gotoAndPlay(7);
  231. }
  232. else
  233. {
  234. eval("/:mapMonkey").removeMovieClip("");
  235. /:attachMovie("mapMonkey", "mapMonkey", 6);
  236. eval("/:mapMonkey")._x = 0;
  237. eval("/:mapMonkey")._y = 0;
  238. if (typeof(eval("/:Scene2")) == "movieclip")
  239. {
  240. eval("/:Scene2").removeMovieClip("");
  241. } // end if
  242. } // end else if
  243. } // End of the function
  244. function loadShopDetails(ID)
  245. {
  246. createEmptyMovieClip("shop", 80);
  247. if (ID > 0)
  248. {
  249. shop.loadMovie("XML3.swf", "");
  250. /:shopID = ID;
  251. }
  252. else
  253. {
  254. shop.loadMovie("ShopSelection.swf", "");
  255. } // end else if
  256. } // End of the function
  257. function gameLinksOpen()
  258. {
  259. if (typeof(eval("/:gameLinks")) == "movieclip")
  260. {
  261. eval("/:gameLinks").gotoAndPlay(5);
  262. }
  263. else
  264. {
  265. /:removeMovieClip("gameLinks");
  266. /:attachMovie("gameLinks", "gameLinks", 5);
  267. eval("/:gameLinks")._x = 489;
  268. eval("/:gameLinks")._y = 36;
  269. } // end else if
  270. } // End of the function
  271. function quickLinksOpen()
  272. {
  273. if (typeof(eval("/:quickLinks")) == "movieclip")
  274. {
  275. eval("/:quickLinks").gotoAndPlay(5);
  276. }
  277. else
  278. {
  279. /:removeMovieClip("quickLinks");
  280. /:attachMovie("quickLinks", "quickLinks", 5);
  281. eval("/:quickLinks")._x = 489;
  282. eval("/:quickLinks")._y = 36;
  283. } // end else if
  284. } // End of the function
  285. function quickLinksClose()
  286. {
  287. eval("/:quickLinks").gotoAndPlay(5);
  288. eval("/:gameLinks").gotoAndPlay(5);
  289. } // End of the function
  290. function sendToAFriend(XPos, YPos, URL, Name)
  291. {
  292. /:attachMovie("sTAF", "sTAF", 10);
  293. sTAF._x = XPos;
  294. sTAF._y = YPos;
  295. sTAF.sendURL = URL;
  296. sTAF.sendName = Name;
  297. } // End of the function
  298. function infoWindow(fileName)
  299. {
  300. /:removeMovieClip("infoWindowObj");
  301. /:attachMovie("infoWindow", "infoWindowObj", 5);
  302. eval("/:infoWindowObj")._x = 0;
  303. eval("/:infoWindowObj")._y = 0;
  304. eval("/:infoWindowObj").fileName = fileName;
  305. } // End of the function
  306. function filterString(Str, Filter)
  307. {
  308. if (Filter + "" == "")
  309. {
  310. Filter = "qwertyuiopasdfghjklzxcvbnm1234567890";
  311. } // end if
  312. var lC = Str.toLowerCase();
  313. var lCL = lC.length;
  314. for (lCN = 0; lCN < lCL; lCN++)
  315. {
  316. if (Filter.indexOf(lC.charAt(lCN)) == -1)
  317. {
  318. var tempLC = lC.substring(0, lCN);
  319. tempLC = tempLC + lC.substring(lCN + 1, lCL);
  320. lC = tempLC;
  321. delete tempLC;
  322. --lCL;
  323. --lCN;
  324. } // end if
  325. } // end of for
  326. return (lC);
  327. } // End of the function
  328. function checkBasket(success)
  329. {
  330. if (success)
  331. {
  332. saveBasket(true, this.firstChild.childNodes[0].childNodes[0].nodeValue);
  333. delete basketXML;
  334. }
  335. else if (typeof(basketXML) != "object")
  336. {
  337. basketXML = new XML();
  338. basketXML.ignoreWhite = true;
  339. basketXML.onLoad = checkBasket;
  340. basketXML.load("https://web.archive.org/web/20110517190649/http://www.gorillazshop.com/stock.aspx?count=1&rand=" + getTimer());
  341. } // end else if
  342. } // End of the function
  343. function saveBasket(Save, Count)
  344. {
  345. var SO = SharedObject.getLocal("Gorillaz");
  346. if (Save)
  347. {
  348. /:Basket = Count;
  349. SO.data.Basket = {Count: Count};
  350. SO.flush();
  351. }
  352. else
  353. {
  354. /:Basket = SO.data.Basket.Count;
  355. } // end else if
  356. delete SO;
  357. } // End of the function
  358. function getOS()
  359. {
  360. var os = System.capabilities.os;
  361. if (os.indexOf("Mac") > -1)
  362. {
  363. vendor = "Mac";
  364. V = os.substring(7, os.length);
  365. V = V.split(".")[0];
  366. }
  367. else
  368. {
  369. vendor = "PC";
  370. V = os.split(" ")[1];
  371. } // end else if
  372. return ({N: vendor, V: V});
  373. } // End of the function
  374. siteAddress = "http://p2kongstudios.000webhostapp.com/PHP/";
  375. infoColour = "#FFC70D";
  376. 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"});
  377. 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"});
  378. Res = System.capabilities.screenResolutionX > 800;
  379. mediaURL = "http://exodus.interoutemediaservices.com/deliverMedia.asp?id=";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement