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

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/52578276?noj=FRM52578276-13DC" width="1" height="1"></div>

small-worlds.swf

This is the info page for
Flash #81954

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


ActionScript [AS3]
Section 1
//MainTimeline (smallworldsarmorgamesversion_fla.MainTimeline) package smallworldsarmorgamesversion_fla { import flash.events.*; import flash.media.*; import flash.display.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.geom.*; import flash.net.*; import flash.printing.*; import flash.system.*; import flash.text.*; import flash.ui.*; import flash.utils.*; import flash.xml.*; public dynamic class MainTimeline extends MovieClip { public var playButton01:SimpleButton; public var quitButton01:SimpleButton; public var music; public var orbNum; public var viewRect; public var jump; public var mouseButton; public var SFXButton01:SimpleButton; public var SFXButton02:SimpleButton; public var intro_MC:MovieClip; public var collisionMC; public var telePos; public var orbFrames; public var screenVisible:BitmapData; public var flashAmount; public var i; public var beginButton01:SimpleButton; public var worldNum; public var screenWorld:BitmapData; public var worldFrameNum; public var startPos; public var worldMC; public var orbMC; public var yesButton01:SimpleButton; public var sfxChannel; public var gameButton01:SimpleButton; public var viewMatrix; public var teleMC; public var coll; public var orbPos; public var colTrans; public var returnPos; public var worldFrame; public var incompetechButton01:SimpleButton; public var musicChannel; public var teleporterSND; public var menuButton01:SimpleButton; public var banjosButton01:SimpleButton; public var teleporter; public var screenWorldbmp:Bitmap; public var collision; public var screenVisiblebmp:Bitmap; public var frame; public var musicDisp:MovieClip; public var mousePos; public var bkg_1:MovieClip; public var bkg_2:MovieClip; public var instructionsButton01:SimpleButton; public var captionFade; public var world; public var noButton01:SimpleButton; public var worldMask; public var barMask:MovieClip; public var muteMusic; public var muteSFX; public var playerPos; public var sfxDisp:MovieClip; public var screenBuffer; public var orbFrame; public var jigButton01:SimpleButton; public var caption:MovieClip; public var viewDist; public var keys; public var orbGet; public var musicButton01:SimpleButton; public var musicButton02:SimpleButton; public function MainTimeline(){ addFrameScript(0, frame1, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 41, frame42, 99, frame100, 100, frame101, 101, frame102, 104, frame105, 331, frame332); } public function mainLoop(_arg1:Event){ caption.alpha = captionFade; captionFade = Math.max(0, (captionFade - 0.01)); calculatePlayerMovement(); drawView(); drawWorld(); frame++; if (frame == 25){ frame = 0; }; orbFrame++; if (orbFrame == 4){ orbFrame = 0; }; } public function loaded(_arg1:Event):void{ this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, loading); this.loaderInfo.removeEventListener(Event.COMPLETE, loaded); trace("...Assets loaded"); gotoAndStop(3); } public function drawView(){ worldMask[world].fillRect(new Rectangle(((playerPos.x - 8) * 2), ((playerPos.y - 2) * 2), 34, 10), 4278190080); worldMask[world].fillRect(new Rectangle(((playerPos.x - 7) * 2), ((playerPos.y - 5) * 2), 30, 22), 4278190080); worldMask[world].fillRect(new Rectangle(((playerPos.x - 6) * 2), ((playerPos.y - 6) * 2), 26, 26), 4278190080); worldMask[world].fillRect(new Rectangle(((playerPos.x - 5) * 2), ((playerPos.y - 7) * 2), 22, 30), 4278190080); worldMask[world].fillRect(new Rectangle(((playerPos.x - 2) * 2), ((playerPos.y - 8) * 2), 10, 34), 4278190080); } public function redrawCursor(_arg1:MouseEvent):void{ mousePos.x = _arg1.stageX; mousePos.y = _arg1.stageY; } public function setWorld(){ var _local1:*; var _local2:*; _local1 = new Matrix(); _local1.scale(2, 2); collisionMC.gotoAndStop((world + 1)); collision.draw(collisionMC, new Matrix()); _local2 = 0; while (_local2 < worldFrameNum) { worldFrame[_local2] = new BitmapData(600, 600, false, 4294967295); worldMC.gotoAndPlay((((world * 25) + _local2) + 1)); worldFrame[_local2].draw(worldMC, _local1); _local2++; }; SoundMixer.stopAll(); if (((((((orbGet[1]) && (orbGet[2]))) && (orbGet[3]))) && (orbGet[4]))){ stage.removeEventListener("enterFrame", mainLoop); stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyPressed); stage.removeEventListener(KeyboardEvent.KEY_UP, keyReleased); stage.removeEventListener(MouseEvent.MOUSE_MOVE, redrawCursor); stage.removeEventListener(MouseEvent.MOUSE_DOWN, mouseButtonPressed); stage.removeEventListener(MouseEvent.MOUSE_UP, mouseButtonReleased); gotoAndPlay(105); } else { if (!muteMusic){ musicChannel = music[world].play(0, 99); }; }; if (!muteSFX){ sfxChannel = teleporterSND.play(); }; flashAmount = 0xFF; return (world); } public function toggleSFX01(_arg1:MouseEvent):void{ muteSFX = !(muteSFX); if (muteSFX){ sfxDisp.alpha = 1; } else { sfxDisp.alpha = 0; }; } function frame4(){ stop(); stage.frameRate = 45; stage.addEventListener("enterFrame", waitForIntro); intro_MC.addEventListener(MouseEvent.CLICK, openArmorGames); } function frame7(){ trace("...Initialising new game"); world = 0; jump = 0; frame = 1; playerPos.x = startPos[world].x; playerPos.y = startPos[world].y; i = 0; while (i < worldNum) { viewRect[i].x = (startPos[i].x - 11); viewRect[i].y = (startPos[i].y - 11); viewRect[i].width = 23; viewRect[i].height = 23; worldMask[i].fillRect(new Rectangle(0, 0, 600, 600), 0); i++; }; i = 1; while (i < 5) { orbGet[i] = false; i++; }; worldMask[0].fillRect(new Rectangle(240, 24, 56, 34), 4278190080); if (!muteMusic){ musicChannel = music[world].play(0, 99); }; collisionMC.gotoAndStop((world + 1)); collision.draw(collisionMC, new Matrix()); viewMatrix = new Matrix(); viewMatrix.scale(2, 2); i = 0; while (i < worldFrameNum) { worldFrame[i] = new BitmapData(600, 600, false, 4294967295); worldMC.gotoAndPlay((((world * 25) + i) + 1)); worldFrame[i].draw(worldMC, viewMatrix); i++; }; screenWorld.fillRect(new Rectangle(0, 0, 600, 600), 4278190080); flashAmount = 0xFF; captionFade = 1; play(); } public function openJIG(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://jayisgames.com/cgdc6"); navigateToURL(_local2, "blank"); } function frame5(){ trace("...creating data structures"); worldNum = 5; viewDist = 8; worldFrameNum = 25; orbNum = 4; muteSFX = false; muteMusic = false; mousePos = new Point(0, 0); mouseButton = 0; keys = new Array(); playerPos = new Point(0, 0); coll = new Array(); orbFrame = 1; colTrans = new ColorTransform(); flashAmount = 1; captionFade = 1; music = new Array(); musicChannel = new SoundChannel(); sfxChannel = new SoundChannel(); teleporterSND = new teleporter_SND(); worldFrame = new Array(); screenBuffer = new BitmapData(600, 600, false, 4278190080); worldMask = new Array(); collision = new BitmapData(300, 300, false, 4278190080); viewRect = new Array(); orbFrames = new Array(); orbMC = new orb_MC(); teleporter = new BitmapData(6, 12, false, 4278190080); teleMC = new tele_MC(); orbGet = new Array(); orbPos = new Array(); telePos = new Array(); startPos = new Array(); returnPos = new Array(); i = 0; while (i < 4) { orbFrames[i] = new BitmapData(22, 22, true, 0); orbMC.gotoAndStop((i + 1)); orbFrames[i].draw(orbMC, new Matrix()); i++; }; orbPos[2] = new Point(144, 113); orbPos[1] = new Point(144, 110); orbPos[3] = new Point(156, 113); orbPos[4] = new Point(156, 110); telePos[2] = new Point(102, 97); telePos[1] = new Point(121, 103); telePos[3] = new Point(197, 97); telePos[4] = new Point(178, 103); returnPos[2] = new Point(106, 102); returnPos[1] = new Point(125, 108); returnPos[3] = new Point(195, 102); returnPos[4] = new Point(176, 108); startPos[0] = new Point(138, 26); startPos[1] = new Point(48, 68); startPos[2] = new Point(57, 124); startPos[3] = new Point(83, 76); startPos[4] = new Point(24, 76); teleporter.draw(teleMC, new Matrix()); i = 0; while (i < worldNum) { worldMask[i] = new BitmapData(600, 600, true, 0); viewRect[i] = new Rectangle(); i++; }; music[0] = new music0(); music[1] = new music1(); music[2] = new music2(); music[3] = new music3(); music[4] = new music4(); worldMC = new world_MC(); collisionMC = new collision_MC(); screenWorld = new BitmapData(600, 600, false, 4278190080); screenWorldbmp = new Bitmap(screenWorld); screenVisible = new BitmapData(600, 600, false, 4294967295); screenVisiblebmp = new Bitmap(screenVisible); } public function toggleSFX02(_arg1:MouseEvent):void{ muteSFX = !(muteSFX); if (muteSFX){ sfxDisp.alpha = 1; } else { sfxDisp.alpha = 0; }; } public function returnToGame(_arg1:MouseEvent):void{ SFXButton02.removeEventListener(MouseEvent.CLICK, toggleSFX02); musicButton02.removeEventListener(MouseEvent.CLICK, toggleMusic02); gameButton01.removeEventListener(MouseEvent.CLICK, returnToMenu); quitButton01.removeEventListener(MouseEvent.CLICK, quitPressed); gotoAndStop(42); } public function returnToOptions(_arg1:MouseEvent):void{ yesButton01.removeEventListener(MouseEvent.CLICK, quitToMenu); noButton01.removeEventListener(MouseEvent.CLICK, returnToOptions); gotoAndStop(101); } function frame1(){ stop(); trace("SMALL WORLDS V1.1 Armor Games Edition (c) 2009 David Shute"); trace("...Verifying domain"); siteLock(); } function frame6(){ trace("...Title menu"); stop(); SoundMixer.stopAll(); stage.addEventListener("enterFrame", titleScreen); playButton01.addEventListener(MouseEvent.CLICK, startGame); instructionsButton01.addEventListener(MouseEvent.CLICK, instructions); jigButton01.addEventListener(MouseEvent.CLICK, openJIG); incompetechButton01.addEventListener(MouseEvent.CLICK, openIncompetech); banjosButton01.addEventListener(MouseEvent.CLICK, openLackOfBanjos); } public function openIncompetech(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://incompetech.com"); navigateToURL(_local2, "blank"); } function frame3(){ trace("...Game loaded"); stop(); beginButton01.addEventListener(MouseEvent.CLICK, button01Press); } public function mouseButtonReleased(_arg1:MouseEvent):void{ mouseButton = 0; } function frame42(){ trace("...Game started"); stop(); stage.addChildAt(screenWorldbmp, 0); keys["jump"] = 0; keys["left"] = 0; keys["right"] = 0; stage.addEventListener("enterFrame", mainLoop); stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed); stage.addEventListener(KeyboardEvent.KEY_UP, keyReleased); stage.addEventListener(MouseEvent.MOUSE_MOVE, redrawCursor); stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseButtonPressed); stage.addEventListener(MouseEvent.MOUSE_UP, mouseButtonReleased); } public function openArmorGames(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://armorgames.com"); navigateToURL(_local2, "blank"); } public function drawWorld(){ var _local1:*; var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; _local1 = calculateView(); _local2 = new Rectangle((_local1.x * 2), (_local1.y * 2), (_local1.width * 2), (_local1.height * 2)); screenBuffer.fillRect(new Rectangle(0, 0, 600, 600), 4278190080); screenBuffer.copyPixels(worldFrame[frame], _local2, new Point(0, 0), worldMask[world], new Point(_local2.x, _local2.y)); if (world == 0){ _local3 = 1; while (_local3 < 5) { if (orbGet[_local3]){ screenBuffer.copyPixels(orbFrames[orbFrame], new Rectangle(0, 0, 4, 4), new Point(((orbPos[_local3].x - _local1.x) * 2), ((orbPos[_local3].y - _local1.y) * 2))); screenBuffer.copyPixels(teleporter, new Rectangle(0, 0, 6, 12), new Point(((telePos[_local3].x - _local1.x) * 2), ((telePos[_local3].y - _local1.y) * 2))); }; _local3++; }; }; _local3 = 0; while (_local3 < 3) { coll[_local3] = ((collision.getPixel(playerPos.x, ((playerPos.y + _local3) - 1)) >> 16) & 0xFF); _local3++; }; if ((((coll[0] > 200)) || ((coll[0] < 180)))){ screenBuffer.fillRect(new Rectangle(((playerPos.x - _local1.x) * 2), (((playerPos.y - _local1.y) - 1) * 2), 2, 2), 4294938768); }; if ((((coll[1] > 200)) || ((coll[1] < 180)))){ screenBuffer.fillRect(new Rectangle(((playerPos.x - _local1.x) * 2), ((playerPos.y - _local1.y) * 2), 2, 2), 4294901760); }; if ((((coll[2] > 200)) || ((coll[2] < 180)))){ screenBuffer.fillRect(new Rectangle(((playerPos.x - _local1.x) * 2), (((playerPos.y - _local1.y) + 1) * 2), 2, 2), 4294901760); }; _local3 = 0; while (_local3 < 3) { coll[0] = ((collision.getPixel((playerPos.x + 1), (playerPos.y + _local3)) >> 16) & 0xFF); if ((((coll[0] < 140)) && ((coll[0] > 120)))){ _local6 = new Point((((playerPos.x - _local1.x) + 1) * 2), (((playerPos.y - _local1.y) + _local3) * 2)); coll[0] = screenBuffer.getPixel(_local6.x, _local6.y); _local7 = Math.floor((((coll[0] >> 16) & 0xFF) * 0.65)); _local8 = Math.floor((((coll[0] >> 8) & 0xFF) * 0.65)); _local9 = Math.floor(((coll[0] & 0xFF) * 0.65)); screenBuffer.fillRect(new Rectangle(_local6.x, _local6.y, 2, 2), (((_local7 << 16) | (_local8 << 8)) | _local9)); }; _local3++; }; _local4 = new Matrix(); _local5 = (600 / (_local1.width * 2)); _local4.scale(_local5, _local5); colTrans.redOffset = flashAmount; colTrans.greenOffset = flashAmount; colTrans.blueOffset = flashAmount; screenWorld.draw(screenBuffer, _local4, colTrans); flashAmount = Math.max(1, (flashAmount - 20)); } public function keyPressed(_arg1:KeyboardEvent):void{ if ((((((((((_arg1.keyCode == 38)) || ((_arg1.keyCode == 87)))) || ((_arg1.keyCode == 32)))) || ((_arg1.keyCode == 88)))) || ((_arg1.keyCode == 90)))){ keys["jump"] = 1; }; if ((((_arg1.keyCode == 37)) || ((_arg1.keyCode == 65)))){ keys["left"] = 1; }; if ((((_arg1.keyCode == 39)) || ((_arg1.keyCode == 68)))){ keys["right"] = 1; }; if (_arg1.keyCode == 27){ stage.removeEventListener("enterFrame", mainLoop); stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyPressed); stage.removeEventListener(KeyboardEvent.KEY_UP, keyReleased); stage.removeEventListener(MouseEvent.MOUSE_MOVE, redrawCursor); stage.removeEventListener(MouseEvent.MOUSE_DOWN, mouseButtonPressed); stage.removeEventListener(MouseEvent.MOUSE_UP, mouseButtonReleased); gotoAndStop(101); }; } public function keyReleased(_arg1:KeyboardEvent):void{ if ((((((((((_arg1.keyCode == 38)) || ((_arg1.keyCode == 87)))) || ((_arg1.keyCode == 32)))) || ((_arg1.keyCode == 88)))) || ((_arg1.keyCode == 90)))){ keys["jump"] = 0; }; if ((((_arg1.keyCode == 37)) || ((_arg1.keyCode == 65)))){ keys["left"] = 0; }; if ((((_arg1.keyCode == 39)) || ((_arg1.keyCode == 68)))){ keys["right"] = 0; }; } public function quitPressed(_arg1:MouseEvent):void{ SFXButton02.removeEventListener(MouseEvent.CLICK, toggleSFX02); musicButton02.removeEventListener(MouseEvent.CLICK, toggleMusic02); gameButton01.removeEventListener(MouseEvent.CLICK, returnToMenu); quitButton01.removeEventListener(MouseEvent.CLICK, quitPressed); play(); } public function titleScreen(_arg1:Event){ bkg_1.y = (bkg_1.y - 4); bkg_2.y = (bkg_2.y - 4); if (bkg_1.y <= -900){ bkg_1.y = 900; }; if (bkg_2.y <= -900){ bkg_2.y = 900; }; } public function toggleMusic01(_arg1:MouseEvent):void{ muteMusic = !(muteMusic); if (muteMusic){ musicDisp.alpha = 1; SoundMixer.stopAll(); } else { musicDisp.alpha = 0; }; } public function siteLock():void{ var _local1:String; var _local2:Number; var _local3:Number; var _local4:String; var _local5:Number; var _local6:Number; _local1 = stage.loaderInfo.url; _local2 = (_local1.indexOf("://") + 3); _local3 = _local1.indexOf("/", _local2); _local4 = _local1.substring(_local2, _local3); _local5 = (_local4.lastIndexOf(".") - 1); _local6 = (_local4.lastIndexOf(".", _local5) + 1); _local4 = _local4.substring(_local6, _local4.length); if (_local4 == "armorgames.com"){ trace("...Preloader starting"); this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, loading); this.loaderInfo.addEventListener(Event.COMPLETE, loaded); } else { trace("-Invalid domain!-"); trace("...Preloader starting"); this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, loading); this.loaderInfo.addEventListener(Event.COMPLETE, loaded); }; } public function toggleMusic02(_arg1:MouseEvent):void{ muteMusic = !(muteMusic); if (muteMusic){ musicDisp.alpha = 1; SoundMixer.stopAll(); } else { musicDisp.alpha = 0; musicChannel = music[world].play(0, 99); }; } public function loading(_arg1:ProgressEvent):void{ var _local2:Number; var _local3:Number; var _local4:Number; _local2 = _arg1.target.bytesLoaded; _local3 = _arg1.target.bytesTotal; _local4 = (_local2 / _local3); barMask.x = (20 + (560 * _local4)); } public function openLackOfBanjos(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://lackofbanjos.com"); navigateToURL(_local2, "blank"); } function frame332(){ gotoAndPlay(6); } public function calculateView(){ var _local1:*; var _local2:*; var _local3:*; var _local4:*; var _local5:*; _local1 = new Rectangle(); _local2 = new Point(0, 0); _local3 = new Point(viewRect[world].x, viewRect[world].y); _local4 = new Point((viewRect[world].x + viewRect[world].width), (viewRect[world].y + viewRect[world].height)); _local3.x = Math.max(Math.min((playerPos.x - viewDist), _local3.x), 0); _local3.y = Math.max(Math.min((playerPos.y - viewDist), _local3.y), 0); _local4.x = Math.min(Math.max((playerPos.x + viewDist), _local4.x), 300); _local4.y = Math.min(Math.max((playerPos.y + viewDist), _local4.y), 300); viewRect[world] = new Rectangle(_local3.x, _local3.y, (_local4.x - _local3.x), (_local4.y - _local3.y)); _local5 = Math.max((_local4.x - _local3.x), (_local4.y - _local3.y)); _local2.x = (_local3.x + ((_local4.x - _local3.x) / 2)); _local2.y = (_local3.y + ((_local4.y - _local3.y) / 2)); _local1.x = (_local2.x - (_local5 / 2)); _local1.y = (_local2.y - (_local5 / 2)); _local1.width = (_local5 + 1); _local1.height = (_local5 + 1); return (_local1); } public function button01Press(_arg1:MouseEvent):void{ beginButton01.removeEventListener(MouseEvent.CLICK, button01Press); play(); } function frame100(){ stop(); if (muteSFX){ sfxDisp.alpha = 1; } else { sfxDisp.alpha = 0; }; if (muteMusic){ musicDisp.alpha = 1; } else { musicDisp.alpha = 0; }; SFXButton01.addEventListener(MouseEvent.CLICK, toggleSFX01); musicButton01.addEventListener(MouseEvent.CLICK, toggleMusic01); menuButton01.addEventListener(MouseEvent.CLICK, returnToMenu); } function frame101(){ stop(); if (muteSFX){ sfxDisp.alpha = 1; } else { sfxDisp.alpha = 0; }; if (muteMusic){ musicDisp.alpha = 1; } else { musicDisp.alpha = 0; }; SFXButton02.addEventListener(MouseEvent.CLICK, toggleSFX02); musicButton02.addEventListener(MouseEvent.CLICK, toggleMusic02); gameButton01.addEventListener(MouseEvent.CLICK, returnToGame); quitButton01.addEventListener(MouseEvent.CLICK, quitPressed); } function frame105(){ stage.removeChildAt(0); } function frame102(){ stop(); yesButton01.addEventListener(MouseEvent.CLICK, quitToMenu); noButton01.addEventListener(MouseEvent.CLICK, returnToOptions); } public function startGame(_arg1:MouseEvent):void{ playButton01.removeEventListener(MouseEvent.CLICK, startGame); stage.removeEventListener("enterFrame", titleScreen); instructionsButton01.removeEventListener(MouseEvent.CLICK, instructions); jigButton01.removeEventListener(MouseEvent.CLICK, openJIG); incompetechButton01.removeEventListener(MouseEvent.CLICK, openIncompetech); banjosButton01.removeEventListener(MouseEvent.CLICK, openLackOfBanjos); play(); } public function quitToMenu(_arg1:MouseEvent):void{ yesButton01.removeEventListener(MouseEvent.CLICK, quitToMenu); noButton01.removeEventListener(MouseEvent.CLICK, returnToOptions); stage.removeChildAt(0); gotoAndStop(6); } public function instructions(_arg1:MouseEvent):void{ playButton01.removeEventListener(MouseEvent.CLICK, startGame); stage.removeEventListener("enterFrame", titleScreen); instructionsButton01.removeEventListener(MouseEvent.CLICK, instructions); jigButton01.removeEventListener(MouseEvent.CLICK, openJIG); incompetechButton01.removeEventListener(MouseEvent.CLICK, openIncompetech); banjosButton01.removeEventListener(MouseEvent.CLICK, openLackOfBanjos); gotoAndStop(100); } public function calculatePlayerMovement(){ var _local1:*; var _local2:*; var _local3:*; if (((collision.getPixel(playerPos.x, playerPos.y) >> 8) & 0xFF) > 230){ if (world > 0){ orbGet[world] = true; playerPos.x = returnPos[world].x; playerPos.y = returnPos[world].y; world = 0; setWorld(); } else { if (playerPos.x < 115){ _local3 = 2; } else { if (playerPos.x < 150){ _local3 = 1; } else { if (playerPos.x < 190){ _local3 = 4; } else { _local3 = 3; }; }; }; if (!orbGet[_local3]){ world = _local3; playerPos.x = startPos[world].x; playerPos.y = startPos[world].y; setWorld(); }; }; } else { if (((collision.getPixel(playerPos.x, playerPos.y) >> 8) & 0xFF) > 100){ jump = 0; playerPos.y--; }; }; _local1 = new Point(); _local2 = ((collision.getPixel(playerPos.x, (playerPos.y + 2)) >> 16) & 0xFF); if (keys["left"]){ _local1.x = -1; }; if (keys["right"]){ _local1.x = 1; }; if (_local1.x != 0){ i = 0; while (i < 4) { coll[i] = ((collision.getPixel((playerPos.x + _local1.x), ((playerPos.y + i) - 2)) >> 16) & 0xFF); i++; }; if ((((coll[1] < 230)) && ((coll[2] < 230)))){ if (coll[3] < 230){ playerPos.x = (playerPos.x + _local1.x); } else { if ((((((coll[0] < 230)) && ((((collision.getPixel(playerPos.x, (playerPos.y - 2)) >> 16) & 0xFF) < 191)))) && ((jump >= 0)))){ playerPos.x = (playerPos.x + _local1.x); playerPos.y = (playerPos.y - 1); }; }; }; }; if ((((_local2 > 191)) && (keys["jump"]))){ if (jump >= 0){ jump = -2.5; }; }; if ((((((((collision.getPixel(playerPos.x, (playerPos.y + 2)) >> 16) & 0xFF) > 191)) && (!(keys["jump"])))) && ((jump > 0)))){ jump = 0; }; _local1.y = Math.round(jump); if (jump < 2){ jump = (jump + 0.5); }; coll[0] = ((collision.getPixel(playerPos.x, (playerPos.y + 3)) >> 16) & 0xFF); coll[1] = ((collision.getPixel(playerPos.x, (playerPos.y + 2)) >> 16) & 0xFF); coll[2] = ((collision.getPixel(playerPos.x, (playerPos.y - 3)) >> 16) & 0xFF); coll[3] = ((collision.getPixel(playerPos.x, (playerPos.y - 2)) >> 16) & 0xFF); if (_local1.y > 0){ if (coll[0] > 230){ _local1.y = 1; }; if (coll[1] > 230){ _local1.y = 0; }; }; if (_local1.y < 0){ if (coll[2] > 230){ _local1.y = -1; }; if (coll[3] > 230){ _local1.y = 0; }; }; if ((((coll[3] > 230)) && ((jump <= 0)))){ jump = 0; }; playerPos.y = (playerPos.y + _local1.y); } public function returnToMenu(_arg1:MouseEvent):void{ SFXButton01.removeEventListener(MouseEvent.CLICK, toggleSFX01); musicButton01.removeEventListener(MouseEvent.CLICK, toggleMusic01); menuButton01.removeEventListener(MouseEvent.CLICK, returnToMenu); gotoAndStop(6); } public function waitForIntro(_arg1:Event){ if (intro_MC.currentFrame > 217){ stage.removeEventListener("enterFrame", waitForIntro); intro_MC.removeEventListener(MouseEvent.CLICK, openArmorGames); stage.frameRate = 12; play(); }; } public function mouseButtonPressed(_arg1:MouseEvent):void{ mouseButton = 1; } } }//package smallworldsarmorgamesversion_fla
Section 2
//collision_MC (collision_MC) package { import flash.display.*; public dynamic class collision_MC extends MovieClip { } }//package
Section 3
//music0 (music0) package { import flash.media.*; public dynamic class music0 extends Sound { } }//package
Section 4
//music1 (music1) package { import flash.media.*; public dynamic class music1 extends Sound { } }//package
Section 5
//music2 (music2) package { import flash.media.*; public dynamic class music2 extends Sound { } }//package
Section 6
//music3 (music3) package { import flash.media.*; public dynamic class music3 extends Sound { } }//package
Section 7
//music4 (music4) package { import flash.media.*; public dynamic class music4 extends Sound { } }//package
Section 8
//orb_MC (orb_MC) package { import flash.display.*; public dynamic class orb_MC extends MovieClip { } }//package
Section 9
//tele_MC (tele_MC) package { import flash.display.*; public dynamic class tele_MC extends MovieClip { } }//package
Section 10
//teleporter_SND (teleporter_SND) package { import flash.media.*; public dynamic class teleporter_SND extends Sound { } }//package
Section 11
//world_MC (world_MC) package { import flash.display.*; public dynamic class world_MC extends MovieClip { } }//package

Library Items

Symbol 1 BitmapUsed by:2
Symbol 2 GraphicUses:1Used by:Timeline
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClipUses:3Used by:Timeline
Symbol 5 BitmapUsed by:6
Symbol 6 GraphicUses:5Used by:Timeline
Symbol 7 BitmapUsed by:8
Symbol 8 GraphicUses:7Used by:56
Symbol 9 BitmapUsed by:10
Symbol 10 GraphicUses:9Used by:11
Symbol 11 MovieClipUses:10Used by:56
Symbol 12 BitmapUsed by:13
Symbol 13 GraphicUses:12Used by:14
Symbol 14 MovieClipUses:13Used by:56
Symbol 15 BitmapUsed by:16
Symbol 16 GraphicUses:15Used by:56 149
Symbol 17 BitmapUsed by:18
Symbol 18 GraphicUses:17Used by:19
Symbol 19 MovieClipUses:18Used by:56
Symbol 20 BitmapUsed by:21
Symbol 21 GraphicUses:20Used by:56
Symbol 22 BitmapUsed by:23
Symbol 23 GraphicUses:22Used by:56
Symbol 24 BitmapUsed by:25
Symbol 25 GraphicUses:24Used by:56
Symbol 26 BitmapUsed by:27
Symbol 27 GraphicUses:26Used by:56
Symbol 28 BitmapUsed by:29
Symbol 29 GraphicUses:28Used by:56
Symbol 30 BitmapUsed by:31
Symbol 31 GraphicUses:30Used by:56
Symbol 32 BitmapUsed by:33
Symbol 33 GraphicUses:32Used by:56 68
Symbol 34 BitmapUsed by:35
Symbol 35 GraphicUses:34Used by:56
Symbol 36 BitmapUsed by:37
Symbol 37 GraphicUses:36Used by:56
Symbol 38 BitmapUsed by:39
Symbol 39 GraphicUses:38Used by:56
Symbol 40 BitmapUsed by:41
Symbol 41 GraphicUses:40Used by:56
Symbol 42 BitmapUsed by:43
Symbol 43 GraphicUses:42Used by:56
Symbol 44 BitmapUsed by:45
Symbol 45 GraphicUses:44Used by:56
Symbol 46 BitmapUsed by:47
Symbol 47 GraphicUses:46Used by:56
Symbol 48 BitmapUsed by:49
Symbol 49 GraphicUses:48Used by:56
Symbol 50 BitmapUsed by:51
Symbol 51 GraphicUses:50Used by:56
Symbol 52 BitmapUsed by:53
Symbol 53 GraphicUses:52Used by:56
Symbol 54 BitmapUsed by:55
Symbol 55 GraphicUses:54Used by:56
Symbol 56 MovieClip {world_MC}Uses:8 11 14 16 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55Used by:78
Symbol 57 BitmapUsed by:58
Symbol 58 GraphicUses:57Used by:67
Symbol 59 BitmapUsed by:60
Symbol 60 GraphicUses:59Used by:67
Symbol 61 BitmapUsed by:62
Symbol 62 GraphicUses:61Used by:67
Symbol 63 BitmapUsed by:64
Symbol 64 GraphicUses:63Used by:67
Symbol 65 BitmapUsed by:66
Symbol 66 GraphicUses:65Used by:67
Symbol 67 MovieClip {collision_MC}Uses:58 60 62 64 66Used by:78
Symbol 68 MovieClip {orb_MC}Uses:33Used by:78
Symbol 69 BitmapUsed by:70
Symbol 70 GraphicUses:69Used by:71
Symbol 71 MovieClip {tele_MC}Uses:70Used by:78
Symbol 72 Sound {music1}Used by:78
Symbol 73 Sound {music0}Used by:78
Symbol 74 Sound {teleporter_SND}Used by:78
Symbol 75 Sound {music2}Used by:78
Symbol 76 Sound {music4}Used by:78
Symbol 77 Sound {music3}Used by:78
Symbol 78 MovieClipUses:56 67 68 71 72 73 74 75 76 77Used by:Timeline
Symbol 79 BitmapUsed by:80
Symbol 80 GraphicUses:79Used by:83
Symbol 81 BitmapUsed by:82
Symbol 82 GraphicUses:81Used by:83
Symbol 83 ButtonUses:80 82Used by:Timeline
Symbol 84 GraphicUsed by:99
Symbol 85 GraphicUsed by:99
Symbol 86 GraphicUsed by:99
Symbol 87 SoundUsed by:99
Symbol 88 SoundUsed by:99
Symbol 89 GraphicUsed by:99
Symbol 90 GraphicUsed by:91
Symbol 91 MovieClipUses:90Used by:99
Symbol 92 SoundUsed by:99
Symbol 93 SoundUsed by:99
Symbol 94 SoundUsed by:99
Symbol 95 GraphicUsed by:96
Symbol 96 ButtonUses:95Used by:99
Symbol 97 SoundUsed by:99
Symbol 98 SoundUsed by:99
Symbol 99 MovieClipUses:84 85 86 87 88 89 91 92 93 94 96 97 98Used by:Timeline
Symbol 100 BitmapUsed by:101
Symbol 101 GraphicUses:100Used by:102
Symbol 102 MovieClipUses:101Used by:Timeline
Symbol 103 BitmapUsed by:104
Symbol 104 GraphicUses:103Used by:105
Symbol 105 MovieClipUses:104Used by:Timeline
Symbol 106 BitmapUsed by:107
Symbol 107 GraphicUses:106Used by:Timeline
Symbol 108 GraphicUsed by:Timeline
Symbol 109 BitmapUsed by:110
Symbol 110 GraphicUses:109Used by:111
Symbol 111 MovieClipUses:110Used by:Timeline
Symbol 112 GraphicUsed by:Timeline
Symbol 113 GraphicUsed by:114
Symbol 114 MovieClipUses:113Used by:Timeline
Symbol 115 BitmapUsed by:116
Symbol 116 GraphicUses:115Used by:Timeline
Symbol 117 BitmapUsed by:118
Symbol 118 GraphicUses:117Used by:121
Symbol 119 BitmapUsed by:120
Symbol 120 GraphicUses:119Used by:121
Symbol 121 ButtonUses:118 120Used by:Timeline
Symbol 122 BitmapUsed by:123
Symbol 123 GraphicUses:122Used by:126
Symbol 124 BitmapUsed by:125
Symbol 125 GraphicUses:124Used by:126
Symbol 126 ButtonUses:123 125Used by:Timeline
Symbol 127 BitmapUsed by:128
Symbol 128 GraphicUses:127Used by:129
Symbol 129 ButtonUses:128Used by:Timeline
Symbol 130 BitmapUsed by:131
Symbol 131 GraphicUses:130Used by:132
Symbol 132 ButtonUses:131Used by:Timeline
Symbol 133 BitmapUsed by:134
Symbol 134 GraphicUses:133Used by:135
Symbol 135 ButtonUses:134Used by:Timeline
Symbol 136 BitmapUsed by:137
Symbol 137 GraphicUses:136Used by:Timeline
Symbol 138 BitmapUsed by:139
Symbol 139 GraphicUses:138Used by:140
Symbol 140 MovieClipUses:139Used by:Timeline
Symbol 141 BitmapUsed by:142
Symbol 142 GraphicUses:141Used by:Timeline
Symbol 143 BitmapUsed by:144
Symbol 144 GraphicUses:143Used by:145
Symbol 145 MovieClipUses:144Used by:Timeline
Symbol 146 BitmapUsed by:147
Symbol 147 GraphicUses:146Used by:148
Symbol 148 MovieClipUses:147Used by:Timeline
Symbol 149 ButtonUses:16Used by:Timeline
Symbol 150 BitmapUsed by:151
Symbol 151 GraphicUses:150Used by:154
Symbol 152 BitmapUsed by:153
Symbol 153 GraphicUses:152Used by:154
Symbol 154 ButtonUses:151 153Used by:Timeline
Symbol 155 BitmapUsed by:156
Symbol 156 GraphicUses:155Used by:159
Symbol 157 BitmapUsed by:158
Symbol 158 GraphicUses:157Used by:159
Symbol 159 ButtonUses:156 158Used by:Timeline
Symbol 160 BitmapUsed by:161
Symbol 161 GraphicUses:160Used by:164
Symbol 162 BitmapUsed by:163
Symbol 163 GraphicUses:162Used by:164
Symbol 164 ButtonUses:161 163Used by:Timeline
Symbol 165 BitmapUsed by:166
Symbol 166 GraphicUses:165Used by:Timeline
Symbol 167 BitmapUsed by:168
Symbol 168 GraphicUses:167Used by:169
Symbol 169 ButtonUses:168Used by:Timeline
Symbol 170 BitmapUsed by:171
Symbol 171 GraphicUses:170Used by:172
Symbol 172 ButtonUses:171Used by:Timeline
Symbol 173 BitmapUsed by:174
Symbol 174 GraphicUses:173Used by:Timeline
Symbol 175 BitmapUsed by:176
Symbol 176 GraphicUses:175Used by:Timeline
Symbol 177 GraphicUsed by:Timeline
Symbol 178 BitmapUsed by:179
Symbol 179 GraphicUses:178Used by:Timeline
Symbol 180 BitmapUsed by:181
Symbol 181 GraphicUses:180Used by:Timeline
Symbol 182 BitmapUsed by:183
Symbol 183 GraphicUses:182Used by:Timeline

Instance Names

"barMask"Frame 1Symbol 4 MovieClip
"beginButton01"Frame 3Symbol 83 Button
"intro_MC"Frame 4Symbol 99 MovieClip
"bkg_1"Frame 6Symbol 102 MovieClip
"bkg_2"Frame 6Symbol 105 MovieClip
"instructionsButton01"Frame 6Symbol 121 Button
"playButton01"Frame 6Symbol 126 Button
"jigButton01"Frame 6Symbol 129 Button
"incompetechButton01"Frame 6Symbol 132 Button
"banjosButton01"Frame 6Symbol 135 Button
"caption"Frame 42Symbol 140 MovieClip
"sfxDisp"Frame 100Symbol 145 MovieClip
"musicDisp"Frame 100Symbol 148 MovieClip
"SFXButton01"Frame 100Symbol 149 Button
"musicButton01"Frame 100Symbol 149 Button
"menuButton01"Frame 100Symbol 154 Button
"SFXButton02"Frame 101Symbol 149 Button
"musicButton02"Frame 101Symbol 149 Button
"gameButton01"Frame 101Symbol 159 Button
"quitButton01"Frame 101Symbol 164 Button
"yesButton01"Frame 102Symbol 169 Button
"noButton01"Frame 102Symbol 172 Button

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.




http://swfchan.com/17/81954/info.shtml
Created: 1/4 -2019 15:57:41 Last modified: 1/4 -2019 15:57:41 Server time: 13/05 -2024 23:32:51