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

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

small_worlds.swf

This is the info page for
Flash #96163

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


ActionScript [AS3]
Section 1
//MainTimeline (smallworldsrathergoodversion_fla.MainTimeline) package smallworldsrathergoodversion_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 collisionMC; public var telePos; public var flashAmount; public var i; public var screenVisible:BitmapData; public var orbFrames; public var beginButton01:SimpleButton; public var screenWorld:BitmapData; public var worldNum; public var startPos; public var worldFrameNum; 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 rathergoodLink:SimpleButton; public var teleporterSND; public var menuButton01:SimpleButton; public var collision; public var teleporter; public var screenWorldbmp:Bitmap; 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, 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(){ 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); } function frame5(){ 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); } public function toggleSFX02(_arg1:MouseEvent):void{ muteSFX = !(muteSFX); if (muteSFX){ sfxDisp.alpha = 1; } else { sfxDisp.alpha = 0; }; } public function openJIG(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://jayisgames.com/cgdc6"); navigateToURL(_local2, "blank"); } 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(){ trace("SMALL WORLDS V1.0 (c) 2009 David Shute"); trace("...Preloader starting"); stop(); this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, loading); this.loaderInfo.addEventListener(Event.COMPLETE, loaded); rathergoodLink.addEventListener(MouseEvent.CLICK, goToRathergood01); } function frame6(){ 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 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 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 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)); } function frame332(){ gotoAndPlay(5); } 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); play(); } public function goToRathergood01(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://rathergood.com"); navigateToURL(_local2, "blank"); } public function quitToMenu(_arg1:MouseEvent):void{ yesButton01.removeEventListener(MouseEvent.CLICK, quitToMenu); noButton01.removeEventListener(MouseEvent.CLICK, returnToOptions); stage.removeChildAt(0); gotoAndStop(5); } 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); 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(5); } public function mouseButtonPressed(_arg1:MouseEvent):void{ mouseButton = 1; } } }//package smallworldsrathergoodversion_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:11
Symbol 9 BitmapUsed by:10
Symbol 10 GraphicUses:9Used by:11
Symbol 11 ButtonUses:8 10Used by:Timeline
Symbol 12 BitmapUsed by:13
Symbol 13 GraphicUses:12Used by:61
Symbol 14 BitmapUsed by:15
Symbol 15 GraphicUses:14Used by:16
Symbol 16 MovieClipUses:15Used by:61
Symbol 17 BitmapUsed by:18
Symbol 18 GraphicUses:17Used by:19
Symbol 19 MovieClipUses:18Used by:61
Symbol 20 BitmapUsed by:21
Symbol 21 GraphicUses:20Used by:61 128
Symbol 22 BitmapUsed by:23
Symbol 23 GraphicUses:22Used by:24
Symbol 24 MovieClipUses:23Used by:61
Symbol 25 BitmapUsed by:26
Symbol 26 GraphicUses:25Used by:61
Symbol 27 BitmapUsed by:28
Symbol 28 GraphicUses:27Used by:61
Symbol 29 BitmapUsed by:30
Symbol 30 GraphicUses:29Used by:61
Symbol 31 BitmapUsed by:32
Symbol 32 GraphicUses:31Used by:61
Symbol 33 BitmapUsed by:34
Symbol 34 GraphicUses:33Used by:61
Symbol 35 BitmapUsed by:36
Symbol 36 GraphicUses:35Used by:61
Symbol 37 BitmapUsed by:38
Symbol 38 GraphicUses:37Used by:61 73
Symbol 39 BitmapUsed by:40
Symbol 40 GraphicUses:39Used by:61
Symbol 41 BitmapUsed by:42
Symbol 42 GraphicUses:41Used by:61
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:61
Symbol 45 BitmapUsed by:46
Symbol 46 GraphicUses:45Used by:61
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:61
Symbol 49 BitmapUsed by:50
Symbol 50 GraphicUses:49Used by:61
Symbol 51 BitmapUsed by:52
Symbol 52 GraphicUses:51Used by:61
Symbol 53 BitmapUsed by:54
Symbol 54 GraphicUses:53Used by:61
Symbol 55 BitmapUsed by:56
Symbol 56 GraphicUses:55Used by:61
Symbol 57 BitmapUsed by:58
Symbol 58 GraphicUses:57Used by:61
Symbol 59 BitmapUsed by:60
Symbol 60 GraphicUses:59Used by:61
Symbol 61 MovieClip {world_MC}Uses:13 16 19 21 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60Used by:83
Symbol 62 BitmapUsed by:63
Symbol 63 GraphicUses:62Used by:72
Symbol 64 BitmapUsed by:65
Symbol 65 GraphicUses:64Used by:72
Symbol 66 BitmapUsed by:67
Symbol 67 GraphicUses:66Used by:72
Symbol 68 BitmapUsed by:69
Symbol 69 GraphicUses:68Used by:72
Symbol 70 BitmapUsed by:71
Symbol 71 GraphicUses:70Used by:72
Symbol 72 MovieClip {collision_MC}Uses:63 65 67 69 71Used by:83
Symbol 73 MovieClip {orb_MC}Uses:38Used by:83
Symbol 74 BitmapUsed by:75
Symbol 75 GraphicUses:74Used by:76
Symbol 76 MovieClip {tele_MC}Uses:75Used by:83
Symbol 77 Sound {music1}Used by:83
Symbol 78 Sound {music0}Used by:83
Symbol 79 Sound {teleporter_SND}Used by:83
Symbol 80 Sound {music2}Used by:83
Symbol 81 Sound {music4}Used by:83
Symbol 82 Sound {music3}Used by:83
Symbol 83 MovieClipUses:61 72 73 76 77 78 79 80 81 82Used by:Timeline
Symbol 84 BitmapUsed by:85
Symbol 85 GraphicUses:84Used by:88
Symbol 86 BitmapUsed by:87
Symbol 87 GraphicUses:86Used by:88
Symbol 88 ButtonUses:85 87Used by:Timeline
Symbol 89 BitmapUsed by:90
Symbol 90 GraphicUses:89Used by:91
Symbol 91 MovieClipUses:90Used by:Timeline
Symbol 92 BitmapUsed by:93
Symbol 93 GraphicUses:92Used by:94
Symbol 94 MovieClipUses:93Used by:Timeline
Symbol 95 BitmapUsed by:96
Symbol 96 GraphicUses:95Used by:Timeline
Symbol 97 BitmapUsed by:98
Symbol 98 GraphicUses:97Used by:Timeline
Symbol 99 BitmapUsed by:100
Symbol 100 GraphicUses:99Used by:103
Symbol 101 BitmapUsed by:102
Symbol 102 GraphicUses:101Used by:103
Symbol 103 ButtonUses:100 102Used by:Timeline
Symbol 104 BitmapUsed by:105
Symbol 105 GraphicUses:104Used by:108
Symbol 106 BitmapUsed by:107
Symbol 107 GraphicUses:106Used by:108
Symbol 108 ButtonUses:105 107Used by:Timeline
Symbol 109 BitmapUsed by:110
Symbol 110 GraphicUses:109Used by:111
Symbol 111 ButtonUses:110Used by:Timeline
Symbol 112 BitmapUsed by:113
Symbol 113 GraphicUses:112Used by:114
Symbol 114 ButtonUses:113Used by:Timeline
Symbol 115 BitmapUsed by:116
Symbol 116 GraphicUses:115Used by:Timeline
Symbol 117 BitmapUsed by:118
Symbol 118 GraphicUses:117Used by:119
Symbol 119 MovieClipUses:118Used by:Timeline
Symbol 120 BitmapUsed by:121
Symbol 121 GraphicUses:120Used by:Timeline
Symbol 122 BitmapUsed by:123
Symbol 123 GraphicUses:122Used by:124
Symbol 124 MovieClipUses:123Used by:Timeline
Symbol 125 BitmapUsed by:126
Symbol 126 GraphicUses:125Used by:127
Symbol 127 MovieClipUses:126Used by:Timeline
Symbol 128 ButtonUses:21Used by:Timeline
Symbol 129 BitmapUsed by:130
Symbol 130 GraphicUses:129Used by:133
Symbol 131 BitmapUsed by:132
Symbol 132 GraphicUses:131Used by:133
Symbol 133 ButtonUses:130 132Used by:Timeline
Symbol 134 BitmapUsed by:135
Symbol 135 GraphicUses:134Used by:138
Symbol 136 BitmapUsed by:137
Symbol 137 GraphicUses:136Used by:138
Symbol 138 ButtonUses:135 137Used by:Timeline
Symbol 139 BitmapUsed by:140
Symbol 140 GraphicUses:139Used by:143
Symbol 141 BitmapUsed by:142
Symbol 142 GraphicUses:141Used by:143
Symbol 143 ButtonUses:140 142Used by:Timeline
Symbol 144 BitmapUsed by:145
Symbol 145 GraphicUses:144Used by:Timeline
Symbol 146 BitmapUsed by:147
Symbol 147 GraphicUses:146Used by:148
Symbol 148 ButtonUses:147Used by:Timeline
Symbol 149 BitmapUsed by:150
Symbol 150 GraphicUses:149Used by:151
Symbol 151 ButtonUses:150Used by:Timeline
Symbol 152 BitmapUsed by:153
Symbol 153 GraphicUses:152Used by:Timeline
Symbol 154 BitmapUsed by:155
Symbol 155 GraphicUses:154Used by:Timeline
Symbol 156 GraphicUsed by:Timeline
Symbol 157 BitmapUsed by:158
Symbol 158 GraphicUses:157Used by:Timeline
Symbol 159 BitmapUsed by:160
Symbol 160 GraphicUses:159Used by:Timeline
Symbol 161 BitmapUsed by:162
Symbol 162 GraphicUses:161Used by:Timeline

Instance Names

"barMask"Frame 1Symbol 4 MovieClip
"rathergoodLink"Frame 1Symbol 11 Button
"beginButton01"Frame 3Symbol 88 Button
"bkg_1"Frame 5Symbol 91 MovieClip
"bkg_2"Frame 5Symbol 94 MovieClip
"instructionsButton01"Frame 5Symbol 103 Button
"playButton01"Frame 5Symbol 108 Button
"jigButton01"Frame 5Symbol 111 Button
"incompetechButton01"Frame 5Symbol 114 Button
"caption"Frame 42Symbol 119 MovieClip
"sfxDisp"Frame 100Symbol 124 MovieClip
"musicDisp"Frame 100Symbol 127 MovieClip
"SFXButton01"Frame 100Symbol 128 Button
"musicButton01"Frame 100Symbol 128 Button
"menuButton01"Frame 100Symbol 133 Button
"SFXButton02"Frame 101Symbol 128 Button
"musicButton02"Frame 101Symbol 128 Button
"gameButton01"Frame 101Symbol 138 Button
"quitButton01"Frame 101Symbol 143 Button
"yesButton01"Frame 102Symbol 148 Button
"noButton01"Frame 102Symbol 151 Button

Special Tags

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




http://swfchan.com/20/96163/info.shtml
Created: 24/3 -2019 00:12:44 Last modified: 24/3 -2019 00:12:44 Server time: 21/12 -2024 17:47:03