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

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

Small Worlds.swf

This is the info page for
Flash #78137

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


ActionScript [AS3]
Section 1
//MainTimeline (smallworlds_fla.MainTimeline) package smallworlds_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 screenVisible:BitmapData; public var flashAmount; public var i; 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 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); } public function openJIG(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://jayisgames.com/cgdc6"); navigateToURL(_local2, "blank"); } 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 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.1 (c) 2009 David Shute"); trace("...Preloader starting"); stop(); this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, loading); this.loaderInfo.addEventListener(Event.COMPLETE, loaded); } 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 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 smallworlds_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 123
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 BitmapUsed by:85
Symbol 85 GraphicUses:84Used by:86
Symbol 86 MovieClipUses:85Used by:Timeline
Symbol 87 BitmapUsed by:88
Symbol 88 GraphicUses:87Used by:89
Symbol 89 MovieClipUses:88Used by:Timeline
Symbol 90 BitmapUsed by:91
Symbol 91 GraphicUses:90Used by:Timeline
Symbol 92 BitmapUsed by:93
Symbol 93 GraphicUses:92Used by:Timeline
Symbol 94 BitmapUsed by:95
Symbol 95 GraphicUses:94Used by:98
Symbol 96 BitmapUsed by:97
Symbol 97 GraphicUses:96Used by:98
Symbol 98 ButtonUses:95 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:106
Symbol 106 ButtonUses:105Used by:Timeline
Symbol 107 BitmapUsed by:108
Symbol 108 GraphicUses:107Used by:109
Symbol 109 ButtonUses:108Used by:Timeline
Symbol 110 BitmapUsed by:111
Symbol 111 GraphicUses:110Used by:Timeline
Symbol 112 BitmapUsed by:113
Symbol 113 GraphicUses:112Used 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:119
Symbol 119 MovieClipUses:118Used by:Timeline
Symbol 120 BitmapUsed by:121
Symbol 121 GraphicUses:120Used by:122
Symbol 122 MovieClipUses:121Used by:Timeline
Symbol 123 ButtonUses:16Used by:Timeline
Symbol 124 BitmapUsed by:125
Symbol 125 GraphicUses:124Used by:128
Symbol 126 BitmapUsed by:127
Symbol 127 GraphicUses:126Used by:128
Symbol 128 ButtonUses:125 127Used 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:Timeline
Symbol 141 BitmapUsed by:142
Symbol 142 GraphicUses:141Used by:143
Symbol 143 ButtonUses:142Used by:Timeline
Symbol 144 BitmapUsed by:145
Symbol 145 GraphicUses:144Used by:146
Symbol 146 ButtonUses:145Used by:Timeline
Symbol 147 BitmapUsed by:148
Symbol 148 GraphicUses:147Used by:Timeline
Symbol 149 BitmapUsed by:150
Symbol 150 GraphicUses:149Used by:Timeline
Symbol 151 GraphicUsed 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 BitmapUsed by:157
Symbol 157 GraphicUses:156Used by:Timeline

Instance Names

"barMask"Frame 1Symbol 4 MovieClip
"beginButton01"Frame 3Symbol 83 Button
"bkg_1"Frame 5Symbol 86 MovieClip
"bkg_2"Frame 5Symbol 89 MovieClip
"instructionsButton01"Frame 5Symbol 98 Button
"playButton01"Frame 5Symbol 103 Button
"jigButton01"Frame 5Symbol 106 Button
"incompetechButton01"Frame 5Symbol 109 Button
"caption"Frame 42Symbol 114 MovieClip
"sfxDisp"Frame 100Symbol 119 MovieClip
"musicDisp"Frame 100Symbol 122 MovieClip
"SFXButton01"Frame 100Symbol 123 Button
"musicButton01"Frame 100Symbol 123 Button
"menuButton01"Frame 100Symbol 128 Button
"SFXButton02"Frame 101Symbol 123 Button
"musicButton02"Frame 101Symbol 123 Button
"gameButton01"Frame 101Symbol 133 Button
"quitButton01"Frame 101Symbol 138 Button
"yesButton01"Frame 102Symbol 143 Button
"noButton01"Frame 102Symbol 146 Button

Special Tags

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




http://swfchan.com/16/78137/info.shtml
Created: 3/2 -2019 00:12:25 Last modified: 7/5 -2020 04:06:39 Server time: 14/11 -2024 18:25:53