STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
232192
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2631 · P5262

<div style="position:absolute;top:-99px;left:-99px;"><img src="https://tools.swfchan.com/stathit.asp?noj=FRM92362667-15DC&rnd=92362667" width="1" height="1"></div>

armorgames bars-of-black-and-wh-3313.swf

This is the info page for
Flash #263043

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS3]
Section 1
//Inventory (Data.Inventory) package Data { import Interface.*; import flash.display.*; public class Inventory extends Sprite { private var items:Array; private var activeItem:int;// = -1 public function Inventory(){ items = new Array(); } private function realign():void{ var _local1:int; while (_local1 < items.length) { items[_local1].x = (_local1 * 48); _local1++; }; } public function addItem(_arg1:InventoryIcon):void{ items.push(_arg1); realign(); this.addChild(_arg1); trace(("added " + _arg1)); } public function activate(_arg1:InventoryIcon):void{ activeItem = items.indexOf(_arg1); var _local2:int; while (_local2 < items.length) { if (items[_local2] == _arg1){ items[_local2].isActive = true; } else { items[_local2].isActive = false; }; _local2++; }; } public function deactivate():void{ items[activeItem].isActive = false; activeItem = -1; } public function removeActiveItem():void{ Cursor.deactivateInventory(); this.removeChild(items[activeItem]); items.splice(activeItem, 1); activeItem = -1; realign(); } } }//package Data
Section 2
//NavNode (Data.NavNode) package Data { import flash.display.*; public class NavNode extends Node { public var bmSouth:Bitmap; public var hotspotsWest:Array; public var nodeWest:int; public var bmWest:Bitmap; public var nodeEast:int; public var hotspotsEast:Array; public var nodeNorth:int; public var bmEast:Bitmap; public var hotspotsSouth:Array; public var nodeSouth:int; public var hotspotsNorth:Array; public var bmNorth:Bitmap; public function NavNode(_arg1:Class, _arg2:Class, _arg3:Class, _arg4:Class, _arg5:int, _arg6:int, _arg7:int, _arg8:int){ hotspotsNorth = new Array(); hotspotsSouth = new Array(); hotspotsEast = new Array(); hotspotsWest = new Array(); super(); bmNorth = new (_arg1); bmSouth = new (_arg2); bmEast = new (_arg3); bmWest = new (_arg4); nodeNorth = _arg5; nodeSouth = _arg6; nodeEast = _arg7; nodeWest = _arg8; } public function nodeTo(_arg1:int):int{ switch (_arg1){ case Main.NORTH: return (nodeNorth); case Main.SOUTH: return (nodeSouth); case Main.EAST: return (nodeEast); case Main.WEST: return (nodeWest); default: return (-1); }; } public function bmTo(_arg1:int):Bitmap{ switch (_arg1){ case Main.NORTH: return (bmNorth); case Main.SOUTH: return (bmSouth); case Main.EAST: return (bmEast); case Main.WEST: return (bmWest); default: return (null); }; } public function hotspotsTo(_arg1:int):Array{ switch (_arg1){ case Main.NORTH: return (hotspotsNorth); case Main.SOUTH: return (hotspotsSouth); case Main.EAST: return (hotspotsEast); case Main.WEST: return (hotspotsWest); default: return (null); }; } } }//package Data
Section 3
//Node (Data.Node) package Data { public class Node { } }//package Data
Section 4
//NodeFactory (Data.NodeFactory) package Data { import flash.events.*; import Interface.*; import flash.media.*; public class NodeFactory { public static const totalBarcodes:int = 30; private static const sndMail:Sound = (new clsMail() as Sound); private static const sndWallBreak:Sound = (new clsWallBreak() as Sound); private static var clsMail:Class = NodeFactory_clsMail; private static var sprHouseKey:Class = NodeFactory_sprHouseKey; private static var bgNode6S:Class = NodeFactory_bgNode6S; private static var sprSmallPanelCover:Class = NodeFactory_sprSmallPanelCover; private static var bgNode12S:Class = NodeFactory_bgNode12S; private static var bgNode11S:Class = NodeFactory_bgNode11S; private static var bgNode6W:Class = NodeFactory_bgNode6W; private static var bgNode7E:Class = NodeFactory_bgNode7E; private static var sprLampshadeTurned:Class = NodeFactory_sprLampshadeTurned; private static var bgNode7N:Class = NodeFactory_bgNode7N; private static var bgNode7S:Class = NodeFactory_bgNode7S; private static var bgNode10W:Class = NodeFactory_bgNode10W; private static var bgNode7W:Class = NodeFactory_bgNode7W; private static var bgNode12N:Class = NodeFactory_bgNode12N; private static var bgNode13E:Class = NodeFactory_bgNode13E; private static var bgNode13N:Class = NodeFactory_bgNode13N; private static var bgNode13W:Class = NodeFactory_bgNode13W; private static var bgNode12W:Class = NodeFactory_bgNode12W; private static var sprBatteries:Class = NodeFactory_sprBatteries; private static var bgNode13S:Class = NodeFactory_bgNode13S; private static var bgNode14E:Class = NodeFactory_bgNode14E; private static var bgNode0E:Class = NodeFactory_bgNode0E; private static var sprBigPanelCoverKeyhole:Class = NodeFactory_sprBigPanelCoverKeyhole; private static var bgNode0N:Class = NodeFactory_bgNode0N; private static var bgNode14S:Class = NodeFactory_bgNode14S; private static var bgNode0S:Class = NodeFactory_bgNode0S; private static var clsWallBreak:Class = NodeFactory_clsWallBreak; private static var sprEnvelopeTiny:Class = NodeFactory_sprEnvelopeTiny; private static var bgNode14W:Class = NodeFactory_bgNode14W; private static var bgNode0W:Class = NodeFactory_bgNode0W; private static var bgNode19:Class = NodeFactory_bgNode19; private static var bgNode9E:Class = NodeFactory_bgNode9E; private static var bgNode1E:Class = NodeFactory_bgNode1E; private static var bgNode9N:Class = NodeFactory_bgNode9N; public static var INVENTORY:Inventory = new Inventory(); private static var sprWallBarcode:Class = NodeFactory_sprWallBarcode; private static var sprEnvelopeSmall:Class = NodeFactory_sprEnvelopeSmall; private static var bgNode1N:Class = NodeFactory_bgNode1N; private static var bgNode9W:Class = NodeFactory_bgNode9W; private static var bgNode9S:Class = NodeFactory_bgNode9S; private static var bgNode1S:Class = NodeFactory_bgNode1S; private static var bgNode1W:Class = NodeFactory_bgNode1W; private static var bgNode16:Class = NodeFactory_bgNode16; private static var bgNode17:Class = NodeFactory_bgNode17; private static var bgNode14N:Class = NodeFactory_bgNode14N; private static var bgNode2E:Class = NodeFactory_bgNode2E; private static var bgNode18:Class = NodeFactory_bgNode18; private static var sprWallHole:Class = NodeFactory_sprWallHole; private static var bgNode2N:Class = NodeFactory_bgNode2N; private static var sprBigPanelCover:Class = NodeFactory_sprBigPanelCover; private static var bgNode2S:Class = NodeFactory_bgNode2S; private static var bgNode2W:Class = NodeFactory_bgNode2W; private static var bgNode3E:Class = NodeFactory_bgNode3E; public static var NODES:Array = getNodes(); private static var bgNode3N:Class = NodeFactory_bgNode3N; private static var sprEnvelope:Class = NodeFactory_sprEnvelope; private static var bgNode3S:Class = NodeFactory_bgNode3S; private static var bgNode3W:Class = NodeFactory_bgNode3W; private static var sprCube:Class = NodeFactory_sprCube; private static var sprBaseballBat:Class = NodeFactory_sprBaseballBat; private static var bgNode4E:Class = NodeFactory_bgNode4E; private static var bgNode4N:Class = NodeFactory_bgNode4N; private static var sprBattCover:Class = NodeFactory_sprBattCover; private static var bgNode4S:Class = NodeFactory_bgNode4S; private static var bgNode4W:Class = NodeFactory_bgNode4W; private static var bgNode10S:Class = NodeFactory_bgNode10S; private static var sprSmallBarcode:Class = NodeFactory_sprSmallBarcode; private static var bgNode10N:Class = NodeFactory_bgNode10N; private static var sprElectricKnife:Class = NodeFactory_sprElectricKnife; private static var sprOldKey:Class = NodeFactory_sprOldKey; private static var bgNode5E:Class = NodeFactory_bgNode5E; private static var sprScanner:Class = NodeFactory_sprScanner; private static var bgNode11E:Class = NodeFactory_bgNode11E; private static var bgNode5N:Class = NodeFactory_bgNode5N; private static var bgNode10E:Class = NodeFactory_bgNode10E; private static var bgNode5S:Class = NodeFactory_bgNode5S; private static var bgNode11N:Class = NodeFactory_bgNode11N; private static var bgNode5W:Class = NodeFactory_bgNode5W; private static var sprSmallCube:Class = NodeFactory_sprSmallCube; private static var bgNode11W:Class = NodeFactory_bgNode11W; private static var sprLampshadeUnturned:Class = NodeFactory_sprLampshadeUnturned; private static var bgNode6E:Class = NodeFactory_bgNode6E; private static var sprPillBottle:Class = NodeFactory_sprPillBottle; private static var bgNode12E:Class = NodeFactory_bgNode12E; private static var bgNode6N:Class = NodeFactory_bgNode6N; private static function getNodes():Array{ var smallEnv0:SceneryHotspot; var smallCoverPlate:GenericHotspot; var correctsmallcombo:Array; var smallEnv1:SceneryHotspot; var envelope:NodeLinkHotspot; var lampshade:RotationalHotspot; var lightbarcode:BarcodeHotspot; var wallhole:NodeLinkHotspot; var saw:GenericHotspot; var spider:SpiderHotspot; var cage:GenericHotspot; var smallcube:SceneryHotspot; var bigCoverPlateKeyhole:GenericHotspot; var bigCoverPlate:GenericHotspot; var correctbigcombo:Array; var cube:GenericHotspot; var batterycover:GenericHotspot; var ret:Array = new Array(); ret[0] = new NavNode(bgNode0N, bgNode0S, bgNode0E, bgNode0W, -1, -1, 1, -1); ret[0].hotspotsWest.push(new BarcodeHotspot(225, 334, "THEY ARE FEEDING YOU POISON AND LIES", sprSmallBarcode)); smallEnv0 = new SceneryHotspot(265, 290, sprEnvelopeTiny); smallEnv0.visible = false; ret[0].hotspotsEast.push(smallEnv0); smallCoverPlate = new GenericHotspot(473, 239, sprSmallPanelCover); ret[0].hotspotsWest.push(smallCoverPlate); correctsmallcombo = new Array("R", "G", "B", "C", "M", "Y"); var smallResult:Function = function ():void{ if (correctsmallcombo){ smallCoverPlate.visible = false; ViewScreen.setText("Another game beaten. What was that sound? It came from the door behind me..."); correctsmallcombo = null; sndMail.play(); smallEnv0.visible = true; smallEnv1.visible = true; envelope.visible = true; }; }; var smallCombo:Array = new Array(); ret[0].hotspotsWest.push(new CombinationHotspot(523, 213, 20, 20, "R", smallCombo, 6, correctsmallcombo, smallResult)); ret[0].hotspotsWest.push(new CombinationHotspot(449, 309, 20, 20, "G", smallCombo, 6, correctsmallcombo, smallResult)); ret[0].hotspotsWest.push(new CombinationHotspot(563, 339, 20, 20, "B", smallCombo, 6, correctsmallcombo, smallResult)); ret[0].hotspotsWest.push(new CombinationHotspot(471, 244, 20, 20, "C", smallCombo, 6, correctsmallcombo, smallResult)); ret[0].hotspotsWest.push(new CombinationHotspot(501, 332, 20, 20, "M", smallCombo, 6, correctsmallcombo, smallResult)); ret[0].hotspotsWest.push(new CombinationHotspot(560, 261, 20, 20, "Y", smallCombo, 6, correctsmallcombo, smallResult)); ret[1] = new NavNode(bgNode1N, bgNode1S, bgNode1E, bgNode1W, -1, 2, 4, 0); smallEnv1 = new SceneryHotspot(250, 365, sprEnvelopeSmall); smallEnv1.visible = false; ret[1].hotspotsEast.push(smallEnv1); ret[2] = new NavNode(bgNode2N, bgNode2S, bgNode2E, bgNode2W, 1, -1, -1, 3); ret[2].hotspotsEast.push(new BarcodeHotspot(240, 292, "IT IS ALL A LIE", sprSmallBarcode)); ret[2].hotspotsEast.push(new BarcodeHotspot(315, 298, "YOUR LIFE IS NOT REAL", sprSmallBarcode)); ret[2].hotspotsEast.push(new BarcodeHotspot(190, 180, "YOU KNOW NOTHING", sprSmallBarcode)); ret[2].hotspotsSouth.push(new BarcodeHotspot(147, 258, "SOME PEOPLE ARE MORE FREE THAN OTHERS", null, 275, 150)); var hotplate:GenericHotspot = new GenericHotspot(45, 275, null, 168, 131); hotplate.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{ ViewScreen.setText("I'll leave the hotplate off. I'm not hungry."); }); ret[2].hotspotsEast.push(hotplate); ret[3] = new NavNode(bgNode3N, bgNode3S, bgNode3E, bgNode3W, -1, -1, 2, -1); ret[3].hotspotsWest.push(new BarcodeHotspot(250, 0xFF, "THEY ARE ALWAYS WATCHING YOU", null, 150, 70)); ret[3].hotspotsNorth.push(new BarcodeHotspot(120, 384, "THERE IS NOTHING OUTSIDE THIS PLACE", sprSmallBarcode)); ret[3].hotspotsNorth.push(new BarcodeHotspot(520, 385, "YOU ARE NOT A PERSON YOU ARE A CONTROL SUBJECT", sprSmallBarcode)); var remote:GenericHotspot = new GenericHotspot(300, 300, null, 80, 133); remote.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{ ViewScreen.setText("My TV's broken. I can't remember the last time it was working."); }); ret[3].hotspotsNorth.push(remote); ret[4] = new NavNode(bgNode4N, bgNode4S, bgNode4E, bgNode4W, -1, 5, -1, 1); var baseballbat:PickupHotspot = new PickupHotspot(190, 315, sprBaseballBat, new InventoryIcon(Cursor.bmCurBaseballBat), "I found a baseball bat."); ret[4].hotspotsNorth.push(baseballbat); envelope = new NodeLinkHotspot(245, 340, 17, sprEnvelope); envelope.visible = false; ret[4].hotspotsEast.push(envelope); ret[4].hotspotsEast.push(new NodeLinkHotspot(295, 31, 16, null, 25, 25)); var doorknob:GenericHotspot = new GenericHotspot(423, 205, null, 38, 38); doorknob.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{ if (Cursor.activeInventoryCursor == Cursor.bmCurHouseKey){ ViewScreen.currentViewScreen.setNode(12); } else { ViewScreen.setText("The door is locked. Weird... I don't remember ever having a key."); }; }); ret[4].hotspotsEast.push(doorknob); ret[5] = new NavNode(bgNode5N, bgNode5S, bgNode5E, bgNode5W, 4, -1, -1, -1); var pillbottle:PickupHotspot = new PickupHotspot(450, 195, sprPillBottle, new InventoryIcon(Cursor.bmCurPillBottle), "I found my pills. I don't remember what they cure."); ret[5].hotspotsWest.push(pillbottle); ret[6] = new NavNode(bgNode6N, bgNode6S, bgNode6E, bgNode6W, -1, 1, -1, 7); ret[6].hotspotsEast.push(new BarcodeHotspot(265, 190, "THEY HAVE ALWAYS BEEN HERE", null, 132, 79)); lampshade = new RotationalHotspot(415, 90, sprLampshadeUnturned, sprLampshadeTurned); lightbarcode = new BarcodeHotspot(280, 110, "BREAK HERE", sprWallBarcode); lightbarcode.visible = false; lampshade.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{ lightbarcode.toggleVisibility((lampshade.currentFrame == 1)); }); ret[1].hotspotsNorth.push(lightbarcode); wallhole = new NodeLinkHotspot(120, 10, 6, sprWallHole); wallhole.visible = false; ret[1].hotspotsNorth.push(wallhole); ret[1].hotspotsNorth.push(lampshade); lightbarcode.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{ if (Cursor.activeInventoryCursor == Cursor.bmCurBaseballBat){ wallhole.visible = true; sndWallBreak.play(); INVENTORY.removeActiveItem(); ViewScreen.setText("The wall crumbled away easily! There must have been a door here once."); }; }); ret[7] = new NavNode(bgNode7N, bgNode7S, bgNode7E, bgNode7W, 10, 9, 6, -1); ret[9] = new NavNode(bgNode9N, bgNode9S, bgNode9E, bgNode9W, 7, -1, -1, -1); ret[9].hotspotsSouth.push(new NodeLinkHotspot(282, 299, 19, null, 109, 87)); ret[10] = new NavNode(bgNode10N, bgNode10S, bgNode10E, bgNode10W, -1, 7, 11, -1); ret[10].hotspotsWest.push(new BarcodeHotspot(185, 120, "SAVE ALL BARCODES", null, 85, 32)); saw = new GenericHotspot(244, 263, sprElectricKnife); saw.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{ if (Cursor.activeInventoryCursor == Cursor.bmCurBatteries){ saw.visible = false; NodeFactory.INVENTORY.addItem(new InventoryIcon(Cursor.bmCurSaw)); INVENTORY.removeActiveItem(); ViewScreen.setText("I put in the batteries and picked up the electric knife."); } else { ViewScreen.setText("It's an electric knife or saw, but it needs two D batteries."); }; }); ret[10].hotspotsNorth.push(saw); ret[11] = new NavNode(bgNode11N, bgNode11S, bgNode11E, bgNode11W, -1, -1, -1, 10); spider = new SpiderHotspot(319, 302); ret[11].hotspotsNorth.push(spider); ret[11].hotspotsNorth.push(new PickupHotspot(0xFF, 330, sprOldKey, new InventoryIcon(Cursor.bmCurOldKey), "I found an old-looking key.")); cage = new GenericHotspot(222, 271, null, 202, 110); cage.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{ if (Cursor.activeInventoryCursor == Cursor.bmCurPillBottle){ spider.die(); cage.visible = false; INVENTORY.removeActiveItem(); ViewScreen.setText("I wonder what was actually in those pills..."); } else { ViewScreen.setText("I'm not reaching in with that spider crawling around in there."); }; }); ret[11].hotspotsNorth.push(cage); smallcube = new SceneryHotspot(322, 241, sprSmallCube); ret[11].hotspotsEast.push(smallcube); ret[11].hotspotsEast.push(new NodeLinkHotspot(304, 222, 18, null, 72, 58)); bigCoverPlateKeyhole = new GenericHotspot(303, 221, sprBigPanelCoverKeyhole); bigCoverPlateKeyhole.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{ if (Cursor.activeInventoryCursor == Cursor.bmCurOldKey){ bigCoverPlateKeyhole.visible = false; INVENTORY.removeActiveItem(); ViewScreen.setText("A panel opened, revealing a small niche."); }; }); ret[11].hotspotsEast.push(bigCoverPlateKeyhole); bigCoverPlate = new GenericHotspot(303, 221, sprBigPanelCover); ret[11].hotspotsEast.push(bigCoverPlate); correctbigcombo = new Array("R", "G", "B", "C", "M", "Y"); var bigResult:Function = function ():void{ if (correctbigcombo){ bigCoverPlate.visible = false; ViewScreen.setText("A keyhole appeared in the middle of the wall."); correctbigcombo = null; }; }; var bigCombo:Array = new Array(); ret[11].hotspotsEast.push(new CombinationHotspot(323, 63, 34, 34, "R", bigCombo, 6, correctbigcombo, bigResult)); ret[11].hotspotsEast.push(new CombinationHotspot(168, 337, 34, 34, "G", bigCombo, 6, correctbigcombo, bigResult)); ret[11].hotspotsEast.push(new CombinationHotspot(465, 335, 34, 34, "B", bigCombo, 6, correctbigcombo, bigResult)); ret[11].hotspotsEast.push(new CombinationHotspot(213, 180, 34, 34, "C", bigCombo, 6, correctbigcombo, bigResult)); ret[11].hotspotsEast.push(new CombinationHotspot(322, 353, 34, 34, "M", bigCombo, 6, correctbigcombo, bigResult)); ret[11].hotspotsEast.push(new CombinationHotspot(420, 181, 34, 34, "Y", bigCombo, 6, correctbigcombo, bigResult)); ret[11].hotspotsSouth.push(new BarcodeHotspot(235, 178, "THE BRAIN IS THE CENTER OF ALL REBELLION", null, 25, 15)); ret[11].hotspotsSouth.push(new BarcodeHotspot(444, 297, "THEY CANNOT WATCH YOU THINK", null, 52, 17)); ret[12] = new NavNode(bgNode12N, bgNode12S, bgNode12E, bgNode12W, -1, 13, -1, -1); ret[12].hotspotsWest.push(new NodeLinkHotspot(264, 102, 4, null, 207, 367)); var sealeddoor:GenericHotspot = new GenericHotspot(232, 90, null, 224, 358); sealeddoor.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{ ViewScreen.setText("This door is locked, and the key's broken off in the lock."); }); ret[12].hotspotsEast.push(sealeddoor); ret[13] = new NavNode(bgNode13N, bgNode13S, bgNode13E, bgNode13W, 12, 14, -1, -1); ret[13].hotspotsWest.push(new BarcodeHotspot(144, 358, "IS ANY PERSON TRULY FREE", null, 90, 48)); ret[13].hotspotsWest.push(new BarcodeHotspot(250, 184, "IS ANY PERSON TRULY SANE", null, 72, 45)); ret[13].hotspotsWest.push(new BarcodeHotspot(471, 138, "THIS IS NOT THE WAY THE WORLD IS SUPPOSED TO BE", null, 64, 37)); ret[13].hotspotsWest.push(new BarcodeHotspot(504, 323, "FORGIVE ME", null, 63, 38)); ret[13].hotspotsEast.push(new BarcodeHotspot(126, 127, "YOU CAN'T SEE COLORS ANYMORE", null, 66, 35)); ret[13].hotspotsEast.push(new BarcodeHotspot(107, 277, "WHY DO GOOD THINGS HAPPEN TO BAD PEOPLE", null, 63, 36)); ret[13].hotspotsEast.push(new BarcodeHotspot(272, 188, "THERE ARE OTHER WORLDS THAN THESE", null, 67, 44)); ret[13].hotspotsEast.push(new BarcodeHotspot(253, 400, "YOU SHOULD HAVE STAYED INSIDE", null, 90, 45)); ret[13].hotspotsEast.push(new BarcodeHotspot(443, 298, "I AM A MAN OF WEALTH AND TASTE", null, 64, 41)); ret[14] = new NavNode(bgNode14N, bgNode14S, bgNode14E, bgNode14W, 13, 15, -1, -1); ret[14].hotspotsWest.push(new BarcodeHotspot(110, 104, "IS THE TRUTH A LIE OR IS THE LIE A TRUTH", null, 85, 75)); ret[14].hotspotsWest.push(new BarcodeHotspot(404, 114, "YOU MUST READ THEM", null, 82, 41)); ret[14].hotspotsWest.push(new BarcodeHotspot(247, 336, "EVERYTHING I TELL YOU IS A LIE", null, 96, 59)); ret[14].hotspotsWest.push(new BarcodeHotspot(472, 292, "EVEN IDEAS CAN BE KILLED", null, 83, 52)); ret[14].hotspotsEast.push(new BarcodeHotspot(117, 200, "A BARCODE IS A SERIES OF BLACK AND WHITE BARS", null, 85, 75)); ret[14].hotspotsEast.push(new BarcodeHotspot(436, 93, "USED TO REPRESENT DATA IN AN OPTICAL FORM", null, 122, 36)); ret[14].hotspotsEast.push(new BarcodeHotspot(388, 328, "THAT CAN BE READ VIA A LASER OR OTHER SCANNER", null, 85, 44)); ret[16] = new ZoomNode(bgNode16, 4); ret[17] = new ZoomNode(bgNode17, 4); var scanner:PickupHotspot = new PickupHotspot(85, 275, sprScanner, new InventoryIcon(Cursor.bmCurScanner), "I found some sort of barcode reader."); ret[17].hotspots.push(scanner); ret[18] = new ZoomNode(bgNode18, 11); ret[18].hotspots.push(new PickupHotspot(294, 379, sprHouseKey, new InventoryIcon(Cursor.bmCurHouseKey), "It looks like an apartment key. How did this get here?")); cube = new GenericHotspot(170, 164, sprCube); cube.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{ if (Cursor.activeInventoryCursor == Cursor.bmCurSaw){ smallcube.visible = false; cube.visible = false; INVENTORY.removeActiveItem(); ViewScreen.setText("The electric knife cut through the cube and it fell apart, revealing a key."); } else { ViewScreen.setText("It's a cube made of clear, soft plastic, and there's something inside."); }; }); ret[18].hotspots.push(cube); ret[19] = new ZoomNode(bgNode19, 9); var batteries:PickupHotspot = new PickupHotspot(357, 258, sprBatteries, new InventoryIcon(Cursor.bmCurBatteries), "I found some D batteries. The recorded sound turned off."); ret[19].hotspots.push(batteries); batteries.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{ Ambiance.stopAmbiance(); }); batterycover = new GenericHotspot(345, 250, sprBattCover); ret[19].hotspots.push(batterycover); batterycover.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{ batterycover.visible = false; }); return (ret); } public static function reset():void{ NODES = getNodes(); INVENTORY = new Inventory(); } } }//package Data
Section 5
//NodeFactory_bgNode0E (Data.NodeFactory_bgNode0E) package Data { import mx.core.*; public class NodeFactory_bgNode0E extends BitmapAsset { } }//package Data
Section 6
//NodeFactory_bgNode0N (Data.NodeFactory_bgNode0N) package Data { import mx.core.*; public class NodeFactory_bgNode0N extends BitmapAsset { } }//package Data
Section 7
//NodeFactory_bgNode0S (Data.NodeFactory_bgNode0S) package Data { import mx.core.*; public class NodeFactory_bgNode0S extends BitmapAsset { } }//package Data
Section 8
//NodeFactory_bgNode0W (Data.NodeFactory_bgNode0W) package Data { import mx.core.*; public class NodeFactory_bgNode0W extends BitmapAsset { } }//package Data
Section 9
//NodeFactory_bgNode10E (Data.NodeFactory_bgNode10E) package Data { import mx.core.*; public class NodeFactory_bgNode10E extends BitmapAsset { } }//package Data
Section 10
//NodeFactory_bgNode10N (Data.NodeFactory_bgNode10N) package Data { import mx.core.*; public class NodeFactory_bgNode10N extends BitmapAsset { } }//package Data
Section 11
//NodeFactory_bgNode10S (Data.NodeFactory_bgNode10S) package Data { import mx.core.*; public class NodeFactory_bgNode10S extends BitmapAsset { } }//package Data
Section 12
//NodeFactory_bgNode10W (Data.NodeFactory_bgNode10W) package Data { import mx.core.*; public class NodeFactory_bgNode10W extends BitmapAsset { } }//package Data
Section 13
//NodeFactory_bgNode11E (Data.NodeFactory_bgNode11E) package Data { import mx.core.*; public class NodeFactory_bgNode11E extends BitmapAsset { } }//package Data
Section 14
//NodeFactory_bgNode11N (Data.NodeFactory_bgNode11N) package Data { import mx.core.*; public class NodeFactory_bgNode11N extends BitmapAsset { } }//package Data
Section 15
//NodeFactory_bgNode11S (Data.NodeFactory_bgNode11S) package Data { import mx.core.*; public class NodeFactory_bgNode11S extends BitmapAsset { } }//package Data
Section 16
//NodeFactory_bgNode11W (Data.NodeFactory_bgNode11W) package Data { import mx.core.*; public class NodeFactory_bgNode11W extends BitmapAsset { } }//package Data
Section 17
//NodeFactory_bgNode12E (Data.NodeFactory_bgNode12E) package Data { import mx.core.*; public class NodeFactory_bgNode12E extends BitmapAsset { } }//package Data
Section 18
//NodeFactory_bgNode12N (Data.NodeFactory_bgNode12N) package Data { import mx.core.*; public class NodeFactory_bgNode12N extends BitmapAsset { } }//package Data
Section 19
//NodeFactory_bgNode12S (Data.NodeFactory_bgNode12S) package Data { import mx.core.*; public class NodeFactory_bgNode12S extends BitmapAsset { } }//package Data
Section 20
//NodeFactory_bgNode12W (Data.NodeFactory_bgNode12W) package Data { import mx.core.*; public class NodeFactory_bgNode12W extends BitmapAsset { } }//package Data
Section 21
//NodeFactory_bgNode13E (Data.NodeFactory_bgNode13E) package Data { import mx.core.*; public class NodeFactory_bgNode13E extends BitmapAsset { } }//package Data
Section 22
//NodeFactory_bgNode13N (Data.NodeFactory_bgNode13N) package Data { import mx.core.*; public class NodeFactory_bgNode13N extends BitmapAsset { } }//package Data
Section 23
//NodeFactory_bgNode13S (Data.NodeFactory_bgNode13S) package Data { import mx.core.*; public class NodeFactory_bgNode13S extends BitmapAsset { } }//package Data
Section 24
//NodeFactory_bgNode13W (Data.NodeFactory_bgNode13W) package Data { import mx.core.*; public class NodeFactory_bgNode13W extends BitmapAsset { } }//package Data
Section 25
//NodeFactory_bgNode14E (Data.NodeFactory_bgNode14E) package Data { import mx.core.*; public class NodeFactory_bgNode14E extends BitmapAsset { } }//package Data
Section 26
//NodeFactory_bgNode14N (Data.NodeFactory_bgNode14N) package Data { import mx.core.*; public class NodeFactory_bgNode14N extends BitmapAsset { } }//package Data
Section 27
//NodeFactory_bgNode14S (Data.NodeFactory_bgNode14S) package Data { import mx.core.*; public class NodeFactory_bgNode14S extends BitmapAsset { } }//package Data
Section 28
//NodeFactory_bgNode14W (Data.NodeFactory_bgNode14W) package Data { import mx.core.*; public class NodeFactory_bgNode14W extends BitmapAsset { } }//package Data
Section 29
//NodeFactory_bgNode16 (Data.NodeFactory_bgNode16) package Data { import mx.core.*; public class NodeFactory_bgNode16 extends BitmapAsset { } }//package Data
Section 30
//NodeFactory_bgNode17 (Data.NodeFactory_bgNode17) package Data { import mx.core.*; public class NodeFactory_bgNode17 extends BitmapAsset { } }//package Data
Section 31
//NodeFactory_bgNode18 (Data.NodeFactory_bgNode18) package Data { import mx.core.*; public class NodeFactory_bgNode18 extends BitmapAsset { } }//package Data
Section 32
//NodeFactory_bgNode19 (Data.NodeFactory_bgNode19) package Data { import mx.core.*; public class NodeFactory_bgNode19 extends BitmapAsset { } }//package Data
Section 33
//NodeFactory_bgNode1E (Data.NodeFactory_bgNode1E) package Data { import mx.core.*; public class NodeFactory_bgNode1E extends BitmapAsset { } }//package Data
Section 34
//NodeFactory_bgNode1N (Data.NodeFactory_bgNode1N) package Data { import mx.core.*; public class NodeFactory_bgNode1N extends BitmapAsset { } }//package Data
Section 35
//NodeFactory_bgNode1S (Data.NodeFactory_bgNode1S) package Data { import mx.core.*; public class NodeFactory_bgNode1S extends BitmapAsset { } }//package Data
Section 36
//NodeFactory_bgNode1W (Data.NodeFactory_bgNode1W) package Data { import mx.core.*; public class NodeFactory_bgNode1W extends BitmapAsset { } }//package Data
Section 37
//NodeFactory_bgNode2E (Data.NodeFactory_bgNode2E) package Data { import mx.core.*; public class NodeFactory_bgNode2E extends BitmapAsset { } }//package Data
Section 38
//NodeFactory_bgNode2N (Data.NodeFactory_bgNode2N) package Data { import mx.core.*; public class NodeFactory_bgNode2N extends BitmapAsset { } }//package Data
Section 39
//NodeFactory_bgNode2S (Data.NodeFactory_bgNode2S) package Data { import mx.core.*; public class NodeFactory_bgNode2S extends BitmapAsset { } }//package Data
Section 40
//NodeFactory_bgNode2W (Data.NodeFactory_bgNode2W) package Data { import mx.core.*; public class NodeFactory_bgNode2W extends BitmapAsset { } }//package Data
Section 41
//NodeFactory_bgNode3E (Data.NodeFactory_bgNode3E) package Data { import mx.core.*; public class NodeFactory_bgNode3E extends BitmapAsset { } }//package Data
Section 42
//NodeFactory_bgNode3N (Data.NodeFactory_bgNode3N) package Data { import mx.core.*; public class NodeFactory_bgNode3N extends BitmapAsset { } }//package Data
Section 43
//NodeFactory_bgNode3S (Data.NodeFactory_bgNode3S) package Data { import mx.core.*; public class NodeFactory_bgNode3S extends BitmapAsset { } }//package Data
Section 44
//NodeFactory_bgNode3W (Data.NodeFactory_bgNode3W) package Data { import mx.core.*; public class NodeFactory_bgNode3W extends BitmapAsset { } }//package Data
Section 45
//NodeFactory_bgNode4E (Data.NodeFactory_bgNode4E) package Data { import mx.core.*; public class NodeFactory_bgNode4E extends BitmapAsset { } }//package Data
Section 46
//NodeFactory_bgNode4N (Data.NodeFactory_bgNode4N) package Data { import mx.core.*; public class NodeFactory_bgNode4N extends BitmapAsset { } }//package Data
Section 47
//NodeFactory_bgNode4S (Data.NodeFactory_bgNode4S) package Data { import mx.core.*; public class NodeFactory_bgNode4S extends BitmapAsset { } }//package Data
Section 48
//NodeFactory_bgNode4W (Data.NodeFactory_bgNode4W) package Data { import mx.core.*; public class NodeFactory_bgNode4W extends BitmapAsset { } }//package Data
Section 49
//NodeFactory_bgNode5E (Data.NodeFactory_bgNode5E) package Data { import mx.core.*; public class NodeFactory_bgNode5E extends BitmapAsset { } }//package Data
Section 50
//NodeFactory_bgNode5N (Data.NodeFactory_bgNode5N) package Data { import mx.core.*; public class NodeFactory_bgNode5N extends BitmapAsset { } }//package Data
Section 51
//NodeFactory_bgNode5S (Data.NodeFactory_bgNode5S) package Data { import mx.core.*; public class NodeFactory_bgNode5S extends BitmapAsset { } }//package Data
Section 52
//NodeFactory_bgNode5W (Data.NodeFactory_bgNode5W) package Data { import mx.core.*; public class NodeFactory_bgNode5W extends BitmapAsset { } }//package Data
Section 53
//NodeFactory_bgNode6E (Data.NodeFactory_bgNode6E) package Data { import mx.core.*; public class NodeFactory_bgNode6E extends BitmapAsset { } }//package Data
Section 54
//NodeFactory_bgNode6N (Data.NodeFactory_bgNode6N) package Data { import mx.core.*; public class NodeFactory_bgNode6N extends BitmapAsset { } }//package Data
Section 55
//NodeFactory_bgNode6S (Data.NodeFactory_bgNode6S) package Data { import mx.core.*; public class NodeFactory_bgNode6S extends BitmapAsset { } }//package Data
Section 56
//NodeFactory_bgNode6W (Data.NodeFactory_bgNode6W) package Data { import mx.core.*; public class NodeFactory_bgNode6W extends BitmapAsset { } }//package Data
Section 57
//NodeFactory_bgNode7E (Data.NodeFactory_bgNode7E) package Data { import mx.core.*; public class NodeFactory_bgNode7E extends BitmapAsset { } }//package Data
Section 58
//NodeFactory_bgNode7N (Data.NodeFactory_bgNode7N) package Data { import mx.core.*; public class NodeFactory_bgNode7N extends BitmapAsset { } }//package Data
Section 59
//NodeFactory_bgNode7S (Data.NodeFactory_bgNode7S) package Data { import mx.core.*; public class NodeFactory_bgNode7S extends BitmapAsset { } }//package Data
Section 60
//NodeFactory_bgNode7W (Data.NodeFactory_bgNode7W) package Data { import mx.core.*; public class NodeFactory_bgNode7W extends BitmapAsset { } }//package Data
Section 61
//NodeFactory_bgNode9E (Data.NodeFactory_bgNode9E) package Data { import mx.core.*; public class NodeFactory_bgNode9E extends BitmapAsset { } }//package Data
Section 62
//NodeFactory_bgNode9N (Data.NodeFactory_bgNode9N) package Data { import mx.core.*; public class NodeFactory_bgNode9N extends BitmapAsset { } }//package Data
Section 63
//NodeFactory_bgNode9S (Data.NodeFactory_bgNode9S) package Data { import mx.core.*; public class NodeFactory_bgNode9S extends BitmapAsset { } }//package Data
Section 64
//NodeFactory_bgNode9W (Data.NodeFactory_bgNode9W) package Data { import mx.core.*; public class NodeFactory_bgNode9W extends BitmapAsset { } }//package Data
Section 65
//NodeFactory_clsMail (Data.NodeFactory_clsMail) package Data { import mx.core.*; public class NodeFactory_clsMail extends SoundAsset { } }//package Data
Section 66
//NodeFactory_clsWallBreak (Data.NodeFactory_clsWallBreak) package Data { import mx.core.*; public class NodeFactory_clsWallBreak extends SoundAsset { } }//package Data
Section 67
//NodeFactory_sprBaseballBat (Data.NodeFactory_sprBaseballBat) package Data { import mx.core.*; public class NodeFactory_sprBaseballBat extends BitmapAsset { } }//package Data
Section 68
//NodeFactory_sprBattCover (Data.NodeFactory_sprBattCover) package Data { import mx.core.*; public class NodeFactory_sprBattCover extends BitmapAsset { } }//package Data
Section 69
//NodeFactory_sprBatteries (Data.NodeFactory_sprBatteries) package Data { import mx.core.*; public class NodeFactory_sprBatteries extends BitmapAsset { } }//package Data
Section 70
//NodeFactory_sprBigPanelCover (Data.NodeFactory_sprBigPanelCover) package Data { import mx.core.*; public class NodeFactory_sprBigPanelCover extends BitmapAsset { } }//package Data
Section 71
//NodeFactory_sprBigPanelCoverKeyhole (Data.NodeFactory_sprBigPanelCoverKeyhole) package Data { import mx.core.*; public class NodeFactory_sprBigPanelCoverKeyhole extends BitmapAsset { } }//package Data
Section 72
//NodeFactory_sprCube (Data.NodeFactory_sprCube) package Data { import mx.core.*; public class NodeFactory_sprCube extends BitmapAsset { } }//package Data
Section 73
//NodeFactory_sprElectricKnife (Data.NodeFactory_sprElectricKnife) package Data { import mx.core.*; public class NodeFactory_sprElectricKnife extends BitmapAsset { } }//package Data
Section 74
//NodeFactory_sprEnvelope (Data.NodeFactory_sprEnvelope) package Data { import mx.core.*; public class NodeFactory_sprEnvelope extends BitmapAsset { } }//package Data
Section 75
//NodeFactory_sprEnvelopeSmall (Data.NodeFactory_sprEnvelopeSmall) package Data { import mx.core.*; public class NodeFactory_sprEnvelopeSmall extends BitmapAsset { } }//package Data
Section 76
//NodeFactory_sprEnvelopeTiny (Data.NodeFactory_sprEnvelopeTiny) package Data { import mx.core.*; public class NodeFactory_sprEnvelopeTiny extends BitmapAsset { } }//package Data
Section 77
//NodeFactory_sprHouseKey (Data.NodeFactory_sprHouseKey) package Data { import mx.core.*; public class NodeFactory_sprHouseKey extends BitmapAsset { } }//package Data
Section 78
//NodeFactory_sprLampshadeTurned (Data.NodeFactory_sprLampshadeTurned) package Data { import mx.core.*; public class NodeFactory_sprLampshadeTurned extends BitmapAsset { } }//package Data
Section 79
//NodeFactory_sprLampshadeUnturned (Data.NodeFactory_sprLampshadeUnturned) package Data { import mx.core.*; public class NodeFactory_sprLampshadeUnturned extends BitmapAsset { } }//package Data
Section 80
//NodeFactory_sprOldKey (Data.NodeFactory_sprOldKey) package Data { import mx.core.*; public class NodeFactory_sprOldKey extends BitmapAsset { } }//package Data
Section 81
//NodeFactory_sprPillBottle (Data.NodeFactory_sprPillBottle) package Data { import mx.core.*; public class NodeFactory_sprPillBottle extends BitmapAsset { } }//package Data
Section 82
//NodeFactory_sprScanner (Data.NodeFactory_sprScanner) package Data { import mx.core.*; public class NodeFactory_sprScanner extends BitmapAsset { } }//package Data
Section 83
//NodeFactory_sprSmallBarcode (Data.NodeFactory_sprSmallBarcode) package Data { import mx.core.*; public class NodeFactory_sprSmallBarcode extends BitmapAsset { } }//package Data
Section 84
//NodeFactory_sprSmallCube (Data.NodeFactory_sprSmallCube) package Data { import mx.core.*; public class NodeFactory_sprSmallCube extends BitmapAsset { } }//package Data
Section 85
//NodeFactory_sprSmallPanelCover (Data.NodeFactory_sprSmallPanelCover) package Data { import mx.core.*; public class NodeFactory_sprSmallPanelCover extends BitmapAsset { } }//package Data
Section 86
//NodeFactory_sprWallBarcode (Data.NodeFactory_sprWallBarcode) package Data { import mx.core.*; public class NodeFactory_sprWallBarcode extends BitmapAsset { } }//package Data
Section 87
//NodeFactory_sprWallHole (Data.NodeFactory_sprWallHole) package Data { import mx.core.*; public class NodeFactory_sprWallHole extends BitmapAsset { } }//package Data
Section 88
//ZoomNode (Data.ZoomNode) package Data { import flash.display.*; public class ZoomNode extends Node { public var bmBackground:Bitmap; public var hotspots:Array; public var backNode:int; public function ZoomNode(_arg1:Class, _arg2:int){ hotspots = new Array(); super(); this.backNode = _arg2; bmBackground = (new (_arg1) as Bitmap); } } }//package Data
Section 89
//Ambiance (Interface.Ambiance) package Interface { import flash.events.*; import flash.media.*; public class Ambiance { private static const sndAmbiance:Sound = new clsAmbiance(); private static var scAmbiance:SoundChannel; private static var clsAmbiance:Class = Ambiance_clsAmbiance; private static function restartAmbiance(_arg1:Event):void{ var _local2:Number; if (scAmbiance){ _local2 = scAmbiance.soundTransform.volume; scAmbiance = sndAmbiance.play(); scAmbiance.soundTransform = new SoundTransform(_local2); scAmbiance.addEventListener(Event.SOUND_COMPLETE, restartAmbiance); }; } public static function startAmbiance(_arg1:Number):void{ scAmbiance = sndAmbiance.play(); scAmbiance.soundTransform = new SoundTransform(_arg1); scAmbiance.addEventListener(Event.SOUND_COMPLETE, restartAmbiance); } public static function stopAmbiance():void{ scAmbiance.removeEventListener(Event.SOUND_COMPLETE, restartAmbiance); scAmbiance.stop(); scAmbiance = null; } public static function setVolume(_arg1:Number):void{ if (scAmbiance){ scAmbiance.soundTransform = new SoundTransform(_arg1); }; } } }//package Interface
Section 90
//Ambiance_clsAmbiance (Interface.Ambiance_clsAmbiance) package Interface { import mx.core.*; public class Ambiance_clsAmbiance extends SoundAsset { } }//package Interface
Section 91
//BackButton (Interface.BackButton) package Interface { public class BackButton extends Hotspot { public function BackButton(){ graphics.beginFill(0xFF0000, 0); graphics.drawRect(0, 0, Main.STAGE_WIDTH, 100); graphics.endFill(); this.x = 0; this.y = (Main.STAGE_HEIGHT - 100); super(); } override protected function activeCursor():void{ Cursor.setBack(); } } }//package Interface
Section 92
//BarcodeHotspot (Interface.BarcodeHotspot) package Interface { import flash.events.*; import flash.display.*; import Util.*; import flash.media.*; public class BarcodeHotspot extends Hotspot { private var scanned:Boolean;// = false private var scanning:Boolean;// = false private var myMessage:String; private var bmMine:Bitmap; private static const sndBeep:Sound = (new clsBeep() as Sound); private static var clsBeep:Class = BarcodeHotspot_clsBeep; public static var barcodesScanned:int; public function BarcodeHotspot(_arg1:int, _arg2:int, _arg3:String, _arg4:Class=null, _arg5:int=-1, _arg6:int=-1){ this.x = _arg1; this.y = _arg2; if ((((_arg5 > 0)) && ((_arg6 > 0)))){ graphics.beginFill(0xFF0000, 0); graphics.drawRect(0, 0, _arg5, _arg6); }; if (_arg4){ this.bmMine = (new (_arg4) as Bitmap); SugarGraphics.drawSprite(graphics, bmMine.bitmapData, 0, 0); if (_arg5 < bmMine.width){ _arg5 = bmMine.width; }; if (_arg6 < bmMine.height){ _arg6 = bmMine.height; }; }; myMessage = _arg3; mouseChildren = false; } override protected function dragEnter(_arg1:MouseEvent):void{ if (Cursor.currentCursor != Cursor.bmCurScanner){ return; }; if (_arg1.localX < 25){ scanning = true; } else { scanning = false; }; } override protected function dragLeave(_arg1:MouseEvent):void{ if (Cursor.currentCursor != Cursor.bmCurScanner){ return; }; if (scanning){ if (_arg1.localX >= this.width){ sndBeep.play(); ViewScreen.setText((("The scanner reads \"" + myMessage) + ".\"")); if (!scanned){ barcodesScanned++; scanned = true; }; dispatchEvent(new Event("SCANNED")); } else { scanning = false; }; }; } } }//package Interface
Section 93
//BarcodeHotspot_clsBeep (Interface.BarcodeHotspot_clsBeep) package Interface { import mx.core.*; public class BarcodeHotspot_clsBeep extends SoundAsset { } }//package Interface
Section 94
//ClosingCutscene (Interface.ClosingCutscene) package Interface { import flash.events.*; import flash.display.*; import flash.utils.*; public class ClosingCutscene extends Sprite { private var cell:Bitmap; private var celltimer:int;// = 0 private var timer:Timer; private var treetimer:int;// = 0 private var white:Sprite; private var whitetimer:int;// = 0 private var black:Sprite; private static var bgCellOverlay:Class = ClosingCutscene_bgCellOverlay; private static var bgColorTrees:Class = ClosingCutscene_bgColorTrees; public function ClosingCutscene(){ var _local1:Bitmap = new bgColorTrees(); this.addChild(_local1); cell = new bgCellOverlay(); cell.alpha = 0; this.addChild(cell); black = new Sprite(); black.graphics.beginFill(0); black.graphics.drawRect(0, 0, Main.STAGE_WIDTH, Main.STAGE_HEIGHT); black.graphics.endFill(); this.addChild(black); white = new Sprite(); white.graphics.beginFill(0xFFFFFF); white.graphics.drawRect(0, 0, Main.STAGE_WIDTH, Main.STAGE_HEIGHT); white.graphics.endFill(); white.alpha = 0; this.addChild(white); timer = new Timer((1000 / 30)); timer.addEventListener(TimerEvent.TIMER, fadeLoop); timer.start(); } private function fadeLoop(_arg1:TimerEvent):void{ if (black.alpha > 0){ black.alpha = (black.alpha - 0.01); } else { if (treetimer < 60){ treetimer++; } else { if (cell.alpha < 1){ cell.alpha = (cell.alpha + 0.01); } else { if (celltimer < 30){ celltimer++; } else { if (white.alpha < 1){ white.alpha = (white.alpha + 0.01); } else { if (whitetimer < 15){ whitetimer++; } else { timer.removeEventListener(TimerEvent.TIMER, fadeLoop); this.addChild(new EndScreen()); }; }; }; }; }; }; } } }//package Interface
Section 95
//ClosingCutscene_bgCellOverlay (Interface.ClosingCutscene_bgCellOverlay) package Interface { import mx.core.*; public class ClosingCutscene_bgCellOverlay extends BitmapAsset { } }//package Interface
Section 96
//ClosingCutscene_bgColorTrees (Interface.ClosingCutscene_bgColorTrees) package Interface { import mx.core.*; public class ClosingCutscene_bgColorTrees extends BitmapAsset { } }//package Interface
Section 97
//CombinationHotspot (Interface.CombinationHotspot) package Interface { import flash.events.*; import flash.media.*; public class CombinationHotspot extends Hotspot { private var myCodeCorrect:Array; private var myValue:String; private var myCodeResult:Function; private var myHistory:Array; private var myCodeLength:int; private static const sndButton:Sound = (new clsButton() as Sound); private static var clsButton:Class = CombinationHotspot_clsButton; public function CombinationHotspot(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:String, _arg6:Array, _arg7:int, _arg8:Array, _arg9:Function){ this.x = _arg1; this.y = _arg2; graphics.beginFill(0xFF0000, 0); graphics.drawRect(0, 0, _arg3, _arg4); graphics.endFill(); myValue = _arg5; myHistory = _arg6; myCodeLength = _arg7; myCodeCorrect = _arg8; myCodeResult = _arg9; this.addEventListener(MouseEvent.CLICK, onClick); } private function onClick(_arg1:MouseEvent):void{ sndButton.play(); myHistory.push(myValue); if (myHistory.length > myCodeLength){ myHistory.splice(0, (myHistory.length - myCodeLength)); }; if (myHistory.toString() == myCodeCorrect.toString()){ myCodeResult(); }; } } }//package Interface
Section 98
//CombinationHotspot_clsButton (Interface.CombinationHotspot_clsButton) package Interface { import mx.core.*; public class CombinationHotspot_clsButton extends SoundAsset { } }//package Interface
Section 99
//CreditScreen (Interface.CreditScreen) package Interface { import flash.events.*; import flash.display.*; import flash.text.*; import Util.*; public class CreditScreen extends Sprite { public function CreditScreen(){ super(); var creditsText:TextField = new TextField(); creditsText.defaultTextFormat = Fonts.AndrewCentered; creditsText.embedFonts = true; creditsText.mouseEnabled = true; creditsText.selectable = true; creditsText.width = Main.STAGE_WIDTH; creditsText.height = Main.STAGE_HEIGHT; creditsText.background = true; creditsText.backgroundColor = 0xFFFFFF; creditsText.wordWrap = true; creditsText.text = "Bars of Black and White was created by Gregory Weir - http://ludusnovus.net"; creditsText.appendText("\n\nIt uses the Andrew Script font from Andrew Vardeman - http://www.dafont.com/andrew-script.font"); creditsText.appendText("\n\nIt uses sounds from soundsnap.com users Gap Digital, Justine Angus, Bobby Cole, and Radio Mall"); creditsText.appendText("\n\nIt uses the public domain image \"Park in Autumn\" by Petr Kratochvil from http://www.publicdomainpictures.net/"); creditsText.appendText("\n\nThanks to Andrew Geiger, Shun Coaster, and Lissa Avery for testing and suggestions."); this.addChild(creditsText); var backButton:TextField = new TextField(); backButton.defaultTextFormat = Fonts.BigAndrewCentered; backButton.embedFonts = true; backButton.selectable = false; backButton.width = 150; backButton.x = 262; backButton.y = 450; backButton.height = 50; backButton.text = "BACK"; this.addChild(backButton); backButton.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{ Main(parent).closeCredits(); }); } } }//package Interface
Section 100
//Cursor (Interface.Cursor) package Interface { import flash.display.*; import Util.*; public class Cursor extends Sprite { public static const bmRotate:Bitmap = (new curRotate() as Bitmap); public static const bmCurOldKey:Bitmap = (new curOldKey() as Bitmap); private static const bmRight:Bitmap = (new curRight() as Bitmap); public static const theCursor:Cursor = new (Cursor); ; public static const bmCurPillBottle:Bitmap = (new curPillBottle() as Bitmap); public static const bmCurHouseKey:Bitmap = (new curHouseKey() as Bitmap); public static const bmCurScanner:Bitmap = (new curScanner() as Bitmap); public static const bmCurSaw:Bitmap = (new curSaw() as Bitmap); private static const bmBack:Bitmap = (new curBack() as Bitmap); private static const bmInactive:Bitmap = (new curInactive() as Bitmap); public static const bmCurBaseballBat:Bitmap = (new curBaseballBat() as Bitmap); private static const bmLeft:Bitmap = (new curLeft() as Bitmap); private static const bmForward:Bitmap = (new curForward() as Bitmap); public static const bmCurBatteries:Bitmap = (new curBatteries() as Bitmap); private static var inventoryActive:Bitmap = null; private static var curSaw:Class = Cursor_curSaw; private static var curBatteries:Class = Cursor_curBatteries; private static var curOldKey:Class = Cursor_curOldKey; private static var curScanner:Class = Cursor_curScanner; private static var currCursor:Bitmap; private static var curPillBottle:Class = Cursor_curPillBottle; private static var curRotate:Class = Cursor_curRotate; private static var curRight:Class = Cursor_curRight; private static var curBaseballBat:Class = Cursor_curBaseballBat; private static var curBack:Class = Cursor_curBack; private static var curInactive:Class = Cursor_curInactive; private static var curForward:Class = Cursor_curForward; private static var curLeft:Class = Cursor_curLeft; private static var curHouseKey:Class = Cursor_curHouseKey; public function Cursor(){ if (theCursor){ throw (new Error("Tried to instantiate a cursor!")); }; this.mouseEnabled = false; draw(bmInactive, 0, 0); } private function draw(_arg1:Bitmap, _arg2:int, _arg3:int):void{ graphics.clear(); currCursor = _arg1; SugarGraphics.drawSprite(graphics, _arg1.bitmapData, -(_arg2), -(_arg3)); } public static function setForward():void{ theCursor.draw(bmForward, 15, 0); } public static function setLeft():void{ theCursor.draw(bmLeft, 0, 11); } public static function get currentCursor():Bitmap{ return (currCursor); } public static function setInventoryIcon(_arg1:Bitmap):void{ if ((((((((((_arg1 == bmCurScanner)) || ((_arg1 == bmCurOldKey)))) || ((_arg1 == bmCurBaseballBat)))) || ((_arg1 == bmCurHouseKey)))) || ((_arg1 == bmCurSaw)))){ theCursor.draw(_arg1, 0, 0); } else { theCursor.draw(_arg1, 16, 16); }; inventoryActive = _arg1; } public static function deactivateInventory():void{ if (currCursor == inventoryActive){ theCursor.draw(bmInactive, 0, 0); }; inventoryActive = null; } public static function setRight():void{ theCursor.draw(bmRight, 21, 11); } public static function setRotate():void{ theCursor.draw(bmRotate, 16, 11); } public static function setBack():void{ theCursor.draw(bmBack, 12, 27); } public static function setInactive():void{ if (inventoryActive){ theCursor.draw(inventoryActive, 0, 0); } else { theCursor.draw(bmInactive, 0, 0); }; } public static function get activeInventoryCursor():Bitmap{ return (inventoryActive); } } }//package Interface
Section 101
//Cursor_curBack (Interface.Cursor_curBack) package Interface { import mx.core.*; public class Cursor_curBack extends BitmapAsset { } }//package Interface
Section 102
//Cursor_curBaseballBat (Interface.Cursor_curBaseballBat) package Interface { import mx.core.*; public class Cursor_curBaseballBat extends BitmapAsset { } }//package Interface
Section 103
//Cursor_curBatteries (Interface.Cursor_curBatteries) package Interface { import mx.core.*; public class Cursor_curBatteries extends BitmapAsset { } }//package Interface
Section 104
//Cursor_curForward (Interface.Cursor_curForward) package Interface { import mx.core.*; public class Cursor_curForward extends BitmapAsset { } }//package Interface
Section 105
//Cursor_curHouseKey (Interface.Cursor_curHouseKey) package Interface { import mx.core.*; public class Cursor_curHouseKey extends BitmapAsset { } }//package Interface
Section 106
//Cursor_curInactive (Interface.Cursor_curInactive) package Interface { import mx.core.*; public class Cursor_curInactive extends BitmapAsset { } }//package Interface
Section 107
//Cursor_curLeft (Interface.Cursor_curLeft) package Interface { import mx.core.*; public class Cursor_curLeft extends BitmapAsset { } }//package Interface
Section 108
//Cursor_curOldKey (Interface.Cursor_curOldKey) package Interface { import mx.core.*; public class Cursor_curOldKey extends BitmapAsset { } }//package Interface
Section 109
//Cursor_curPillBottle (Interface.Cursor_curPillBottle) package Interface { import mx.core.*; public class Cursor_curPillBottle extends BitmapAsset { } }//package Interface
Section 110
//Cursor_curRight (Interface.Cursor_curRight) package Interface { import mx.core.*; public class Cursor_curRight extends BitmapAsset { } }//package Interface
Section 111
//Cursor_curRotate (Interface.Cursor_curRotate) package Interface { import mx.core.*; public class Cursor_curRotate extends BitmapAsset { } }//package Interface
Section 112
//Cursor_curSaw (Interface.Cursor_curSaw) package Interface { import mx.core.*; public class Cursor_curSaw extends BitmapAsset { } }//package Interface
Section 113
//Cursor_curScanner (Interface.Cursor_curScanner) package Interface { import mx.core.*; public class Cursor_curScanner extends BitmapAsset { } }//package Interface
Section 114
//EndScreen (Interface.EndScreen) package Interface { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.utils.*; import Data.*; import flash.text.*; import Util.*; public class EndScreen extends Sprite { private var barcode:BarcodeHotspot; private var laserLayer:Sprite; private var mousePoints:Array; private var theEnd:TextField; private var score:TextField; private var laserTimer:Timer; private static const LASER_LENGTH:int = 5; private static var sprEndBarcode:Class = EndScreen_sprEndBarcode; public function EndScreen(){ super(); graphics.beginFill(0xFFFFFF); graphics.drawRect(0, 0, Main.STAGE_WIDTH, Main.STAGE_HEIGHT); graphics.endFill(); theEnd = new TextField(); theEnd.defaultTextFormat = Fonts.BigAndrewCentered; theEnd.embedFonts = true; theEnd.mouseEnabled = false; theEnd.selectable = false; theEnd.width = Main.STAGE_WIDTH; theEnd.y = 200; theEnd.background = true; theEnd.backgroundColor = 0xFFFFFF; theEnd.height = 50; theEnd.text = "THE END"; theEnd.visible = false; this.addChild(theEnd); var byMe:TextField = new TextField(); byMe.htmlText = "<a href=\"http://ludusnovus.net\" target=\"_blank\">Developed by Gregory Weir - http://ludusnovus.net</a>"; byMe.x = 0; byMe.y = 465; byMe.width = 675; byMe.setTextFormat(Fonts.AndrewCentered); byMe.embedFonts = true; this.addChild(byMe); byMe.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent):void{ Cursor.theCursor.visible = false; }); byMe.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent):void{ Cursor.theCursor.visible = true; }); score = new TextField(); score.x = 0; score.y = 350; score.width = 675; score.defaultTextFormat = Fonts.AndrewCentered; score.text = (((((("Time Elapsed: " + ((Main.endTime - Main.startTime) / 1000)) + " seconds\n") + BarcodeHotspot.barcodesScanned) + "/") + NodeFactory.totalBarcodes) + " barcodes scanned"); score.embedFonts = true; score.selectable = false; this.addChild(score); var replay:TextField = new TextField(); replay.x = 0; replay.y = 425; replay.width = 675; replay.defaultTextFormat = Fonts.AndrewCentered; replay.text = "Replay?"; replay.embedFonts = true; replay.selectable = false; this.addChild(replay); replay.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{ replayClicked(); }); barcode = new BarcodeHotspot(212, 200, "", sprEndBarcode); barcode.addEventListener("SCANNED", function (_arg1:Event):void{ barcodeScanned(); }); this.addChild(barcode); Cursor.setInventoryIcon(Cursor.bmCurScanner); laserLayer = new Sprite(); laserLayer.mouseEnabled = false; this.addChild(laserLayer); this.addEventListener(MouseEvent.MOUSE_DOWN, startScan); this.addEventListener(MouseEvent.MOUSE_MOVE, updateScan); this.addEventListener(MouseEvent.MOUSE_UP, endScan); laserTimer = new Timer(50, 0); laserTimer.addEventListener(TimerEvent.TIMER, fadeLaser); laserTimer.start(); } private function drawTrail():void{ var _local1:int; if (mousePoints == null){ return; }; laserLayer.graphics.clear(); if (mousePoints.length == 1){ laserLayer.graphics.beginFill(0xFF0000); laserLayer.graphics.drawCircle(mousePoints[0].x, mousePoints[0].y, 4.5); } else { laserLayer.graphics.moveTo(mousePoints[0].x, mousePoints[0].y); _local1 = 1; while (_local1 < mousePoints.length) { laserLayer.graphics.lineStyle(9, 0xFF0000, (Number(_local1) / Number(mousePoints.length))); laserLayer.graphics.lineTo(mousePoints[_local1].x, mousePoints[_local1].y); _local1++; }; }; } private function updateScan(_arg1:MouseEvent):void{ if (((_arg1.buttonDown) && ((Cursor.activeInventoryCursor == Cursor.bmCurScanner)))){ mousePoints.push(new Point(_arg1.stageX, _arg1.stageY)); if (mousePoints.length > LASER_LENGTH){ mousePoints.splice(0, 1); }; drawTrail(); }; } private function fadeLaser(_arg1:Event):void{ if (((mousePoints) && ((mousePoints.length > 1)))){ mousePoints.splice(0, 1); drawTrail(); }; } private function barcodeScanned():void{ theEnd.visible = true; barcode.visible = false; score.text = (((((("Time Elapsed: " + ((Main.endTime - Main.startTime) / 1000)) + " seconds\n") + BarcodeHotspot.barcodesScanned) + "/") + NodeFactory.totalBarcodes) + " barcodes scanned"); } private function endScan(_arg1:MouseEvent):void{ laserLayer.graphics.clear(); mousePoints = null; } private function replayClicked():void{ Main(parent.parent).replay(); } private function startScan(_arg1:MouseEvent):void{ if (Cursor.activeInventoryCursor == Cursor.bmCurScanner){ mousePoints = new Array(); mousePoints.push(new Point(_arg1.stageX, _arg1.stageY)); drawTrail(); }; } } }//package Interface
Section 115
//EndScreen_sprEndBarcode (Interface.EndScreen_sprEndBarcode) package Interface { import mx.core.*; public class EndScreen_sprEndBarcode extends BitmapAsset { } }//package Interface
Section 116
//ForwardButton (Interface.ForwardButton) package Interface { public class ForwardButton extends Hotspot { public function ForwardButton(){ graphics.beginFill(0xFF0000, 0); graphics.drawRect(0, 0, (Main.STAGE_WIDTH - 200), (Main.STAGE_HEIGHT - 100)); graphics.endFill(); this.x = 100; this.y = 0; super(); } override protected function activeCursor():void{ Cursor.setForward(); } } }//package Interface
Section 117
//GenericHotspot (Interface.GenericHotspot) package Interface { import flash.display.*; import Util.*; public class GenericHotspot extends Hotspot { public function GenericHotspot(_arg1:int, _arg2:int, _arg3:Class, _arg4:int=-1, _arg5:int=-1){ this.x = _arg1; this.y = _arg2; if (_arg3){ SugarGraphics.drawSprite(graphics, (new (_arg3) as Bitmap).bitmapData, 0, 0); }; if ((((_arg4 > 0)) && ((_arg5 > 0)))){ graphics.beginFill(0xFF0000, 0); graphics.drawRect(0, 0, _arg4, _arg5); }; super(); } } }//package Interface
Section 118
//Hotspot (Interface.Hotspot) package Interface { import flash.events.*; import flash.display.*; public class Hotspot extends Sprite { private var removed:Boolean;// = false private var draggingOver:Boolean;// = false private var mouseIsOver:Boolean;// = false public function Hotspot(){ mouseChildren = false; this.addEventListener(MouseEvent.MOUSE_MOVE, mouseOver); this.addEventListener(MouseEvent.MOUSE_OUT, mouseOut); this.addEventListener(MouseEvent.MOUSE_UP, mouseUp); } protected function inactiveCursor():void{ Cursor.setInactive(); } protected function dragEnter(_arg1:MouseEvent):void{ } protected function mouseOut(_arg1:MouseEvent):void{ if (((_arg1.buttonDown) && (draggingOver))){ dragLeave(_arg1); }; mouseIsOver = false; rolloutDraw(); inactiveCursor(); } public function remove():void{ removed = true; visible = false; } protected function mouseUp(_arg1:MouseEvent):void{ } protected function dragLeave(_arg1:MouseEvent):void{ } protected function rolloverDraw():void{ } protected function rolloutDraw():void{ } protected function mouseOver(_arg1:MouseEvent):void{ if (!mouseIsOver){ rolloverDraw(); if (_arg1.buttonDown){ draggingOver = true; dragEnter(_arg1); }; }; activeCursor(); mouseIsOver = true; } protected function activeCursor():void{ } public function toggleVisibility(_arg1:Boolean):void{ if (!removed){ this.visible = _arg1; }; } } }//package Interface
Section 119
//InventoryIcon (Interface.InventoryIcon) package Interface { import flash.events.*; import flash.display.*; import Data.*; import Util.*; public class InventoryIcon extends Sprite { private var active:Boolean;// = false private var icon:Bitmap;// = null public function InventoryIcon(_arg1:Bitmap){ this.icon = _arg1; redraw(); this.addEventListener(MouseEvent.CLICK, onClick); } public function get isActive():Boolean{ return (active); } public function set isActive(_arg1:Boolean):void{ active = _arg1; redraw(); } private function onClick(_arg1:MouseEvent):void{ if (active){ Cursor.deactivateInventory(); NodeFactory.INVENTORY.deactivate(); } else { Cursor.setInventoryIcon(icon); NodeFactory.INVENTORY.activate(this); }; } private function redraw():void{ graphics.clear(); if (active){ graphics.beginFill(0xCCCCCC); } else { graphics.beginFill(0x999999); }; graphics.drawCircle(16, 16, 16); graphics.endFill(); SugarGraphics.drawSprite(graphics, icon.bitmapData, ((32 - icon.width) / 2), 0); } } }//package Interface
Section 120
//LeftButton (Interface.LeftButton) package Interface { public class LeftButton extends Hotspot { public function LeftButton(){ graphics.beginFill(0xFF0000, 0); graphics.drawRect(0, 0, 100, Main.STAGE_HEIGHT); graphics.endFill(); this.x = 0; this.y = 0; super(); } override protected function activeCursor():void{ Cursor.setLeft(); } } }//package Interface
Section 121
//NodeLinkHotspot (Interface.NodeLinkHotspot) package Interface { import flash.events.*; import flash.display.*; import Util.*; public class NodeLinkHotspot extends Hotspot { private var bmMine:Bitmap; private var myNode:int; public function NodeLinkHotspot(_arg1:int, _arg2:int, _arg3:int, _arg4:Class=null, _arg5:int=-1, _arg6:int=-1){ this.x = _arg1; this.y = _arg2; if (_arg4){ this.bmMine = (new (_arg4) as Bitmap); SugarGraphics.drawSprite(graphics, bmMine.bitmapData, 0, 0); }; if ((((_arg5 > 0)) && ((_arg6 > 0)))){ graphics.beginFill(0xFF0000, 0); graphics.drawRect(0, 0, _arg5, _arg6); }; super(); myNode = _arg3; this.addEventListener(MouseEvent.CLICK, onClick); } override protected function activeCursor():void{ Cursor.setForward(); } private function onClick(_arg1:MouseEvent):void{ ViewScreen.currentViewScreen.setNode(myNode); } } }//package Interface
Section 122
//PickupHotspot (Interface.PickupHotspot) package Interface { import flash.events.*; import flash.display.*; import Data.*; import Util.*; public class PickupHotspot extends Hotspot { private var icon:InventoryIcon; private var myMessage:String; public function PickupHotspot(_arg1:int, _arg2:int, _arg3:Class, _arg4:InventoryIcon, _arg5:String){ this.x = _arg1; this.y = _arg2; SugarGraphics.drawSprite(graphics, (new (_arg3) as Bitmap).bitmapData, 0, 0); this.icon = _arg4; this.addEventListener(MouseEvent.CLICK, pickup); myMessage = _arg5; } private function pickup(_arg1:MouseEvent):void{ this.visible = false; NodeFactory.INVENTORY.addItem(icon); ViewScreen.setText(myMessage); } } }//package Interface
Section 123
//RightButton (Interface.RightButton) package Interface { public class RightButton extends Hotspot { public function RightButton(){ graphics.beginFill(0xFF0000, 0); graphics.drawRect(0, 0, 100, Main.STAGE_HEIGHT); graphics.endFill(); this.x = (Main.STAGE_WIDTH - 100); this.y = 0; super(); } override protected function activeCursor():void{ Cursor.setRight(); } } }//package Interface
Section 124
//RotationalHotspot (Interface.RotationalHotspot) package Interface { import flash.events.*; import flash.display.*; import Util.*; public class RotationalHotspot extends Hotspot { private var currFrame:int;// = 0 private var rotFrames:Array; public function RotationalHotspot(_arg1:int, _arg2:int, ... _args){ rotFrames = new Array(); this.x = _arg1; this.y = _arg2; var _local4:int; while (_local4 < _args.length) { rotFrames.push((new (_args[_local4]) as Bitmap)); _local4++; }; this.addEventListener(MouseEvent.CLICK, rotate); redraw(); super(); } public function rotate(_arg1:Event):void{ currFrame++; if (currFrame == rotFrames.length){ currFrame = 0; }; redraw(); } public function get currentFrame():int{ return (currFrame); } private function redraw():void{ graphics.clear(); SugarGraphics.drawSprite(graphics, rotFrames[currFrame].bitmapData, 0, 0); } override protected function activeCursor():void{ Cursor.setRotate(); } } }//package Interface
Section 125
//SceneryHotspot (Interface.SceneryHotspot) package Interface { import flash.display.*; import Util.*; public class SceneryHotspot extends Hotspot { private var myBitmap:Bitmap; public function SceneryHotspot(_arg1:int, _arg2:int, _arg3:Class){ this.x = _arg1; this.y = _arg2; myBitmap = (new (_arg3) as Bitmap); SugarGraphics.drawSprite(graphics, myBitmap.bitmapData, 0, 0); mouseEnabled = false; } public function drawSelf(_arg1:Graphics):void{ SugarGraphics.drawSprite(_arg1, myBitmap.bitmapData, x, y); } } }//package Interface
Section 126
//SpiderHotspot (Interface.SpiderHotspot) package Interface { import flash.events.*; import flash.display.*; import flash.utils.*; import Util.*; public class SpiderHotspot extends Hotspot { private var dead:Boolean;// = false private var startx:int; private static var clsSpider:Class = SpiderHotspot_clsSpider; public function SpiderHotspot(_arg1:int, _arg2:int){ this.x = _arg1; this.y = _arg2; this.startx = _arg1; SugarGraphics.drawSprite(graphics, (new clsSpider() as Bitmap).bitmapData, 0, 0); var _local3:Timer = new Timer(500); _local3.addEventListener(TimerEvent.TIMER, twitchLoop); _local3.start(); this.addEventListener(MouseEvent.CLICK, onClick); } public function die():void{ this.dead = true; this.rotation = 180; this.x = (this.x + this.width); this.y = (this.y + this.height); } private function twitchLoop(_arg1:Event):void{ if (!dead){ if (this.x == this.startx){ if (Math.random() < 0.5){ x++; } else { x--; }; } else { this.x = this.startx; }; }; } public function onClick(_arg1:MouseEvent):void{ if (dead){ ViewScreen.setText("I think it's dead."); } else { ViewScreen.setText("That is one creepy spider."); }; } } }//package Interface
Section 127
//SpiderHotspot_clsSpider (Interface.SpiderHotspot_clsSpider) package Interface { import mx.core.*; public class SpiderHotspot_clsSpider extends BitmapAsset { } }//package Interface
Section 128
//TitleScreen (Interface.TitleScreen) package Interface { import flash.events.*; import flash.display.*; import flash.text.*; import Util.*; import flash.net.*; public class TitleScreen extends Sprite { private static const bmTitleLogo:Bitmap = new sprTitleLogo(); private static var agButtonClass:Class = TitleScreen_agButtonClass; private static var sprTitleLogo:Class = TitleScreen_sprTitleLogo; public function TitleScreen(){ super(); bmTitleLogo.x = 187; bmTitleLogo.y = 75; this.addChild(bmTitleLogo); var playButton:TextField = new TextField(); playButton.defaultTextFormat = Fonts.BigAndrewCentered; playButton.embedFonts = true; playButton.selectable = false; playButton.width = 150; playButton.x = 100; playButton.y = 325; playButton.height = 50; playButton.text = "BEGIN"; this.addChild(playButton); playButton.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{ Main(parent).beginGame(); }); var creditsButton:TextField = new TextField(); creditsButton.defaultTextFormat = Fonts.BigAndrewCentered; creditsButton.embedFonts = true; creditsButton.selectable = false; creditsButton.width = 200; creditsButton.x = 400; creditsButton.y = 325; creditsButton.height = 50; creditsButton.text = "CREDITS"; this.addChild(creditsButton); creditsButton.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{ Main(parent).showCredits(); }); var agButton:Sprite = new Sprite(); agButton.addChild((new agButtonClass() as Bitmap)); agButton.x = ((Main.STAGE_WIDTH - agButton.width) / 2); agButton.y = 400; agButton.buttonMode = true; agButton.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{ navigateToURL(new URLRequest("http://www.ArmorGames.com"), "_blank"); }); this.addChild(agButton); var byMe:TextField = new TextField(); byMe.htmlText = "<a href=\"http://ludusnovus.net\" target=\"_blank\">Developed by Gregory Weir - http://ludusnovus.net</a>"; byMe.x = 0; byMe.y = 465; byMe.width = 675; byMe.setTextFormat(Fonts.AndrewCentered); byMe.embedFonts = true; this.addChild(byMe); byMe.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent):void{ Cursor.theCursor.visible = false; }); byMe.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent):void{ Cursor.theCursor.visible = true; }); } } }//package Interface
Section 129
//TitleScreen_agButtonClass (Interface.TitleScreen_agButtonClass) package Interface { import mx.core.*; public class TitleScreen_agButtonClass extends BitmapAsset { } }//package Interface
Section 130
//TitleScreen_sprTitleLogo (Interface.TitleScreen_sprTitleLogo) package Interface { import mx.core.*; public class TitleScreen_sprTitleLogo extends BitmapAsset { } }//package Interface
Section 131
//ViewScreen (Interface.ViewScreen) package Interface { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.utils.*; import Data.*; import flash.text.*; import Util.*; public class ViewScreen extends Sprite { private var backButton:BackButton; private var textLine:TextField; private var laserLayer:Sprite; private var hotspotLayer:Sprite; private var message2bdisplayed:Boolean; private var currNode:Node; private var forwardButton:ForwardButton; private var leftButton:LeftButton; private var message1displayed:Boolean; private var message2adisplayed:Boolean; private var currFacing:int; private var mousePoints:Array; private var inv:Inventory; private var rightButton:RightButton; private var laserTimer:Timer; private static const LASER_LENGTH:int = 5; public static var currentViewScreen:ViewScreen; public function ViewScreen(_arg1:int, _arg2:int){ leftButton = new LeftButton(); rightButton = new RightButton(); backButton = new BackButton(); forwardButton = new ForwardButton(); hotspotLayer = new Sprite(); super(); currentViewScreen = this; this.addChild(backButton); backButton.addEventListener(MouseEvent.CLICK, moveBack); this.addChild(leftButton); leftButton.addEventListener(MouseEvent.CLICK, turnLeft); this.addChild(rightButton); rightButton.addEventListener(MouseEvent.CLICK, turnRight); this.addChild(forwardButton); forwardButton.addEventListener(MouseEvent.CLICK, moveForward); this.addChild(hotspotLayer); laserLayer = new Sprite(); laserLayer.mouseEnabled = false; this.addChild(laserLayer); this.addEventListener(MouseEvent.MOUSE_DOWN, startScan); this.addEventListener(MouseEvent.MOUSE_MOVE, updateScan); this.addEventListener(MouseEvent.MOUSE_UP, endScan); laserTimer = new Timer(50, 0); laserTimer.addEventListener(TimerEvent.TIMER, fadeLaser); laserTimer.start(); inv = NodeFactory.INVENTORY; inv.x = 100; inv.y = 25; this.addChild(inv); textLine = new TextField(); textLine.defaultTextFormat = Fonts.AndrewCentered; textLine.embedFonts = true; textLine.mouseEnabled = false; textLine.selectable = false; textLine.width = Main.STAGE_WIDTH; textLine.y = (Main.STAGE_HEIGHT - 50); textLine.background = true; textLine.backgroundColor = 0xFFFFFF; textLine.height = 30; textLine.visible = false; this.addChild(textLine); currFacing = _arg2; Ambiance.startAmbiance(0.5); setNode(_arg1); setText("I don't do anything anymore. I used to do things, but now I don't."); } public function setNode(_arg1:int):void{ if (_arg1 == 15){ Main(parent).endGame(); return; }; currNode = NodeFactory.NODES[_arg1]; updateMovementAbility(); redraw(); if ((((_arg1 == 0)) || ((_arg1 == 7)))){ Ambiance.setVolume(0.5); } else { if ((((((_arg1 == 1)) || ((_arg1 == 3)))) || ((_arg1 == 10)))){ Ambiance.setVolume(0.25); } else { if ((((((_arg1 == 2)) || ((_arg1 == 4)))) || ((_arg1 == 6)))){ Ambiance.setVolume(0.1); } else { if ((((((_arg1 == 8)) || ((_arg1 == 9)))) || ((_arg1 == 19)))){ Ambiance.setVolume(1); } else { Ambiance.setVolume(0); }; }; }; }; if (_arg1 == 2){ if (!message2adisplayed){ message2adisplayed = true; setText("I can't remember the last time I left my apartment."); }; }; if ((((_arg1 == 1)) && (!(message1displayed)))){ message1displayed = true; setText("All I do is play computer games and sleep, and I don't know why."); }; } private function updateMovementAbility():void{ if ((currNode is NavNode)){ leftButton.visible = true; rightButton.visible = true; switch (currFacing){ case Main.NORTH: backButton.visible = !((NavNode(currNode).nodeSouth == -1)); forwardButton.visible = !((NavNode(currNode).nodeNorth == -1)); break; case Main.SOUTH: backButton.visible = !((NavNode(currNode).nodeNorth == -1)); forwardButton.visible = !((NavNode(currNode).nodeSouth == -1)); break; case Main.EAST: backButton.visible = !((NavNode(currNode).nodeWest == -1)); forwardButton.visible = !((NavNode(currNode).nodeEast == -1)); break; case Main.WEST: backButton.visible = !((NavNode(currNode).nodeEast == -1)); forwardButton.visible = !((NavNode(currNode).nodeWest == -1)); break; }; } else { if ((currNode is ZoomNode)){ backButton.visible = true; leftButton.visible = false; rightButton.visible = false; forwardButton.visible = false; }; }; } private function turnRight(_arg1:Event):void{ this.currFacing++; if (this.currFacing == 4){ this.currFacing = 0; }; updateMovementAbility(); redraw(); if (((((!(message2bdisplayed)) && ((this.currNode == NodeFactory.NODES[2])))) && ((this.currFacing == Main.NORTH)))){ message2bdisplayed = true; setText("I never get any visitors, or receive any mail."); }; } private function turnLeft(_arg1:Event):void{ this.currFacing--; if (this.currFacing == -1){ this.currFacing = 3; }; updateMovementAbility(); redraw(); if (((((!(message2bdisplayed)) && ((this.currNode == NodeFactory.NODES[2])))) && ((this.currFacing == Main.NORTH)))){ message2bdisplayed = true; setText("I never get any visitors, or receive any mail."); }; } private function updateScan(_arg1:MouseEvent):void{ if (((_arg1.buttonDown) && ((Cursor.activeInventoryCursor == Cursor.bmCurScanner)))){ mousePoints.push(new Point(_arg1.stageX, _arg1.stageY)); if (mousePoints.length > LASER_LENGTH){ mousePoints.splice(0, 1); }; drawTrail(); }; } private function addHotspot(_arg1:Hotspot):void{ if ((_arg1 is SceneryHotspot)){ if (_arg1.visible){ SceneryHotspot(_arg1).drawSelf(graphics); }; } else { hotspotLayer.addChild(_arg1); }; } private function drawTrail():void{ var _local1:int; if (mousePoints == null){ return; }; laserLayer.graphics.clear(); if (mousePoints.length == 1){ laserLayer.graphics.beginFill(0xFF0000); laserLayer.graphics.drawCircle(mousePoints[0].x, mousePoints[0].y, 4.5); } else { laserLayer.graphics.moveTo(mousePoints[0].x, mousePoints[0].y); _local1 = 1; while (_local1 < mousePoints.length) { laserLayer.graphics.lineStyle(9, 0xFF0000, (Number(_local1) / Number(mousePoints.length))); laserLayer.graphics.lineTo(mousePoints[_local1].x, mousePoints[_local1].y); _local1++; }; }; } private function moveBack(_arg1:Event):void{ var _local2:int; if ((currNode is NavNode)){ _local2 = ((currFacing + 2) % 4); if (NavNode(currNode).nodeTo(_local2) == -1){ return; }; setNode(NavNode(currNode).nodeTo(_local2)); } else { if ((currNode is ZoomNode)){ setNode(ZoomNode(currNode).backNode); }; }; } private function fadeLaser(_arg1:Event):void{ if (((mousePoints) && ((mousePoints.length > 1)))){ mousePoints.splice(0, 1); drawTrail(); }; } private function redraw():void{ var _local1:Bitmap; var _local2:Array; var _local3:int; setText(""); graphics.clear(); while (hotspotLayer.numChildren > 0) { hotspotLayer.removeChildAt(0); }; if ((currNode is NavNode)){ _local1 = NavNode(currNode).bmTo(currFacing); } else { if ((currNode is ZoomNode)){ _local1 = ZoomNode(currNode).bmBackground; }; }; SugarGraphics.drawSprite(graphics, _local1.bitmapData, 0, 0); if ((currNode is NavNode)){ _local2 = NavNode(currNode).hotspotsTo(currFacing); _local3 = 0; while (_local3 < _local2.length) { addHotspot(_local2[_local3]); _local3++; }; } else { if ((currNode is ZoomNode)){ _local2 = ZoomNode(currNode).hotspots; _local3 = 0; while (_local3 < _local2.length) { addHotspot(_local2[_local3]); _local3++; }; }; }; } private function endScan(_arg1:MouseEvent):void{ laserLayer.graphics.clear(); mousePoints = null; } private function moveForward(_arg1:Event):void{ if (((!((currNode is NavNode))) || ((NavNode(currNode).nodeTo(currFacing) == -1)))){ return; }; setNode(NavNode(currNode).nodeTo(currFacing)); } private function startScan(_arg1:MouseEvent):void{ if (Cursor.activeInventoryCursor == Cursor.bmCurScanner){ mousePoints = new Array(); mousePoints.push(new Point(_arg1.stageX, _arg1.stageY)); drawTrail(); }; } public static function setText(_arg1:String):void{ if (currentViewScreen){ ViewScreen.currentViewScreen.textLine.text = _arg1; ViewScreen.currentViewScreen.textLine.visible = !((_arg1 == "")); }; } } }//package Interface
Section 132
//BitmapAsset (mx.core.BitmapAsset) package mx.core { import flash.display.*; public class BitmapAsset extends FlexBitmap implements IFlexAsset, IFlexDisplayObject { mx_internal static const VERSION:String = "3.0.0.0"; public function BitmapAsset(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } public function get measuredWidth():Number{ if (bitmapData){ return (bitmapData.width); }; return (0); } public function get measuredHeight():Number{ if (bitmapData){ return (bitmapData.height); }; return (0); } public function setActualSize(_arg1:Number, _arg2:Number):void{ width = _arg1; height = _arg2; } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } } }//package mx.core
Section 133
//ByteArrayAsset (mx.core.ByteArrayAsset) package mx.core { import flash.utils.*; public class ByteArrayAsset extends ByteArray implements IFlexAsset { mx_internal static const VERSION:String = "3.0.0.0"; } }//package mx.core
Section 134
//EdgeMetrics (mx.core.EdgeMetrics) package mx.core { public class EdgeMetrics { public var top:Number; public var left:Number; public var bottom:Number; public var right:Number; mx_internal static const VERSION:String = "3.0.0.0"; public static const EMPTY:EdgeMetrics = new EdgeMetrics(0, 0, 0, 0); ; public function EdgeMetrics(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){ this.left = _arg1; this.top = _arg2; this.right = _arg3; this.bottom = _arg4; } public function clone():EdgeMetrics{ return (new EdgeMetrics(left, top, right, bottom)); } } }//package mx.core
Section 135
//FlexBitmap (mx.core.FlexBitmap) package mx.core { import flash.display.*; import mx.utils.*; public class FlexBitmap extends Bitmap { mx_internal static const VERSION:String = "3.0.0.0"; public function FlexBitmap(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){ var bitmapData = _arg1; var pixelSnapping = _arg2; var smoothing = _arg3; super(bitmapData, pixelSnapping, smoothing); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 136
//FlexMovieClip (mx.core.FlexMovieClip) package mx.core { import flash.display.*; import mx.utils.*; public class FlexMovieClip extends MovieClip { mx_internal static const VERSION:String = "3.0.0.0"; public function FlexMovieClip(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 137
//FontAsset (mx.core.FontAsset) package mx.core { import flash.text.*; public class FontAsset extends Font implements IFlexAsset { mx_internal static const VERSION:String = "3.0.0.0"; } }//package mx.core
Section 138
//IBorder (mx.core.IBorder) package mx.core { public interface IBorder { function get borderMetrics():EdgeMetrics; } }//package mx.core
Section 139
//IFlexAsset (mx.core.IFlexAsset) package mx.core { public interface IFlexAsset { } }//package mx.core
Section 140
//IFlexDisplayObject (mx.core.IFlexDisplayObject) package mx.core { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.accessibility.*; public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher { function get visible():Boolean; function get rotation():Number; function localToGlobal(_arg1:Point):Point; function get name():String; function set width(_arg1:Number):void; function get measuredHeight():Number; function get blendMode():String; function get scale9Grid():Rectangle; function set name(_arg1:String):void; function set scaleX(_arg1:Number):void; function set scaleY(_arg1:Number):void; function get measuredWidth():Number; function get accessibilityProperties():AccessibilityProperties; function set scrollRect(_arg1:Rectangle):void; function get cacheAsBitmap():Boolean; function globalToLocal(_arg1:Point):Point; function get height():Number; function set blendMode(_arg1:String):void; function get parent():DisplayObjectContainer; function getBounds(_arg1:DisplayObject):Rectangle; function get opaqueBackground():Object; function set scale9Grid(_arg1:Rectangle):void; function setActualSize(_arg1:Number, _arg2:Number):void; function set alpha(_arg1:Number):void; function set accessibilityProperties(_arg1:AccessibilityProperties):void; function get width():Number; function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean; function set cacheAsBitmap(_arg1:Boolean):void; function get scaleX():Number; function get scaleY():Number; function get scrollRect():Rectangle; function get mouseX():Number; function get mouseY():Number; function set height(_arg1:Number):void; function set mask(_arg1:DisplayObject):void; function getRect(_arg1:DisplayObject):Rectangle; function get alpha():Number; function set transform(_arg1:Transform):void; function move(_arg1:Number, _arg2:Number):void; function get loaderInfo():LoaderInfo; function get root():DisplayObject; function hitTestObject(_arg1:DisplayObject):Boolean; function set opaqueBackground(_arg1:Object):void; function set visible(_arg1:Boolean):void; function get mask():DisplayObject; function set x(_arg1:Number):void; function set y(_arg1:Number):void; function get transform():Transform; function set filters(_arg1:Array):void; function get x():Number; function get y():Number; function get filters():Array; function set rotation(_arg1:Number):void; function get stage():Stage; } }//package mx.core
Section 141
//IRepeaterClient (mx.core.IRepeaterClient) package mx.core { public interface IRepeaterClient { function get instanceIndices():Array; function set instanceIndices(_arg1:Array):void; function get isDocument():Boolean; function set repeaters(_arg1:Array):void; function initializeRepeaterArrays(_arg1:IRepeaterClient):void; function get repeaters():Array; function set repeaterIndices(_arg1:Array):void; function get repeaterIndices():Array; } }//package mx.core
Section 142
//MovieClipAsset (mx.core.MovieClipAsset) package mx.core { public class MovieClipAsset extends FlexMovieClip implements IFlexAsset, IFlexDisplayObject, IBorder { private var _measuredHeight:Number; private var _measuredWidth:Number; mx_internal static const VERSION:String = "3.0.0.0"; public function MovieClipAsset(){ _measuredWidth = width; _measuredHeight = height; } public function get measuredWidth():Number{ return (_measuredWidth); } public function get measuredHeight():Number{ return (_measuredHeight); } public function setActualSize(_arg1:Number, _arg2:Number):void{ width = _arg1; height = _arg2; } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } public function get borderMetrics():EdgeMetrics{ if (scale9Grid == null){ return (EdgeMetrics.EMPTY); }; return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom)))); } } }//package mx.core
Section 143
//MovieClipLoaderAsset (mx.core.MovieClipLoaderAsset) package mx.core { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.system.*; public class MovieClipLoaderAsset extends MovieClipAsset implements IFlexAsset, IFlexDisplayObject { protected var initialHeight:Number;// = 0 private var loader:Loader;// = null private var initialized:Boolean;// = false protected var initialWidth:Number;// = 0 private var requestedHeight:Number; private var requestedWidth:Number; mx_internal static const VERSION:String = "3.0.0.0"; public function MovieClipLoaderAsset(){ var _local1:LoaderContext = new LoaderContext(); _local1.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain); if (("allowLoadBytesCodeExecution" in _local1)){ _local1["allowLoadBytesCodeExecution"] = true; }; loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); loader.loadBytes(movieClipData, _local1); addChild(loader); } override public function get width():Number{ if (!initialized){ return (initialWidth); }; return (super.width); } override public function set width(_arg1:Number):void{ if (!initialized){ requestedWidth = _arg1; } else { loader.width = _arg1; }; } override public function get measuredHeight():Number{ return (initialHeight); } private function completeHandler(_arg1:Event):void{ initialized = true; initialWidth = loader.width; initialHeight = loader.height; if (!isNaN(requestedWidth)){ loader.width = requestedWidth; }; if (!isNaN(requestedHeight)){ loader.height = requestedHeight; }; dispatchEvent(_arg1); } override public function set height(_arg1:Number):void{ if (!initialized){ requestedHeight = _arg1; } else { loader.height = _arg1; }; } override public function get measuredWidth():Number{ return (initialWidth); } override public function get height():Number{ if (!initialized){ return (initialHeight); }; return (super.height); } public function get movieClipData():ByteArray{ return (null); } } }//package mx.core
Section 144
//mx_internal (mx.core.mx_internal) package mx.core { public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal"; }//package mx.core
Section 145
//SoundAsset (mx.core.SoundAsset) package mx.core { import flash.media.*; public class SoundAsset extends Sound implements IFlexAsset { mx_internal static const VERSION:String = "3.0.0.0"; } }//package mx.core
Section 146
//NameUtil (mx.utils.NameUtil) package mx.utils { import flash.display.*; import mx.core.*; import flash.utils.*; public class NameUtil { mx_internal static const VERSION:String = "3.0.0.0"; private static var counter:int = 0; public static function displayObjectToString(_arg1:DisplayObject):String{ var _local2:String; var _local4:String; var _local5:Array; var _local3:DisplayObject = _arg1; while (_local3 != null) { if (((((_local3.parent) && (_local3.stage))) && ((_local3.parent == _local3.stage)))){ break; }; _local4 = _local3.name; if ((_local3 is IRepeaterClient)){ _local5 = IRepeaterClient(_local3).instanceIndices; if (_local5){ _local4 = (_local4 + (("[" + _local5.join("][")) + "]")); }; }; _local2 = ((_local2 == null)) ? _local4 : ((_local4 + ".") + _local2); _local3 = _local3.parent; }; return (_local2); } public static function createUniqueName(_arg1:Object):String{ if (!_arg1){ return (null); }; var _local2:String = getQualifiedClassName(_arg1); var _local3:int = _local2.indexOf("::"); if (_local3 != -1){ _local2 = _local2.substr((_local3 + 2)); }; var _local4:int = _local2.charCodeAt((_local2.length - 1)); if ((((_local4 >= 48)) && ((_local4 <= 57)))){ _local2 = (_local2 + "_"); }; return ((_local2 + counter++)); } } }//package mx.utils
Section 147
//Fonts (Util.Fonts) package Util { import flash.text.*; public class Fonts { public static const AndrewCentered:TextFormat = new TextFormat(ANDREW, 20, null, null, null, null, null, null, TextFormatAlign.CENTER); private static const POCKETCALCULATOR:String = "PocketCalculator"; public static const BigAndrewCentered:TextFormat = new TextFormat(ANDREW, 45, null, null, null, null, null, null, TextFormatAlign.CENTER); public static const PocketCalculatorCentered:TextFormat = new TextFormat(POCKETCALCULATOR, 24, null, null, null, null, null, null, TextFormatAlign.CENTER); private static const ANDREW:String = "Andrew"; private static var Andrew:String = "Fonts_Andrew"; private static var pocketCalculator:String = "Fonts_pocketCalculator"; } }//package Util
Section 148
//Fonts_Andrew (Util.Fonts_Andrew) package Util { import mx.core.*; public class Fonts_Andrew extends FontAsset { } }//package Util
Section 149
//Fonts_pocketCalculator (Util.Fonts_pocketCalculator) package Util { import mx.core.*; public class Fonts_pocketCalculator extends FontAsset { } }//package Util
Section 150
//SugarGraphics (Util.SugarGraphics) package Util { import flash.display.*; import flash.geom.*; public class SugarGraphics { public static function drawSprite(_arg1:Graphics, _arg2:BitmapData, _arg3:Number, _arg4:Number, _arg5:Matrix=null, _arg6:Number=1):void{ if (_arg5 == null){ _arg5 = new Matrix(); }; _arg5.scale(_arg6, _arg6); _arg5.translate(_arg3, _arg4); _arg1.beginBitmapFill(_arg2, _arg5); _arg1.drawRect(_arg3, _arg4, (_arg2.width * _arg6), (_arg2.height * _arg6)); _arg1.endFill(); } } }//package Util
Section 151
//Main (Main) package { import flash.events.*; import Interface.*; import flash.display.*; import flash.utils.*; import Data.*; import flash.ui.*; public dynamic class Main extends MovieClip { private var creditScreen:CreditScreen; private var viewScreen:ViewScreen; private var introTimer:Timer; private var introAnim:MovieClip; private var closingCutscene:ClosingCutscene; public static const STAGE_WIDTH:int = 675; public static const STAGE_HEIGHT:int = 500; public static const NORTH:int = 0; public static const SOUTH:int = 2; public static const WEST:int = 3; public static const EAST:int = 1; private static var agIntroClass:Class = Main_agIntroClass; public static var startTime:int; public static var endTime:int; public function Main():void{ creditScreen = new CreditScreen(); super(); if (stage){ init(); } else { addEventListener(Event.ADDED_TO_STAGE, init); }; } public function showCredits():void{ this.addChildAt(creditScreen, (numChildren - 1)); } private function moveCursor(_arg1:MouseEvent):void{ Mouse.hide(); Cursor.theCursor.x = _arg1.stageX; Cursor.theCursor.y = _arg1.stageY; } public function closeCredits():void{ this.removeChild(creditScreen); } public function endGame():void{ closingCutscene = new ClosingCutscene(); this.addChildAt(closingCutscene, (numChildren - 1)); this.removeChild(viewScreen); endTime = getTimer(); } private function introDone(_arg1:Event):void{ var _local4:String; var _local5:String; var _local6:int; introTimer.removeEventListener(TimerEvent.TIMER, introDone); introTimer.stop(); introTimer = null; Loader(introAnim.getChildAt(0)).unload(); this.removeChild(introAnim); introAnim = null; var _local2:Array = new Array("armorgames.com"); var _local3:Boolean; if (_local2.length > 0){ _local3 = false; _local4 = stage.loaderInfo.url.split("/")[2]; for (_local5 in _local2) { _local6 = _local4.indexOf(_local2[_local5]); if ((((_local6 > -1)) && ((_local6 == (_local4.length - _local2[_local5].length))))){ _local3 = true; break; }; }; }; if (!_local3){ this.alpha = 0; }; graphics.clear(); graphics.beginFill(0xFFFFFF); graphics.drawRect(0, 0, STAGE_WIDTH, STAGE_HEIGHT); graphics.endFill(); this.addChild(new TitleScreen()); this.addChild(Cursor.theCursor); stage.addEventListener(MouseEvent.MOUSE_MOVE, moveCursor); } private function init(_arg1:Event=null):void{ removeEventListener(Event.ADDED_TO_STAGE, init); introAnim = new agIntroClass(); var _local2:Number = (Main.STAGE_WIDTH / introAnim.width); introAnim.scaleX = _local2; introAnim.scaleY = _local2; introAnim.y = ((Main.STAGE_HEIGHT - (introAnim.height * _local2)) / 2); this.addChild(introAnim); trace(introAnim); introTimer = new Timer(6000, 1); introTimer.addEventListener(TimerEvent.TIMER, introDone); introTimer.start(); } public function replay():void{ Cursor.deactivateInventory(); this.removeChild(closingCutscene); BarcodeHotspot.barcodesScanned = 0; NodeFactory.reset(); } public function beginGame():void{ viewScreen = new ViewScreen(3, NORTH); this.addChildAt(viewScreen, (numChildren - 1)); startTime = getTimer(); } } }//package
Section 152
//Main_agIntroClass (Main_agIntroClass) package { import mx.core.*; import flash.utils.*; public class Main_agIntroClass extends MovieClipLoaderAsset { public var dataClass:Class; private static var bytes:ByteArray = null; public function Main_agIntroClass(){ dataClass = Main_agIntroClass_dataClass; super(); initialWidth = (11000 / 20); initialHeight = (8000 / 20); } override public function get movieClipData():ByteArray{ if (bytes == null){ bytes = ByteArray(new dataClass()); }; return (bytes); } } }//package
Section 153
//Main_agIntroClass_dataClass (Main_agIntroClass_dataClass) package { import mx.core.*; public class Main_agIntroClass_dataClass extends ByteArrayAsset { } }//package
Section 154
//Preloader (Preloader) package { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.text.*; public dynamic class Preloader extends MovieClip { private var loaderTimer:Timer; private var loadText:TextField; public static const STAGE_HEIGHT:int = 500; public static const STAGE_WIDTH:int = 675; public function Preloader(){ stage.stageWidth = STAGE_WIDTH; stage.stageHeight = STAGE_HEIGHT; stage.scaleMode = StageScaleMode.NO_SCALE; init(); } private function init():void{ addEventListener(Event.ENTER_FRAME, checkFrame); this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, checkProgress); loadText = new TextField(); loadText.textColor = 0xFFFFFF; loadText.text = "Loading..."; loadText.y = (STAGE_HEIGHT - 25); loadText.x = ((STAGE_WIDTH - loadText.width) / 2); this.addChild(loadText); } private function checkProgress(_arg1:ProgressEvent):void{ loadText.text = (("Loading... " + int(((_arg1.bytesLoaded / _arg1.bytesTotal) * 100))) + "%"); } private function checkFrame(_arg1:Event):void{ if (currentFrame == totalFrames){ removeEventListener(Event.ENTER_FRAME, checkFrame); this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, checkProgress); startup(); }; } private function startup():void{ this.removeChild(loadText); loadText = null; stop(); var _local1:Class = (getDefinitionByName("Main") as Class); addChild((new (_local1) as DisplayObject)); } } }//package

Library Items

Symbol 1 Sound {Data.NodeFactory_clsWallBreak} [Data.NodeFactory_clsWallBreak]
Symbol 2 Sound {Data.NodeFactory_clsMail} [Data.NodeFactory_clsMail]
Symbol 3 Sound {Interface.BarcodeHotspot_clsBeep} [Interface.BarcodeHotspot_clsBeep]
Symbol 4 Sound {Interface.Ambiance_clsAmbiance} [Interface.Ambiance_clsAmbiance]
Symbol 5 Sound {Interface.CombinationHotspot_clsButton} [Interface.CombinationHotspot_clsButton]
Symbol 6 Bitmap {Data.NodeFactory_bgNode3S}
Symbol 7 Bitmap {Data.NodeFactory_bgNode3W}
Symbol 8 Bitmap {Interface.TitleScreen_agButtonClass}
Symbol 9 Bitmap {Data.NodeFactory_bgNode10W}
Symbol 10 Bitmap {Data.NodeFactory_bgNode10S}
Symbol 11 Bitmap {Data.NodeFactory_bgNode4E}
Symbol 12 Bitmap {Data.NodeFactory_sprBattCover}
Symbol 13 Bitmap {Data.NodeFactory_bgNode10N}
Symbol 14 Bitmap {Interface.Cursor_curRight}
Symbol 15 Bitmap {Data.NodeFactory_sprHouseKey}
Symbol 16 Bitmap {Interface.Cursor_curHouseKey}
Symbol 17 Bitmap {Data.NodeFactory_bgNode10E}
Symbol 18 Bitmap {Data.NodeFactory_bgNode4N}
Symbol 19 Font {Util.Fonts_Andrew}
Symbol 20 Bitmap {Data.NodeFactory_bgNode2S}
Symbol 21 Bitmap {Data.NodeFactory_bgNode2W}
Symbol 22 Bitmap {Data.NodeFactory_sprPillBottle}
Symbol 23 Bitmap {Data.NodeFactory_sprEnvelope}
Symbol 24 Bitmap {Interface.Cursor_curForward}
Symbol 25 Bitmap {Data.NodeFactory_bgNode3E}
Symbol 26 Bitmap {Data.NodeFactory_sprWallBarcode}
Symbol 27 Bitmap {Interface.Cursor_curSaw}
Symbol 28 Bitmap {Data.NodeFactory_bgNode3N}
Symbol 29 Bitmap {Data.NodeFactory_bgNode5W}
Symbol 30 Bitmap {Data.NodeFactory_sprBaseballBat}
Symbol 31 Bitmap {Data.NodeFactory_sprSmallBarcode}
Symbol 32 Bitmap {Data.NodeFactory_bgNode5S}
Symbol 33 Bitmap {Data.NodeFactory_bgNode12S}
Symbol 34 Bitmap {Data.NodeFactory_bgNode12W}
Symbol 35 Bitmap {Data.NodeFactory_bgNode12N}
Symbol 36 Bitmap {Data.NodeFactory_bgNode6E}
Symbol 37 Bitmap {Data.NodeFactory_bgNode12E}
Symbol 38 Bitmap {Data.NodeFactory_bgNode6S}
Symbol 39 Bitmap {Data.NodeFactory_bgNode6N}
Symbol 40 Bitmap {Data.NodeFactory_sprElectricKnife}
Symbol 41 Bitmap {Data.NodeFactory_sprBigPanelCoverKeyhole}
Symbol 42 Bitmap {Data.NodeFactory_sprSmallPanelCover}
Symbol 43 Bitmap {Data.NodeFactory_bgNode4W}
Symbol 44 Bitmap {Data.NodeFactory_bgNode4S}
Symbol 45 Bitmap {Data.NodeFactory_bgNode11S}
Symbol 46 Bitmap {Data.NodeFactory_bgNode11W}
Symbol 47 Bitmap {Interface.ClosingCutscene_bgCellOverlay}
Symbol 48 Bitmap {Interface.Cursor_curBack}
Symbol 49 Bitmap {Interface.TitleScreen_sprTitleLogo}
Symbol 50 Bitmap {Data.NodeFactory_bgNode11N}
Symbol 51 Bitmap {Data.NodeFactory_bgNode5E}
Symbol 52 Bitmap {Interface.Cursor_curPillBottle}
Symbol 53 Bitmap {Data.NodeFactory_sprLampshadeUnturned}
Symbol 54 Bitmap {Data.NodeFactory_sprWallHole}
Symbol 55 Bitmap {Data.NodeFactory_bgNode11E}
Symbol 56 Bitmap {Data.NodeFactory_bgNode5N}
Symbol 57 Bitmap {Data.NodeFactory_bgNode14E}
Symbol 58 Bitmap {Data.NodeFactory_bgNode7W}
Symbol 59 Bitmap {Data.NodeFactory_bgNode14S}
Symbol 60 Bitmap {Data.NodeFactory_sprLampshadeTurned}
Symbol 61 Bitmap {Data.NodeFactory_bgNode14N}
Symbol 62 Bitmap {Data.NodeFactory_sprCube}
Symbol 63 Bitmap {Interface.Cursor_curScanner}
Symbol 64 Bitmap {Data.NodeFactory_bgNode14W}
Symbol 65 Bitmap {Interface.Cursor_curBaseballBat}
Symbol 66 MovieClip {Main_agIntroClass}
Symbol 67 Bitmap {Interface.Cursor_curBatteries}
Symbol 68 Bitmap {Data.NodeFactory_sprScanner}
Symbol 69 Bitmap {Data.NodeFactory_sprBigPanelCover}
Symbol 70 Bitmap {Data.NodeFactory_bgNode13E}
Symbol 71 Bitmap {Interface.SpiderHotspot_clsSpider}
Symbol 72 Bitmap {Data.NodeFactory_bgNode13S}
Symbol 73 Bitmap {Data.NodeFactory_bgNode0E}
Symbol 74 Bitmap {Data.NodeFactory_bgNode6W}
Symbol 75 Bitmap {Data.NodeFactory_bgNode13N}
Symbol 76 Bitmap {Data.NodeFactory_bgNode7N}
Symbol 77 Bitmap {Data.NodeFactory_bgNode13W}
Symbol 78 Bitmap {Data.NodeFactory_bgNode7S}
Symbol 79 Bitmap {Interface.Cursor_curRotate}
Symbol 80 Bitmap {Data.NodeFactory_sprEnvelopeTiny}
Symbol 81 Bitmap {Data.NodeFactory_bgNode7E}
Symbol 82 Bitmap {Interface.Cursor_curLeft}
Symbol 83 Bitmap {Data.NodeFactory_sprEnvelopeSmall}
Symbol 84 Bitmap {Data.NodeFactory_bgNode1N}
Symbol 85 Font {Util.Fonts_pocketCalculator}
Symbol 86 Bitmap {Data.NodeFactory_bgNode1E}
Symbol 87 Bitmap {Data.NodeFactory_bgNode9W}
Symbol 88 Bitmap {Data.NodeFactory_bgNode19}
Symbol 89 Bitmap {Data.NodeFactory_bgNode17}
Symbol 90 Bitmap {Data.NodeFactory_bgNode18}
Symbol 91 Bitmap {Data.NodeFactory_bgNode0W}
Symbol 92 Bitmap {Interface.EndScreen_sprEndBarcode}
Symbol 93 Bitmap {Data.NodeFactory_bgNode0N}
Symbol 94 Bitmap {Data.NodeFactory_bgNode16}
Symbol 95 Bitmap {Interface.Cursor_curOldKey}
Symbol 96 Bitmap {Data.NodeFactory_bgNode0S}
Symbol 97 Bitmap {Data.NodeFactory_sprBatteries}
Symbol 98 Bitmap {Data.NodeFactory_bgNode9E}
Symbol 99 Bitmap {Interface.Cursor_curInactive}
Symbol 100 Bitmap {Data.NodeFactory_bgNode2N}
Symbol 101 Bitmap {Interface.ClosingCutscene_bgColorTrees}
Symbol 102 Bitmap {Data.NodeFactory_bgNode2E}
Symbol 103 Bitmap {Data.NodeFactory_bgNode1W}
Symbol 104 BinaryData {Main_agIntroClass_dataClass}
Symbol 105 Bitmap {Data.NodeFactory_sprSmallCube}
Symbol 106 Bitmap {Data.NodeFactory_bgNode9S}
Symbol 107 Bitmap {Data.NodeFactory_sprOldKey}
Symbol 108 Bitmap {Data.NodeFactory_bgNode9N}
Symbol 109 Bitmap {Data.NodeFactory_bgNode1S}

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 1459 bytes "<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'><rdf:Description rdf:about='' xmlns ..."
ScriptLimits (65)Timeline Frame 1MaxRecursionDepth: 1000, ScriptTimeout: 60 seconds
ExportAssets (56)Timeline Frame 2Symbol 1 as "Data.NodeFactory_clsWallBreak"
ExportAssets (56)Timeline Frame 2Symbol 2 as "Data.NodeFactory_clsMail"
ExportAssets (56)Timeline Frame 2Symbol 3 as "Interface.BarcodeHotspot_clsBeep"
ExportAssets (56)Timeline Frame 2Symbol 4 as "Interface.Ambiance_clsAmbiance"
ExportAssets (56)Timeline Frame 2Symbol 5 as "Interface.CombinationHotspot_clsButton"
SerialNumber (41)Timeline Frame 1

Labels

"Preloader"Frame 1
"start"Frame 2




https://swfchan.com/53/263043/info.shtml
Created: 15/3 -2026 08:06:38 Last modified: 15/3 -2026 08:06:38 Server time: 15/03 -2026 22:04:26