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

Happy midsummer's day!

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

Pragaras.swf

This is the info page for
Flash #47507

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


ActionScript [AS1/AS2]
Combined Code
movieClip 23 { } movieClip 24 fallMain { frame 15 { stop(); } } movieClip 39 scalesFlyIn { } movieClip 41 { } // unknown tag 88 length 68 movieClip 45 karPoem { frame 225 { stop(); removeMovieClip(this); } } movieClip 52 sumPoem { frame 477 { stop(); removeMovieClip(this); } } movieClip 57 gyvPoem { frame 355 { stop(); removeMovieClip(this); } } movieClip 64 mokPoem { frame 515 { stop(); removeMovieClip(this); } } movieClip 69 socPoem { frame 427 { stop(); removeMovieClip(this); } } movieClip 74 uztPoem { frame 360 { stop(); removeMovieClip(this); } } movieClip 78 aboPoem { frame 355 { stop(); removeMovieClip(this); } } movieClip 80 clock_bottomBorder { } movieClip 89 spreadingBorder { frame 1 { stop(); } frame 7 { stop(); } } movieClip 104 transOpen { } movieClip 107 flyCreamHand { } movieClip 117 charFlyCream { } movieClip 119 flyCreamInv { } movieClip 121 iceCreamInv { } movieClip 123 iceCreamHand { } movieClip 125 keyOfficeInv { } movieClip 127 ringHand { } movieClip 129 keyOfficeHand { } movieClip 130 keyMove { } movieClip 132 ofisas1p { } movieClip 158 { } movieClip 165 { } movieClip 166 fliesMain { frame 1 { stop(); } } movieClip 169 ringInv { } movieClip 176 { } movieClip 177 06_auksinis_ziedas { } movieClip 187 charScared { } movieClip 191 { } movieClip 203 { } movieClip 204 whiteBalandis { frame 40 { stop(); } } movieClip 207 drillHand { } movieClip 239 transCharDrill { } movieClip 273 charPucia { frame 33 { stop(); } } movieClip 288 charTrept { frame 14 { stop(); } } movieClip 313 transClimbColumn { frame 23 { stop(); } } movieClip 315 atomInv { } movieClip 317 arrowInv { } movieClip 319 arrowHand { } movieClip 321 drillInv { } movieClip 325 { } movieClip 328 { } movieClip 332 { } movieClip 333 { } movieClip 335 { } movieClip 337 { } movieClip 341 { } movieClip 343 { } movieClip 346 { } movieClip 350 { } movieClip 351 { } movieClip 352 { } movieClip 354 { } movieClip 357 { } movieClip 359 { } movieClip 360 { } movieClip 361 { } movieClip 362 { } movieClip 365 { } movieClip 366 { } movieClip 370 { } movieClip 371 { } movieClip 375 { } movieClip 376 { } movieClip 377 { } movieClip 383 { } movieClip 385 { } movieClip 386 { } movieClip 387 { } movieClip 388 { } movieClip 389 { } movieClip 391 { } movieClip 392 { } movieClip 394 { } movieClip 396 { } movieClip 405 { } movieClip 407 { } movieClip 408 { } movieClip 414 { } movieClip 418 { } movieClip 420 atomHand { } movieClip 421 karo_masina { } movieClip 423 ambasadaTransition { frame 30 { stop(); } } movieClip 425 { } movieClip 426 shineFX { } movieClip 428 { } movieClip 429 expl2 { frame 7 { removeMovieClip(this); } } movieClip 439 expl1 { frame 8 { removeMovieClip(this); } } movieClip 443 expl3 { frame 8 { removeMovieClip(this); } } movieClip 456 cafeExplode { } movieClip 464 { } movieClip 535 { } movieClip 537 { } movieClip 542 { } movieClip 543 { } movieClip 550 { } movieClip 551 { } movieClip 552 richPeopleEat { frame 28 { gotoAndPlay(1); } } movieClip 554 balcony1p { } movieClip 576 keyPerson { } movieClip 585 keyPersonRun { } movieClip 588 { } movieClip 600 charCafeUnlock { frame 30 { stop(); } } movieClip 605 additionalUnlock { } movieClip 622 { } movieClip 642 { frame 19 { stop(); } } movieClip 663 { } movieClip 680 { } movieClip 681 charLadder { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 745 keyPersonClimb { } movieClip 757 { } movieClip 758 transKey { frame 1 { stop(); } } movieClip 775 keyPersonPick { } movieClip 778 { } movieClip 779 flash_mc { } movieClip 785 sviesotamsa2 { } movieClip 788 { } movieClip 789 sviesotamsa3 { } movieClip 792 { } movieClip 793 cafe1p { } movieClip 799 { } movieClip 805 { } movieClip 806 fishHead { frame 1 { stop(); } } movieClip 820 { } movieClip 838 { } movieClip 846 zuvis_sprogsta { frame 300 { stop(); } } movieClip 847 BlackBorder { } movieClip 849 vamzidsTunely { } movieClip 870 { frame 37 { stop(); } } movieClip 871 banga coded { frame 67 { stop(); } } movieClip 885 fishSwallow { } movieClip 906 { } movieClip 907 { } movieClip 920 purpleFish { } movieClip 963 schoolOfFishes { } movieClip 992 charDeer { } movieClip 995 { } movieClip 999 { } movieClip 1010 { } movieClip 1011 { frame 52 { stop(); } } movieClip 1012 vezliukas { frame 1 { stop(); } } movieClip 1014 deerHand { } movieClip 1016 howlInv { } movieClip 1018 deerInv { } movieClip 1020 knifeInv { } movieClip 1022 keyInv { } movieClip 1030 howlInGame { } movieClip 1046 { } movieClip 1047 fishEnter { frame 10 { stop(); } } movieClip 1068 fishMain { } movieClip 1095 charEnterwater { frame 29 { stop(); } } movieClip 1116 charTurn { } movieClip 1124 charSwimHead { } movieClip 1153 charScare { } movieClip 1201 charLeaveWater { frame 47 { stop(); } } movieClip 1214 underwaterCharTransform { frame 20 { removeMovieClip(this); } } movieClip 1255 charSwim { } movieClip 1279 knifeHand { } movieClip 1310 charLongLegs { } movieClip 1322 charTube { } movieClip 1333 char Pickup high { } movieClip 1335 howlHand { } movieClip 1336 charBash { } movieClip 1338 { } movieClip 1339 exit light effect { } movieClip 1341 { } movieClip 1343 { } movieClip 1348 { } movieClip 1349 sviesulio_kompozicija { } movieClip 1352 { } movieClip 1355 { } movieClip 1357 { } movieClip 1358 camp_pp { } movieClip 1361 { } movieClip 1363 { } movieClip 1366 { } movieClip 1367 EM selectas { } movieClip 1368 equip-mix { } movieClip 1370 { } movieClip 1372 { } movieClip 1374 { frame 1 { stop(); } } movieClip 1375 inventory { } movieClip 1377 { } movieClip 1378 { } movieClip 1379 { frame 1 { stop(); } frame 25 { gotoAndPlay(2); } } movieClip 1403 { } movieClip 1432 { } movieClip 1433 mainChar { frame 1 { stop(); } } movieClip 1435 { } movieClip 1436 { } movieClip 1437 { frame 1 { stop(); } frame 26 { gotoAndPlay(2); } } movieClip 1448 { } movieClip 1449 transChar { frame 1 { stop(); } } movieClip 1476 transformator { frame 22 { stop(); } } movieClip 1498 detransformator { frame 20 { stop(); } } movieClip 1500 Ligonines Maskas { } movieClip 1530 praryja elektra { frame 61 { stop(); } } movieClip 1553 charStab { } movieClip 1556 whiteLight { frame 79 { stop(); _parent.gamePause = false; removeMovieClip(this); } } movieClip 1558 fade_transitionOut { frame 26 { stop(); } } movieClip 1561 fade_transitionIn { frame 34 { stop(); } } movieClip 1563 flowersInv { } movieClip 1565 flowersHand { } // unknown tag 88 length 63 movieClip 1591 subbedTutorial { frame 1 { stop(); } } // unknown tag 88 length 49 movieClip 1625 { frame 1 { stop(); } } movieClip 1626 tutorial { } movieClip 1628 ballonHand { } movieClip 1630 heliumHand { } movieClip 1632 rubberHand { } movieClip 1634 heliumInv { } movieClip 1636 rubberInv { } movieClip 1638 ballonInv { } movieClip 1640 deerShield { } movieClip 1642 keyHand { } frame 1 { stop(); myContextMenu = new ContextMenu(); myContextMenu.hideBuiltInItems(); this.menu = myContextMenu; createEmptyMovieClip('preloader_mc', getNextHighestDepth()); var gameBytesTotal; var gameBytesLoaded; preloader_mc.onEnterFrame = function () { gameBytesTotal = _root.getBytesTotal(); gameBytesLoaded = _root.getBytesLoaded(); loaderOutput.text = Math.floor((gameBytesLoaded / gameBytesTotal) * 100) + '%'; if (loaderOutput.text == '100%') { removeMovieClip(preloader_mc); delete preloader_mc.onEnterFrame; nextFrame(); } }; } movieClip 1666 { } movieClip 1667 { frame 91 { stop(); _parent.nextFrame(); } } button 1668 { on (release) { getURL('http://www.3j.lt', '_blank'); } } movieClip 1675 { } button 1681 { on (press) { getURL('http://www.armorgames.com', '_blank'); } } movieClip 1685 { frame 217 { _parent.nextFrame(); } } button 1686 { on (release) { getURL('http://www.armorgames.com', '_blank'); } } frame 4 { function simpleReturner(returnWhat) { return returnWhat; } function continuePlaying(playWho) { playWho.nextFrame(); playWho.play(); timeoutSet = false; } function forceEffect(mover, listeneris, speedAtMoment, leftWall, rightWall, topWall, bottomWall, tagetSpeed) { if (mover._x >= rightWall or mover._x <= leftWall or mover._y >= bottomWall or mover._y <= topWall) { delete this[listeneris].onEnterFrame; removeMovieClip(this[listeneris]); createEmptyMovieClip(listeneris, getNextHighestDepth()); this[listeneris].onEnterFrame = function () { mover._x -= Math.sin(mover._rotation * Math.PI / 180) * speedAtMoment; mover._y -= Math.cos(mover._rotation * Math.PI / 180) * -speedAtMoment; speedAtMoment *= 0.8; if (speedAtMoment < 0.5) { delete this[listeneris].onEnterFrame; removeMovieClip(this[listeneris]); } }; fishMoveSpeed = 0; } } function fishMovement(mover, accsSpeed, maxSpeed, startSpeed, atatrankaSpeed, mapMovement, leftWall, rightWall) { if (Key.isDown(38) && startSpeed < maxSpeed) { startSpeed += accsSpeed; } if (Key.isDown(39) && startSpeed > 0) { mover._rotation += 8; } if (Key.isDown(37) && startSpeed > 0) { mover._rotation -= 8; } startSpeed *= 0.8; mover._x += Math.sin(mover._rotation * Math.PI / 180) * startSpeed; if (mapMovement == true) { if (0 < Math.sin(mover._rotation * Math.PI / 180) * startSpeed && mover._x > -_x + Stage.width - 150) { if (_x > -rightWall + Stage.width + Math.sin(mover._rotation * Math.PI / 180) * startSpeed) { _x = _x - Math.sin(mover._rotation * Math.PI / 180) * startSpeed; } else { _x = -rightWall + Stage.width; } } else { if (0 > Math.sin(mover._rotation * Math.PI / 180) * startSpeed && mover._x < -_x + 150) { if (_x < leftWall + Math.sin(mover._rotation * Math.PI / 180) * startSpeed) { _x = _x - Math.sin(mover._rotation * Math.PI / 180) * startSpeed; } else { _x = leftWall; } } } } mover._y += Math.cos(mover._rotation * Math.PI / 180) * -startSpeed; if (startSpeed < 0.5) { startSpeed = 0; } return startSpeed; } function doTransformation() { if (charNow == 'mainChar') { charLocation.attachMovie('transformator', 'transformator', charLocation.getNextHighestDepth(), {'_xscale': charLocation[charNow]._xscale, '_yscale': charLocation[charNow]._yscale, '_x': charLocation[charNow]._x, '_y': charLocation[charNow]._y}); charLocation.transformator.swapDepths(charLocation[charNow]); removeMovieClip(charLocation[charNow]); charNow = 'transforming'; } else { charLocation.attachMovie('detransformator', 'detransformator', charLocation.getNextHighestDepth(), {'_xscale': charLocation[charNow]._xscale, '_yscale': charLocation[charNow]._yscale, '_x': charLocation[charNow]._x, '_y': charLocation[charNow]._y}); charLocation.detransformator.swapDepths(charLocation[charNow]); removeMovieClip(charLocation[charNow]); charNow = 'detransforming'; } } function audioVolume(object1, object2, audioObject, roundSpace, maxDistance) { var v1; if (roundSpace == true) { v1 = Math.round(100 - (Math.sqrt((object1._x - object2._x) * (object1._x - object2._x) + (object1._y - object2._y) * (object1._y - object2._y)) / maxDistance) * 100); } else { v1 = Math.round(100 - Math.abs(((object1._x - object2._x) / maxDistance) * 100)); } if (v1 < 0) { v1 = 0; } audioObject.setVolume(v1); } function rearange() { while (slotCounter < 5) { slotCounter += 1; if (inventorySlot[slotCounter] == null && emptySpace == null) { emptySpace = slotCounter; } if (inventorySlot[slotCounter] != null && emptySpace != null) { inventorySlot[emptySpace] = inventorySlot[slotCounter]; inventory[inventorySlot[emptySpace]]._x = inventory['slot' + emptySpace]._x; inventorySlot[slotCounter] = null; emptySpace = null; slotCounter = 0; } } emptySpace = null; slotCounter = 0; } function movement(moveTarget, modifier, moveSpeed, starterScale, leftWall, rightWall, leftWallCam, rightWallCam, cameraMoveLeft, cameraMoveRight, distanceFromBorders, p1ex, planOne) { if (Key.isDown(37) && Key.isDown(39) == false && moveTarget._x > leftWall) { moveTarget._x -= moveSpeed; if (cameraMoveLeft == true && moveTarget._x + _x + modifier < distanceFromBorders) { if (_x < -leftWallCam - moveSpeed) { _x = _x + moveSpeed; if (p1ex == true) { planOne._x += moveSpeed; } } else { _x = -leftWallCam; cameraMoveLeft = false; } } moveTarget._xscale = -starterScale; moveTarget.gotoAndStop('moveFrame'); moveTarget.itemInHand.play(); recentlyMoved = true; inventory._x = -_x; if (currentPoem._x != undefined) { currentPoem._x = -_x; } } if (Key.isDown(39) && Key.isDown(37) == false && moveTarget._x < rightWall) { moveTarget._x += moveSpeed; if (cameraMoveRight == true && moveTarget._x + _x + modifier > Stage.width - distanceFromBorders) { if (_x > -rightWallCam + Stage.width + moveSpeed) { _x = _x - moveSpeed; if (p1ex == true) { planOne._x -= moveSpeed; } } else { _x = -rightWallCam + Stage.width; cameraMoveRight = false; } } moveTarget._xscale = starterScale; moveTarget.gotoAndStop('moveFrame'); moveTarget.itemInHand.play(); recentlyMoved = true; inventory._x = -_x; if (currentPoem._x != undefined) { currentPoem._x = -_x; } } if (Key.isDown(39) && Key.isDown(37) && recentlyMoved == true or Key.isDown(39) == false && Key.isDown(37) == false && recentlyMoved == true) { moveTarget.gotoAndStop('standFrame'); moveTarget.itemInHand.gotoAndStop(1); recentlyMoved = false; } } function removeEquipment(itemName) { slotCounter = 0; while (inventorySlot[slotCounter] != itemName) { slotCounter += 1; } inventorySlot[slotCounter] = null; inventory[itemName].removeMovieClip(); slotCounter = 0; rearange(); equipItem('hand', charLocation[charNow]); } function mixingItem(mix1, mix2, resultItem) { if (mix1 == inventorySlot[currentlySelected] && mix2 == inventorySlot[currentlyMixing] or mix1 == inventorySlot[currentlyMixing] && mix2 == inventorySlot[currentlySelected]) { inventorySlot[currentlySelected] = null; inventorySlot[currentlyMixing] = null; removeMovieClip(inventory[mix1]); removeMovieClip(inventory[mix2]); while (inventorySlot[slotCounter] != null or slotCounter == 5) { slotCounter += 1; } inventorySlot[slotCounter] = resultItem; inventory.attachMovie([resultItem + 'Inv'], resultItem, inventory.getNextHighestDepth(), {'_x': inventory['slot' + slotCounter]._x, '_y': 9}); slotCounter = 0; mixAction = false; inventory.mixBord._visible = false; rearange(); } } function pickupStart(itemInstance, picker, itemName, highType, leftOffset, rightOffset, cLoc, requiredChar) { if (picker._x >= itemInstance._x - leftOffset && picker._x < itemInstance._x + rightOffset && keyXdown == false && charNow == requiredChar) { if (highType == true) { if (picker._x >= cLoc) { picker._xscale = -charScale; } if (picker._x < cLoc) { picker._xscale = charScale; } } pickingProcess = true; if (highType == true) { picker.gotoAndStop('pickupFrameH'); takeType = 'taking2'; takePoint = 6; } else { picker.gotoAndStop('pickupFrame'); takeType = 'taking'; takePoint = 15; } itemRemove = itemInstance; takingItem = itemName; keyXdown = true; } } function pickupProcess() { if (mainChar[takeType]._currentframe == takePoint && mainChar[takeType]._currentframe != undefined) { while (inventorySlot[slotCounter] != null or slotCounter == 5) { slotCounter += 1; } inventorySlot[slotCounter] = takingItem; inventory.attachMovie([takingItem + 'Inv'], takingItem, inventory.getNextHighestDepth(), {'_x': inventory['slot' + slotCounter]._x, '_y': inventory['slot' + slotCounter]._y}); removeMovieClip(itemRemove); } if (mainChar[takeType]._currentframe == mainChar[takeType]._totalframes && mainChar[takeType]._totalframes != undefined) { mainChar.gotoAndStop('standFrame'); mainChar.itemInHand.gotoAndStop(1); pickingProcess = false; slotCounter = 0; } } function equipItem(item, equipingGuy) { if (somethingInHand == true) { removeMovieClip(equipingGuy.itemInHand.picture.itemPicture); } if (item != 'hand') { equipingGuy.itemInHand.picture.attachMovie([item + 'Hand'], 'itemPicture', equipingGuy.itemInHand.picture.getNextHighestDepth()); currentlyEquiped = item; somethingInHand = true; } else { currentlyEquiped = null; somethingInHand = false; } } function inventoryOpen(currentCharacter) { currentCharacter.gotoAndStop('standFrame'); currentCharacter.itemInHand.gotoAndStop(1); gamePause = true; if (inventory._y > Stage.height - inventory._height + inventory.equipMix._height) { inventory._y -= 10; } else { inventoryOpened = true; gamePause = false; inventory._y = Stage.height - inventory._height + inventory.equipMix._height; inventoryMovingUp = false; } } function inventoryClose() { if (inventory._y < 500) { gamePause = true; inventory._y += 10; } else { inventory._y = 500; currentlySelected = 0; inventory.slotBord._x = inventory['slot' + currentlySelected]._x; inventoryOpened = false; inventoryMovingDown = false; gamePause = false; } } function moveSelection(moveDir, nextPos, min, mixing) { if (mixing == false) { if (currentlySelected == min) { currentlySelected = nextPos; } else { currentlySelected += moveDir; } inventory.slotBord._x = inventory['slot' + currentlySelected]._x; } else { if (currentlyMixing == min) { currentlyMixing = nextPos; } else { if (currentlyMixing == currentlySelected - moveDir) { if (currentlyMixing == min + moveDir) { currentlyMixing = nextPos; } else { currentlyMixing += moveDir * 2; } } else { currentlyMixing += moveDir; } } inventory.mixBord._x = inventory['slot' + currentlyMixing]._x; } } function openMix(hand) { if (hand == false) { inventory.equipMix._visible = true; inventory.equipMix.selectBar._x = 0; equipAction = true; mixAction = false; inventory.equipMix._x = inventory['slot' + currentlySelected]._x + inventory['slot' + currentlySelected]._width / 2 - inventory.equipMix._width / 2; } else { inventory.equipTransform._visible = true; inventory.equipTransform.selectBar._x = 0; equipAction = true; transformAction = false; } } function cycleAction() { if (equipAction == true) { if (inventorySlot[currentlySelected] == 'hand') { inventory.equipTransform.selectBar._x = 45; transformAction = true; } else { mixAction = true; inventory.equipMix.selectBar._x = 45; } equipAction = false; } else { if (inventorySlot[currentlySelected] == 'hand') { inventory.equipTransform.selectBar._x = 0; transformAction = false; } else { inventory.equipMix.selectBar._x = 0; mixAction = false; } equipAction = true; } } stop(); stopAllSounds(); var tutorialSpace = 600; var tutorialStep = 1; var turtleComp = false; var fishAppear = false; var dogComp = false; var brakGone = false; var fishComp = false; var xGreitis = 0; var yGreitis = 0; var underwater1st = true; var headCarry = false; var leftStop = 0; var knifeAvaliable = false; var keyAvaliable = false; var leavingCamp = false; var swallowComplete = false; var fishMoveSpeed = 0; var reverseSpeed = 0; var rotationSpeed = 0.1; var rotationAllowed = true; var explosionRandom; var checkNumber; var explosionInterval; var cameraPosition = 0; var ladderLeft = 0; var ladderRight = 359; var cameraOn = false; var tableGuysFun = false; var keyGuyPicked = false; var keyGuyDest; var movementOnColumn = false; var kolonaFallen = false; var peaceMade = false; var warLeverDown = false; var window1down = false; var window2down = false; var window3down = false; var bombFallInterval; var nuclearEngineSpeed = 0; var megaDoorOpened = false; var fatmanDistract = false; var ringTaken = false; var iceCreamTaken = false; var currentZone; var fliesRemoved = false; var flyCreamExsist = false; var officeOpen = false; var officeKeyTaken = false; var fallenDown = false; var mokyklaPoem = false; var abortaiPoem = false; var gyvuneliaiPoem = false; var uzterstumasPoem = false; var sumaterialejimasPoem = false; var karasPoem = false; var socialPoem = false; var global_sound = new Sound(); global_sound.setVolume(100); var subtitlesOn = true; var turningTimeout; var timeoutSet = false; var takePoint; var takeType; var memorizedX; var memorizedY; var memorizedXS; var charLocation = this; var charNow = 'mainChar'; var currentlySelected = 0; var currentlyEquiped = null; var currentlyMixing = 0; var speedBySize = 0; var charScale = 0; var equipAction = false; var emptySpace = null; var gamePause = false; var inventoryMovingUp = false; var inventoryMovingDown = false; var inventoryOpened = false; var inventorySlot = new Array('hand', null, null, null, null); var itemRemove = undefined; var keyListenerConst = new Object(); var keyListenerLvl = new Object(); var thingDefiner = new Object(); var keyMUTEdown = false; var keySUBdown = false; var keyZdown = false; var keyXdown = false; var keyLEFTdown = false; var keyRIGHTdown = false; var mixAction = false; var pickingProcess = false; var recentlyMoved = false; var slotCounter = 0; var selectAction = false; var somethingInHand = false; var selectedMix = null; var selectedMix2 = null; var takingItem = null; var transformAction = false; var allowTrans = true; createEmptyMovieClip('soundTrack_mc', getNextHighestDepth()); createEmptyMovieClip('sndEffects_mc', getNextHighestDepth()); createEmptyMovieClip('inventoryListener', getNextHighestDepth()); createEmptyMovieClip('moveListener', getNextHighestDepth()); var newsSound = new Sound(sndEffects_mc); newsSound.attachSound('newsu'); var entrySound = new Sound(sndEffects_mc); entrySound.attachSound('iejimas'); var isnerimasSound = new Sound(sndEffects_mc); isnerimasSound.attachSound('isnerimas'); var panerimas = new Sound(sndEffects_mc); panerimas.attachSound('enterUnderwater'); var laikrodziaiAudio = new Sound(soundTrack_mc); laikrodziaiAudio.attachSound('laikrodziaiSnd'); var keyWhisperS = new Sound(soundTrack_mc); keyWhisperS.attachSound('keyWhisper'); var citySound = new Sound(soundTrack_mc); citySound.attachSound('miestas'); var underwaterTheme = new Sound(soundTrack_mc); underwaterTheme.attachSound('genericUnderwater'); var gamtaSound = new Sound(soundTrack_mc); gamtaSound.attachSound('gamta'); var vamzdisInside = new Sound(soundTrack_mc); vamzdisInside.attachSound('vamzdis_osimas'); var abandoned = new Sound(soundTrack_mc); abandoned.attachSound('abandonedSnd'); var deconstruction = new Sound(soundTrack_mc); deconstruction.attachSound('deconstructionSnd'); var godOfWinds = new Sound(soundTrack_mc); godOfWinds.attachSound('godofwindsSnd'); var masinaOutside = new Sound(soundTrack_mc); masinaOutside.attachSound('masina_is_isores'); var masinaInside = new Sound(soundTrack_mc); masinaInside.attachSound('masina_viduje'); masinaInside.setVolume(70); Key.addListener(keyListenerLvl); Key.addListener(keyListenerConst); keyListenerConst.onKeyDown = function () { if (Key.getCode() == 77 && keyMUTEdown == false) { if (global_sound.getVolume() == 0) { global_sound.setVolume(100); } else { global_sound.setVolume(0); } keyMUTEdown = true; } if (Key.getCode() == 78 && keySUBdown == false) { if (subtitlesOn == false) { subtitlesOn = true; if (currentPoem._x != undefined) { currentPoem._visible = true; } } else { subtitlesOn = false; if (currentPoem._x != undefined) { currentPoem._visible = false; } } } if (gamePause == false) { if (Key.getCode() == 37 && keyLEFTdown == false && inventoryOpened == true && selectAction == false) { if (mixAction == false) { moveSelection(-1, 4, 0, false); } else { moveSelection(-1, 4, 0, true); } keyLEFTdown = true; } if (Key.getCode() == 39 && keyRIGHTdown == false && inventoryOpened == true && selectAction == false) { if (mixAction == false) { moveSelection(1, 0, 4, false); } else { moveSelection(1, 0, 4, true); } keyRIGHTdown = true; } if (Key.getCode() == 39 && keyRIGHTdown == false && selectAction == true) { cycleAction(); keyTIGHTdown = true; } if (Key.getCode() == 37 && keyLEFTdown == false && selectAction == true) { cycleAction(); keyLEFTdown = true; } if (Key.getCode() == 90 && keyZdown == false) { if (inventoryOpened == false && pickingProcess == false) { inventoryMovingUp = true; } if (inventoryOpened == true && selectAction == false && mixAction == false) { inventoryMovingDown = true; } if (selectAction == true) { inventory.equipMix._visible = false; inventory.equipTransform._visible = false; selectAction = false; } if (selectAction == false && mixAction == true) { slotCounter = 0; mixAction = false; inventory.mixBord._visible = false; } keyZdown = true; } if (Key.getCode() == 88) { if (inventoryOpened == true && inventorySlot[currentlySelected] != null && selectAction == false && keyXdown == false && inventoryMovingDown == false && mixAction == false) { if (inventorySlot[currentlySelected] != 'hand') { openMix(false); selectAction = true; } else { openMix(true); selectAction = true; } keyXdown = true; } if (selectAction == true && keyXdown == false) { if (equipAction == true) { equipItem(inventorySlot[currentlySelected], charLocation[charNow]); selectAction = false; inventory.equipMix._visible = false; inventory.equipTransform._visible = false; inventoryMovingDown = true; keyXdown = true; } else { if (mixAction == true) { currentlyMixing = 0; inventory.mixBord._x = inventory['slot' + currentlyMixing]._x; inventory.equipMix._visible = false; inventory.mixBord._visible = true; selectAction = false; } else { if (transformAction == true) { inventory.equipTransform._visible = false; inventoryMovingDown = true; keyXdown = true; selectAction = false; if (allowTrans == true) { gamePause = true; doTransformation(); } } } } keyXdown = true; } } } }; keyListenerConst.onKeyUp = function () { if (Key.getCode() == 77 && keyMUTEdown == true) { keyMUTEdown = false; } if (Key.getCode() == 37 && keyLEFTdown == true) { keyLEFTdown = false; } if (Key.getCode() == 39 && keyRIGHTdown == true) { keyRIGHTdown = false; } if (Key.getCode() == 90 && keyZdown == true) { keyZdown = false; } if (Key.getCode() == 88 && keyXdown == true) { keyXdown = false; } }; inventoryListener.onEnterFrame = function () { if (charLocation.transformator._currentframe == charLocation.transformator._totalframes && charLocation.transformator._currentframe != undefined) { charLocation.attachMovie('transChar', 'transChar', charLocation.getNextHighestDepth(), {'_xscale': charLocation.transformator._xscale, '_yscale': charLocation.transformator._yscale, '_x': charLocation.transformator._x, '_y': charLocation.transformator._y}); charNow = 'transChar'; currentlyEquiped = null; charLocation.transformator.swapDepths(charLocation.transChar); removeMovieClip(charLocation.transformator); gamePause = false; } if (charLocation.detransformator._currentframe == charLocation.detransformator._totalframes && charLocation.detransformator._currentframe != undefined) { charLocation.attachMovie('mainChar', 'mainChar', charLocation.getNextHighestDepth(), {'_xscale': charLocation.detransformator._xscale, '_yscale': charLocation.detransformator._yscale, '_x': charLocation.detransformator._x, '_y': charLocation.detransformator._y}); charNow = 'mainChar'; currentlyEquiped = null; charLocation.detransformator.swapDepths(charLocation.mainChar); removeMovieClip(charLocation.detransformator); gamePause = false; } if (inventoryMovingUp == true) { inventoryOpen(charLocation[charNow]); } if (inventoryMovingDown == true) { inventoryClose(); } }; nextFrame(); } frame 5 { function leaveTutorial() { if (currentlyEquiped == 'ballon') { removeEquipment('ballon'); attachMovie('ballonHand', 'ballonFly', getNextHighestDepth(), {'_xscale': charScale, '_yscale': charScale, '_x': mainChar._x, '_y': mainChar._y + mainChar._height / 2, '_rotation': -130}); tutorialSpace = 2620; tutorialStep += 1; tutorial.tutorialInside.gotoAndStop(tutorialStep); ballonFly.onEnterFrame = function () { if (ballonFly._y > -30) { ballonFly._y -= 2; ballonFly._x -= 0.5; } else { delete ballonFly.onEnterFrame; removeMovieClip(ballonFly); } }; } } function checkTutorial() { tutorial._x = charLocation[charNow]._x; tutorial._y = charLocation[charNow]._y - 20; switch (tutorialStep) { case 1: if (charLocation[charNow]._x >= 170) { tutorialStep += 1; tutorial.tutorialInside.gotoAndStop(tutorialStep); } if (inventoryOpened == true) { if (selectAction == false) { tutorial.tutorialInside.gotoAndStop('wrongInv'); } else { tutorial.tutorialInside.gotoAndStop('wrongAction'); } } else { tutorial.tutorialInside.gotoAndStop(tutorialStep); } break; case 2: if (inventorySlot[2] != null) { tutorialStep += 1; tutorial.tutorialInside.gotoAndStop(tutorialStep); } if (inventoryOpened == true) { if (selectAction == false) { if (inventory.mixBord._visible == true) { tutorial.tutorialInside.gotoAndStop('wrongMix'); } else { tutorial.tutorialInside.gotoAndStop('wrongInv'); } } else { tutorial.tutorialInside.gotoAndStop('wrongAction'); } } else { tutorial.tutorialInside.gotoAndStop(tutorialStep); } break; case 3: if (inventoryOpened == true && inventoryMovingDown == false) { if (inventorySlot[1] == 'ballon') { tutorialStep = 7; } else { tutorialStep += 1; } tutorial.tutorialInside.gotoAndStop(tutorialStep); } break; case 4: if (selectAction == true && currentlySelected != 0) { tutorialStep += 1; tutorial.tutorialInside.gotoAndStop(tutorialStep); } else { if (selectAction == true && currentlySelected == 0) { tutorial.tutorialInside.gotoAndStop('PressZ'); } } if (keyZdown == true) { tutorial.tutorialInside.gotoAndStop(tutorialStep); } if (inventoryMovingDown == true) { tutorialStep -= 1; tutorial.tutorialInside.gotoAndStop(tutorialStep); } break; case 5: if (selectAction == false && inventory.mixBord._visible == false) { if (inventoryMovingDown == true) { tutorialStep -= 2; } else { tutorialStep -= 1; } tutorial.tutorialInside.gotoAndStop(tutorialStep); } if (inventory.mixBord._visible == true) { tutorialStep += 1; tutorial.tutorialInside.gotoAndStop(tutorialStep); } break; case 6: if (inventorySlot[1] == 'ballon') { tutorialStep += 1; tutorial.tutorialInside.gotoAndStop(tutorialStep); } if (keyZdown == true) { tutorialStep -= 2; tutorial.tutorialInside.gotoAndStop(tutorialStep); } break; case 7: if (inventorySlot[currentlySelected] == 'ballon' && selectAction == true) { tutorialStep += 1; tutorial.tutorialInside.gotoAndStop(tutorialStep); } if (inventorySlot[currentlySelected] != 'ballon' && selectAction == true) { tutorial.tutorialInside.gotoAndStop('wrongAction2'); } if (inventoryMovingDown == false && selectAction == false) { tutorial.tutorialInside.gotoAndStop(tutorialStep); } if (inventoryMovingDown == true) { tutorialStep = 3; tutorial.tutorialInside.gotoAndStop(tutorialStep); } break; case 8: if (currentlyEquiped == 'ballon') { tutorialStep += 1; tutorial.tutorialInside.gotoAndStop(tutorialStep); } if (selectAction == false && currentlyEquiped != 'ballon') { tutorialStep -= 1; tutorial.tutorialInside.gotoAndStop(tutorialStep); } break; case 9: if (currentlyEquiped != 'ballon') { tutorialStep = 3; tutorial.tutorialInside.gotoAndStop(tutorialStep); } if (inventoryOpened == true && inventoryMovingDown == false) { if (selectAction == false) { tutorial.tutorialInside.gotoAndStop('wrongInv'); } else { tutorial.tutorialInside.gotoAndStop('wrongAction'); } } else { tutorial.tutorialInside.gotoAndStop(tutorialStep); } } } stop(); var gyvenimoMokyklaS = new Sound(gyvenimoMokykla.specialEffects); gyvenimoMokyklaS.attachSound('electric_psycho'); gyvenimoMokyklaS.setVolume(0); gyvenimoMokyklaS.start(0, 20000); createEmptyMovieClip('laivelioOsimas', getNextHighestDepth()); laivelioOsimas._x = 1780; var laivelioOsimasS = new Sound(laivelioOsimas); laivelioOsimasS.attachSound('laivelio_osimas'); laivelioOsimasS.setVolume(0); laivelioOsimasS.start(0, 20000); createEmptyMovieClip('miestoGarsai', getNextHighestDepth()); miestoGarsai._x = 250; var miestoSound = new Sound(miestoGarsai); miestoSound.attachSound('miestas'); miestoSound.setVolume(0); miestoSound.start(0, 20000); charScale = 70; charNow = 'mainChar'; speedBySize = (charScale / 100) * 5; allowTrans = false; attachMovie('rubberHand', 'rubber_mc', getNextHighestDepth(), {'_x': 200, '_y': 380, '_rotation': -90}); attachMovie('heliumHand', 'helium_mc', getNextHighestDepth(), {'_x': 280, '_y': 340, '_rotation': -55}); attachMovie('mainChar', 'mainChar', getNextHighestDepth(), {'_x': 80, '_y': 280, '_xscale': 70, '_yscale': 70}); attachMovie('BlackBorder', 'topBorder', getNextHighestDepth(), {'_width': 3033, '_height': 145}); attachMovie('BlackBorder', 'bottomBorder', getNextHighestDepth(), {'_y': 387, '_width': 3033, '_height': 113}); attachMovie('inventory', 'inventory', getNextHighestDepth(), {'_x': 0, '_y': 500}); attachMovie('tutorial', 'tutorial', getNextHighestDepth()); attachMovie('subbedTutorial', 'subTut', getNextHighestDepth(), {'_x': 250, '_y': 100}); inventory.equipMix._visible = false; inventory.equipTransform._visible = false; inventory.mixBord._visible = false; keyListenerLvl.onKeyDown = function () { if (gamePause == false) { if (Key.getCode() == 88) { if (inventoryOpened == false && keyXdown == false) { if (currentlyEquiped == null) { pickupStart(rubber_mc, charLocation[charNow], 'rubber', false, 22, 22, 0, 'mainChar'); pickupStart(helium_mc, charLocation[charNow], 'helium', true, 45, 45, 280, 'mainChar'); } leaveTutorial(); keyXdown = true; } if (inventoryOpened == true && inventorySlot[currentlySelected] != null && selectAction == false && keyXdown == false && inventoryMovingDown == false && mixAction == true) { mixingItem('helium', 'rubber', 'ballon'); keyXdown = true; } } } }; moveListener.onEnterFrame = function () { if (subtitlesOn == true) { schoolSub._visible = true; subTut._visible = true; subTut._x = -_x + 250; subTut.gotoAndStop(tutorial.tutorialInside._currentframe); } else { schoolSub._visible = false; subTut._visible = false; } audioVolume(charLocation[charNow], gyvenimoMokykla.specialEffects, gyvenimoMokyklaS, false, 320); audioVolume(charLocation[charNow], miestoGarsai, miestoSound, false, 90); audioVolume(charLocation[charNow], laivelioOsimas, laivelioOsimasS, false, 180); if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, 0, tutorialSpace, 0, 3033, true, true, 180, false, none); } if (charLocation[charNow]._x > 660 && mokyklaPoem == false) { attachMovie('mokPoem', 'currentPoem', getNextHighestDepth(), {'_y': 500, '_x': -_x}); if (subtitlesOn == false) { currentPoem._visible = false; } mokyklaPoem = true; } checkTutorial(); pickupProcess(); if (charLocation[charNow]._x >= 2600) { if (charLocation[charNow]._alpha == 100) { entrySound.start(0, 1); charLocation[charNow].gotoAndStop('standFrame'); charLocation[charNow].itemInHand.gotoAndStop(1); gamePause = true; } charLocation[charNow]._alpha -= 3; } if (charLocation[charNow]._alpha <= 0) { removeMovieClip(topBorder); removeMovieClip(bottomBorder); removeMovieClip(charLocation[charNow]); removeMovieClip(tutorial); removeMovieClip(subTut); gyvenimoMokyklaS.stop(); miestoSound.stop(); laivelioOsimasS.stop(); vaikuJuokas.stop(); removeMovieClip(laivelioOsimas); removeMovieClip(miestoGarsai); nextFrame(); delete moveListener.onEnterFrame; } }; } movieClip 1699 { } movieClip 1709 { } movieClip 1710 { } movieClip 1733 { } movieClip 1735 { } movieClip 1751 { } movieClip 1753 { } movieClip 1761 { } movieClip 1762 { } movieClip 1764 { } frame 6 { function veiksmaiSuMoterimi() { if (mainChar._x >= moteris._x - 65 && mainChar._x < moteris._x) { if (currentlyEquiped == null) { moteris.gotoAndStop(2); } else { if (currentlyEquiped == 'flowers') { if (mainChar._xscale < 0) { mainChar._xscale = -mainChar._xscale; } moteris.gotoAndStop(3); attachMovie('charStab', 'mainCharStab', getNextHighestDepth(), {'_xscale': mainChar._xscale, '_yscale': mainChar._yscale, '_x': mainChar._x, '_y': mainChar._y}); mainChar._visible = false; mainChar.gotoAndStop('standFrame'); mainChar.itemInHand.gotoAndStop(1); recentlyMoved = false; cryingWoman.stop(); removeMovieClip(womanCry); gamePause = true; } } keyXdown = true; } } stop(); _x = 0; allowTrans = false; gamePause = false; createEmptyMovieClip('womanCry', getNextHighestDepth()); womanCry._x = 400; var cryingWoman = new Sound(womanCry); cryingWoman.attachSound('verkia'); cryingWoman.setVolume(0); cryingWoman.start(0, 20000); abandoned.start(0, 20000); attachMovie('flowersHand', 'flower_mc', getNextHighestDepth(), {'_x': 216, '_y': 409}); attachMovie('mainChar', 'mainChar', getNextHighestDepth(), {'_xscale': 80, '_yscale': 80, '_x': 90, '_y': 300}); speedBySize = (mainChar._xscale / 100) * 5; charScale = mainChar._xscale; transformationAllowed = true; keyListenerLvl.onKeyDown = function () { if (gamePause == false) { if (Key.getCode() == 88) { if (inventoryOpened == false && keyXdown == false) { if (currentlyEquiped == null) { pickupStart(flower_mc, charLocation[charNow], 'flowers', false, 41, 75, 0, 'mainChar'); } veiksmaiSuMoterimi(); keyXdown = true; } if (inventoryOpened == true && inventorySlot[currentlySelected] != null && selectAction == false && keyXdown == false && inventoryMovingDown == false && mixAction == true) { keyXdown = true; } } } }; moveListener.onEnterFrame = function () { audioVolume(charLocation[charNow], womanCry, cryingWoman, false, 200); if (mainCharStab._currentframe == 22) { removeMovieClip(mainCharStab); mainChar._visible = true; attachMovie('fade_transitionOut', 'fadeOut', getNextHighestDepth()); removeEquipment('flowers'); delete keyListenerLvl.onEnterFrame; delete moveListener.onEnterFrame; fadeOut.onEnterFrame = function () { if (fadeOut._currentframe == fadeOut._totalframes) { nextFrame(); removeMovieClip(fadeOut); delete fadeOut.onEnterFrame; } }; } pickupProcess(); if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, 0, Stage.width, 0, 500, false, false, 0, false, none); } }; } movieClip 1769 { } movieClip 1779 { frame 36 { gotoAndPlay(9); } } movieClip 1797 { frame 51 { _parent.gotoAndStop(1); } } movieClip 1819 { frame 28 { stop(); } } movieClip 1820 { frame 1 { stop(); } } frame 7 { function scaryTrash() { if (mainChar._x > 800 && mainChar._x < 950) { gamePause = true; if (mainChar._x > 885) { mainChar._xscale = -charScale; } else { mainChar._xscale = charScale; } mainChar._visible = false; attachMovie('charScared', 'charScared', getNextHighestDepth(), {'_x': mainChar._x, '_y': mainChar._y, '_xscale': mainChar._xscale, '_yscale': charScale}); charScared.swapDepths(mainChar); charScared.onEnterFrame = function () { if (charScared._currentframe == charScared._totalframes) { charScared.swapDepths(mainChar); mainChar._visible = true; removeMovieClip(charScared); delete charScared.onEnterFrame; gamePause = false; } }; } } var siuksledeze_sound = new Sound(siuksledeze); siuksledeze_sound.attachSound('siuksledezeAudio'); siuksledeze_sound.setVolume(0); siuksledeze_sound.start(0, 20000); gamePause = false; gradas.swapDepths(mainChar); if (fadeIn._x != undefined) { removeMovieClip(fadeIn); delete fadeIn.onEnterFrame; } attachMovie('fade_transitionIn', 'fadeIn', getNextHighestDepth()); mainChar._x = 45; mainChar._y = 250; fadeIn.onEnterFrame = function () { if (fadeIn._currentframe == fadeIn._totalframes && fadeIn._totalframes != undefined) { removeMovieClip(fadeIn); delete fadeIn.onEnterFrame; } }; keyListenerLvl.onKeyDown = function () { if (gamePause == false) { if (Key.getCode() == 88) { if (inventoryOpened == false && keyXdown == false) { if (currentlyEquiped == null) { } scaryTrash(); keyXdown = true; } if (inventoryOpened == true && inventorySlot[currentlySelected] != null && selectAction == false && keyXdown == false && inventoryMovingDown == false && mixAction == true) { keyXdown = true; } } } }; moveListener.onEnterFrame = function () { audioVolume(mainChar, siuksledeze, siuksledeze_sound, false, 400); if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, 0, 1678, 0, 1678, true, true, 150, false, none); } if (mainChar._x >= 1678) { siuksledeze_sound.stop(); gamePause = true; _x = 0; _y = 0; removeMovieClip(mainChar); removeMovieClip(gradas); delete moveListener.onEnterFrame; delete keyListenerLvl.onKeyDown; abandoned.stop(); nextFrame(); } }; } movieClip 1825 { } movieClip 1827 { } movieClip 1829 { } movieClip 1831 { } movieClip 1843 { } movieClip 1844 { } movieClip 1846 { } movieClip 1847 { } movieClip 1848 { } movieClip 1850 { } frame 8 { stop(); newsSound.start(0, 1); newsSound.onSoundComplete = function () { if (abortaiPoem == false) { attachMovie('aboPoem', 'currentPoem', getNextHighestDepth(), {'_y': 500, '_x': -_x}); if (subtitlesOn == false) { currentPoem._visible = false; } abortaiPoem = true; delete newsSound.onSoundComplete; } }; } movieClip 1855 { } movieClip 1857 { frame 354 { _parent._parent.nextFrame(); } } movieClip 1859 { } movieClip 1860 { frame 1 { play(); } frame 39 { stop(); } } frame 9 { inventory._x = 0; masinaOutside.start(0, 20000); attachMovie('Ligonines Maskas', 'hospMask', getNextHighestDepth(), {'_x': 0, '_y': 343}); attachMovie('mainChar', 'mainChar', getNextHighestDepth(), {'_xscale': 50, '_yscale': 50, '_x': 20, '_y': 356}); attachMovie('BlackBorder', 'topBorder', getNextHighestDepth(), {'_width': 500, '_height': 71}); attachMovie('BlackBorder', 'bottomBorder', getNextHighestDepth(), {'_width': 500, '_height': 71, '_y': 429}); inventory.swapDepths(getNextHighestDepth()); mainChar.setMask(hospMask); speedBySize = (mainChar._xscale / 100) * 5; charScale = mainChar._xscale; gamePause = false; moveListener.onEnterFrame = function () { if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, 0, Stage.width, 0, 500, false, false, 0, false, none); } if (mainChar._x >= 435) { nextFrame(); gamePause = true; _x = 0; _y = 0; removeMovieClip(hospMask); removeMovieClip(mainChar); removeMovieClip(topBorder); removeMovieClip(bottomBorder); masinaOutside.stop(); delete moveListener.onEnterFrame; } }; } movieClip 1862 { } movieClip 1865 { } movieClip 1870 { } movieClip 1871 { } movieClip 1878 { } movieClip 1880 { } movieClip 1882 { } movieClip 1884 { } movieClip 1886 { } movieClip 1889 { } movieClip 1893 { } movieClip 1894 { } movieClip 1896 { } movieClip 1902 { } movieClip 1905 { } movieClip 1908 { } movieClip 1917 { } movieClip 1919 { } movieClip 1921 { } movieClip 1923 { } movieClip 1924 { } movieClip 1943 { } movieClip 1945 { } movieClip 1946 { } movieClip 1948 { } movieClip 2070 { } frame 10 { stop(); entrySound.start(0, 1); videoFailas.onEnterFrame = function () { if (videoFailas._currentFrame == 74) { videoFailas.stop(); attachMovie('fade_transitionOut', 'fadeOut', getNextHighestDepth()); fadeOut.onEnterFrame = function () { if (fadeOut._currentframe == fadeOut._totalframes && fadeOut._totalframes != undefined) { removeMovieClip(fadeOut); nextFrame(); gamePause = false; delete fadeOut.onEnterFrame; } }; delete videoFailas.onEnterFrame; } }; } movieClip 2072 { } frame 11 { masinaInside.start(0.2, 20000); allowTrans = true; attachMovie('mainChar', 'mainChar', getNextHighestDepth()); if (fadeIn._x != undefined) { removeMovieClip(fadeIn); delete fadeIn.onEnterFrame; } attachMovie('fade_transitionIn', 'fadeIn', getNextHighestDepth()); fadeIn.onEnterFrame = function () { if (fadeIn._currentframe == fadeIn._totalframes && fadeIn._totalfarme != undefined) { removeMovieClip(fadeIn); delete fadeIn.onEnterFrame; } }; mainChar._xscale = 80; mainChar._yscale = 80; mainChar._x = 92; mainChar._y = 198; speedBySize = (mainChar._xscale / 100) * 5; charScale = mainChar._xscale; keyListenerLvl.onKeyDown = function () { if (gamePause == false && inventoryOpened == false && keyXdown == false) { if (Key.getCode() == 88) { if (charLocation[charNow]._x >= elektriukas._x - 50 && charNow == 'transChar' && gamePause == false && charLocation[charNow]._x != undefined) { gamePause = true; charLocation[charNow]._visible = false; attachMovie('praryja elektra', 'ryjaElek', getNextHighestDepth()); if (charLocation[charNow]._xscale < 0) { charLocation[charNow]._xscale *= -1; } ryjaElek._xscale = charLocation[charNow]._xscale; ryjaElek._yscale = charLocation[charNow]._yscale; ryjaElek._x = 455; ryjaElek._y = charLocation[charNow]._y; } } } }; moveListener.onEnterFrame = function () { if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, 75, 480, 0, 694, true, true, 250, false, none); } if (ryjaElek._currentFrame == 33) { loadMovie('', elektriukas); } if (ryjaElek._currentFrame == 61) { delete moveListener.onEnterFrame; delete keyListenerLvl.onKeyDown; attachMovie('whiteLight', 'whiteLight', getNextHighestDepth()); masinaInside.stop(); nextFrame(); charLocation[charNow]._visible = true; removeMovieClip(ryjaElek); } }; } movieClip 2075 { } movieClip 2077 { } movieClip 2079 { } movieClip 2082 { } movieClip 2083 { } frame 12 { gamePause = false; moveListener.onEnterFrame = function () { if (charLocation[charNow]._x >= 694 && gamePause == false && charLocation[charNow]._visible == true && charLocation[charNow]._x != undefined) { removeMovieClip(charLocation[charNow]); delete moveListener.onEnterFrame; nextFrame(); } if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, 75, 694, 0, 694, true, true, 250, false, none); } }; } frame 13 { function timeOutRotation() { rotationAllowed = true; } function mapRotation() { if (rotBG._rotation > 2 && rotationSpeed > 0) { rotationSpeed = -0.1; rotationAllowed = false; setTimeout(timeOutRotation, 100); } if (rotBG._rotation < -2 && rotationSpeed < 0) { rotationSpeed = 0.1; rotationAllowed = false; setTimeout(timeOutRotation, 100); } if (rotationAllowed == true) { rotBG._rotation += rotationSpeed; if (rotBG._rotation > 0) { if (rotationSpeed > 0) { rotationSpeed *= 0.9; } else { rotationSpeed *= 1.1; } } else { if (rotationSpeed > 0) { rotationSpeed *= 1.1; } else { rotationSpeed *= 0.9; } } } } function enterTube() { if (charNow == 'transChar' && charLocation[charNow]._x > 388 && charLocation[charNow]._x != undefined) { gamePause = true; charLocation[charNow]._xscale = charScale; charLocation.attachMovie('charTube', 'charTube', charLocation.getNextHighestDepth(), {'_y': charLocation[charNow]._y, '_x': 418, '_xscale': charLocation[charNow]._xscale, '_yscale': charLocation[charNow]._yscale}); charLocation[charNow].swapDepths(charLocation.charTube); removeMovieClip(charLocation[charNow]); charNow = 'charTube'; } } stop(); _x = 0; vamzdisInside.start(0, 20000); charLocation = rotBG; rotBG.attachMovie(charNow, charNow, rotBG.getNextHighestDepth(), {'_xscale': 100, '_yscale': 100, '_x': -rotBG.backgr._width / 2 + 30, '_y': rotBG.backgr._y - rotBG.backgr._height / 2 + 120}); rotBG.attachMovie('exit light effect', 'elf', rotBG.getNextHighestDepth()); rotBG.elf._x = rotBG.backgr._x + rotBG.backgr._width / 4; rotBG.elf._y = rotBG.backgr._y - rotBG.elf._height + rotBG.backgr._height; rotBG.attachMovie('sviesulio_kompozicija', 'sviesKomp', rotBG.getNextHighestDepth()); rotBG.sviesKomp._y = rotBG.backgr._y - rotBG.backgr._height / 2; rotBG.sviesKomp._x = -300; rotBG.attachMovie('vamzidsTunely', 'vamzdis', rotBG.getNextHighestDepth(), {'_x': rotBG.backgr._width / 2, '_y': rotBG.backgr._height / 2}); rotBG._rotation = 2; inventory.equipMix._visible = false; inventory.equipTransform._visible = false; inventory.mixBord._visible = false; speedBySize = (charLocation[charNow]._xscale / 100) * 5; charScale = charLocation[charNow]._xscale; keyListenerLvl.onKeyDown = function () { if (gamePause == false && inventoryOpened == false && keyXdown == false) { if (Key.getCode() == 88) { if (inventoryOpened == false && keyXdown == false) { enterTube(); keyXdown = true; } } } }; moveListener.onEnterFrame = function () { mapRotation(); if (charNow == 'charTube' && charLocation[charNow]._currentframe == charLocation[charNow]._totalframes or Key.isDown(84)) { _x = 0; _y = 0; memorizedX = 340; memorizedXS = 100; memorizedY = 400; _rotation = 0; removeMovieClip(elf); removeMovieClip(sviesKomp); removeMovieClip(charLocation[charNow]); delete keyListenerLvl.onKeyDown; delete moveListener.onEnterFrame; vamzdisInside.stop(); nextFrame(); } if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], rotBG._width / 2, speedBySize, charScale, rotBG.backgr._x - rotBG.backgr._width / 2, 448, 0, rotBG.backgr._width, true, true, 200); } }; } movieClip 2088 { } movieClip 2090 { } movieClip 2091 { } movieClip 2092 { } frame 14 { function uwMovement(mover, moveSpeed, leftWall, rightWall, topWall, bottomWall, xMirror) { var v2 = Math.sqrt(moveSpeed * moveSpeed / 2); if (Key.isDown(37) && Key.isDown(38) == false && Key.isDown(40) == false && Key.isDown(39) == false && mover._x > leftWall) { if (xGreitis > -moveSpeed) { xGreitis -= 1; mover._xscale = -xMirror; } } if (Key.isDown(39) && Key.isDown(38) == false && Key.isDown(40) == false && Key.isDown(37) == false && mover._x < rightWall) { if (xGreitis < moveSpeed) { xGreitis += 1; mover._xscale = xMirror; } } if (Key.isDown(38) && Key.isDown(37) == false && Key.isDown(39) == false && Key.isDown(40) == false && mover._y > topWall) { if (yGreitis > -moveSpeed) { yGreitis -= 1; } } if (Key.isDown(40) && Key.isDown(37) == false && Key.isDown(39) == false && Key.isDown(38) == false && mover._y < bottomWall) { if (yGreitis < moveSpeed) { yGreitis += 1; } } if (Key.isDown(40) && Key.isDown(37) && Key.isDown(39) == false && Key.isDown(38) == false && mover._x > leftWall && mover._y < bottomWall) { if (xGreitis > -v2) { xGreitis -= 1; mover._xscale = -xMirror; } if (yGreitis < v2) { yGreitis += 1; } } if (Key.isDown(40) && Key.isDown(39) && Key.isDown(37) == false && Key.isDown(38) == false && mover._y < bottomWall && mover._x < rightWall) { if (xGreitis < v2) { xGreitis += 1; mover._xscale = xMirror; } if (yGreitis < v2) { yGreitis += 1; } } if (Key.isDown(38) && Key.isDown(39) && Key.isDown(37) == false && Key.isDown(40) == false && mover._x < rightWall && mover._y > topWall) { if (xGreitis < v2) { xGreitis += 1; mover._xscale = xMirror; } if (yGreitis > -v2) { yGreitis -= 1; } } if (Key.isDown(38) && Key.isDown(37) && Key.isDown(39) == false && Key.isDown(40) == false && mover._y > topWall && mover._x > leftWall) { if (xGreitis > -v2) { xGreitis -= 1; mover._xscale = -xMirror; } if (yGreitis > -v2) { yGreitis -= 1; } } if (mover._x > leftWall && xGreitis < 0 or mover._x < rightWall && xGreitis > 0) { mover._x += xGreitis; } if (mover._y > topWall && yGreitis < 0 or mover._y < bottomWall && yGreitis > 0) { mover._y += yGreitis; } if (Math.abs(xGreitis) >= 0.5) { xGreitis *= 0.9; } else { xGreitis = 0; } if (Math.abs(yGreitis) >= 0.5) { yGreitis *= 0.9; } else { yGreitis = 0; } } function pluduras(mover, moveSpeed, period) { createEmptyMovieClip('pluduroSkait', getNextHighestDepth()); var moveCounter = 0; moveSpeed = Math.abs(moveSpeed); pluduroSkait.onEnterFrame = function () { mover._y += moveSpeed; moveCounter += moveSpeed; if (Math.abs(moveCounter) >= period) { moveSpeed *= -1; } }; } underwaterTheme.start(0, 20000); underwaterTheme.setVolume(100); panerimas.start(0, 1); inventory._x = 0; inventory._y = 500; allowTrans = false; charLocation = this; attachMovie('purpleFish', 'purpleFish', getNextHighestDepth(), {'_x': 102, '_y': 67}); attachMovie('schoolOfFishes', 'schoolOfFishes', getNextHighestDepth(), {'_x': 190, '_y': 340}); if (underwater1st == true) { attachMovie('underwaterCharTransform', 'charTrans', getNextHighestDepth(), {'_x': 234, '_y': 397}); underwater1st = false; charNow = 'charTrans'; charTrans.onEnterFrame = function () { if (charLocation[charNow]._currentframe == charLocation[charNow]._totalframes && charNow == 'charTrans') { removeMovieClip(charTrans); attachMovie('charSwim', 'mainChar', getNextHighestDepth(), {'_x': memorizedX, '_y': memorizedY, '_xscale': memorizedXS}); charNow = 'mainChar'; mainChar.swapDepths(inventory); gamePause = false; delete charTrans.onEnterFrame; } }; } else { attachMovie('charSwim', 'mainChar', getNextHighestDepth(), {'_x': memorizedX, '_y': memorizedY, '_xscale': memorizedXS}); charNow = 'mainChar'; mainChar.swapDepths(inventory); } if (fishAppear == true) { attachMovie('fishSwallow', 'fishSwallow', getNextHighestDepth(), {'_x': 219, '_y': 364}); fishSwallow.onEnterFrame = function () { if (charLocation[charNow]._x > 310 && charLocation[charNow]._x < 410 && charLocation[charNow]._y > 390 && charLocation[charNow]._y < 460 && fishSwallow._currentframe == 10) { gamePause = true; charLocation[charNow]._visible = false; swallowComplete = true; } if (swallowComplete == true && fishSwallow._currentframe >= 14) { attachMovie('fishMain', 'fishMain', getNextHighestDepth(), {'_x': 570, '_y': 410, '_xscale': charScale, '_yscale': charScale, '_rotation': 270}); fishMain.swapDepths(charLocation[charNow]); removeMovieClip(charLocation[charNow]); delete pluduroSkait.onEnterFrame; charNow = 'fishMain'; fishMain.onEnterFrame = function () { if (fishMain._x > 450) { fishMain._x -= 7; } else { delete fishMain.onEnterFrame; gamePause = false; } }; removeMovieClip(fishSwallow); delete fishSwallow.onEnterFrame; } }; } charScale = Math.abs(charLocation[charNow]._xscale); speedBySize = charScale * 5 / 100; pluduras(charLocation[charNow], 0.5, 10); moveListener.onEnterFrame = function () { if (charLocation[charNow]._y <= 0 && charNow == 'mainChar') { memorizedXS = charLocation[charNow]._xscale; if (memorizedXS > 0) { memorizedX = charLocation[charNow]._x + 26; } else { memorizedX = charLocation[charNow]._x - 26; } removeMovieClip(pluduroSkait); removeMovieClip(charLocation[charNow]); removeMovieClip(purpleFish); removeMovieClip(schoolOfFishes); if (fishAppear == true) { removeMovieClip(fishSwallow); } delete moveListener.onEnterFrame; delete pluduroSkait.onEnterFrame; delete forceListener.onEnterFrame; removeMovieClip(forceListener); underwaterTheme.stop(); underwaterTheme.setVolume(70); isnerimasSound.start(0, 1); nextFrame(); } if (inventoryOpened == false && pickingProcess == false && gamePause == false) { if (charNow == 'mainChar') { uwMovement(charLocation[charNow], speedBySize, 0, 500, 0, 450, charScale); } else { if (charNow == 'fishMain') { fishMoveSpeed = fishMovement(charLocation[charNow], 3, 8, fishMoveSpeed, reverseSpeed); forceEffect(charLocation[charNow], 'forceListener', fishMoveSpeed, 50, 450, 0, 450, 'fishMoveSpeed'); } } } else { xGreitis = 0; yGreitis = 0; } if (charNow == 'fishMain' && charLocation[charNow]._y <= 50) { gotoAndStop('pollution'); memorizedX = charLocation[charNow]._x; memorizedXS = -100; removeMovieClip(charLocation[charNow]); delete moveListener.onEnterFrame; delete forceListener.onEnterFrame; removeMovieClip(forceListener); removeMovieClip(purpleFish); removeMovieClip(pluduroSkait); delete pluduroSkait.onEnterFrame; removeMovieClip(schoolOfFishes); } }; } movieClip 2103 { } movieClip 2104 { } movieClip 2105 { } movieClip 2106 { } movieClip 2113 { } movieClip 2115 { } movieClip 2117 { } movieClip 2118 { } movieClip 2119 { } movieClip 2122 { } movieClip 2125 { } movieClip 2126 { } frame 15 { gamtaSound.start(0, 20000); if (memorizedX >= 500) { memorizedX = 499; } else { if (memorizedX < 0) { memorizedX = 0; } } attachMovie('charSwimHead', 'headChar', getNextHighestDepth(), {'_x': memorizedX, '_y': 400, '_xscale': memorizedXS}); charNow = 'headChar'; charScale = Math.abs(charLocation[charNow]._xscale); speedBySize = charScale * 5 / 100; moveListener.onEnterFrame = function () { if (charLocation[charNow]._x >= 500) { delete moveListener.onEnterFrame; removeMovieClip(charLocation[charNow]); gamtaSound.stop(); nextFrame(); } if (Key.isDown(40)) { memorizedXS = charLocation[charNow]._xscale; if (memorizedXS > 0) { memorizedX = charLocation[charNow]._x - 26; } else { memorizedX = charLocation[charNow]._x + 26; } memorizedY = 60; delete moveListener.onEnterFrame; removeMovieClip(charLocation[charNow]); gamtaSound.stop(); prevFrame(); } if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, 0, 500, 0, 500, false, false, 0); } }; } movieClip 2131 { } movieClip 2134 { } movieClip 2138 { } movieClip 2139 { } movieClip 2142 { } movieClip 2143 { } movieClip 2146 { } movieClip 2147 { } movieClip 2152 { } movieClip 2153 { } movieClip 2156 { } movieClip 2157 { } movieClip 2158 { } movieClip 2161 { } movieClip 2162 { } movieClip 2167 { } movieClip 2168 { } frame 16 { function leaveCamp() { if (fishComp == true && dogComp == true && turtleComp == true && charNow == 'mainChar' && charLocation[charNow]._x <= 400 && gamePause == false) { gamePause = true; mainChar._visible = false; attachMovie('charEnterwater', 'charEnterwater', getNextHighestDepth(), {'_x': mainChar._x, '_y': mainChar._y, '_xscale': -charScale, '_yscale': mainChar._yscale}); mainChar.swapDepths(charEnterwater); removeMovieClip(mainChar); leavingCamp = true; charEnterwater.onEnterFrame = function () { if (_x < -3) { _x = _x + 3; camp_pp._x += 3; inventory._x -= 3; } else { _x = 0; inventory._x = 0; } if (charEnterwater._currentframe == charEnterwater._totalframes && charEnterwater._totalframes != undefined) { removeMovieClip(camp_pp); removeMovieClip(topBorder); removeMovieClip(bottomBorder); if (brakGone == false) { removeMovieClip(turtle); } removeMovieClip(charEnterwater); memoirzedY = 400; memorizedX = 499; memorizedXS = Math.abs(memorizedXS) * -1; delete charEnterwater.onEnterFrame; delete moveListener.onEnterFrame; delete keyListenerLvl.onKeyDown; gamePause = false; _x = 0; inventory._x = 0; allowTrans = false; prevFrame(); deconstruction.stop(); brakGone = true; fishAppear = true; } }; } } function freeDog() { if (currentlyEquiped == 'key' && charNow == 'mainChar' && charLocation[charNow].hitTest(dogCage) && charLocation[charNow]._x != undefined) { gamePause = true; mainChar._visible = false; mainChar.gotoAndStop(1); mainChar.itemInHand.gotoAndStop(1); attachMovie('charTurn', 'charTurn', getNextHighestDepth(), {'_x': mainChar._x, '_y': mainChar._y, '_xscale': mainChar._xscale, '_yscale': charScale}); charTurn.swapDepths(mainChar); removeEquipment('key'); charTurn.onEnterFrame = function () { if (charTurn._currentframe == 10) { dogCage.gotoAndStop(2); dogComp = true; dogCage.onEnterFrame = function () { if (dogCage.dogRuns._currentframe == dogCage.dogRuns._totalframes && dogCage.dogRuns._totalframes != undefined) { dogCage.dogRuns._x += 5; } if (dogCage.dogRuns._x >= 327) { loadMovie('', dogCage.dogRuns); delete dogCage.onEnterFrame; } }; } if (charTurn._currentframe == charTurn._totalframes && charTurn._totalframes != undefined) { charTurn.swapDepths(mainChar); mainChar._visible = true; removeMovieClip(charTurn); gamePause = false; } }; } } function leverTurn() { if (charNow == 'mainChar' && charLocation[charNow].hitTest(lever) && fishComp == false && charLocation[charNow]._x != undefined) { gamePause = true; charLocation[charNow]._visible = false; mainChar.gotoAndStop(1); mainChar.itemInHand.gotoAndStop(1); attachMovie('charTurn', 'charTurn', getNextHighestDepth(), {'_x': mainChar._x, '_y': mainChar._y, '_xscale': mainChar._xscale, '_yscale': charScale}); charTurn.swapDepths(mainChar); charTurn.onEnterFrame = function () { if (charTurn._currentframe == 10) { lever.gotoAndStop(2); fishCage.gotoAndStop(2); fishComp = true; } if (charTurn._currentframe == charTurn._totalframes) { mainChar.swapDepths(charTurn); removeMovieClip(charTurn); delete charTurn.onEnterFrame; mainChar._visible = true; gamePause = false; } }; } } function recreateDepthsCamp(clip) { clip.swapDepths(camp_pp); camp_pp.swapDepths(topBorder); topBorder.swapDepths(bottomBorder); inventory.swapDepths(bottomBorder); } function freeTurtle() { if (charNow == 'transChar' && currentlyEquiped == 'knife' && charLocation[charNow]._x >= 756 && charLocation[charNow]._x <= 986 && charLocation[charNow]._x != undefined) { gamePause = true; if (Math.abs(charLocation[charNow]._x - 756) < Math.abs(charLocation[charNow]._x - 986)) { charLocation[charNow]._xscale = charScale; charLocation[charNow]._x = 756; } else { charLocation[charNow]._xscale = -charScale; charLocation[charNow]._x = 986; } charLocation[charNow]._visible = false; charLocation[charNow].gotoAndStop(1); charLocation[charNow].itemInHand.gotoAndStop(1); attachMovie('charLongLegs', 'charLongLegs', getNextHighestDepth(), {'_xscale': charLocation[charNow]._xscale, '_yscale': charScale, '_x': charLocation[charNow]._x, '_y': charLocation[charNow]._y}); charLocation[charNow].swapDepths(charLongLegs); removeEquipment('knife'); charLongLegs.onEnterFrame = function () { if (charLongLegs._currentframe == 60) { turtle.gotoAndStop(2); turtleComp = true; } if (charLongLegs._currentframe == charLongLegs._totalframes && charLongLegs._totalframes != undefined) { charLocation[charNow].swapDepths(charLongLegs); removeMovieClip(charLongLegs); charLocation[charNow]._visible = true; delete charLongLegs.onEnterFrame; gamePause = false; } }; } } function scareBrak() { if (currentlyEquiped == 'deer' && charLocation[charNow]._x > 460 && charLocation[charNow]._x < 595 && charNow == 'mainChar' && charLocation[charNow]._x != undefined) { gamePause = true; charLocation[charNow]._visible = false; charLocation[charNow].gotoAndStop(1); charLocation[charNow].itemInHand.gotoAndStop(1); if (mainChar._x > brak2._x) { mainChar._xscale = -charScale; } else { mainChar._xscale = charScale; } attachMovie('charScare', 'charScare', getNextHighestDepth(), {'_xscale': mainChar._xscale, '_yscale': charScale, '_x': mainChar._x, '_y': mainChar._y}); mainChar.swapDepths(charScare); removeEquipment('deer'); brak2.onEnterFrame = function () { if (brak2.krenta._currentframe == brak2.krenta._totalframes && brak2.krenta._totalframes != undefined) { attachMovie('knifeHand', 'knife_mc', getNextHighestDepth(), {'_rotation': 45, '_x': 602, '_y': 341}); recreateDepthsCamp(knife_mc); if (currentPoem._x != undefined) { currentPoem.swapDepths(getNextHighestDepth()); } knifeAvaliable = true; delete brak2.onEnterFrame; gamePause = false; } }; charScare.onEnterFrame = function () { if (charScare._currentframe == charScare._totalframes) { brak2.gotoAndStop(2); mainChar.swapDepths(charScare); removeMovieClip(charScare); delete charScare.onEnterFrame; mainChar._visible = true; } }; } } function hitHead() { if (charNow == 'mainChar' && currentlyEquiped == 'howl' && charLocation[charNow]._x > brak1._x - brak1._width / 2 && charLocation[charNow]._x < brak1._x + brak1._width && charLocation[charNow]._x != undefined) { gamePause = true; charLocation[charNow]._xscale = charScale * -1; attachMovie('charBash', 'charBash', getNextHighestDepth(), {'_yscale': charScale, '_xscale': -charScale, '_x': charLocation[charNow]._x, '_y': charLocation[charNow]._y}); charLocation[charNow]._visible = false; charLocation[charNow].gotoAndStop(1); charLocation[charNow].itemInHand.gotoAndStop(1); charBash.swapDepths(charLocation[charNow]); charBash.onEnterFrame = function () { if (charBash._currentframe == 6) { brak1.gotoAndStop(2); } if (brak1.mirsta._currentframe == brak1.mirsta._totalframes && brak1.mirsta._totalframes != undefined) { keyAvaliable = true; key_mc._visible = true; } if (charBash._currentframe == charBash._totalframes) { charBash.swapDepths(charLocation[charNow]); removeMovieClip(charBash); delete charBash.onEnterFrame; charLocation[charNow]._visible = true; removeEquipment('howl'); leftStop = 250; gamePause = false; } }; } } deconstruction.start(0, 20000); charScale = 80; leavingCamp = false; leftStop = 0; if (brakGone == false) { attachMovie('deerHand', 'deer_mc', getNextHighestDepth(), {'_x': 642, '_y': 237}); attachMovie('howlInGame', 'howl_mc', getNextHighestDepth(), {'_x': 691, '_y': 267}); attachMovie('keyHand', 'key_mc', getNextHighestDepth(), {'_xscale': 100, '_yscale': -100, '_rotation': -225, '_x': 473, '_y': 341}); key_mc._visible = false; } attachMovie('charSwimHead', 'headChar', getNextHighestDepth(), {'_x': 30, '_y': 380, '_xscale': charScale, '_yscale': charScale}); if (brakGone == false) { attachMovie('vezliukas', 'turtle', getNextHighestDepth(), {'_x': 835, '_y': 96}); } if (brakGone == true) { brak1._visible = false; brak2._visible = false; lever.gotoAndStop(2); fishCage.gotoAndStop(2); fishCage.fishFree.gotoAndStop(fishCage.fishFree._totalframes); dogCage.gotoAndStop(2); loadMovie('', dogCage.dogRuns); } attachMovie('camp_pp', 'camp_pp', getNextHighestDepth(), {'_x': 0, '_y': 25}); attachMovie('blackBorder', 'topBorder', getNextHighestDepth(), {'_width': 1074, '_height': 25}); attachMovie('blackBorder', 'bottomBorder', getNextHighestDepth(), {'_y': 475, '_width': 1074, '_height': 25}); inventory.swapDepths(getNextHighestDepth()); charNow = 'headChar'; headChar.onEnterFrame = function () { if (charLocation[charNow]._x <= 0 && charLocation[charNow]._x != undefined) { memoirzedY = 400; memorizedX = 499; memorizedXS = Math.abs(memorizedXS) * -1; delete moveListener.onEnterFrame; delete headChar.onEnterFrame; delete keyListenerLvl.onKeyDown; removeMovieClip(charLocation[charNow]); if (brakGone == false) { removeMovieClip(howl_mc); removeMovieClip(deer_mc); removeMovieClip(turtle); removeMovieClip(key_mc); } removeMovieClip(camp_pp); removeMovieClip(topBorder); removeMovieClip(bottomBorder); deconstruction.stop(); prevFrame(); } if (charLocation[charNow]._x >= 355 && charNow == 'headChar' && charLocation[charNow]._x != undefined) { gamePause = true; attachMovie('charLeaveWater', 'leaveWater', getNextHighestDepth(), {'_x': 498, '_y': 230, '_xscale': charScale, '_yscale': charScale}); leaveWater.swapDepths(charLocation[charNow]); headChar._visible = false; charNow = 'leaveWater'; } if (charNow == 'leaveWater') { _x = _x - 3; camp_pp._x -= 3; inventory._x += 3; } if (leaveWater._currentframe == leaveWater._totalframes && charNow == 'leaveWater') { attachMovie('mainChar', 'mainChar', getNextHighestDepth(), {'_xscale': charScale, '_yscale': charScale, '_x': leaveWater._x, '_y': leaveWater._y}); mainChar.swapDepths(leaveWater); removeMovieClip(leaveWater); delete headChar.onEnterFrame; removeMovieClip(headChar); charNow = 'mainChar'; speedBySize = (charScale / 100) * 5; if (brakGone == false) { leftStop = 450; } else { leftStop = 250; } allowTrans = true; if (gyvuneliaiPoem == false) { attachMovie('gyvPoem', 'currentPoem', getNextHighestDepth(), {'_y': 500, '_x': -_x}); if (subtitlesOn == false) { currentPoem._visible = false; } gyvuneliaiPoem = true; } gamePause = false; } }; keyListenerLvl.onKeyDown = function () { if (gamePause == false && Key.getCode() == 88 && inventoryOpened == false && keyXdown == false) { if (currentlyEquiped == null) { if (howl_mc._currentframe > 20 && howl_mc._currentframe < 34) { pickupStart(howl_mc, charLocation[charNow], 'howl', true, 80, 100, 675, 'mainChar'); } pickupStart(deer_mc, charLocation[charNow], 'deer', true, 60, 60, 650, 'mainChar'); if (knifeAvaliable == true) { pickupStart(knife_mc, charLocation[charNow], 'knife', false, 15, 35, 0, 'mainChar'); } if (keyAvaliable == true) { pickupStart(key_mc, charLocation[charNow], 'key', false, 15, 35, 0, 'mainChar'); } } hitHead(); scareBrak(); freeTurtle(); leverTurn(); freeDog(); } }; moveListener.onEnterFrame = function () { if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, leftStop, 1073, 0, 1073, true, true, 200, true, camp_pp); } pickupProcess(); if (leavingCamp == false) { leaveCamp(); } }; } movieClip 2176 { } movieClip 2179 { } movieClip 2196 { } movieClip 2197 { } movieClip 2200 { } movieClip 2206 { } movieClip 2219 { frame 37 { stop(); } } movieClip 2220 { frame 1 { stop(); } } movieClip 2235 { } movieClip 2238 { } movieClip 2250 { } movieClip 2269 { } movieClip 2270 { frame 11 { stop(); } } movieClip 2272 { frame 1 { stop(); } } movieClip 2274 { } movieClip 2276 { } movieClip 2283 { frame 9 { stop(); } } movieClip 2284 { frame 1 { stop(); } } movieClip 2287 { frame 1 { stop(); } } movieClip 2318 { } movieClip 2326 { frame 10 { stop(); } } movieClip 2327 { frame 1 { stop(); } } frame 17 { if (memorizedX >= 500) { memorizedX = 499; } else { if (memorizedX < 0) { memorizedX = 0; } } attachMovie('fishHead', 'headChar', getNextHighestDepth(), {'_x': memorizedX, '_y': 400, '_xscale': memorizedXS}); charNow = 'headChar'; charScale = Math.abs(charLocation[charNow]._xscale); speedBySize = charScale * 5 / 100; attachMovie('BlackBorder', 'topBorder', getNextHighestDepth(), {'_x': -28, '_y': 455, '_width': 555, '_height': 50}); attachMovie('BlackBorder', 'bottomBorder', getNextHighestDepth(), {'_x': -34, '_y': -41, '_width': 557, '_height': 84}); inventory.swapDepths(getNextHighestDepth()); if (uzterstumasPoem == false) { attachMovie('uztPoem', 'currentPoem', getNextHighestDepth(), {'_y': 500, '_x': -_x}); if (subtitlesOn == false) { currentPoem._visible = false; } uzterstumasPoem = true; } moveListener.onEnterFrame = function () { if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, 0, 500, 0, 500, false, false, 0); } if (pagr_fonas.vanduo_nuodai._currentframe == 50) { headChar.gotoAndStop(2); } if (pagr_fonas.banditai.traktorius._currentframe == 251) { attachMovie('banga coded', 'bangCode', getNextHighestDepth(), {'_x': 661, '_y': 150}); bangCode.swapDepths(bottomBorder); bottomBorder.swapDepths(topBorder); currentPoem.swapDepths(topBorder); } if (bangCode._currentframe == 20) { gamePause = true; charLocation[charNow]._visible = false; } if (bangCode._currentframe == bangCode._totalframes && bangCode._totalframes != undefined or Key.isDown(84)) { removeMovieClip(bangCode); removeMovieClip(bottomBorder); removeMovieClip(topBorder); memorizedX = charLocation[charNow]._x; removeMovieClip(charLocation[charNow]); delete moveListener.onEnterFrame; nextFrame(); } }; } movieClip 2329 { } movieClip 2332 { } movieClip 2333 { frame 11 { stop(); } } movieClip 2334 { } movieClip 2336 { } movieClip 2337 { } movieClip 2347 { } movieClip 2356 { frame 33 { stop(); } } movieClip 2362 { } movieClip 2363 { frame 25 { stop(); } } movieClip 2368 { } movieClip 2369 { frame 25 { stop(); } } movieClip 2384 { } movieClip 2388 { frame 41 { stop(); } } movieClip 2393 { } movieClip 2394 { frame 20 { stop(); } } movieClip 2395 { } movieClip 2396 { } movieClip 2397 { } movieClip 2398 { frame 65 { stop(); } } movieClip 2400 { } movieClip 2411 { } movieClip 2440 { } movieClip 2454 { } movieClip 2470 { } movieClip 2478 { } movieClip 2481 { frame 73 { stop(); } } movieClip 2484 { } movieClip 2485 { frame 40 { stop(); } } movieClip 2487 { } movieClip 2488 { frame 20 { stop(); } } movieClip 2489 { } frame 18 { function enterCave() { createEmptyMovieClip('frameListener', getNextHighestDepth()); attachMovie('fishEnter', 'fishEnter', getNextHighestDepth(), {'_x': charLocation[charNow]._x, '_y': charLocation[charNow]._y, '_xscale': charLocation[charNow]._xscale, '_yscale': charLocation[charNow]._yscale, '_rotation': charLocation[charNow]._rotation}); removeMovieClip(charLocation[charNow]); delete moveListener.onEnterFrame; var xDist = 300 - fishEnter._x; var yDist = 440 - fishEnter._y; frameListener.onEnterFrame = function () { if (fishEnter._currentframe == 10) { fishEnter._xscale *= 0.99; fishEnter._yscale *= 0.99; fishEnter._alpha -= 2; if (fishEnter._x < 300 - xDist * 0.1 && xDist > 0 or fishEnter._x > 300 - xDist * 0.1 && xDist < 0) { fishEnter._x += xDist * 0.1; } else { fishEnter._x = 300; } if (fishEnter._y < 440 - yDist * 0.1 && yDist > 0 or fishEnter._y > 440 - yDist * 0.1 && yDist < 0) { fishEnter._y += yDist * 0.1; } else { tt; fishEnter._y = 440; } } if (fishEnter._alpha <= 0) { removeMovieClip(fishEnter); delete frameListener.onEnterFrame; delete forceListener.onEnterFrame; removeMovieClip(forceListener); removeMovieClip(frameListener); abandoned.stop(); nextFrame(); } }; } abandoned.start(0, 20000); gamePause = false; attachMovie('fishMain', 'fishChar', getNextHighestDepth(), {'_x': memorizedX, '_y': 40, '_rotation': 180}); charNow = 'fishChar'; moveListener.onEnterFrame = function () { if (inventoryOpened == false && pickingProcess == false && gamePause == false) { fishMoveSpeed = fishMovement(charLocation[charNow], 3, 8, fishMoveSpeed, reverseSpeed, false, 0, 0); forceEffect(charLocation[charNow], 'forceListener', fishMoveSpeed, -50, 500, 0, 500, 'fishMoveSpeed'); } else { xGreitis = 0; yGreitis = 0; } if (charLocation[charNow]._x > 260 && charLocation[charNow]._x < 315 && charLocation[charNow]._y > 425 && charLocation[charNow]._y < 470) { gamePause = true; enterCave(); } }; } frame 19 { function destEarth() { var v7 = (earth._x - charLocation[charNow]._x) * (earth._x - charLocation[charNow]._x); var v6 = (earth._y - charLocation[charNow]._y) * (earth._y - charLocation[charNow]._y); var v4 = Math.round(Math.sqrt(v7 + v6)); if (v4 <= 130 or earth._currentframe != 1 && v4 != undefined) { gamePause = true; if (_x > -695) { _x = _x - 5; } else { _x = -700; } var v1 = earth._x - charLocation[charNow]._x; var v2 = earth._y - charLocation[charNow]._y; var v3 = 180 * Math.atan(Math.abs(v1) / Math.abs(v2)) / Math.PI; if (v1 >= 0 && v2 < 0) { var v5 = v3; } else { if (v1 >= 0 && v2 >= 0) { var v5 = 180 - v3; } else { if (v1 < 0 && v2 < 0) { var v5 = -v3; } else { if (v1 < 0 && v2 >= 0) { var v5 = 180 + v3; } } } } charLocation[charNow]._rotation = v5; if (earth._currentframe == earth._totalframes && earth._totalframes != undefined && charLocation[charNow]._x != undefined) { attachMovie('zuvis_sprogsta', 'zuvisSprogsta', getNextHighestDepth(), {'_x': charLocation[charNow]._x, '_y': charLocation[charNow]._y, '_rotation': charLocation[charNow]._rotation}); removeMovieClip(charLocation[charNow]); } else { if (zuvisSprogsta._x == undefined) { earth.play(); } } } if (zuvisSprogsta._currentframe == 14) { loadMovie('', earth); } if (zuvisSprogsta._currentframe == 267) { attachMovie('fallMain', 'fallMain', getNextHighestDepth(), {'_y': 240, '_x': 1070}); fallMain.onEnterFrame = function () { if (fallMain._currentframe == fallMain._totalframes && fallMain._currentframe != undefined) { memorizedX = 30; memorizedXS = 1; godOfWinds.stop(); _x = 0; inventory._x = 0; delete fallMain.onEnterFrame; delete moveListener.onEnterFrame; delete forceListener.onEnterFrame; charNow = 'mainChar'; removeMovieClip(zuvisSprogsta); removeMovieClip(forceListener); removeMovieClip(fallMain); if (fadeIn._x != undefined) { removeMovieClip(fadeIn); delete fadeIn.onEnterFrame; } attachMovie('fade_transitionIn', 'fadeIn', getNextHighestDepth()); allowTrans = true; nextFrame(); } }; } } godOfWinds.start(0, 20000); xGreitis = 0; yGreitis = 0; gamePause = false; attachMovie('fishMain', 'fishChar', getNextHighestDepth(), {'_x': 30, '_y': 40, '_rotation': 135, '_xscale': -100}); charNow = 'fishChar'; moveListener.onEnterFrame = function () { destEarth(); if (inventoryOpened == false && pickingProcess == false && gamePause == false) { fishMoveSpeed = fishMovement(charLocation[charNow], 3, 8, fishMoveSpeed, reverseSpeed, true, 0, 1200); forceEffect(charLocation[charNow], 'forceListener', fishMoveSpeed, -20, 1150, 0, 500, 'fishMoveSpeed'); } else { xGreitis = 0; yGreitis = 0; } }; } movieClip 2494 { } movieClip 2501 { frame 1 { stop(); } frame 208 { stop(); } } frame 20 { function keyRunoff() { var keyPersonSpeed = 6 * (charScale / 100); var fallSpeed = 0; var aKritimo = 10 * (charScale / 100); if (detransformator._currentframe != undefined && keyGuyPicked == true) { attachMovie('keyPersonRun', 'keyPersonRun', getNextHighestDepth(), {'_x': detransformator._x + 5 * (charScale / 100), '_y': detransformator._y - 19 * (charScale / 100), '_yscale': charScale}); if (richPeopleEat._x != undefined) { richPeopleEat.swapDepths(keyPersonRun); richPeopleEat.swapDepths(balcony1p); balcony1p.swapDepths(bottomBorder); } if (keyGuyDest > keyPersonRun._x) { keyPersonRun._xscale = -charScale; } else { keyPersonRun._xscale = charScale; } if (cafe1p._x != undefined) { keyPersonRun.swapDepths(keyPerson); } keyPersonRun.gotoAndStop(1); if (currentPoem._x != undefined) { currentPoem.swapDepths(getNextHighestDepth()); } keyPersonRun.onEnterFrame = function () { if (keyPersonRun._xscale > 0) { var v1 = 0; } else { var v1 = keyPersonRun._width; } if (keyPersonSpeed > Math.abs(keyGuyDest + v1 - keyPersonRun)) { keyPersonRun._x = keyGuyDest - v1; } if (keyGuyDest + v1 > keyPersonRun._x + keyPersonSpeed) { keyPersonRun._x += keyPersonSpeed; } else { if (keyGuyDest + v1 < keyPersonRun._x - keyPersonSpeed) { keyPersonRun._x -= keyPersonSpeed; } else { if (keyPersonRun._y == memorizedY) { if (cafe1p._x != undefined) { keyPersonRun.swapDepths(keyPerson); keyPerson._visible = true; } removeMovieClip(keyPersonRun); if (cafeBalconyMask2._x != undefined) { removeMovieClip(cafeBalconyMask2); } delete keyPersonRun.onEnterFrame; keyGuyPicked = false; } } } if (keyPersonRun._y + fallSpeed < memorizedY) { keyPersonRun._y += fallSpeed; fallSpeed += aKritimo; } else { keyPersonRun._y = memorizedY; keyPersonRun.play(); } }; keyGuyPicked = false; } } function enterCafe() { if (charLocation[charNow]._x >= 330 && charLocation[charNow]._x <= 350 && charLocation[charNow]._x != undefined) { removeMovieClip(topBorder); removeMovieClip(bottomBorder); removeMovieClip(charLocation[charNow]); removeMovieClip(flash_mc); if (keyPersonRun._x != undefined) { removeMovieClip(keyPersonRun); delete keyPersonRun.onEnterFrame; keyGuyPicked = false; } delete keyListenerLvl.onKeyDown; delete moveListener.onEnterFrame; memorizedX = 6; citySound.stop(); nextFrame(); } } function ladderUpDown() { if (mainChar._x >= 65 && mainChar._x <= 85 && mainChar._x != undefined) { if (mainChar._y == 370) { gamePause = true; mainChar._visible = false; attachMovie('charLadder', 'charLadder', getNextHighestDepth(), {'_x': 75, '_y': mainChar._y, '_xscale': charScale, '_yscale': charScale}); charLadder.gotoAndStop(2); charLadder.onEnterFrame = function () { if (charLadder.climbStartDown._currentframe == charLadder.climbStartDown._totalframes && charLadder.climbStartDown._currentframe != undefined) { charLadder.gotoAndStop(3); } if (charLadder._currentframe == 3) { if (charLadder._y < 220) { charLadder.gotoAndStop(4); } else { charLadder._y -= (charScale / 40) * 3; } } if (charLadder.climbEnding._currentframe == charLadder.climbEnding._totalframes && charLadder.climbEnding._totalframes != undefined) { mainChar._y = 180; mainChar._x = 70; ladderLeft = 21; ladderRight = 96; mainChar._visible = true; removeMovieClip(charLadder); gamePause = false; delete charLadder.onEnterFrame; } }; } else { gamePause = true; mainChar._visible = false; attachMovie('charLadder', 'charLadder', getNextHighestDepth(), {'_x': 75, '_y': 220, '_xscale': charScale, '_yscale': charScale}); charLadder.onEnterFrame = function () { if (charLadder.climbStartUp._currentframe == charLadder.climbStartUp._totalframes && charLadder.climbStartUp._totalframes != undefined) { charLadder.gotoAndStop(3); } if (charLadder._currentframe == 3) { if (charLadder._y < 370) { charLadder._y += 3 * (charScale / 40); } else { if (charLadder._y >= 370) { mainChar._y = 370; mainChar._x = 75; ladderLeft = 0; ladderRight = 359; charLadder.gotoAndStop(2); charLadder.climbStartDown.gotoAndStop(charLadder.climbStartDown._totalframes); } } } if (charLadder._currentframe == 2 && charLadder.climbStartDown._currentframe != 1) { charLadder.climbStartDown.prevFrame(); } else { if (charLadder._currentframe == 2) { delete charLadder.onEnterFrame; removeMovieClip(charLadder); mainChar._visible = true; gamePause = false; } } }; } } } function pickCamera() { if (mainChar._x > 85 && ladderRight == 96 && charNow == 'mainChar') { gamePause = true; charLocation[charNow].gotoAndStop(1); charLocation[charNow].itemInHand.gotoAndStop(1); charLocation[charNow]._visible = false; charLocation[charNow]._x = 91; attachMovie('char Pickup high', 'charPickHigh', getNextHighestDepth(), {'_x': 91, '_y': 180, '_xscale': charScale, '_yscale': charScale}); charPickHigh.onEnterFrame = function () { if (charPickHigh._currentframe == 6) { charPickHigh.gotoAndStop(10); cameraOn = true; flash_mc._visible = true; flash_mc.swapDepths(getNextHighestDepth()); delete charPickHigh.onEnterFrame; } }; keyXdown = true; } } stop(); citySound.start(0, 20000); allowTrans = true; charLocation = this; keyGuyDest = 340; memorizedY = 430; ladderLeft = 0; ladderRight = 359; mainBG.cameraHead._rotation = cameraPosition; attachMovie('flash_mc', 'flash_mc', getNextHighestDepth(), {'_x': 113.6, '_y': 193.3, '_visible': false, '_rotation': cameraPosition}); charScale = 38; speedBySize = 5 * (charScale / 100); if (tableGuysFun == true) { mainBG.tableGuys.gotoAndStop(47); } else { mainBG.tableGuys.gotoAndPlay(1); } attachMovie(charNow, charNow, getNextHighestDepth(), {'_xscale': charScale * memorizedXS, '_yscale': charScale, '_x': memorizedX, '_y': 370}); if (memorizedX == 30) { gamePause = true; charLocation[charNow]._visible = false; attachMovie('fallMain', 'fallMain', getNextHighestDepth(), {'_x': 0, '_y': -15}); fallMain.onEnterFrame = function () { if (fallMain._currentframe == fallMain._totalframes && fallMain._totalframes != undefined) { charLocation[charNow]._visible = true; delete fallMain.onEnterFrame; removeMovieClip(fallMain); gamePause = false; } }; } attachMovie('BlackBorder', 'topBorder', getNextHighestDepth(), {'_x': 0, '_y': 0, '_width': 500, '_height': 50}); attachMovie('BlackBorder', 'bottomBorder', getNextHighestDepth(), {'_x': 0, '_y': 450, '_width': 500, '_height': 50}); inventory.swapDepths(getNextHighestDepth()); if (currentPoem._x != undefined) { currentPoem.swapDepths(getNextHighestDepth()); } if (fadeIn._x != undefined) { fadeIn.swapDepths(getNextHighestDepth()); fadeIn.onEnterFrame = function () { if (fadeIn._currentframe == fadeIn._totalframes && fadeIn._currentframe != undefined) { delete fadeIn.onEnterFrame; removeMovieClip(fadeIn); } }; } keyListenerLvl.onKeyDown = function () { if (gamePause == false) { if (Key.getCode() == 88) { if (inventoryOpened == false && keyXdown == false) { if (currentlyEquiped == null) { } pickCamera(); ladderUpDown(); enterCafe(); keyXdown = true; } if (inventoryOpened == true && inventorySlot[currentlySelected] != null && selectAction == false && keyXdown == false && inventoryMovingDown == false && mixAction == true) { keyXdown = true; } } } else { if (cameraOn == true) { if (Key.isDown(38) && mainBG.cameraHead._rotation > -90) { mainBG.cameraHead._rotation -= 5; flash_mc._rotation -= 5; } if (Key.isDown(40) && mainBG.cameraHead._rotation < 90) { mainBG.cameraHead._rotation += 5; flash_mc._rotation += 5; } if (mainBG.cameraHead._rotation >= 15 && mainBG.cameraHead._rotation <= 25) { mainBG.tableGuys.gotoAndStop(47); tableGuysFun = true; } else { mainBG.tableGuys.gotoAndPlay(1); tableGuysFun = false; } if (Key.isDown(90)) { charPickHigh.play(); charPickHigh.onEnterFrame = function () { if (charPickHigh._currentframe == charPickHigh._totalframes) { gamePause = false; cameraOn = false; flash_mc._visible = false; cameraPosition = mainBG.cameraHead._rotation; removeMovieClip(charPickHigh); delete charPickHigh.onEnterFrame; charLocation[charNow]._visible = true; } }; keyZdown = true; } } } }; moveListener.onEnterFrame = function () { keyRunoff(); if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, ladderLeft, ladderRight, 0, 500, false, false, 200, false, none); } }; } movieClip 2505 { } movieClip 2507 { } movieClip 2509 { } movieClip 2517 { } movieClip 2535 { } movieClip 2583 { } movieClip 2608 { } movieClip 2613 { } movieClip 2614 { } movieClip 2623 { } movieClip 2624 { frame 46 { gotoAndPlay(1); } } movieClip 2627 { } movieClip 2635 { } movieClip 2636 { } movieClip 2676 { } movieClip 2695 { } frame 21 { function enterBalcony() { if (charLocation[charNow]._x >= 850 && charLocation[charNow]._x <= 1000 && charNow == 'transKey') { gamePause = true; charLocation[charNow]._visible = false; attachMovie('keyPersonClimb', 'keyPersonClimb', getNextHighestDepth(), {'_x': 896, '_y': 198}); keyPersonClimb.swapDepths(charLocation[charNow]); keyPersonClimb.onEnterFrame = function () { if (keyPersonClimb._currentframe == keyPersonClimb._totalframes) { removeMovieClip(sviesotamsa3); removeMovieClip(keyPerson); removeMovieClip(charLocation[charNow]); removeMovieClip(sviesotamsa2); removeMovieClip(cafe1p); removeMovieClip(topBorder); removeMovieClip(bottomBorder); removeMovieClip(keyPersonClimb); delete moveListener.onEnterFrame; delete keyListenerLvl.onKeyDown; if (keyPersonRun._x != undefined) { removeMovieClip(keyPersonRun); delete keyPersonRun.onEnterFrame; keyGuyPicked = false; } _x = 0; inventory._x = 0; gamePause = false; keyWhisperS.stop(); nextFrame(); } }; } } function returnCafeYard() { if (charLocation[charNow]._x <= -10 && charLocation[charNow]._x != undefined) { removeMovieClip(sviesotamsa3); removeMovieClip(keyPerson); removeMovieClip(charLocation[charNow]); removeMovieClip(sviesotamsa2); removeMovieClip(cafe1p); removeMovieClip(topBorder); removeMovieClip(bottomBorder); delete moveListener.onEnterFrame; delete keyListenerLvl.onKeyDown; if (keyPersonRun._x != undefined) { removeMovieClip(keyPersonRun); delete keyPersonRun.onEnterFrame; keyGuyPicked = false; } memorizedX = 330; memorizedXS = -1; keyWhisperS.stop(); prevFrame(); } } function pickupKeyGuy() { if (charNow == 'transChar' && transChar._x >= 750 && transChar._x <= 950 && keyGuyPicked == false) { gamePause = true; charLocation[charNow]._visible = false; charLocation[charNow].gotoAndStop(1); charLocation[charNow].itemInHand.gotoAndStop(1); attachMovie('keyPersonPick', 'keyPersonPick', getNextHighestDepth(), {'_x': keyPerson._x, '_y': keyPerson._y}); keyWhisperS.stop(); keyPersonPick.swapDepths(charLocation[charNow]); keyPerson._visible = false; keyGuyPicked = true; keyPersonPick.onEnterFrame = function () { if (keyPersonPick._currentframe == keyPersonPick._totalframes && keyPersonPick._totalframes != undefined) { charLocation[charNow]._visible = true; if (keyPersonPick._xscale == 100) { charLocation[charNow]._x = keyPersonPick._x - 60; charLocation[charNow]._xscale = 100; } else { charLocation[charNow]._x = keyPersonPick._x + 60; charLocation[charNow]._xscale = -100; } charLocation[charNow]._y = keyPersonPick._y - 84; delete keyPersonPick.onEnterFrame; attachMovie('transKey', 'transKey', getNextHighestDepth(), {'_x': charLocation[charNow]._x, '_y': charLocation[charNow]._y, '_xscale': charLocation[charNow]._xscale, '_yscale': charLocation[charNow]._yscale}); removeMovieClip(charLocation[charNow]); charNow = 'transKey'; charLocation[charNow].swapDepths(keyPersonPick); removeMovieClip(keyPersonPick); gamePause = false; keyGuyPicked = true; } }; keyXdown = true; if (transChar._x <= 850) { keyPersonPick._xscale = 100; } else { if (transChar._x > 850) { keyPersonPick._xscale = -100; } } } } keyGuyDest = 859; memorizedY = 410; charScale = 100; speedBySize = (charScale / 100) * 5; attachMovie('sviesotamsa3', 'sviesotamsa3', getNextHighestDepth(), {'_x': -38, '_y': 388, '_alpha': 39}); attachMovie(charNow, charNow, getNextHighestDepth(), {'_xscale': charScale, '_yscale': charScale, '_x': memorizedX}); attachMovie('keyPerson', 'keyPerson', getNextHighestDepth(), {'_x': 850, '_y': 340}); if (keyGuyPicked == true) { keyPerson._visible = false; } else { keyWhisperS.start(0, 20000); } attachMovie('sviesotamsa2', 'sviesotamsa2', getNextHighestDepth(), {'_x': 40, '_y': -4, '_alpha': 10}); attachMovie('cafe1p', 'cafe1p', getNextHighestDepth(), {'_x': 17, '_y': 99}); if (memorizedX > 12) { charLocation[charNow]._y = 0; gamePause = true; _x = -700; cafe1p._x = -683; inventory._x = 700; var fallingSpeed = 7; charLocation[charNow].onEnterFrame = function () { if (charLocation[charNow]._y < 250 - fallingSpeed) { charLocation[charNow]._y += fallingSpeed; fallingSpeed += 5; } else { charLocation[charNow]._y = 250; delete charLocation[charNow].onEnterFrame; gamePause = false; } }; } else { charLocation[charNow]._y = 250; } attachMovie('BlackBorder', 'topBorder', getNextHighestDepth(), {'_x': 0, '_y': 0, '_width': 1300, '_height': 19}); attachMovie('BlackBorder', 'bottomBorder', getNextHighestDepth(), {'_x': 0, '_y': 482, '_width': 1300, '_height': 18}); inventory.swapDepths(getNextHighestDepth()); if (sumaterialejimasPoem == false) { attachMovie('sumPoem', 'currentPoem', getNextHighestDepth(), {'_y': 500, '_x': -_x}); if (subtitlesOn == false) { currentPoem._visible = false; } sumaterialejimasPoem = true; } else { if (currentPoem._x != undefined) { currentPoem.swapDepths(getNextHighestDepth()); } } keyListenerLvl.onKeyDown = function () { if (Key.getCode() == 88) { if (gamePause == false) { if (inventoryOpened == false && keyXdown == false) { if (currentlyEquiped == null) { } pickupKeyGuy(); enterBalcony(); keyXdown = true; } if (inventoryOpened == true && inventorySlot[currentlySelected] != null && selectAction == false && keyXdown == false && inventoryMovingDown == false && mixAction == true) { keyXdown = true; } } } }; moveListener.onEnterFrame = function () { returnCafeYard(); keyRunoff(); if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, -10, 1280, 0, 1280, true, true, 200, true, cafe1p); } }; } movieClip 2702 { } movieClip 2707 { } movieClip 2708 { } movieClip 2710 { } frame 22 { function putExplosion() { explosionRandom = random(3) + 1; while (['expl' + checkNumber]._x != undefined) { checkNumber += 1; } attachMovie('expl' + explosionRandom, 'expl' + checkNumber, getNextHighestDepth(), {'_x': random(500), '_y': random(500)}); } function blowCafe() { if (keyGuyPicked == true && tableGuysFun == true && charLocation[charNow]._x <= 250 && charLocation[charNow]._x >= 130) { gamePause = true; charLocation[charNow]._visible = false; attachMovie('charCafeUnlock', 'charCafeUnlock', getNextHighestDepth(), {'_x': 174, '_y': 184}); charCafeUnlock.swapDepths(charLocation[charNow]); attachMovie('additionalUnlock', 'additionalUnlock', getNextHighestDepth(), {'_x': 159, '_y': 272}); additionalUnlock.onEnterFrame = function () { if (additionalUnlock._currentframe == additionalUnlock._totalframes && cafeExplode._x == undefined) { delete additionalUnlocker.onEnterFrame; attachMovie('cafeExplode', 'cafeExplode', getNextHighestDepth(), {'_x': 157, '_y': 279}); explosionInterval = setInterval(putExplosion, 50); cafeExplode.onEnterFrame = function () { if (cafeExplode._currentframe == cafeExplode._totalframes) { removeMovieClip(additionalUnlock); removeMovieClip(balcony1p); removeMovieClip(richPeopleEat); removeMovieClip(charLocation[charNow]); removeMovieClip(cafeExplode); removeMovieClip(charCafeUnlock); delete moveListener.onEnterFrame; delete keyListenerLvl.onKeyDown; delete cafeExplode.onEnterFrame; clearInterval(explosionInterval); while (checkNumber >= 0) { removeMovieClip(['expl' + checkNumber]); checkNumber -= 1; } citySound.stop(); nextFrame(); } }; } }; } } function returnInterior() { if (charLocation[charNow]._x >= 370 && charLocation[charNow]._x != undefined) { removeMovieClip(balcony1p); removeMovieClip(richPeopleEat); removeMovieClip(charLocation[charNow]); removeMovieClip(cafeBalconyMask); delete moveListener.onEnterFrame; delete keyListenerLvl.onKeyDown; if (keyPersonRun._x != undefined) { removeMovieClip(keyPersonRun); removeMovieClip(cafeBalconyMask2); delete keyPersonRun.onEnterFrame; keyGuyPicked = false; } memorizedX = 900; citySound.stop(); prevFrame(); } } citySound.start(0, 20000); checkNumber = 0; keyGuyDest = 385; memorizedY = 315; charScale = 100; speedBySize = (charScale / 100) * 5; attachMovie(charNow, charNow, getNextHighestDepth(), {'_xscale': -charScale, '_yscale': charScale, '_x': 369, '_y': 200}); attachMovie('richPeopleEat', 'richPeopleEat', getNextHighestDepth(), {'_x': 275, '_y': 200}); if (tableGuysFun == true) { richPeopleEat.gotoAndStop(29); ladderLeft = 20; } else { ladderLeft = 250; } attachMovie('balcony1p', 'balcony1p', getNextHighestDepth(), {'_x': -7, '_y': 30}); inventory.swapDepths(getNextHighestDepth()); if (currentPoem._x != undefined) { currentPoem.swapDepths(getNextHighestDepth()); currentPoem._x = 0; } keyListenerLvl.onKeyDown = function () { if (Key.getCode() == 88) { if (gamePause == false) { if (inventoryOpened == false && keyXdown == false) { if (currentlyEquiped == null) { } blowCafe(); keyXdown = true; } if (inventoryOpened == true && inventorySlot[currentlySelected] != null && selectAction == false && keyXdown == false && inventoryMovingDown == false && mixAction == true) { keyXdown = true; } } } }; moveListener.onEnterFrame = function () { returnInterior(); keyRunoff(); if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, ladderLeft, 380, 0, 500, false, false, 200, false, none); } }; } movieClip 2712 { } movieClip 2720 { } movieClip 2723 { } frame 23 { } movieClip 2726 { } movieClip 2728 { } movieClip 2731 { } movieClip 2732 { } movieClip 2735 { } movieClip 2739 { } movieClip 2755 { } movieClip 2756 { frame 1 { stop(); } } movieClip 2758 { } movieClip 2759 { frame 1 { stop(); } } movieClip 2761 { } movieClip 2762 { frame 1 { stop(); } } movieClip 2764 { } movieClip 2765 { frame 1 { stop(); } } movieClip 2766 { } movieClip 2767 { frame 154 { stop(); _parent._parent.nextFrame(); } } movieClip 2768 { frame 209 { stop(); } } frame 24 { stop(); charNow = 'transChar'; charScale = 70; speedBySize = 5 * (charScale / 100); attachMovie(charNow, charNow, getNextHighestDepth(), {'_xscale': charScale, '_yscale': charScale, '_x': 10, '_y': 265}); charLocation[charNow]._visible = false; moveListener.onEnterFrame = function () { if (Key.isDown(83)) { letter_s.gotoAndStop(2); } if (Key.isDown(84)) { letter_t.gotoAndStop(2); } if (Key.isDown(79)) { letter_o.gotoAndStop(2); } if (Key.isDown(80)) { letter_p.gotoAndStop(2); } if (letter_s._currentframe == 2 && letter_t._currentframe == 2 && letter_o._currentframe == 2 && letter_p._currentframe == 2) { delete moveListener.onEnterFrame; charLocation[charNow]._visible = true; nextFrame(); } if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, 0, 300, 0, 0, false, false, 200); } }; } frame 25 { function warLever() { if (charNow == 'mainChar' && mainChar._x >= 135 && mainChar._x <= 175 && warLeverDown == false) { gamePause = true; attachMovie('charTurn', 'charTurn', getNextHighestDepth(), {'_x': charLocation[charNow]._x, '_y': charLocation[charNow]._y, '_xscale': charLocation[charNow]._xscale, '_yscale': charScale}); charLocation[charNow]._visible = false; charTurn.onEnterFrame = function () { if (charTurn._currentframe == 10) { lotoInfo.lotoW1.gotoAndStop(2); lotoInfo.lotoW2.gotoAndStop(2); lotoInfo.lotoW3.gotoAndStop(2); slot_machine.lever.gotoAndStop(2); warLeverDown = true; charTurn.play(); } if (charTurn._currentframe == charTurn._totalframes) { delete charTurn.onEnterFrame; removeMovieClip(charTurn); charLocation[charNow]._visible = true; gamePause = false; } }; } } function stopButtons() { if (warLeverDown == true && charNow == 'mainChar') { if (mainChar._x >= 375 && mainChar._x < 405 && window1down == false) { lotoInfo.lotoW1.gotoAndStop(3); window1down = true; } if (mainChar._x >= 405 && mainChar._x < 435 && window2down == false) { lotoInfo.lotoW2.gotoAndStop(3); window2down = true; } if (mainChar._x >= 435 && mainChar._x < 460 && window3down == false) { lotoInfo.lotoW3.gotoAndStop(3); window3down = true; } if (window1down == true && window2down == true && window3down == true) { peaceMade = true; stopwar_main.gotoAndStop(2); } } } function leaveSlotMachine() { if (charLocation[charNow]._x >= 860 && peaceMade == true && paveikslasStuff._currentframe == paveikslasStuff._totalframes) { removeMovieClip(shineFX); removeMovieClip(topBorder); removeMovieClip(bottomBorder); removeMovieClip(charLocation[charNow]); delete keyListenerLvl.onKeyDown; delete moveListener.onEnterFrame; _x = 0; nextFrame(); } } gamePause = false; attachMovie('shineFX', 'shineFX', getNextHighestDepth(), {'_x': 1022, '_y': 271}); attachMovie('BlackBorder', 'topBorder', getNextHighestDepth(), {'_width': 890, '_height': 135}); attachMovie('BlackBorder', 'bottomBorder', getNextHighestDepth(), {'_y': 375, '_width': 890, '_height': 125}); inventory.swapDepths(getNextHighestDepth()); letter_s.gotoAndStop(2); letter_t.gotoAndStop(2); letter_o.gotoAndStop(2); letter_p.gotoAndStop(2); keyListenerLvl.onKeyDown = function () { if (gamePause == false) { if (Key.getCode() == 88) { if (inventoryOpened == false && keyXdown == false) { if (currentlyEquiped == null) { } warLever(); stopButtons(); keyXdown = true; } if (inventoryOpened == true && inventorySlot[currentlySelected] != null && selectAction == false && keyXdown == false && inventoryMovingDown == false && mixAction == true) { keyXdown = true; } } } }; moveListener.onEnterFrame = function () { leaveSlotMachine(); if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, 0, 890, 0, 890, true, true, 200, false); } }; } movieClip 2771 { } movieClip 2773 { } movieClip 2777 { } movieClip 2782 { } movieClip 2786 { } movieClip 2787 { } movieClip 2789 { frame 1 { stop(); } } movieClip 2791 { frame 1 { stop(); } } movieClip 2793 { frame 1 { stop(); } } movieClip 2794 { frame 1 { stop(); } } movieClip 2883 { frame 171 { stop(); if (_parent.peaceMade == false) { gotoAndPlay(1); } else { gotoAndPlay(172); } } frame 344 { stop(); } } movieClip 2888 { frame 1 { stop(); } } movieClip 2889 { } movieClip 2892 { } movieClip 2894 { } movieClip 2898 { } movieClip 2899 { frame 1 { stop(); } } frame 26 { function naftoMeter() { if (charNow == 'mainChar' && mainChar._x >= 400) { gamePause = true; charLocation[charNow]._visible = false; attachMovie('charPucia', 'charPucia', getNextHighestDepth(), {'_x': mainChar._x, '_xscale': charScale, '_yscale': charScale, '_y': mainChar._y}); charPucia.onEnterFrame = function () { if (charPucia._currentframe == 20) { dustMeter.play(); dustMeter.onEnterFrame = function () { if (dustMeter._currentframe == dustMeter._totalframes) { attachMovie('ambasadaTransition', 'ambasadaTransition', getNextHighestDepth()); delete dustMeter.onEnterFrame; ambasadaTransition.onEnterFrame = function () { if (ambasadaTransition._currentframe == 20) { delete moveListener.onEnterFrame; delete keyListenerLvl.onKeyDown; nextFrame(); } if (ambasadaTransition._currentframe == ambasadaTransition._totalframes) { gamePause = false; delete ambasdaTransition.onEnterFrame; removeMovieClip(ambasadaTransition); } }; } }; } if (charPucia._currentframe == charPucia._totalframes) { removeMovieClip(charPucia); delete charPucia.onEnterFrame; charLocation[charNow].gotoAndStop(1); charLocation[charNow].itemInHand.gotoAndStop(1); charLocation[charNow]._visible = true; } }; } } charScale = 55; speedBySize = 5 * (charScale / 100); attachMovie(charNow, charNow, getNextHighestDepth(), {'_x': -5, '_y': 400, '_xscale': charScale, '_yscale': charScale}); attachMovie('BlackBorder', 'topBorder', getNextHighestDepth(), {'_width': 500, '_height': 10}); attachMovie('BlackBorder', 'bottomBorder', getNextHighestDepth(), {'_width': 500, '_height': 10, '_y': 490}); inventory.swapDepths(getNextHighestDepth()); keyListenerLvl.onKeyDown = function () { if (gamePause == false) { if (Key.getCode() == 88) { if (inventoryOpened == false && keyXdown == false) { if (currentlyEquiped == null) { } naftoMeter(); keyXdown = true; } if (inventoryOpened == true && inventorySlot[currentlySelected] != null && selectAction == false && keyXdown == false && inventoryMovingDown == false && mixAction == true) { keyXdown = true; } } } }; moveListener.onEnterFrame = function () { if (Key.isDown(75) && gamePause == false) { gamePause = true; charLocation[charNow]._visible = false; attachMovie('char Pickup high', 'charPickH', getNextHighestDepth(), {'_x': charLocation[charNow]._x, '_xscale': charScale, '_yscale': charScale, '_y': charLocation[charNow]._y}); charPickH.onEnterFrame = function () { if (charPickH._currentframe == charPickH._totalframes) { removeMovieClip(charPickH); charLocation[charNow]._visible = true; delete charPickH.onEnterFrame; delete moveListener.onEnterFrame; delete keyListenerLvl.onKeyDown; nextFrame(); gamePause = false; } }; } if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, 0, 465, 0, 500, false, false, 200, false); } }; } movieClip 2902 { } movieClip 2903 { } movieClip 2905 { } movieClip 2906 { } movieClip 2922 { } movieClip 2936 { } movieClip 2941 { frame 1 { stop(); } frame 48 { stop(); } } movieClip 2943 { } movieClip 2944 { } movieClip 2963 { } movieClip 2976 { } movieClip 3040 { } movieClip 3085 { } movieClip 3100 { } movieClip 3101 { } // unknown tag 88 length 64 movieClip 3107 { } movieClip 3108 { frame 1 { stop(); } } movieClip 3118 { frame 1 { stop(); } frame 9 { stop(); } } frame 27 { function breakBird() { if (charLocation[charNow]._x > 335 && movementOnColumn == true && currentlyEquiped == 'drill') { gamePause = true; removeEquipment('drill'); charLocation[charNow]._visible = false; attachMovie('transCharDrill', 'transCharDrill', getNextHighestDepth(), {'_x': charLocation[charNow]._x, '_y': charLocation[charNow]._y, '_rotation': charLocation[charNow]._rotation, '_xscale': charLocation[charNow]._xscale, '_yscale': charLocation[charNow]._yscale}); transCharDrill.onEnterFrame = function () { if (transCharDrill._currentframe == 19) { mainCage.gotoAndStop(2); } if (transCharDrill._currentframe == transCharDrill._totalframes) { delete transCharDrill.onEnterFrame; removeMovieClip(transCharDrill); charLocation[charNow]._visible = true; mainCage._visible = false; attachMovie('whiteBalandis', 'whiteBalandis', getNextHighestDepth(), {'_x': 305.6, '_y': 47.8, '_rotation': -30}); whiteBalandis.onEnterFrame = function () { if (whiteBalandis._currentframe == whiteBalandis._totalframes) { removeMovieClip(charLocation[charNow]); removeMovieClip(whiteBalandis); removeMovieClip(topBorder); removeMovieClip(bottomBorder); removeMovieClip(karo_masina); delete whiteBalandis.onEnterFrame; charNow = 'mainChar'; memorizedX = 2; allowTrans = true; masinaOutside.stop(); attachMovie('whiteLight', 'whiteLight', getNextHighestDepth()); whiteLight.stop(); attachMovie('scalesFlyIn', 'scalesFlyIn', getNextHighestDepth(), {'_x': 240, '_y': 250}); scalesFlyIn.onEnterFrame = function () { if (scalesFlyIn._currentframe == scalesFlyIn._totalframes) { gamePause = false; charLocation[charNow]._visible = true; whiteLight.play(); delete scalesFlyIn.onEnterFrame; removeMovieClip(scalesFlyIn); } }; nextFrame(); } }; } }; } } function columnMovement(moveTarget, modifier, moveSpeed, starterScale, leftWall, rightWall, leftWallCam, rightWallCam, cameraMoveLeft, cameraMoveRight, distanceFromBorders, p1ex, planOne) { if (Key.isDown(37) && Key.isDown(39) == false && moveTarget._x > leftWall) { moveTarget._x += Math.sin(moveTarget._rotation * Math.PI / 180) * moveSpeed; moveTarget._y += Math.cos(moveTarget._rotation * Math.PI / 180) * moveSpeed; if (cameraMoveLeft == true && moveTarget._x + _x + modifier < distanceFromBorders) { if (_x < -leftWallCam - moveSpeed) { _x = _x + moveSpeed; if (p1ex == true) { planOne._x += moveSpeed; } } else { _x = -leftWallCam; cameraMoveLeft = false; } } moveTarget._xscale = -starterScale; moveTarget.gotoAndStop('moveFrame'); moveTarget.itemInHand.play(); recentlyMoved = true; inventory._x = -_x; } if (Key.isDown(39) && Key.isDown(37) == false && moveTarget._x < rightWall) { moveTarget._x -= Math.sin(moveTarget._rotation * Math.PI / 180) * moveSpeed; moveTarget._y -= Math.cos(moveTarget._rotation * Math.PI / 180) * moveSpeed; if (cameraMoveRight == true && moveTarget._x + _x + modifier > Stage.width - distanceFromBorders) { if (_x > -rightWallCam + Stage.width + moveSpeed) { _x = _x - moveSpeed; if (p1ex == true) { planOne._x -= moveSpeed; } } else { _x = -rightWallCam + Stage.width; cameraMoveRight = false; } } moveTarget._xscale = starterScale; moveTarget.gotoAndStop('moveFrame'); moveTarget.itemInHand.play(); recentlyMoved = true; inventory._x = -_x; } if (Key.isDown(39) && Key.isDown(37) && recentlyMoved == true or Key.isDown(39) == false && Key.isDown(37) == false && recentlyMoved == true) { moveTarget.gotoAndStop('standFrame'); moveTarget.itemInHand.gotoAndStop(1); recentlyMoved = false; } } function climbDownColumn() { if (charLocation[charNow]._x < 142 && movementOnColumn == true && gamePause == false) { charLocation[charNow]._visible = false; gamePause = true; attachMovie('transClimbColumn', 'transClimbColumn', getNextHighestDepth(), {'_x': 180, '_y': 400, '_xscale': charScale, '_yscale': charScale}); transClimbColumn.gotoAndStop(transClimbColumn._totalframes); karo_masina.swapDepths(transClimbColumn); bottomBorder.swapDepths(karo_masina); transClimbColumn.onEnterFrame = function () { transClimbColumn.prevFrame(); if (transClimbColumn._currentframe == 1) { charLocation[charNow]._rotation = 0; charLocation[charNow]._x = 180; charLocation[charNow]._y = 400; charLocation[charNow]._xscale = charScale; charLocation[charNow].swapDepths(karo_masina); inventory.swapDepths(getNextHighestDepth()); charLocation[charNow]._visible = true; movementOnColumn = false; allowTrans = true; removeMovieClip(transClimbColumn); delete transClimbColumn.onEnterFrame; gamePause = false; } }; } } function climbColumn() { if (charLocation[charNow]._x >= 150 && charLocation[charNow]._x <= 200 && kolonaFallen == true && charNow == 'transChar' && movementOnColumn == false) { charLocation[charNow]._visible = false; gamePause = true; attachMovie('transClimbColumn', 'transClimbColumn', getNextHighestDepth(), {'_x': 180, '_y': 400, '_xscale': charScale, '_yscale': charScale}); karo_masina.swapDepths(transClimbColumn); bottomBorder.swapDepths(karo_masina); transClimbColumn.onEnterFrame = function () { if (transClimbColumn._currentframe == transClimbColumn._totalframes) { charLocation[charNow]._rotation = -52; charLocation[charNow]._x = 142; charLocation[charNow]._y = 341; charLocation[charNow]._xscale = charScale; charLocation[charNow].swapDepths(transClimbColumn); inventory.swapDepths(getNextHighestDepth()); charLocation[charNow]._visible = true; movementOnColumn = true; allowTrans = false; removeMovieClip(transClimbColumn); delete transClimbColumn.onEnterFrame; gamePause = false; } }; } } function breakColumn() { if (charLocation[charNow]._x >= 150 && charLocation[charNow]._x <= 200 && karasBG.kolonosPagr._currentframe == 1 && charNow == 'mainChar') { charLocation[charNow]._visible = false; gamePause = true; attachMovie('charTrept', 'charTrept', getNextHighestDepth(), {'_x': charLocation[charNow]._x, '_y': charLocation[charNow]._y, '_xscale': charLocation[charNow]._xscale, '_yscale': charScale}); charTrept.swapDepths(charLocation[charNow]); charTrept.onEnterFrame = function () { if (charTrept._currentframe == charTrept._totalframes) { charLocation[charNow].swapDepths(charTrept); charLocation[charNow]._visible = true; delete charTrept.onEnterFrame; removeMovieClip(charTrept); gamePause = false; karasBG.kolonosPagr.play(); karasBG.onEnterFrame = function () { if (karasBG.kolonosPagr._currentframe == karasBG.kolonosPagr._totalframes) { kolonaFallen = true; delete karasBG.onEnterFrame; } }; } }; } } function startFalling() { karo_masina.nuclearEngine.onEnterFrame = function () { if (karo_masina.nuclearEngine._rotation < 170) { karo_masina.nuclearEngine._rotation += 10; } else { karo_masina.nuclearEngine._rotation = 180; } if (karo_masina.nuclearEngine._y + nuclearEngineSpeed < 413) { karo_masina.nuclearEngine._y += nuclearEngineSpeed; nuclearEngineSpeed += 10; } else { karo_masina.nuclearEngine._y = 413; attachMovie('atomHand', 'atom_mc', getNextHighestDepth(), {'_x': 342, '_y': 477, '_rotation': 180}); atom_mc.swapDepths(charLocation[charNow]); inventory.swapDepths(getNextHighestDepth()); currentPoem.swapDepths(getNextHighestDepth()); delete karo_masina.nuclearEngine.onEnterFrame; loadMovie('', karo_masina.nuclearEngine); } }; } attachMovie('karo_masina', 'karo_masina', getNextHighestDepth(), {'_x': 0.2, '_y': 64.2}); karo_masina.swapDepths(charLocation[charNow]); topBorder.swapDepths(charLocation[charNow]); bottomBorder.swapDepths(topBorder); inventory.swapDepths(bottomBorder); ambasadaTransition.swapDepths(getNextHighestDepth()); masinaOutside.start(0, 20000); if (karasPoem == false) { attachMovie('karPoem', 'currentPoem', getNextHighestDepth(), {'_y': 500, '_x': -_x}); if (subtitlesOn == false) { currentPoem._visible = false; } karasPoem = true; } bombFallInterval = setTimeout(startFalling, 5000); createEmptyMovieClip('arrow_mc', getNextHighestDepth()); arrow_mc._x = 475; keyListenerLvl.onKeyDown = function () { if (gamePause == false) { if (Key.getCode() == 88) { if (inventoryOpened == false && keyXdown == false) { if (currentlyEquiped == null) { pickupStart(atom_mc, charLocation[charNow], 'atom', false, 30, 30, 325, 'mainChar'); pickupStart(arrow_mc, charLocation[charNow], 'arrow', true, 40, 25, 475, 'mainChar'); } breakColumn(); climbColumn(); breakBird(); keyXdown = true; } if (inventoryOpened == true && inventorySlot[currentlySelected] != null && selectAction == false && keyXdown == false && inventoryMovingDown == false && mixAction == true) { mixingItem('atom', 'arrow', 'drill'); keyXdown = true; } } } }; moveListener.onEnterFrame = function () { pickupProcess(); climbDownColumn(); if (arrow_mc._x == undefined && naftosAparatas.rodykle._visible == true) { naftosAparatas.rodykle._visible = false; } if (inventoryOpened == false && pickingProcess == false && gamePause == false) { if (movementOnColumn == false) { movement(charLocation[charNow], 0, speedBySize, charScale, 0, 465, 0, 500, false, false, 200, false); } else { columnMovement(charLocation[charNow], 0, speedBySize, charScale, 125, 345, 0, 500, false, false, 200, false); } } }; } movieClip 3123 { } movieClip 3159 { } movieClip 3170 { } movieClip 3178 { } movieClip 3179 { } movieClip 3183 { } movieClip 3186 { } movieClip 3189 { frame 80 { stop(); } } movieClip 3190 { frame 1 { stop(); } } frame 28 { function enterScales() { if (charLocation[charNow]._x >= 230 && charLocation[charNow]._x <= 280 && megaDoorOpened == true && charNow == 'mainChar') { gamePause = true; charLocation[charNow]._visible = false; attachMovie('charTurn', 'charTurn', getNextHighestDepth(), {'_x': charLocation[charNow]._x, '_y': charLocation[charNow]._y, '_xscale': charScale, '_yscale': charScale}); charTurn.onEnterFrame = function () { if (charTurn._currentframe == 10) { gamePause = false; charLocation[charNow]._visible = true; delete charTurn.onEnterFrame; delete moveListener.onEnterFrame; delete keyListenerLvl.onKeyDown; removeMovieClip(charTurn); godOfWinds.stop(); gotoAndStop('scalesInside'); } }; } } function openMegaDoor() { if (charLocation[charNow]._x > 290 && charLocation[charNow]._x < 320 && megaDoorOpened == false && charNow == 'mainChar') { if (currentlyEquiped == 'keyOffice') { removeEquipment('keyOffice'); gamePause = true; attachMovie('charTurn', 'charTurn', getNextHighestDepth(), {'_x': charLocation[charNow]._x, '_y': charLocation[charNow]._y, '_xscale': charLocation[charNow]._xscale, '_yscale': charLocation[charNow]._yscale}); charLocation[charNow]._visible = false; charTurn.onEnterFrame = function () { if (charTurn._currentframe == 10) { charTurn.play(); megaDoorOpened = true; fonas.irons.play(); } if (charTurn._currentframe == charTurn._totalframes) { charLocation[charNow]._visible = true; removeMovieClip(charTurn); delete charTurn.onEnterFrame; gamePause = false; } }; } else { gamePause = true; attachMovie('charTurn', 'charTurn', getNextHighestDepth(), {'_x': charLocation[charNow]._x, '_y': charLocation[charNow]._y, '_xscale': charLocation[charNow]._xscale, '_yscale': charLocation[charNow]._yscale}); charLocation[charNow]._visible = false; charTurn.onEnterFrame = function () { if (charTurn._currentframe == 10) { charTurn.play(); } if (charTurn._currentframe == charTurn._totalframes) { charLocation[charNow]._visible = true; removeMovieClip(charTurn); delete charTurn.onEnterFrame; gamePause = false; } }; } } } function charClimbDown(leftWall, rightWall, xPos, yPos) { if (charLocation[charNow]._x >= leftWall && charLocation[charNow]._x <= rightWall && charNow == 'mainChar') { gamePause = true; attachMovie('charLadder', 'charLadder', getNextHighestDepth(), {'_x': xPos, '_y': yPos, '_xscale': charScale, '_yscale': charScale}); removeMovieClip(charLocation[charNow]); charLadder.onEnterFrame = function () { if (charLadder._currentframe == 1 && charLadder.climbStartUp._currentframe == charLadder.climbStartUp._totalframes) { charLadder.gotoAndStop(3); attachMovie('fade_TransitionOut', 'fadeOut', getNextHighestDepth(), {'_x': -_x}); fadeOut.onEnterFrame = function () { if (fadeOut._currentframe == fadeOut._totalframes) { removeMovieClip(fadeOut); removeMovieClip(charLadder); removeMovieClip(topBorder); removeMovieClip(bottomBorder); delete moveListener.onEnterFrame; delete keyListenerLvl.onEnterFrame; delete fadeOut.onEnterFrame; delete charLadder.onEnterFrame; if (currentZone == 'skurdas') { if (ringTaken == false) { removeMovieClip(ring_mc); } if (fliesRemoved == false) { removeMovieClip(flies); } if (flyCreamExist == true) { removeMovieClip(flyCream); } deconstruction.stop(); memorizedX = 75; } if (currentZone == 'turtas') { if (iceCreamTaken == false) { removeMovieClip(iceCream_mc); } gamtaSound.stop(); memorizedX = 420; } gotoAndStop('svarstykles'); } }; } if (charLadder._currentframe == 3) { charLadder._y += (charScale / 40) * 3; } }; } } function longLadder() { if (charLocation[charNow]._x >= 60 && charLocation[charNow]._x <= 90 && charNow == 'mainChar') { gamePause = true; charLocation[charNow]._visible = false; attachMovie('charLadder', 'charLadder', getNextHighestDepth(), {'_x': 75, '_y': charLocation[charNow]._y, '_xscale': charScale, '_yscale': charScale}); charLadder.gotoAndStop(2); charLadder.onEnterFrame = function () { if (charLadder.climbStartDown._currentframe == charLadder.climbStartDown._totalframes && charLadder.climbStartDown._totalframes != undefined) { charLadder.gotoAndStop(3); if (fadeOut._x == undefined) { attachMovie('fade_transitionOut', 'fadeOut', getNextHighestDepth()); } } if (fadeOut._currentframe == fadeOut._totalframes && fadeOut._currentframe != undefined) { godOfWinds.stop(); gotoAndStop('skurdas'); removeMovieClip(fadeOut); delete charLadder.onEnterFrame; delete moveListener.onEnterFrame; delete keyListenerLvl.onKeyDown; } if (charLadder._currentframe == 3) { charLadder._y -= 3 * (charScale / 40); } }; } if (charLocation[charNow]._x >= 405 && charLocation[charNow]._x <= 435 && charNow == 'mainChar') { gamePause = true; charLocation[charNow]._visible = false; attachMovie('charLadder', 'charLadder', getNextHighestDepth(), {'_x': 420, '_y': charLocation[charNow]._y, '_xscale': charScale, '_yscale': charScale}); charLadder.gotoAndPlay(2); charLadder.onEnterFrame = function () { if (charLadder.climbStartDown._currentframe == charLadder.climbStartDown._totalframes && charLadder.climbStartDown._totalframes != undefined) { charLadder.gotoAndStop(3); if (fadeOut._x == undefined) { attachMovie('fade_transitionOut', 'fadeOut', getNextHighestDepth()); } } if (fadeOut._currentframe == fadeOut._totalframes && fadeOut._currentframe != undefined) { godOfWinds.stop(); gotoAndStop('turtas'); removeMovieClip(fadeOut); delete charLadder.onEnterFrame; delete moveListener.onEnterFrame; delete keyListenerLvl.onKeyDown; } if (charLadder._currentframe == 3) { charLadder._y -= 3 * (charScale / 40); } }; } } stop(); godOfWinds.start(0, 20000); currentZone = 'svarstykles'; charScale = 24; speedBySize = (charScale / 100) * 5; _x = 0; inventory._x = 0; whiteLight.swapDepths(getNextHighestDepth()); attachMovie('mainChar', 'mainChar', getNextHighestDepth(), {'_x': memorizedX, '_y': 400, '_xscale': charScale, '_yscale': charScale}); gamePause = true; charLocation[charNow]._visible = false; scalesFlyIn.swapDepths(getNextHighestDepth()); inventory.swapDepths(getNextHighestDepth()); if (memorizedX == 420 or memorizedX == 75) { attachMovie('charLadder', 'charLadder', getNextHighestDepth(), {'_xscale': charScale, '_yscale': charScale, '_x': mainChar._x, '_y': mainChar._y}); charLadder.gotoAndStop(2); charLadder.climbStartDown.gotoAndStop(charLadder.climbStartDown._totalframes); mainChar._visible = false; charLadder.onEnterFrame = function () { if (charLadder.climbStartDown._currentframe == 1) { mainChar._visible = true; gamePause = false; removeMovieClip(charLadder); delete charLadder.onEnterFrame; } else { charLadder.climbStartDown.prevFrame(); } }; } keyListenerLvl.onKeyDown = function () { if (gamePause == false) { if (Key.getCode() == 88) { if (inventoryOpened == false && keyXdown == false) { if (currentlyEquiped == null) { } longLadder(); openMegaDoor(); enterScales(); keyXdown = true; } if (inventoryOpened == true && inventorySlot[currentlySelected] != null && selectAction == false && keyXdown == false && inventoryMovingDown == false && mixAction == true) { keyXdown = true; } } } }; moveListener.onEnterFrame = function () { pickupProcess(); if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, 0, 500, 0, 500, false, false, 180, false, none); } }; } movieClip 3194 { } movieClip 3195 { } movieClip 3197 { } movieClip 3198 { } movieClip 3201 { } movieClip 3205 { } movieClip 3208 { } movieClip 3211 { } movieClip 3213 { } movieClip 3215 { } movieClip 3217 { } movieClip 3218 { } movieClip 3221 { } movieClip 3224 { frame 1 { stop(); } frame 30 { stop(); } } movieClip 3231 { } movieClip 3237 { } movieClip 3238 { } movieClip 3240 { } movieClip 3241 { } movieClip 3244 { } movieClip 3246 { } movieClip 3248 { } movieClip 3257 { } movieClip 3258 { } frame 29 { function iceFly() { if (currentlyEquiped == 'iceCream' && charLocation[charNow]._x >= 800 && charLocation[charNow]._x <= 850 && charNow == 'mainChar') { gamePause = true; charLocation[charNow]._visible = false; charLocation[charNow]._x = 830; removeEquipment('iceCream'); attachMovie('charTurn', 'charTurn', getNextHighestDepth(), {'_x': 830, '_y': charLocation[charNow]._y, '_xscale': charLocation[charNow]._xscale, '_yscale': charScale}); charTurn.onEnterFrame = function () { if (charTurn._currentframe == 10 && timeoutSet == false) { turningTimeout = setTimeout(continuePlaying, 1000, charTurn); timeoutSet = true; } if (charTurn._currentframe == 11) { attachMovie('iceCreamHand', 'creamChange', getNextHighestDepth(), {'_xscale': 70, '_yscale': 70, '_x': 811, '_y': 229}); creamChange.swapDepths(flies); flies.swapDepths(charLocation[charNow]); } if (charTurn._currentframe == charTurn._totalframes && charTurn._currentframe != undefined) { charLocation[charNow]._visible = true; gamePause = false; removeMovieClip(charTurn); delete charTurn.onEnterFrame; flies.gotoAndStop(2); flies.onEnterFrame = function () { if (flies.fliesToIce._currentframe == flies.fliesToIce._totalframes && flies.fliesToIce._totalframes != undefined) { attachMovie('flyCreamHand', 'flyCream_mc', getNextHighestDepth(), {'_x': creamChange._x, '_y': creamChange._y, '_xscale': creamChange._xscale, '_yscale': creamChange._yscale}); flyCream_mc.swapDepths(creamChange); removeMovieClip(creamChange); removeMovieClip(flies); fliesRemoved = true; flyCreamExist = true; delete flies.onEnterFrame; } }; } }; } } deconstruction.start(0, 20000); _x = -275; inventory._x = 275; charScale = 40; speedBySize = (charScale / 100) * 5; currentZone = 'skurdas'; if (flyCreamExsist == true) { attachMovie('flyCreamHand', 'flyCream_mc', getNextHighestDepth(), {'_xscale': 70, '_yscale': 70, '_x': 811, '_y': 229}); } if (ringTaken == false) { attachMovie('06_auksinis_ziedas', 'ring_mc', getNextHighestDepth(), {'_x': 77, '_y': 246}); } if (fliesRemoved == false) { attachMovie('fliesMain', 'flies', getNextHighestDepth(), {'_x': 631, '_y': 246}); } charLadder.swapDepths(getNextHighestDepth()); attachMovie('BlackBorder', 'topBorder', getNextHighestDepth(), {'_width': 1000, '_height': 18}); attachMovie('BlackBorder', 'bottomBorder', getNextHighestDepth(), {'_y': 482, '_width': 1000, '_height': 18}); if (fadeIn._x != undefined) { removeMovieClip(fadeIn); delete fadeIn.onEnterFrame; } attachMovie('fade_transitionIn', 'fadeIn', getNextHighestDepth(), {'_x': 275}); inventory.swapDepths(getNextHighestDepth()); charLadder._x = 545; charLadder._y = 350; charLadder._xscale = charScale; charLadder._yscale = charScale; charLadder.onEnterFrame = function () { if (charLadder._y <= 245) { charLadder.gotoAndStop(4); } else { charLadder._y -= (charScale / 40) * 3; } if (charLadder.climbEnding._currentframe == charLadder.climbEnding._totalframes && charLadder.climbEnding._totalframes != undefined) { charLocation[charNow]._xscale = charScale; charLocation[charNow]._yscale = charScale; charLocation[charNow]._x = 540; charLocation[charNow]._y = 200; charLocation[charNow]._visible = true; removeMovieClip(charLadder); gamePause = false; delete charLadder.onEnterFrame; } }; fadeIn.onEnterFrame = function () { if (fadeIn._currentframe == fadeIn._totalframes && fadeIn._totalframes != undefined) { removeMovieClip(fadeIn); delete fadeIn.onEnterFrame; } }; keyListenerLvl.onKeyDown = function () { if (gamePause == false) { if (Key.getCode() == 88) { if (inventoryOpened == false && keyXdown == false) { if (currentlyEquiped == null) { pickupStart(ring_mc, charLocation[charNow], 'ring', false, 30, 30, 0, 'mainChar'); if (flyCreamExist == true) { pickupStart(flyCream_mc, charLocation[charNow], 'flyCream', true, 20, 20, 821, 'mainChar'); } } iceFly(); charClimbDown(523, 565, 545, 245); keyXdown = true; } if (inventoryOpened == true && inventorySlot[currentlySelected] != null && selectAction == false && keyXdown == false && inventoryMovingDown == false && mixAction == true) { keyXdown = true; } } } }; moveListener.onEnterFrame = function () { pickupProcess(); if (ring_mc._x == undefined && ringTaken == false) { ringTaken = true; } if (flyCream_mc._x == undefined && flyCreamExist == true) { flyCreamExist = false; } if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, 35, 965, 0, 1000, true, true, 180, false, none); } }; } movieClip 3268 { } movieClip 3269 { } movieClip 3276 { } movieClip 3284 { } movieClip 3296 { } frame 30 { function guardingDoor() { if (charLocation[charNow]._x >= 600 && charLocation[charNow]._x <= 690 && charNow == 'mainChar' && gamePause == false) { if (officeOpen == true) { attachMovie('charTurn', 'charTurn', getNextHighestDepth(), {'_x': charLocation[charNow]._x, '_y': charLocation[charNow]._y, '_xscale': charLocation[charNow]._xscale, '_yscale': charScale}); gamePause = true; charLocation[charNow]._visible = false; charTurn.onEnterFrame = function () { if (charTurn._currentframe == 10) { removeMovieClip(charTurn); charLocation[charNow]._visible = true; delete charTurn.onEnterFrame; delete keyListenerLvl.onKeyDown; delete moveListener.onEnterFrame; gamePause = false; gamtaSound.stop(); nextFrame(); } }; } else { if (currentlyEquiped == 'flyCream') { gamePause = true; attachMovie('charFlyCream', 'charFlyCream', getNextHighestDepth(), {'_x': 611, '_y': charLocation[charNow]._y, '_xscale': charScale, '_yscale': charScale}); charLocation[charNow]._visible = false; charLocation[charNow]._x = 611; guards.gotoAndStop(2); charFlyCream.onEnterFrame = function () { if (charFlyCream._currentframe == charFlyCream._totalframes) { removeEquipment('flyCream'); officeOpen = true; removeMovieClip(charFlyCream); delete charFlyCream.onEnterFrame; charLocation[charNow]._visible = true; gamePause = false; } }; } else { charLocation[charNow]._visible = false; attachMovie('charTurn', 'charTurn', getNextHighestDepth(), {'_x': charLocation[charNow]._x, '_y': charLocation[charNow]._y, '_xscale': charLocation[charNow]._xscale, '_yscale': charScale}); gamePause = true; charTurn.onEnterFrame = function () { if (charTurn._currentframe == 7 && timeoutSet == false) { charTurn.stop(); guards.guardsBlock.play(); turningTimeout = setTimeout(continuePlaying, 700, charTurn); timeoutSet = true; } if (charTurn._currentframe > 7 && charTurn._currentframe < 14) { charTurn.gotoAndPlay(14); } if (charTurn._currentframe == charTurn._totalframes && charTurn._currentframe != undefined) { charLocation[charNow]._visible = true; removeMovieClip(charTurn); delete charTurn.onEnterFrame; gamePause = false; } }; } } } } gamtaSound.start(0, 20000); _x = -275; inventory._x = 275; charScale = 30; speedBySize = (charScale / 100) * 5; currentZone = 'turtas'; if (iceCreamTaken == false) { createEmptyMovieClip('iceCream_mc', getNextHighestDepth()); iceCream_mc._x = 70; } if (officeOpen == true) { guards.gotoAndStop(2); guards.guardsDie.gotoAndStop(guards.guardsDie._totalframes); } if (charLadder._x != undefined) { charLader._visible = true; attachMovie('BlackBorder', 'topBorder', getNextHighestDepth(), {'_width': 1000, '_height': 18}); attachMovie('BlackBorder', 'bottomBorder', getNextHighestDepth(), {'_y': 482, '_width': 1000, '_height': 18}); charLadder._x = 550; charLadder._y = 400; charLadder._xscale = charScale; charLadder._yscale = charScale; charLadder.onEnterFrame = function () { if (charLadder._y <= 300) { charLadder.gotoAndStop(4); } else { charLadder._y -= (charScale / 40) * 3; } if (charLadder.climbEnding._currentframe == charLadder.climbEnding._totalframes && charLadder.climbEnding._totalframes != undefined) { charLocation[charNow]._xscale = charScale; charLocation[charNow]._yscale = charScale; charLocation[charNow]._x = 545; charLocation[charNow]._y = 265; charLocation[charNow]._visible = true; removeMovieClip(charLadder); gamePause = false; delete charLadder.onEnterFrame; } }; } else { topBorder._width = 1000; topBorder._height = 18; bottomBorder._width = 1000; bottomBorder._height = 18; bottomBorder._y = 482; charLocation[charNow]._xscale = -charScale; charLocation[charNow]._yscale = charScale; charLocation[charNow]._x = 670; charLocation[charNow]._y = 265; charLocation[charNow]._visible = true; gamePause = false; } inventory.swapDepths(getNextHighestDepth()); if (fadeIn._x != undefined) { removeMovieClip(fadeIn); delete fadeIn.onEnterFrame; } attachMovie('fade_transitionIn', 'fadeIn', getNextHighestDepth(), {'_x': 275}); fadeIn.onEnterFrame = function () { if (fadeIn._currentframe == fadeIn._totalframes && fadeIn._totalframes != undefined) { removeMovieClip(fadeIn); delete fadeIn.onEnterFrame; } fadeIn._x = -_x; }; keyListenerLvl.onKeyDown = function () { if (gamePause == false) { if (Key.getCode() == 88) { if (inventoryOpened == false && keyXdown == false) { if (currentlyEquiped == null) { pickupStart(iceCream_mc, charLocation[charNow], 'iceCream', true, 30, 30, 70, 'mainChar'); } charClimbDown(525, 575, 550, 300); guardingDoor(); keyXdown = true; } if (inventoryOpened == true && inventorySlot[currentlySelected] != null && selectAction == false && keyXdown == false && inventoryMovingDown == false && mixAction == true) { keyXdown = true; } } } }; moveListener.onEnterFrame = function () { pickupProcess(); if (Key.isDown(84)) { trace(charLocation[charNow]._x); } if (iceCream_mc._x == undefined && iceCreamTaken == false) { iceCreamTaken = true; } if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, 90, 910, 0, 1000, true, true, 180, false, none); } }; } movieClip 3373 { } movieClip 3397 { } movieClip 3402 { } movieClip 3412 { frame 1 { stop(); } frame 33 { gotoAndStop(1); } } movieClip 3433 { frame 60 { stop(); } } movieClip 3434 { frame 1 { stop(); } } movieClip 3436 { } frame 31 { function returnToRich() { if (charLocation[charNow]._x < 5 && ringFly._x == 425 && ringFly._y == 360 or charLocation[charNow]._x < 5 && ringFly._x == undefined) { if (officeKeyTaken == false) { removeMovieClip(officeKey_mc); } removeMovieClip(ofisas1p); if (fatmanDistract == true) { removeMovieClip(ringFly); } abandoned.stop(); gotoAndStop('turtas'); } } function ringDrop() { if (charNow == 'mainChar') { gamePause = true; charLocation[charNow]._visible = false; attachMovie('char Pickup high', 'charThrow', getNextHighestDepth(), {'_x': charLocation[charNow]._x, '_y': charLocation[charNow]._y, '_yscale': charScale}); if (charThrow._x > 425) { charThrow._xscale = -charScale; } else { charThrow._xscale = charScale; } charThrow.onEnterFrame = function () { if (charThrow._currentframe == 6) { removeEquipment('ring'); charThrow.gotoAndPlay(10); attachMovie('ringHand', 'ringFly', getNextHighestDepth(), {'_x': charLocation[charNow]._x + 35 * charThrow._xscale / 100, '_y': 220, '_xscale': charScale, '_yscale': charScale}); ringFly.swapDepths(ofisas1p); ofisas1p.swapDepths(bottomBorder); bottomBorder.swapDepths(inventory); var xDestination = 425; var yDestination = 360; var ySpeed = 0; var ySpChange = 1; var v3 = yDestination - ringFly._y; var v1 = (-ySpeed + Math.sqrt(ySpeed * ySpeed + 2 * ySpChange * v3)) / ySpChange; var v2 = xDestination - ringFly._x; var xSpeed = v2 / v1; ringFly.onEnterFrame = function () { if (ringFly._y <= yDestination - ySpeed) { ringFly._y += ySpeed; ySpeed += ySpChange; } else { ringFly._y = yDestination; } if (ringFly._x <= xDestination - xSpeed && xSpeed >= 0) { ringFly._x += xSpeed; } else { if (ringFly._x >= xDestination - xSpeed && xSpeed < 0) { ringFly._x += xSpeed; } else { ringFly._x = xDestination; } } if (ringFly._x == xDestination && ringFly._y == yDestination) { delete ringFly.onEnterFrame; bossas.gotoAndPlay(4); fatmanDistract = true; } }; } if (charThrow._currentframe == charThrow._totalframes) { delete charThrow.onEnterFrame; charLocation[charNow]._xscale = charScale; charLocation[charNow]._visible = true; charLocation[charNow].swapDepths(charThrow); removeMovieClip(charThrow); gamePause = false; } }; } } function fakeKey() { if (charNow == 'mainChar') { gamePause = true; charLocation[charNow]._visible = false; if (charLocation[charNow]._x > 170) { charLocation[charNow]._xscale = -charScale; } else { if (charLocation[charNow]._x < 170) { charLocation[charNow]._xscale = charScale; } } attachMovie('char Pickup high', 'charPick', getNextHighestDepth(), {'_x': charLocation[charNow]._x, '_y': charLocation[charNow]._y, '_xscale': charLocation[charNow]._xscale, '_yscale': charLocation[charNow]._yscale}); charPick.swapDepths(charLocation[charNow]); bossas.gotoAndStop(2); charPick.onEnterFrame = function () { if (charPick._currentframe == charPick._totalframes) { charLocation[charNow].swapDepths(charPick); charLocation[charNow]._visible = true; removeMovieClip(charPick); delete charPick.onEnterFrame; gamePause = false; } }; } } abandoned.start(0, 20000); _x = 0; inventory._x = 0; charLocation[charNow]._x = 6; charScale = 75; speedBySize = (charScale / 100) * 5; charLocation[charNow]._xscale = charScale; charLocation[charNow]._yscale = charScale; charLocation[charNow]._y = 220; topBorder._width = 500; topBorder._height = 60; bottomBorder._width = 500; bottomBorder._height = 75; bottomBorder._y = 425; if (officeKeyTaken == false) { attachMovie('keyMove', 'officeKey_mc', getNextHighestDepth(), {'_x': 171, '_y': 241}); officeKey_mc.swapDepths(charLocation[charNow]); } if (fatmanDistract == true) { attachMovie('ringHand', 'ringFly', getNextHighestDepth(), {'_x': 425, '_y': 360, '_xscale': charScale, '_yscale': charScale}); bossas.gotoAndPlay(16); } attachMovie('ofisas1p', 'ofisas1p', getNextHighestDepth(), {'_x': 41, '_y': 246}); bottomBorder.swapDepths(charLocation[charNow]); ofisas1p.swapDepths(bottomBorder); inventory.swapDepths(getNextHighestDepth()); keyListenerLvl.onKeyDown = function () { if (gamePause == false) { if (Key.getCode() == 88) { if (inventoryOpened == false && keyXdown == false) { if (currentlyEquiped == null) { if (fatmanDistract == true) { pickupStart(officeKey_mc, charLocation[charNow], 'keyOffice', true, 40, 40, 170, 'mainChar'); } else { if (charLocation[charNow]._x >= 130 && charLocation[charNow]._x <= 210) { fakeKey(); } } } if (currentlyEquiped == 'ring' && fatmanDistract == false) { ringDrop(); } keyXdown = true; } if (inventoryOpened == true && inventorySlot[currentlySelected] != null && selectAction == false && keyXdown == false && inventoryMovingDown == false && mixAction == true) { keyXdown = true; } } } }; moveListener.onEnterFrame = function () { if (officeKey_mc._x == undefined && officeKeyTaken == false) { officeKeyTaken = true; } pickupProcess(); returnToRich(); if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, 0, 500, 0, 500, false, false, 180, false, none); } }; } movieClip 3489 { } movieClip 3514 { frame 32 { _parent.gotoAndStop(1); } } movieClip 3557 { } movieClip 3558 { frame 14 { stop(); } } movieClip 3600 { frame 1 { stop(); } frame 51 { gotoAndPlay(16); } } frame 32 { function fallOffscreen() { if (charLocation[charNow]._x >= 400 && charNow == 'mainChar' && fallenDown == true) { gamePause = true; charLocation[charNow]._xscale = charScale; charLocation[charNow].gotoAndStop(1); charLocation[charNow].itemInHand.gotoAndStop(1); charLocation[charNow]._visible = false; attachMovie('char Pickup high', 'charPushButton', getNextHighestDepth(), {'_x': charLocation[charNow]._x, '_y': charLocation[charNow]._y, '_xscale': charLocation[charNow]._xscale, '_yscale': charLocation[charNow]._yscale}); charPushButton.swapDepths(charLocation[charNow]); charPushButton.onEnterFrame = function () { if (charPushButton._currentframe == 10) { downPart.buttonStall.play(); bottomBorder.play(); } if (charPushButton._currentframe == charPushButton._totalframes) { delete charPushButton.onEnterFrame; removeMovieClip(charPushButton); charLocation[charNow]._visible = true; var charFallSpeed = 0; mainChar.onEnterFrame = function () { if (charLocation[charNow]._y <= 550) { charLocation[charNow]._y += charFallSpeed; charFallSpeed += 4; } else { delete mainChar.onEnterFrame; delete moveListener.onEnterFrame; delete keyListenerLvl.onKeyDown; removeMovieClip(topBorder); removeMovieClip(bottomBorder); masinaOutside.stop(); nextFrame(); } }; } }; } } function openHatch() { if (charLocation[charNow]._x >= 310 && charNow == 'transChar' && fallenDown == false && medis._currentframe == 1) { gamePause = true; charLocation[charNow]._visible = false; charLocation[charNow]._x = 310; charLocation[charNow]._xscale = charScale; attachMovie('transOpen', 'transOpen', getNextHighestDepth(), {'_x': 293, '_y': 62}); transOpen.onEnterFrame = function () { if (transOpen._currentframe == 6) { medis.play(); uzdanga.play(); } if (transOpen._currentframe == transOpen._totalframes) { charLocation[charNow]._visible = true; gamePause = false; ladderRight = 351; removeMovieClip(transOpen); } }; } } function fallDown() { if (charLocation[charNow]._x >= 351 && gamePause == false && fallenDown == false && medis._currentframe == medis._totalframes && charLocation[charNow]._x != undefined) { gamePause = true; charLocation[charNow].gotoAndStop(1); charLocation[charNow].itemInHand.gotoAndStop(1); charLocation[charNow]._xscale = charScale; createEmptyMovieClip('fallClip', getNextHighestDepth()); var scalesSpeed = 0; fallClip.onEnterFrame = function () { if (charLocation[charNow]._y <= 320 - scalesSpeed) { charLocation[charNow]._y += scalesSpeed; charLocation[charNow]._x += 1; scalesSpeed += 4; } else { charLocation[charNow]._y = 320; gamePause = false; fallenDown = true; ladderLeft = 370; ladderRight = 435; removeMovieClip(fallClip); delete fallClip.onEnterFrame; } }; } } masinaOutside.start(0, 20000); charScale = 83; speedBySize = (charScale / 100) * 5; ladderLeft = 0; ladderRight = 340; charLocation[charNow]._xscale = charScale; charLocation[charNow]._yscale = charScale; charLocation[charNow]._x = 5; charLocation[charNow]._y = 160; attachMovie('BlackBorder', 'topBorder', getNextHighestDepth(), {'_width': 500, '_height': 50}); attachMovie('spreadingBorder', 'bottomBorder', getNextHighestDepth(), {'_y': 450}); inventory.swapDepths(getNextHighestDepth()); if (socialPoem == false) { attachMovie('socPoem', 'currentPoem', getNextHighestDepth(), {'_y': 500, '_x': -_x}); if (subtitlesOn == false) { currentPoem._visible = false; } socialPoem = true; } keyListenerLvl.onKeyDown = function () { if (gamePause == false) { if (Key.getCode() == 88) { if (inventoryOpened == false && keyXdown == false) { if (currentlyEquiped == null) { } openHatch(); fallOffscreen(); keyXdown = true; } if (inventoryOpened == true && inventorySlot[currentlySelected] != null && selectAction == false && keyXdown == false && inventoryMovingDown == false && mixAction == true) { keyXdown = true; } } } }; moveListener.onEnterFrame = function () { fallDown(); if (fallenDown == true && charNow == 'mainChar') { allowTrans = false; ladderLeft = 140; } if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, ladderLeft, ladderRight, 0, 500, false, false, 180, false, none); } }; } movieClip 3604 { } movieClip 3611 { } movieClip 3621 { } movieClip 3625 { } movieClip 3626 { } movieClip 3629 { } movieClip 3638 { } movieClip 3641 { } movieClip 3659 { frame 1 { stop(); } frame 16 { stop(); } } movieClip 3674 { } movieClip 3692 { } movieClip 3695 { } movieClip 3696 { frame 1 { stop(); } frame 17 { stop(); } } movieClip 3697 { } movieClip 3698 { frame 1 { stop(); } frame 15 { stop(); } } frame 33 { function fallIntoClock() { var fallSpeed = 36; mainChar.onEnterFrame = function () { if (mainChar._y < 293 - fallSpeed) { mainChar._y += fallSpeed; fallSpeed += 3; } else { mainChar._y = 293; gamePause = false; } }; } laikrodziaiAudio.start(0, 20000); var sunkiaiIrPrazutingai = new Sound(kalonele); sunkiaiIrPrazutingai.attachSound('jonoEilerastis'); sunkiaiIrPrazutingai.setVolume(0); sunkiaiIrPrazutingai.start(0, 20000); charLocation[charNow]._x = 340; charLocation[charNow]._y = -60; charScale = 70; charLocation[charNow]._xscale = charScale; charLocation[charNow]._yscale = charScale; speedBySize = (charScale / 100) * 5; attachMovie('BlackBorder', 'topBorder', getNextHighestDepth(), {'_height': 100, '_width': 1918}); attachMovie('clock_bottomBorder', 'bottomBorder', getNextHighestDepth(), {'_y': 500}); inventory.swapDepths(getNextHighestDepth()); allowTrans = true; if (currentPoem._x != undefined) { currentPoem.swapDepths(getNextHighestDepth()); } fallIntoClock(); moveListener.onEnterFrame = function () { if (charLocation[charNow]._x >= 1825 && charLocation[charNow]._x != undefined) { if (charLocation[charNow]._alpha == 100) { gamePause = true; entrySound.start(0, 1); charLocation[charNow].gotoAndStop('standFrame'); charLocation[charNow].itemInHand.gotoAndStop(1); } charLocation[charNow]._alpha -= 3; } if (charLocation[charNow]._alpha <= 0 && charLocation[charNow]._x != undefined) { removeMovieClip(topBorder); removeMovieClip(bottomBorder); removeMovieClip(inventory); laikrodziuDuobe.stop(); sunkiaiIrPrazutingai.stop(); delete moveListener.onEnterFrame; delete keyListenerConst.onKeyDown; delete keyListenerConst.onKeyUp; delete inventoryListener.onEnterFrame; removeMovieClip(soundTrack_mc); removeMovieClip(sndEffects_mc); removeMovieClip(inventoryListener); removeMovieClip(moveListener); stopAllSounds(); removeMovieClip(charLocation[charNow]); nextFrame(); } audioVolume(charLocation[charNow], kalonele, sunkiaiIrPrazutingai, false, 180); if (inventoryOpened == false && pickingProcess == false && gamePause == false) { movement(charLocation[charNow], 0, speedBySize, charScale, 270, 1830, 0, 1918, true, true, 180, false, none); } }; } movieClip 3708 { } movieClip 3720 { } movieClip 3723 { } movieClip 3731 { } movieClip 3751 { } movieClip 3756 { } movieClip 3774 { } movieClip 3777 { } movieClip 3786 { } movieClip 3789 { } movieClip 3790 { } movieClip 3792 { } movieClip 3795 { } movieClip 3813 { } movieClip 3819 { } movieClip 3823 { } movieClip 3824 { } movieClip 3837 { } movieClip 3850 { } movieClip 3860 { } movieClip 3867 { } movieClip 3868 { } movieClip 3870 { } movieClip 3890 { } movieClip 3898 { } movieClip 3910 { frame 19 { gotoAndPlay(48); } } movieClip 3912 { } movieClip 3913 { } movieClip 3915 { } movieClip 3917 { } frame 34 { stop(); _x = 0; } movieClip 3919 { } button 3920 { on (release) { getURL('http://www.myspace.com/wusheng', '_blank'); } } button 3922 { on (release) { _parent.gotoAndStop('startLocation'); } } movieClip 3923 { frame 432 { stop(); } }




http://swfchan.com/10/47507/info.shtml
Created: 1/5 -2019 17:28:01 Last modified: 1/5 -2019 17:28:01 Server time: 21/06 -2024 06:04:13