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

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

Record Tripping - immersive gaming experience with the scratch of a record.swf

This is the info page for
Flash #89172

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


ActionScript [AS1/AS2]
Combined Code
frame 1 { function gotoBell() { getURL('http://www.bellbrothers.net', '_blank'); } function gotoRt() { getURL('http://www.recordtripping.com', '_blank'); } stop(); Stage.scaleMode = 'noScale'; MENU = new ContextMenu(); MENU.hideBuiltInItems(); MENU.builtInItems.quality = true; RecordTripping = new ContextMenuItem('Record Tripping', gotoRt); MENU.customItems.push(RecordTripping); BellBrothers = new ContextMenuItem('A Bell Brothers Game', gotoBell); MENU.customItems.push(BellBrothers); _root.menu = MENU; song1aLink = 'http://click.linksynergy.com/fs-bin/click?id=fqCJPfJ1WzQ&offerid=146261.748158036&type=10&subid='; song2aLink = 'http://click.linksynergy.com/fs-bin/click?id=fqCJPfJ1WzQ&offerid=146261.742782229&type=10&subid='; song3aLink = 'http://click.linksynergy.com/fs-bin/click?id=fqCJPfJ1WzQ&offerid=146261.740711667&type=10&subid='; song4aLink = 'http://click.linksynergy.com/fs-bin/click?id=fqCJPfJ1WzQ&offerid=146261.745059650&type=10&subid='; song5aLink = 'http://click.linksynergy.com/fs-bin/click?id=fqCJPfJ1WzQ&offerid=146261.740336935&type=10&subid='; song6aLink = 'http://click.linksynergy.com/fs-bin/click?id=fqCJPfJ1WzQ&offerid=146261.794486119&type=10&subid='; song1bLink = 'http://www.amazon.com/gp/product/B000SX6T54?ie=UTF8&tag=bellbrot-20&link_code=as3&camp=211189&creative=373489&creativeASIN=B000SX6T54'; song2bLink = 'http://www.amazon.com/gp/product/B000XO0L9I?ie=UTF8&tag=bellbrot-20&link_code=as3&camp=211189&creative=373489&creativeASIN=B000XO0L9I'; song3bLink = 'http://www.amazon.com/gp/product/B0011Z1AZ2?ie=UTF8&tag=bellbrot-20&link_code=as3&camp=211189&creative=373489&creativeASIN=B0011Z1AZ2'; song4bLink = 'http://www.amazon.com/gp/product/B000TE1EZW?ie=UTF8&tag=bellbrot-20&link_code=as3&camp=211189&creative=373489&creativeASIN=B000TE1EZW'; song5bLink = 'http://www.amazon.com/gp/product/B000U7SO9M?ie=UTF8&tag=bellbrot-20&link_code=as3&camp=211189&creative=373489&creativeASIN=B000U7SO9M'; System.security.allowDomain('*'); var loadListener = new Object(); loadListener.onLoadInit = function (target_mc) { trackingHolder.trackPageview('loading'); }; var mcLoader = new MovieClipLoader(); mcLoader.addListener(loadListener); mcLoader.loadClip('http://www.bellbrothers.net/recordtripping_tracking.swf', trackingHolder); } movieClip 3 { } movieClip 4 { } movieClip 5 { } movieClip 6 { } // unknown tag 88 length 68 movieClip 10 { } movieClip 11 { } movieClip 12 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 13 { } movieClip 15 { } movieClip 17 { } movieClip 19 { } movieClip 21 { } movieClip 59 { frame 43 { if (!_parent._parent._parent.timeOut) { gotoAndPlay(28); } } frame 60 { stop(); } } movieClip 62 { } movieClip 64 { } movieClip 67 { } movieClip 69 { } movieClip 72 { } movieClip 75 { frame 1 { sandFallMask.gotoAndPlay(12); } } // unknown tag 88 length 144 // unknown tag 88 length 149 movieClip 80 { frame 1 { stop(); } } movieClip 84 { } movieClip 87 { } movieClip 88 { } movieClip 90 { } movieClip 92 { } movieClip 93 { } movieClip 94 { } movieClip 95 { } movieClip 99 { } movieClip 101 { instance of movieClip 88 { onClipEvent (load) { gotoAndPlay(3); } } instance of movieClip 88 { onClipEvent (load) { gotoAndPlay(3); } } } movieClip 102 { } movieClip 104 { } movieClip 105 { } movieClip 106 { } movieClip 107 { } movieClip 108 { } movieClip 110 { } movieClip 112 { } movieClip 114 { } movieClip 115 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 116 { frame 13 { buttonRtLogoClickArea.onRollOver = function () { altText.gotoAndPlay('bell'); rtLogo.bellBrothers.gotoAndPlay('intro'); }; buttonRtLogoClickArea.onRollOut = function () { altText.gotoAndPlay('bellOut'); rtLogo.bellBrothers.gotoAndPlay('outro'); }; buttonRtLogoClickArea.onReleaseOutside = function () { altText.gotoAndPlay('bellOut'); rtLogo.bellBrothers.gotoAndPlay('outro'); }; buttonRtLogoClickArea.onRelease = function () { getURL('http://www.bellbrothers.net', '_blank'); _root.trackingHolder.trackPageview('bellbrothers'); }; gameLoaded = false; actions.onEnterFrame = function () { if (_root.getBytesLoaded() < _root.getBytesTotal() || !loadMin) { birds.percentTxt.percentTxt = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); birds.hourglass.topSand.rim._y = 29 + Math.pow((_root.getBytesLoaded() / _root.getBytesTotal()) * 5.099019513592785, 2); birds.hourglass.topSand.rim._height = 6 - Math.pow((_root.getBytesLoaded() / _root.getBytesTotal()) * 2.23606797749979, 2); birds.hourglass.topSand.sandMask._height = 30 - Math.pow((_root.getBytesLoaded() / _root.getBytesTotal()) * 5.385164807134504, 2); birds.hourglass.bottomSand.rim._y = 78 + Math.pow(((_root.getBytesTotal() - _root.getBytesLoaded()) / _root.getBytesTotal()) * 4.795831523312719, 2); birds.hourglass.bottomSand.sandMask._height = 27 - Math.pow(((_root.getBytesTotal() - _root.getBytesLoaded()) / _root.getBytesTotal()) * 5.099019513592785, 2); } else { if (!gameLoaded) { gameLoaded = true; timeOut = true; gotoAndPlay('loaded'); } } altText._y = _root._ymouse - 3; altText._x = _root._xmouse + 1; }; } frame 54 { stop(); loadMin = true; } frame 115 { _root.gotoAndStop(2); } frame 116 { _root.mainMenu.gotoAndPlay('intro'); } frame 125 { stop(); } } movieClip 117 { } movieClip 2077 __Packages.com.pixelbreaker.ui.MouseWheel { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.pixelbreaker) { _global.com.pixelbreaker = new Object(); } if (!_global.com.pixelbreaker.ui) { _global.com.pixelbreaker.ui = new Object(); } if (!_global.com.pixelbreaker.ui.MouseWheel) { var v1 = function () {}; com.pixelbreaker.ui.MouseWheel = v1; var v2 = v1.prototype; v1.main = function () { com.pixelbreaker.ui.MouseWheel.isMac = (System.capabilities.os.toLowerCase()).indexOf('mac') != -1; if (com.pixelbreaker.ui.MouseWheel.isMac) { com.pixelbreaker.ui.MouseWheel.macBroadcaster = new com.pixelbreaker.event.EventBroadcaster(); flash.external.ExternalInterface.addCallback('externalMouseEvent', com.pixelbreaker.ui.MouseWheel, com.pixelbreaker.ui.MouseWheel.externalMouseEvent); } }; v1.addListener = function (obj) { if (!com.pixelbreaker.ui.MouseWheel.isMac) { com.pixelbreaker.ui.MouseWheel.main(); } if (com.pixelbreaker.ui.MouseWheel.isMac) { com.pixelbreaker.ui.MouseWheel.macBroadcaster.addListener(obj); } else { Mouse.addListener(obj); } }; v1.removeListener = function (obj) { if (com.pixelbreaker.ui.MouseWheel.isMac) { com.pixelbreaker.ui.MouseWheel.macBroadcaster.removeListener(obj); } else { Mouse.removeListener(obj); } }; v1.externalMouseEvent = function (delta) { com.pixelbreaker.ui.MouseWheel.macBroadcaster.broadcastMessage('onMouseWheel', delta); }; ASSetPropFlags(com.pixelbreaker.ui.MouseWheel.prototype, null, 1); } #endinitclip } movieClip 2078 __Packages.com.pixelbreaker.event.EventBroadcaster { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.pixelbreaker) { _global.com.pixelbreaker = new Object(); } if (!_global.com.pixelbreaker.event) { _global.com.pixelbreaker.event = new Object(); } if (!_global.com.pixelbreaker.event.EventBroadcaster) { var v1 = function () { this._listeners = []; }; com.pixelbreaker.event.EventBroadcaster = v1; var v2 = v1.prototype; v2.addListener = function (obj) { if (this.indexOf(obj) == -1) { this._listeners.push(obj); return true; } return false; }; v2.removeListener = function (obj) { var v3 = false; while (this.indexOf(obj) != -1) { this._listeners.splice(this.indexOf(obj), 1); v3 = true; } return v3; }; v2.broadcastMessage = function (method) { var v3; var v4; var v5 = arguments.splice(1); v3 = 0; while (v3 < this._listeners.length) { v4 = this._listeners[v3]; v4[method].apply(v4, v5); if (v4 == undefined) { this._listeners.splice(v3--, 1); } ++v3; } }; v2.indexOf = function (str) { var v3 = -1; var v2 = 0; while (v2 < this._listeners.length) { if (this._listeners[v2] == str) { v3 = v2; break; } ++v2; } return v3; }; ASSetPropFlags(com.pixelbreaker.event.EventBroadcaster.prototype, null, 1); } #endinitclip } frame 2 { function stopBlankWheel() { com.pixelbreaker.ui.MouseWheel.removeListener(mouseListener); } function startBlankWheel() { mouseListener.onMouseWheel = function (delta) { trace('blank'); }; com.pixelbreaker.ui.MouseWheel.addListener(mouseListener); } _root.customCursor._visible = false; var mouseListener = new Object(); ding.ding = new Sound(ding); ding.ding.attachSound('ding'); mySound.normal = new Sound(mySound); mySound.normal.attachSound('bookreading'); mySound.slow = new Sound(mySound); mySound.slow.attachSound('bookreading_slow'); mySound.scratch01 = new Sound(mySound); mySound.scratch01.attachSound('scratch01'); mySound.scratch02 = new Sound(mySound); mySound.scratch02.attachSound('scratch02'); mySound.normal.onSoundComplete = function () { mySound.normal.start(0); }; mySound.slow.onSoundComplete = function () { mySound.slow.start(0); }; referer = _url; if (referer.indexOf('http://www.') != -1) { domainFull = referer.split('http://www.'); domainTrimA = domainFull[1]; } else { if (referer.indexOf('http://') != -1) { domainFull = referer.split('http://'); domainTrimA = domainFull[1]; } else { domainTrimA = referer; } } if (domainTrimA.indexOf('/') != -1) { domainStr = domainTrimA.slice(0, domainTrimA.indexOf('/')); } else { domainStr = domainTrimA; } versionNum = /:$version; flashVer = versionNum.split(','); flashVerSplitA = flashVer[0]; flashVerSplitB = flashVerSplitA.split(' '); platform = flashVerSplitB[0]; } movieClip 167 { frame 1 { stop(); } } movieClip 169 { } movieClip 171 { } movieClip 172 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 174 { } movieClip 178 { } // unknown tag 88 length 146 movieClip 182 { } // unknown tag 88 length 142 movieClip 185 { } movieClip 187 { } movieClip 189 { } movieClip 191 { } movieClip 192 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 195 { } movieClip 199 { } movieClip 206 { } movieClip 208 { } movieClip 209 { frame 1 { stop(); } frame 37 { gotoAndPlay('loop'); } } movieClip 210 { frame 1 { stop(); } frame 3 { stop(); } } movieClip 212 { } movieClip 213 { frame 1 { stop(); } frame 37 { gotoAndPlay('loop'); } } movieClip 214 { } movieClip 218 { } movieClip 220 { } movieClip 222 { } movieClip 224 { } movieClip 225 { frame 1 { stop(); } frame 11 { stop(); } frame 21 { stop(); } } movieClip 227 { } movieClip 229 { } movieClip 231 { } movieClip 233 { } movieClip 234 { frame 1 { stop(); } frame 4 { stop(); } } movieClip 236 { } movieClip 237 { } movieClip 238 { frame 1 { _parent.handInitX = rightHand._x; _parent.handInitY = rightHand._y; } } movieClip 240 { frame 1 { stop(); } } movieClip 242 { } movieClip 244 { } movieClip 246 { } movieClip 248 { } movieClip 251 { } movieClip 252 { } movieClip 255 { } movieClip 259 { } movieClip 262 { } movieClip 263 { } movieClip 267 { } movieClip 271 { } movieClip 275 { } movieClip 277 { } movieClip 280 { } movieClip 282 { } movieClip 284 { } movieClip 286 { } movieClip 289 { } movieClip 292 { } movieClip 294 { } movieClip 296 { } movieClip 298 { } movieClip 300 { } movieClip 302 { } movieClip 304 { } movieClip 306 { } movieClip 307 { frame 37 { _parent.leaves.leaves.gotoAndPlay('loop'); } } movieClip 309 { } movieClip 314 { frame 1 { stop(); } } movieClip 319 { frame 1 { stop(); } } movieClip 322 { frame 1 { stop(); } } movieClip 324 { frame 1 { stop(); } } movieClip 325 { frame 34 { step.gotoAndStop(_parent.step); } frame 38 { if (_parent.step != 4) { stop(); _parent.midstep = false; } if (_parent.step == 1 || _parent.step == 2) { _parent.rightHand.rightHand.computerMouse.nub.gotoAndPlay('loop'); } else { if (_parent.step == 3) { _parent.rightHand.rightHand.computerMouse.leftButton.leftButton.gotoAndPlay('loop'); } } } frame 90 { _parent.fadeOut = true; } frame 146 { stop(); _parent.gotoAndPlay('outro'); } frame 147 { confirm.gotoAndStop(_parent.step); } frame 206 { ++_parent.step; gotoAndPlay('intro'); } frame 207 { further.gotoAndStop(_parent.step); } frame 210 { _parent.further = true; if (_parent.step != 3) { stop(); } } frame 272 { gotoAndPlay('outro'); _parent.further = false; } frame 273 { retry.gotoAndStop(_parent.step); } frame 276 { stop(); } } movieClip 326 { frame 1 { stop(); } frame 5 { _parent.recordFull.record._rotation -= 4; } frame 6 { _parent.recordFull.record._rotation -= 8; } frame 7 { _parent.recordFull.record._rotation -= 16; } frame 8 { _parent.recordFull.record._rotation -= 8; } frame 9 { _parent.recordFull.record._rotation -= 4; } frame 10 { gotoAndStop(1); } frame 20 { _parent.recordFull.record._rotation -= 2; } frame 21 { _parent.recordFull.record._rotation -= 4; } frame 22 { _parent.recordFull.record._rotation -= 8; } frame 23 { _parent.recordFull.record._rotation -= 4; } frame 24 { _parent.recordFull.record._rotation -= 2; } frame 25 { gotoAndStop(1); } frame 35 { _parent.recordFull.record._rotation += 2; } frame 36 { _parent.recordFull.record._rotation += 4; } frame 37 { _parent.recordFull.record._rotation += 8; } frame 38 { _parent.recordFull.record._rotation += 4; } frame 39 { _parent.recordFull.record._rotation += 2; } frame 40 { gotoAndStop(1); } frame 50 { _parent.recordFull.record._rotation += 1; } frame 51 { _parent.recordFull.record._rotation += 2; } frame 52 { _parent.recordFull.record._rotation += 4; } frame 53 { _parent.recordFull.record._rotation += 2; } frame 54 { _parent.recordFull.record._rotation += 1; } frame 55 { gotoAndStop(1); } } movieClip 328 { } movieClip 329 { } movieClip 331 { } movieClip 332 { frame 1 { stop(); } frame 2 { stop(); if (_root.domainStr != 'recordtripping.com' && _root.platform == 'MAC') { gotoAndPlay('mac'); } else { gotoAndPlay('valid'); } } frame 8 { _root.trackingHolder.trackPageview('instructions/mac'); } frame 15 { buttonMenuClickArea.onRollOver = function () { buttonMenu.gotoAndPlay('intro'); }; buttonMenuClickArea.onRollOut = function () { buttonMenu.gotoAndPlay('outro'); }; buttonMenuClickArea.onReleaseOutside = function () { buttonMenu.gotoAndPlay('outro'); }; buttonMenuClickArea.onRelease = function () { _root.menuDest = 'mainMenu'; gotoAndPlay('macOutro'); }; buttonPlayClickArea.onRollOver = function () { buttonPlay.gotoAndPlay('intro'); }; buttonPlayClickArea.onRollOut = function () { buttonPlay.gotoAndPlay('outro'); }; buttonPlayClickArea.onReleaseOutside = function () { buttonPlay.gotoAndPlay('outro'); }; buttonPlayClickArea.onRelease = function () { getURL('http://www.recordtripping.com', '_blank'); }; } frame 22 { stop(); } frame 38 { _root.mainMenu.gotoAndPlay('intro'); } frame 39 { gotoAndStop(1); } frame 40 { function stopWheel() { com.pixelbreaker.ui.MouseWheel.removeListener(_root.mouseListener); } _root.trackingHolder.trackPageview('instructions/scrollwheel'); hiss.hiss = new Sound(hiss); hiss.hiss.attachSound('hiss'); hiss.hiss.setVolume(45); audioTrans.practiceComplete = new Sound(audioTrans); audioTrans.practiceComplete.attachSound('practice_complete'); pressedDown = false; justUp = false; slow = 1; i = 0; handInitX = rightHand.rightHand._x; handInitY = rightHand.rightHand._y; step = 0; midstep = false; soundStart = false; fadeOut = false; _root.mouseListener.onMouseWheel = function (delta) { if (delta < 0) { if (pressedDown && soundStart) { _root.mySound.slow.stop(); _root.mySound.scratch02.start(); if (_root.mySound.slow.position > 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 - 1); } else { _root.mySound.slow.start(_root.mySound.slow.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBackSlow'); } else { if (soundStart) { _root.mySound.normal.stop(); _root.mySound.scratch02.start(); if (_root.mySound.normal.position > 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 - 1); } else { _root.mySound.normal.start(_root.mySound.normal.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBack'); } } _root.customCursor.gotoAndPlay('down'); rightHand.rightHand.fingerScroll.gotoAndPlay('scrolled'); rightHand.rightHand.fingerScrollShad.gotoAndPlay('scrolled'); if (step == 0 && !midstep) { rightHand.rightHand.computerMouse.nub.gotoAndStop('clear'); gotoAndPlay('instructions'); step = 1; midstep = true; } else { if (step == 1 && !midstep) { rightHand.rightHand.computerMouse.nub.gotoAndStop('clear'); instruction.gotoAndPlay('outro'); midstep = true; } } } if (delta > 0) { if (pressedDown && soundStart) { _root.mySound.slow.stop(); _root.mySound.scratch01.start(); if (_root.mySound.slow.position < _root.mySound.slow.duration - 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 + 1); } else { _root.mySound.slow.start(1); } scratchControl.gotoAndPlay('scratchForwardSlow'); } else { if (soundStart) { _root.mySound.normal.stop(); _root.mySound.scratch01.start(); if (_root.mySound.normal.position < _root.mySound.normal.duration - 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 + 1); } else { _root.mySound.normal.start(1); } scratchControl.gotoAndPlay('scratchForward'); } } _root.customCursor.gotoAndPlay('up'); rightHand.rightHand.fingerScroll.gotoAndPlay('scrolledUp'); rightHand.rightHand.fingerScrollShad.gotoAndPlay('scrolledUp'); if (step == 0 && !midstep) { rightHand.rightHand.computerMouse.nub.gotoAndStop('clear'); gotoAndPlay('instructions'); step = 1; midstep = true; } else { if (step == 2 && !midstep) { rightHand.rightHand.computerMouse.nub.gotoAndStop('clear'); instruction.gotoAndPlay('outro'); midstep = true; } } } }; com.pixelbreaker.ui.MouseWheel.addListener(_root.mouseListener); actions.onEnterFrame = function () { if (fadeOut && _root.mySound.normal.getVolume() > 0) { _root.mySound.normal.setVolume(_root.mySound.normal.getVolume() - 2); } else { if (_root.mySound.normal.getVolume() == 0) { fadeOut = false; _root.mySound.normal.stop(); _root.mySound.normal.setVolume(100); soundStart = false; Mouse.show(); _root.customCursor._visible = false; } } bird.bird._y = Math.cos(0.003 * getTimer() + 90) * 3 - 3; if (step == 3 && !pressedDown && further) { rightHand.rightHand.computerMouse.leftButton.leftButton.gotoAndPlay('loop'); instruction.gotoAndPlay('retry'); further = false; midstep = false; } recordFull.record._rotation += 2 / slow; posNeg = (_xmouse - 320) / Math.abs(_xmouse - 320); if (_xmouse < 0) { xmouse = 0; } else { if (_xmouse > 640) { xmouse = 640; } else { xmouse = _xmouse; } } rightHand.rightHand._x = handInitX + posNeg * 16 - Math.pow(posNeg * 4 - ((xmouse - 320) / 320) * 4, 2) * posNeg; posNeg = (_ymouse - 360) / Math.abs(_ymouse - 360); if (_ymouse < 0) { ymouse = 0; } else { if (_ymouse > 360) { ymouse = 360; } else { ymouse = _ymouse; } } rightHand.rightHand._y = handInitY + posNeg * 9 - Math.pow(posNeg * 3 - ((ymouse - 180) / 180) * 3, 2) * posNeg; rightHand.rightHand.wrist._rotation = ((rightHand.rightHand._x - handInitX) / 16) * 10 + ((rightHand.rightHand._y - handInitY) / 9) * 8; rightHand.rightHand.wire._rotation = ((rightHand.rightHand._x - handInitX) / 16) * -9 + ((rightHand.rightHand._y - handInitY) / 9) * 15 - 20; rightHand.rightHand._rotation = (-(rightHand.rightHand._y - handInitY) / 9) * 7 + 12; }; _root.customCursor._xscale = 105; _root.customCursor._yscale = 105; _root.customCursor._y = _root._ymouse; _root.customCursor._x = _root._xmouse; recordClickArea.useHandCursor = false; recordClickArea.onReleaseOutside = function () { if (recordClickArea._currentframe == 1) { rightHand.rightHand.forefinger.gotoAndPlay('released'); rightHand.rightHand.forefingerShad.gotoAndPlay('released'); rightHand.rightHand.computerMouse.leftButton.gotoAndPlay('released'); _root.customCursor._xscale = 105; _root.customCursor._yscale = 105; pressedDown = false; if (soundStart) { _root.mySound.slow.stop(); _root.mySound.normal.start(_root.mySound.slow.position / 1.25 / 1000); } justUp = false; slow = 1; } }; recordClickArea.onMouseMove = function () { _root.customCursor._y = _root._ymouse; _root.customCursor._x = _root._xmouse; xDist = center._x - _root.customCursor._x; yDist = center._y - _root.customCursor._y; angle = (Math.atan2(yDist, xDist) / Math.PI) * 180; _root.customCursor._rotation = angle; updateAfterEvent(); }; recordClickArea.onPress = function () { rightHand.rightHand.forefinger.gotoAndPlay('pressed'); rightHand.rightHand.forefingerShad.gotoAndPlay('pressed'); rightHand.rightHand.computerMouse.leftButton.gotoAndPlay('pressed'); _root.customCursor._xscale = 95; _root.customCursor._yscale = 95; if (soundStart) { _root.mySound.normal.stop(); _root.mySound.slow.start(_root.mySound.normal.position * 1.25 / 1000); } pressedDown = true; slow = 2; if (step == 3 && !midstep) { rightHand.rightHand.computerMouse.leftButton.leftButton.gotoAndStop('clear'); instruction.gotoAndPlay('further'); midstep = true; } }; recordClickArea.onRelease = function () { rightHand.rightHand.forefinger.gotoAndPlay('released'); rightHand.rightHand.forefingerShad.gotoAndPlay('released'); rightHand.rightHand.computerMouse.leftButton.gotoAndPlay('released'); _root.customCursor._xscale = 105; _root.customCursor._yscale = 105; pressedDown = false; if (soundStart && recordClickArea._currentframe == 1) { _root.mySound.slow.stop(); _root.mySound.normal.start(_root.mySound.slow.position / 1.25 / 1000); } justUp = false; slow = 1; }; } frame 53 { rightHand.rightHand.computerMouse.nub.gotoAndPlay('loop'); } frame 60 { buttonMenuClickArea.onRollOver = function () { buttonMenu.gotoAndPlay('intro'); }; buttonMenuClickArea.onRollOut = function () { buttonMenu.gotoAndPlay('outro'); }; buttonMenuClickArea.onReleaseOutside = function () { buttonMenu.gotoAndPlay('outro'); }; buttonMenuClickArea.onRelease = function () { _root.menuDest = 'mainMenu'; gotoAndPlay('menuOutro'); }; } frame 86 { stop(); } frame 87 { stopWheel(); } frame 110 { _root.mainMenu.gotoAndPlay('intro'); } frame 122 { gotoAndStop(1); } frame 123 { _root.trackingHolder.trackPageview('instructions/controls'); } frame 192 { hiss.hiss.start(0, 999); } frame 199 { soundStart = true; _root.mySound.normal.start(0); } frame 206 { stop(); Mouse.hide(); _root.customCursor._visible = true; _root.customCursor._xscale = 105; _root.customCursor._yscale = 105; _root.customCursor._y = _root._ymouse; _root.customCursor._x = _root._xmouse; xDist = center._x - _root.customCursor._x; yDist = center._y - _root.customCursor._y; angle = (Math.atan2(yDist, xDist) / Math.PI) * 180; _root.customCursor._rotation = angle; recordClickArea.onRollOver = function () { recordClickArea.useHandCursor = false; Mouse.hide(); _root.customCursor._visible = true; }; recordClickArea.onRollOut = function () { Mouse.show(); _root.customCursor._visible = false; }; } frame 207 { audioTrans.practiceComplete.start(); _root.customCursor._visible = false; recordClickArea.gotoAndStop(2); Mouse.show(); stopWheel(); _root.startBlankWheel(); } frame 272 { _root.chap1Trans.gotoAndPlay('intro'); } frame 280 { hiss.hiss.stop(); } } movieClip 335 { } movieClip 339 { } movieClip 340 { } movieClip 346 { } movieClip 347 { frame 1 { stop(); } } movieClip 348 { frame 1 { stop(); } } movieClip 352 { } movieClip 355 { frame 1 { stop(); } } movieClip 359 { } movieClip 362 { } movieClip 363 { } movieClip 366 { } movieClip 367 { } movieClip 371 { } movieClip 372 { frame 1 { stop(); } frame 3 { _parent._parent._parent._parent.balldrop1.balldrop1.start(0); } frame 8 { stop(); _parent._parent._parent.nextLevel(); } frame 10 { _parent._parent._parent._parent.balldrop1.balldrop1.start(0); } frame 15 { stop(); _parent._parent._parent.nextLevel(); } frame 17 { _parent._parent._parent._parent.balldrop1.balldrop1.start(0); } frame 22 { stop(); _parent._parent._parent.nextLevel(); } frame 24 { _parent._parent._parent._parent.balldrop1.balldrop1.start(0); } frame 29 { stop(); _parent._parent._parent.nextLevel(); } frame 31 { _parent._parent._parent._parent.balldrop1.balldrop1.start(0); } frame 36 { stop(); _parent._parent._parent.nextLevel(); } frame 38 { _parent._parent._parent._parent.balldrop1.balldrop1.start(0); } frame 43 { stop(); _parent._parent._parent.nextLevel(); } frame 44 { stop(); _parent._parent._parent._parent.balldrop1.balldrop1.start(0); _parent._parent.ballExit.ball.gotoAndPlay('outro'); } } movieClip 373 { } movieClip 374 { frame 1 { stop(); } frame 7 { _parent._parent._parent.chapterComplete(); } } movieClip 375 { } movieClip 376 { } movieClip 379 { } movieClip 381 { } movieClip 382 { } movieClip 383 { } movieClip 384 { } movieClip 385 { } movieClip 386 { } movieClip 390 { } movieClip 391 { } movieClip 392 { } movieClip 394 { frame 1 { stop(); } frame 5 { _parent.rotateObj(-4); } frame 6 { _parent.rotateObj(-8); } frame 7 { _parent.rotateObj(-16); } frame 8 { _parent.rotateObj(-8); } frame 9 { _parent.rotateObj(-4); } frame 10 { gotoAndStop(1); } frame 20 { _parent.rotateObj(-2); } frame 21 { _parent.rotateObj(-4); } frame 22 { _parent.rotateObj(-8); } frame 23 { _parent.rotateObj(-4); } frame 24 { _parent.rotateObj(-2); } frame 25 { gotoAndStop(1); } frame 35 { _parent.rotateObj(2); } frame 36 { _parent.rotateObj(4); } frame 37 { _parent.rotateObj(8); } frame 38 { _parent.rotateObj(4); } frame 39 { _parent.rotateObj(2); } frame 40 { gotoAndStop(1); } frame 50 { _parent.rotateObj(1); } frame 51 { _parent.rotateObj(2); } frame 52 { _parent.rotateObj(4); } frame 53 { _parent.rotateObj(2); } frame 54 { _parent.rotateObj(1); } frame 55 { gotoAndStop(1); } } movieClip 395 { frame 1 { function stopWheel() { com.pixelbreaker.ui.MouseWheel.removeListener(_root.mouseListener); } function chapterComplete() { solved = true; if (!_parent.timeOut) { _parent.chap1aTime = currentTime; _parent.transition = true; _parent.gotoAndPlay('chap1b'); } } function rotateObj(inc) { rim._rotation += inc; maze.mazeMask._rotation += inc; if (!solved) { maze.ballExit._rotation += inc; maze.ballExit.ball._rotation = -maze.ballExit._rotation; } barrelRotation += inc; maze.mazeShadow._rotation += inc; barrelFace._rotation += inc; hills._x -= 0.5 * inc; hillSlanted.hill._x -= 2 * inc; hillMask.grassHoriz.grass._x -= 2 * inc; hillMask.grassDiag.grass._x -= 2 * inc; sky._x -= 0.25 * inc; destFrame = (outsideFront._totalframes + outsideFront._currentframe + inc - 1) % outsideFront._totalframes + 1; outsideFront.gotoAndStop(destFrame); outsideBack.gotoAndStop(destFrame); insidePanel.gotoAndStop(destFrame); } function nextLevel() { ++level; yInc = 0; ballAccel = 500; locked = false; } pressedDown = false; justUp = false; slow = 1; i = 0; bounce = new Array(1.05, 1.1, 1.15, 1.2); accelDest = new Array(2.5, 5, 7.5, 10); holePos = new Array(178, 35, 284, 178); posBarrier = new Array(60, 110, 298, 25); negBarrier = new Array(120, 155, 335, 65); level = 1; maze.ballExit._rotation = -holePos[holePos.length - 1]; yInc = 0; barrelRotation = 3600; ballRotationLag = 3600; ballAccel = 2.5; solved = false; _parent.lagX = 153; _parent.lagY = 49; _parent.birdRotation = 0; _parent.lagRotation = 0; caught = false; _root.stopBlankWheel(); _root.mouseListener.onMouseWheel = function (delta) { if (delta < 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch02.start(); if (_root.mySound.slow.position > 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 - 1); } else { _root.mySound.slow.start(_root.mySound.slow.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBackSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch02.start(); if (_root.mySound.normal.position > 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 - 1); } else { _root.mySound.normal.start(_root.mySound.normal.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBack'); } _root.customCursor.gotoAndPlay('down'); _parent.lagX = 153 + 50 / slow; _parent.lagY = 49 - 37 / slow; _parent.lagRotation = -15 / slow; } if (delta > 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch01.start(); if (_root.mySound.slow.position < _root.mySound.slow.duration - 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 + 1); } else { _root.mySound.slow.start(1); } scratchControl.gotoAndPlay('scratchForwardSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch01.start(); if (_root.mySound.normal.position < _root.mySound.normal.duration - 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 + 1); } else { _root.mySound.normal.start(1); } scratchControl.gotoAndPlay('scratchForward'); } _root.customCursor.gotoAndPlay('up'); _parent.lagX = 153 - 40 / slow; _parent.lagY = 49 + 30 / slow; _parent.lagRotation = 10 / slow; } }; com.pixelbreaker.ui.MouseWheel.addListener(_root.mouseListener); actions.onEnterFrame = function () { if (_parent.fadeOut && _root.mySound.normal.getVolume() > 0) { _root.mySound.normal.setVolume(_root.mySound.normal.getVolume() - 2); _parent.myMusic.chap1.setVolume(_parent.myMusic.chap1.getVolume() - 2); } else { if (_root.mySound.normal.getVolume() == 0) { _parent.fadeOut = false; _root.mySound.normal.stop(); _root.mySound.slow.stop(); _root.mySound.normal.setVolume(100); _parent.myMusic.chap1.stop(); _parent.myMusic.chap1.setVolume(100); Mouse.show(); _root.customCursor._visible = false; } } _parent.lagX += (153 - _parent.lagX) / 12; _parent.birds._x += (_parent.lagX - _parent.birds._x) / 5; _parent.lagY += (49 - _parent.lagY) / 12; _parent.birds._y += (_parent.lagY - _parent.birds._y) / 5; _parent.lagRotation += -_parent.lagRotation / 12; _parent.birdRotation += (_parent.lagRotation - _parent.birdRotation) / 5; _parent.birds._rotation = _parent.birdRotation; currentTime = getTimer() - _parent.startTime; if (currentTime < 80000) { if (!_parent.fadeOut && currentTime > 78000) { _parent.fadeOut = true; } _parent.birds.hourglass.topSand.rim._y = 29 + Math.pow((currentTime / 80000) * 5.099019513592785, 2); _parent.birds.hourglass.topSand.rim._height = 6 - Math.pow((currentTime / 80000) * 2.23606797749979, 2); _parent.birds.hourglass.topSand.sandMask._height = 30 - Math.pow((currentTime / 80000) * 5.385164807134504, 2); _parent.birds.hourglass.bottomSand.rim._y = 78 + Math.pow(((80000 - currentTime) / 80000) * 4.795831523312719, 2); _parent.birds.hourglass.bottomSand.sandMask._height = 27 - Math.pow(((80000 - currentTime) / 80000) * 5.099019513592785, 2); } else { if (!_parent.timeOut) { _parent.timeOut = true; if (!_parent.transition) { _parent.timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; _parent.recordClickArea.gotoAndStop(2); Mouse.show(); stopWheel(); _root.startBlankWheel(); } } } rim._rotation += 2 / slow; barrelFace._rotation += 2 / slow; barrelRotation += 2 / slow; maze.mazeMask._rotation += 2 / slow; if (!solved) { maze.ballExit._rotation += 2 / slow; maze.ballExit.ball._rotation = -maze.ballExit._rotation; } maze.mazeShadow._rotation += 2 / slow; destFrame = (outsideFront._currentframe + 2 / slow - 1) % (outsideFront._totalframes - 1) + 1; outsideFront.gotoAndStop(destFrame); outsideBack.gotoAndStop(destFrame); insidePanel.gotoAndStop(destFrame); hills._x -= 1 / slow; if (hills._x < -858) { hills._x += 858; } else { if (hills._x > 0) { hills._x -= 858; } } sky._x -= 0.5 / slow; if (sky._x < -858) { sky._x += 858; } else { if (sky._x > 0) { sky._x -= 858; } } hillMask.grassDiag.grass._x -= 4 / slow; if (hillMask.grassDiag.grass._x > -11) { hillMask.grassDiag.grass._x -= 218; } else { if (hillMask.grassDiag.grass._x < -207) { hillMask.grassDiag.grass._x += 218; } } hillMask.grassHoriz.grass._x -= 4 / slow; if (hillMask.grassHoriz.grass._x > 0) { hillMask.grassHoriz.grass._x -= 175; } else { if (hillMask.grassHoriz.grass._x < -175) { hillMask.grassHoriz.grass._x += 175; } } hillSlanted.hill._x -= 4 / slow; if (hillSlanted.hill._x < -828) { hillSlanted.hill._x += 828; } else { if (hillSlanted.hill._x > 0) { hillSlanted.hill._x -= 828; } } if (ballAccel > accelDest[level - 1]) { ballAccel /= 2; } else { if (ballAccel < accelDest[level - 1]) { ballAccel = accelDest[level - 1]; } } if (!locked && Math.round(ballRotationLag) % 360 == holePos[level - 1]) { locked = true; lockPos = Math.floor(ballRotationLag / 360) * 360 + holePos[level - 1]; maze.ball.ballBounce.gotoAndPlay('toRing' + (level + 1)); } else { if (!locked) { yInc = ((barrelRotation - ballRotationLag) / ballAccel + yInc) / bounce[level - 1]; if (yInc > 28) { yInc = 28; } else { if (yInc < -28) { yInc = -28; } } hitVolume = Math.abs(yInc) * 6 + 15; if (yInc > 0 && Math.round(ballRotationLag) % 360 >= posBarrier[level - 1] && Math.round(ballRotationLag) % 360 <= posBarrier[level - 1] + 30) { if (!caught) { _parent.balldrop3.balldrop3.setVolume(hitVolume); _parent.balldrop3.balldrop3.start(0); ballRotationLag = Math.floor(ballRotationLag / 360) * 360 + posBarrier[level - 1]; caught = true; } yInc = 0; if (Math.round(barrelRotation) % 360 >= (posBarrier[level - 1] + 180 + 360) % 360 && Math.round(barrelRotation) % 360 <= (posBarrier[level - 1] + 200 + 360) % 360) { ballAccel = 50000 * (level + 1); ballRotationLag += 360; caught = false; } } else { if (yInc < 0 && Math.round(ballRotationLag) % 360 > negBarrier[level - 1] - 30 && Math.round(ballRotationLag) % 360 <= negBarrier[level - 1]) { if (!caught) { _parent.balldrop2.balldrop2.setVolume(hitVolume); _parent.balldrop2.balldrop2.start(0); ballRotationLag = Math.floor(ballRotationLag / 360) * 360 + negBarrier[level - 1]; caught = true; } yInc = 0; if (Math.round(barrelRotation) % 360 <= (negBarrier[level - 1] + 180 + 360) % 360 && Math.round(barrelRotation) % 360 >= (negBarrier[level - 1] + 160 + 360) % 360) { ballAccel = 50000 * (level + 1); ballRotationLag -= 360; caught = false; } } else { caught = false; } } ballRotationLag += yInc; if (Math.abs(ballRotationLag % 360 - holePos[level - 1]) <= 1.5) { ballRotationLag = Math.floor(ballRotationLag / 360) * 360 + holePos[level - 1]; } maze.ball._rotation = barrelRotation; maze.ball.ballBounce._rotation = -ballRotationLag; } else { maze.ball._rotation = barrelRotation; maze.ball.ballBounce._rotation = -lockPos; } } }; _root.customCursor._xscale = 105; _root.customCursor._yscale = 105; _root.customCursor._y = _root._ymouse; _root.customCursor._x = _root._xmouse; xDist = center._x - _root.customCursor._x; yDist = center._y - _root.customCursor._y; angle = (Math.atan2(yDist, xDist) / Math.PI) * 180; _root.customCursor._rotation = angle; } } movieClip 396 { } movieClip 397 { } movieClip 398 { } movieClip 399 { } movieClip 402 { } movieClip 403 { } movieClip 404 { } movieClip 405 { } movieClip 406 { } movieClip 407 { } movieClip 408 { } movieClip 409 { } movieClip 410 { } movieClip 413 { } movieClip 414 { } movieClip 415 { } movieClip 416 { } movieClip 417 { frame 1 { stop(); } frame 2 { _parent.audioTrans.chap1timesup.start(); } frame 70 { _root.chap2Trans.gotoAndPlay('intro'); } frame 79 { _parent.gotoAndStop(1); } } movieClip 418 { frame 1 { stop(); } } movieClip 420 { } movieClip 423 { frame 1 { clearedTxt = Math.round(_parent.chap1aTime / 1000) + ' seconds'; } } movieClip 426 { } movieClip 429 { } movieClip 430 { } movieClip 431 { } movieClip 432 { } movieClip 433 { } movieClip 435 { } movieClip 436 { } movieClip 437 { } movieClip 439 { } movieClip 441 { } movieClip 442 { } movieClip 443 { } movieClip 444 { } movieClip 445 { } movieClip 446 { } movieClip 450 { } movieClip 451 { } movieClip 452 { } movieClip 454 { frame 1 { function stopWheel() { com.pixelbreaker.ui.MouseWheel.removeListener(_root.mouseListener); } function chapterComplete() { solved = true; if (!_parent.timeOut) { _parent.chap1bTime = currentTime - _parent.chap1aTime; _parent.transition = true; _parent.gotoAndPlay('chap1c'); } } function rotateObj(inc) { rim._rotation += inc; maze.mazeMask._rotation += inc; if (!solved) { maze.ballExit._rotation += inc; maze.ballExit.ball._rotation = -maze.ballExit._rotation; } barrelRotation += inc; maze.mazeShadow._rotation += inc; barrelFace._rotation += inc; hills._x -= 0.5 * inc; smTreesSlanted.trees._x -= 1 * inc; treesSlanted.trees._x -= 1.5 * inc; hillSlanted.hill._x -= 2 * inc; hillMask.grassHoriz.grass._x -= 2 * inc; hillMask.grassDiag.grass._x -= 2 * inc; sky._x -= 0.25 * inc; destFrame = (outsideFront._totalframes + outsideFront._currentframe + inc - 1) % outsideFront._totalframes + 1; outsideFront.gotoAndStop(destFrame); outsideBack.gotoAndStop(destFrame); insidePanel.gotoAndStop(destFrame); } function nextLevel() { if (entraceType == 'reg') { level = holeExit[level - 1]; } else { if (entraceType == 'neg') { level = negExit[level - 1]; } else { if (entraceType == 'alt') { level = altHoleExit[level - 1]; } } } yInc = 0; ballAccel = 500; locked = false; } pressedDown = false; justUp = false; slow = 1; i = 0; bounce = new Array(1.05, 1.1, 1.15, 1.1, 1.15, 1.2, 1.2); accelDest = new Array(2.5, 5, 7.5, 5, 7.5, 10, 10); holePos = new Array(94, 205, 999, 313, 265, 999, 180); holeExit = new Array(2, 3, 0, 5, 7, 0, 8); holeExitRing = new Array(2, 3, 0, 3, 4, 0, 5); altHolePos = new Array(999, 999, 999, 12, 340, 999, 999); altHoleExit = new Array(0, 0, 0, 3, 6, 0, 0); altHoleExitRing = new Array(0, 0, 0, 3, 4, 0, 0); posBarrier = new Array(150, 225, 222, 36, 355, 108, 313); negBarrier = new Array(230, 70, 12, 260, 245, 340, 150); negExit = new Array(0, 0, 4, 0, 0, 5, 0); negExitRing = new Array(0, 0, 2, 0, 0, 3, 0); level = 1; maze.ballExit._rotation = -holePos[holePos.length - 1]; yInc = 0; barrelRotation = 3600; ballRotationLag = 3600; ballAccel = 2.5; levelDirection = 1; entraceType = 'reg'; solved = false; chapDest = 'chap1c'; leftCaught = false; rightCaught = false; _root.mouseListener.onMouseWheel = function (delta) { if (delta < 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch02.start(); if (_root.mySound.slow.position > 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 - 1); } else { _root.mySound.slow.start(_root.mySound.slow.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBackSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch02.start(); if (_root.mySound.normal.position > 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 - 1); } else { _root.mySound.normal.start(_root.mySound.normal.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBack'); } _root.customCursor.gotoAndPlay('down'); _parent.lagX = 153 + 50 / slow; _parent.lagY = 49 - 37 / slow; _parent.lagRotation = -15 / slow; } if (delta > 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch01.start(); if (_root.mySound.slow.position < _root.mySound.slow.duration - 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 + 1); } else { _root.mySound.slow.start(1); } scratchControl.gotoAndPlay('scratchForwardSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch01.start(); if (_root.mySound.normal.position < _root.mySound.normal.duration - 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 + 1); } else { _root.mySound.normal.start(1); } scratchControl.gotoAndPlay('scratchForward'); } _root.customCursor.gotoAndPlay('up'); _parent.lagX = 153 - 40 / slow; _parent.lagY = 49 + 30 / slow; _parent.lagRotation = 10 / slow; } }; com.pixelbreaker.ui.MouseWheel.addListener(_root.mouseListener); actions.onEnterFrame = function () { if (_parent.fadeOut && _root.mySound.normal.getVolume() > 0) { _root.mySound.normal.setVolume(_root.mySound.normal.getVolume() - 2); _parent.myMusic.chap1.setVolume(_parent.myMusic.chap1.getVolume() - 2); } else { if (_root.mySound.normal.getVolume() == 0) { _parent.fadeOut = false; _root.mySound.normal.stop(); _root.mySound.slow.stop(); _root.mySound.normal.setVolume(100); _parent.myMusic.chap1.stop(); _parent.myMusic.chap1.setVolume(100); Mouse.show(); _root.customCursor._visible = false; } } _parent.lagX += (153 - _parent.lagX) / 12; _parent.birds._x += (_parent.lagX - _parent.birds._x) / 5; _parent.lagY += (49 - _parent.lagY) / 12; _parent.birds._y += (_parent.lagY - _parent.birds._y) / 5; _parent.lagRotation += -_parent.lagRotation / 12; _parent.birdRotation += (_parent.lagRotation - _parent.birdRotation) / 5; _parent.birds._rotation = _parent.birdRotation; currentTime = getTimer() - _parent.startTime; if (currentTime < 80000) { if (!_parent.fadeOut && currentTime > 78000) { _parent.fadeOut = true; } _parent.birds.hourglass.topSand.rim._y = 29 + Math.pow((currentTime / 80000) * 5.099019513592785, 2); _parent.birds.hourglass.topSand.rim._height = 6 - Math.pow((currentTime / 80000) * 2.23606797749979, 2); _parent.birds.hourglass.topSand.sandMask._height = 30 - Math.pow((currentTime / 80000) * 5.385164807134504, 2); _parent.birds.hourglass.bottomSand.rim._y = 78 + Math.pow(((80000 - currentTime) / 80000) * 4.795831523312719, 2); _parent.birds.hourglass.bottomSand.sandMask._height = 27 - Math.pow(((80000 - currentTime) / 80000) * 5.099019513592785, 2); } else { if (!_parent.timeOut) { _parent.timeOut = true; if (!_parent.transition) { _parent.timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; _parent.recordClickArea.gotoAndStop(2); Mouse.show(); stopWheel(); _root.startBlankWheel(); } } } rim._rotation += 2 / slow; barrelFace._rotation += 2 / slow; barrelRotation += 2 / slow; maze.mazeMask._rotation += 2 / slow; if (!solved) { maze.ballExit._rotation += 2 / slow; maze.ballExit.ball._rotation = -maze.ballExit._rotation; } maze.mazeShadow._rotation += 2 / slow; destFrame = (outsideFront._currentframe + 2 / slow - 1) % (outsideFront._totalframes - 1) + 1; outsideFront.gotoAndStop(destFrame); outsideBack.gotoAndStop(destFrame); insidePanel.gotoAndStop(destFrame); hills._x -= 1 / slow; if (hills._x < -858) { hills._x += 858; } else { if (hills._x > 0) { hills._x -= 858; } } sky._x -= 0.5 / slow; if (sky._x < -858) { sky._x += 858; } else { if (sky._x > 0) { sky._x -= 858; } } hillMask.grassDiag.grass._x -= 4 / slow; if (hillMask.grassDiag.grass._x > -11) { hillMask.grassDiag.grass._x -= 218; } else { if (hillMask.grassDiag.grass._x < -207) { hillMask.grassDiag.grass._x += 218; } } hillMask.grassHoriz.grass._x -= 4 / slow; if (hillMask.grassHoriz.grass._x > 0) { hillMask.grassHoriz.grass._x -= 175; } else { if (hillMask.grassHoriz.grass._x < -175) { hillMask.grassHoriz.grass._x += 175; } } treesSlanted.trees._x -= 3 / slow; if (treesSlanted.trees._x < -828) { treesSlanted.trees._x += 828; } else { if (treesSlanted.trees._x > 0) { treesSlanted.trees._x -= 828; } } smTreesSlanted.trees._x -= 2 / slow; if (smTreesSlanted.trees._x < -828) { smTreesSlanted.trees._x += 828; } else { if (smTreesSlanted.trees._x > 0) { smTreesSlanted.trees._x -= 828; } } hillSlanted.hill._x -= 4 / slow; if (hillSlanted.hill._x < -828) { hillSlanted.hill._x += 828; } else { if (hillSlanted.hill._x > 0) { hillSlanted.hill._x -= 828; } } if (ballAccel > accelDest[level - 1]) { ballAccel /= 2; } else { if (ballAccel < accelDest[level - 1]) { ballAccel = accelDest[level - 1]; } } if (!locked && Math.round(ballRotationLag) % 360 == altHolePos[level - 1] && barrelRotation % 360 >= altHolePos[level - 1] - 60 && barrelRotation % 360 <= altHolePos[level - 1] + 60) { locked = true; ballRotationLag = Math.floor(ballRotationLag / 360) * 360 + altHolePos[level - 1]; entraceType = 'alt'; maze.ball.ballBounce.gotoAndPlay('toRing' + altHoleExitRing[level - 1]); } else { if (!locked && Math.round(ballRotationLag) % 360 == holePos[level - 1] && barrelRotation % 360 >= holePos[level - 1] - 60 && barrelRotation % 360 <= holePos[level - 1] + 60) { locked = true; ballRotationLag = Math.floor(ballRotationLag / 360) * 360 + holePos[level - 1]; entraceType = 'reg'; maze.ball.ballBounce.gotoAndPlay('toRing' + holeExitRing[level - 1]); } else { if (!locked) { yInc = ((barrelRotation - ballRotationLag) / ballAccel + yInc) / bounce[level - 1]; if (yInc > 28) { yInc = 28; } else { if (yInc < -28) { yInc = -28; } } hitVolume = Math.abs(yInc) * 6 + 15; if (!leftCaught && !rightCaught) { ballRotationLag += yInc; } if (negBarrier[level - 1] < 30) { rightCatchCondition = yInc <= 0 && (ballRotationLag % 360 >= 0 && ballRotationLag % 360 <= negBarrier[level - 1] || ballRotationLag % 360 >= 330 + negBarrier[level - 1] && ballRotationLag % 360 <= 360); rightReleaseCondition = rightCaught && barrelRotation % 360 <= negBarrier[level - 1] + 180 && barrelRotation % 360 >= negBarrier[level - 1] + 180 - 20; rightExitCondition = rightCaught && barrelRotation % 360 >= (negBarrier[level - 1] + 180) % 360 && barrelRotation % 360 <= (negBarrier[level - 1] + 180 + 60 + 360) % 360; } else { rightCatchCondition = yInc <= 0 && ballRotationLag % 360 >= negBarrier[level - 1] - 30 && ballRotationLag % 360 <= negBarrier[level - 1]; rightReleaseCondition = rightCaught && barrelRotation % 360 <= (negBarrier[level - 1] + 180 + 360) % 360 && barrelRotation % 360 >= (negBarrier[level - 1] + 180 - 20 + 360) % 360; rightExitCondition = rightCaught && barrelRotation % 360 >= (negBarrier[level - 1] + 180) % 360 && barrelRotation % 360 <= (negBarrier[level - 1] + 180 + 60 + 360) % 360; } if (posBarrier[level - 1] > 330) { leftCatchCondition = yInc >= 0 && (ballRotationLag % 360 >= posBarrier[level - 1] && ballRotationLag % 360 <= 360 || ballRotationLag % 360 >= 0 && ballRotationLag % 360 <= (posBarrier[level - 1] + 30) % 360); leftReleaseCondition = leftCaught && barrelRotation % 360 >= (posBarrier[level - 1] + 180 + 360) % 360 && barrelRotation % 360 <= (posBarrier[level - 1] + 180 + 20 + 360) % 360; } else { leftCatchCondition = yInc >= 0 && ballRotationLag % 360 >= posBarrier[level - 1] && ballRotationLag % 360 <= posBarrier[level - 1] + 30; leftReleaseCondition = leftCaught && barrelRotation % 360 >= (posBarrier[level - 1] + 180 + 360) % 360 && barrelRotation % 360 <= (posBarrier[level - 1] + 180 + 20 + 360) % 360; } if (leftCatchCondition) { yInc = 0; if (!leftCaught) { _parent.balldrop3.balldrop3.setVolume(hitVolume); _parent.balldrop3.balldrop3.start(0); if (posBarrier[level - 1] > 330) { ballRotationLag = Math.round(ballRotationLag / 360) * 360 + posBarrier[level - 1] - 360; } else { ballRotationLag = Math.floor(ballRotationLag / 360) * 360 + posBarrier[level - 1]; } leftCaught = true; } else { if (leftReleaseCondition) { ballAccel = 50000 * (level + 1); ballRotationLag += 360; leftCaught = false; } } } else { if (rightCatchCondition) { yInc = 0; if (!rightCaught) { _parent.balldrop2.balldrop2.setVolume(hitVolume); _parent.balldrop2.balldrop2.start(0); if (negBarrier[level - 1] < 180) { ballRotationLag = Math.round(ballRotationLag / 360) * 360 + negBarrier[level - 1]; } else { ballRotationLag = Math.floor(ballRotationLag / 360) * 360 + negBarrier[level - 1]; } rightCaught = true; } else { if (rightReleaseCondition) { ballAccel = 50000 * (level + 1); ballRotationLag -= 360; rightCaught = false; } else { if (negExit[level - 1] > 0 && rightExitCondition) { locked = true; rightCaught = false; entraceType = 'neg'; maze.ball.ballBounce.gotoAndPlay('upToRing' + negExitRing[level - 1]); } } } } else { if (rightCaught && barrelRotation % 360 >= negBarrier[level - 1] % 360 && barrelRotation % 360 <= (negBarrier[level - 1] + 90) % 360 - ((negBarrier[level - 1] + 90) % 360 - negBarrier[level - 1] % 360 - 90)) { rightCaught = false; } else { if (leftCaught && barrelRotation % 360 <= posBarrier[level - 1] % 360 && barrelRotation % 360 >= (posBarrier[level - 1] - 90) % 360) { leftCaught = false; } } } } if (Math.abs(ballRotationLag % 360 - altHolePos[level - 1]) <= 1.5 && barrelRotation % 360 >= altHolePos[level - 1] - 60 && barrelRotation % 360 <= altHolePos[level - 1] + 60) { ballRotationLag = Math.floor(ballRotationLag / 360) * 360 + altHolePos[level - 1]; } else { if (Math.abs(ballRotationLag % 360 - holePos[level - 1]) <= 1.5 && barrelRotation % 360 >= holePos[level - 1] - 60 && barrelRotation % 360 <= holePos[level - 1] + 60) { ballRotationLag = Math.floor(ballRotationLag / 360) * 360 + holePos[level - 1]; } } } } } maze.ball._rotation = barrelRotation; maze.ball.ballBounce._rotation = -ballRotationLag; }; } } movieClip 457 { frame 1 { clearedTxt = Math.round(_parent.chap1bTime / 1000) + ' seconds'; } } movieClip 460 { } movieClip 464 { } movieClip 465 { } movieClip 469 { } movieClip 470 { } movieClip 471 { } movieClip 474 { } movieClip 475 { } movieClip 478 { } movieClip 479 { } movieClip 481 { } movieClip 482 { } movieClip 484 { } movieClip 486 { } movieClip 487 { frame 1 { stop(); } } movieClip 488 { } movieClip 490 { frame 1 { function stopWheel() { com.pixelbreaker.ui.MouseWheel.removeListener(_root.mouseListener); } function chapterComplete() { solved = true; if (!_parent.timeOut) { _parent.chap1cTime = currentTime - _parent.chap1aTime - _parent.chap1bTime; _parent.transition = true; _parent.gotoAndPlay('outro'); } } function rotateObj(inc) { i = 1; while (i <= Math.abs(inc) - 1) { houseLargeInc += 0.0006 * inc / Math.abs(inc); houseMediumInc += 0.0003 * inc / Math.abs(inc); houseSmallInc += 0.00015 * inc / Math.abs(inc); houses.large._xscale += (0.16 + houseLargeInc) * inc / Math.abs(inc); houses.large._yscale += (0.16 + houseLargeInc) * inc / Math.abs(inc); houses.medium._xscale += (0.08 + houseMediumInc) * inc / Math.abs(inc); houses.medium._yscale += (0.08 + houseMediumInc) * inc / Math.abs(inc); houses.small._xscale += (0.04 + houseSmallInc) * inc / Math.abs(inc); houses.small._yscale += (0.04 + houseSmallInc) * inc / Math.abs(inc); ++i; } rim._rotation += inc; maze.mazeMask._rotation += inc; maze.ballMask._rotation += inc; maze.warps._rotation += inc; if (!solved) { maze.ballExit._rotation += inc; maze.ballExit.ball._rotation = -maze.ballExit._rotation; } barrelRotation += inc; maze.mazeShadow._rotation += inc; barrelFace._rotation += inc; hills._x -= 0.5 * inc; hillSlanted.hill._x -= 2 * inc; hillMask.grassHoriz.grass._x -= 2 * inc; hillMask.grassDiag.grass._x -= 2 * inc; sky._x -= 0.25 * inc; bricksSlanted.bricks._x -= 1.9 * inc; destFrame = (outsideFront._totalframes + outsideFront._currentframe + inc - 1) % outsideFront._totalframes + 1; outsideFront.gotoAndStop(destFrame); outsideBack.gotoAndStop(destFrame); insidePanel.gotoAndStop(destFrame); } function nextLevel() { if (entraceType == 'reg') { currentLevel = holeExit[currentLevel - 1]; } else { if (entraceType == 'neg') { currentLevel = negExit[currentLevel - 1]; } else { if (entraceType == 'alt') { currentLevel = altHoleExit[currentLevel - 1]; } } } yInc = 0; ballAccel = 500; locked = false; } pressedDown = false; justUp = false; slow = 1; i = 0; bounce = new Array(1.05, 1.1, 1.15, 1.2, 1.15, 1.2, 1.15, 1.2); accelDest = new Array(2.5, 5, 7.5, 10, 7.5, 10, 7.5, 10); holePos = new Array(91, 243, 211, 999, 31, 999, 144, 296); holeExit = new Array(2, 3, 4, 0, 6, 0, 8, 9); holeExitRing = new Array(2, 3, 4, 0, 4, 0, 4, 5); altHolePos = new Array(999, 999, 999, 999, 65, 999, 322, 999); altHoleExit = new Array(0, 0, 0, 0, 4, 0, 6, 0); altHoleExitRing = new Array(0, 0, 0, 0, 4, 0, 4, 0); posBarrier = new Array(146, 342, 265, 231, 96, 45, 155, 296); negBarrier = new Array(215, 37, 177, 65, 12, 322, 303, 122); negExit = new Array(0, 0, 0, 5, 0, 7, 0, 0); negExitRing = new Array(0, 0, 0, 3, 0, 3, 0, 0); swapPath = new Array(0, 0, 0, 0, 0, -2, 1, 0); currentLevel = 1; maze.ballExit._rotation = -holePos[holePos.length - 1]; yInc = 0; houseLargeInc = 0; houseMediumInc = 0; houseSmallInc = 0; barrelRotation = 3600; ballRotationLag = 3600; ballAccel = 2.5; levelDirection = 1; entraceType = 'reg'; solved = false; leftCaught = false; rightCaught = false; _root.mouseListener.onMouseWheel = function (delta) { if (delta < 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch02.start(); if (_root.mySound.slow.position > 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 - 1); } else { _root.mySound.slow.start(_root.mySound.slow.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBackSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch02.start(); if (_root.mySound.normal.position > 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 - 1); } else { _root.mySound.normal.start(_root.mySound.normal.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBack'); } _root.customCursor.gotoAndPlay('down'); _parent.lagX = 153 + 50 / slow; _parent.lagY = 49 - 37 / slow; _parent.lagRotation = -15 / slow; } if (delta > 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch01.start(); if (_root.mySound.slow.position < _root.mySound.slow.duration - 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 + 1); } else { _root.mySound.slow.start(1); } scratchControl.gotoAndPlay('scratchForwardSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch01.start(); if (_root.mySound.normal.position < _root.mySound.normal.duration - 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 + 1); } else { _root.mySound.normal.start(1); } scratchControl.gotoAndPlay('scratchForward'); } _root.customCursor.gotoAndPlay('up'); _parent.lagX = 153 - 40 / slow; _parent.lagY = 49 + 30 / slow; _parent.lagRotation = 10 / slow; } }; com.pixelbreaker.ui.MouseWheel.addListener(_root.mouseListener); actions.onEnterFrame = function () { if (_parent.fadeOut && _root.mySound.normal.getVolume() > 0) { _root.mySound.normal.setVolume(_root.mySound.normal.getVolume() - 2); _parent.myMusic.chap1.setVolume(_parent.myMusic.chap1.getVolume() - 2); } else { if (_root.mySound.normal.getVolume() == 0) { _parent.fadeOut = false; _root.mySound.normal.stop(); _root.mySound.slow.stop(); _root.mySound.normal.setVolume(100); _parent.myMusic.chap1.stop(); _parent.myMusic.chap1.setVolume(100); Mouse.show(); _root.customCursor._visible = false; } } if (houses.large._xscale >= 199.5) { houses.large._xscale = 100; houses.large._yscale = 100; houses.medium._xscale = 50; houses.medium._yscale = 50; houses.small._xscale = 25; houses.small._yscale = 25; houseLargeInc = 0; houseMediumInc = 0; houseSmallInc = 0; } else { if (houses.large._xscale < 100) { houses.large._xscale = 200; houses.large._yscale = 200; houses.medium._xscale = 100; houses.medium._yscale = 100; houses.small._xscale = 50; houses.small._yscale = 50; houseLargeInc = 0.264000000000001; houseMediumInc = 0.132; houseSmallInc = 0.0660000000000002; } else { houseLargeInc += 0.0012 / slow; houseMediumInc += 0.0006 / slow; houseSmallInc += 0.0003 / slow; houses.large._xscale += 0.32 / slow + houseLargeInc; houses.large._yscale += 0.32 / slow + houseLargeInc; houses.medium._xscale += 0.16 / slow + houseMediumInc; houses.medium._yscale += 0.16 / slow + houseMediumInc; houses.small._xscale += 0.08 / slow + houseSmallInc; houses.small._yscale += 0.08 / slow + houseSmallInc; } } _parent.lagX += (153 - _parent.lagX) / 12; _parent.birds._x += (_parent.lagX - _parent.birds._x) / 5; _parent.lagY += (49 - _parent.lagY) / 12; _parent.birds._y += (_parent.lagY - _parent.birds._y) / 5; _parent.lagRotation += -_parent.lagRotation / 12; _parent.birdRotation += (_parent.lagRotation - _parent.birdRotation) / 5; _parent.birds._rotation = _parent.birdRotation; currentTime = getTimer() - _parent.startTime; if (currentTime < 80000) { if (!_parent.fadeOut && !solved && currentTime > 78000) { _parent.fadeOut = true; } _parent.birds.hourglass.topSand.rim._y = 29 + Math.pow((currentTime / 80000) * 5.099019513592785, 2); _parent.birds.hourglass.topSand.rim._height = 6 - Math.pow((currentTime / 80000) * 2.23606797749979, 2); _parent.birds.hourglass.topSand.sandMask._height = 30 - Math.pow((currentTime / 80000) * 5.385164807134504, 2); _parent.birds.hourglass.bottomSand.rim._y = 78 + Math.pow(((80000 - currentTime) / 80000) * 4.795831523312719, 2); _parent.birds.hourglass.bottomSand.sandMask._height = 27 - Math.pow(((80000 - currentTime) / 80000) * 5.099019513592785, 2); } else { if (!_parent.timeOut) { _parent.timeOut = true; if (!_parent.transition) { _parent.timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; _parent.recordClickArea.gotoAndStop(2); Mouse.show(); stopWheel(); _root.startBlankWheel(); } } } rim._rotation += 2 / slow; barrelFace._rotation += 2 / slow; barrelRotation += 2 / slow; maze.mazeMask._rotation += 2 / slow; maze.ballMask._rotation += 2 / slow; maze.warps._rotation += 2 / slow; if (!solved) { maze.ballExit._rotation += 2 / slow; maze.ballExit.ball._rotation = -maze.ballExit._rotation; } maze.mazeShadow._rotation += 2 / slow; destFrame = (outsideFront._currentframe + 2 / slow - 1) % (outsideFront._totalframes - 1) + 1; outsideFront.gotoAndStop(destFrame); outsideBack.gotoAndStop(destFrame); insidePanel.gotoAndStop(destFrame); hills._x -= 1 / slow; if (hills._x < -858) { hills._x += 858; } else { if (hills._x > 0) { hills._x -= 858; } } sky._x -= 0.5 / slow; if (sky._x < -858) { sky._x += 858; } else { if (sky._x > 0) { sky._x -= 858; } } hillMask.grassDiag.grass._x -= 4 / slow; if (hillMask.grassDiag.grass._x > -11) { hillMask.grassDiag.grass._x -= 218; } else { if (hillMask.grassDiag.grass._x < -207) { hillMask.grassDiag.grass._x += 218; } } hillMask.grassHoriz.grass._x -= 4 / slow; if (hillMask.grassHoriz.grass._x > 0) { hillMask.grassHoriz.grass._x -= 175; } else { if (hillMask.grassHoriz.grass._x < -175) { hillMask.grassHoriz.grass._x += 175; } } bricksSlanted.bricks._x -= 3.8 / slow; if (bricksSlanted.bricks._x < -828) { bricksSlanted.bricks._x += 828; } else { if (bricksSlanted.bricks._x > 0) { bricksSlanted.bricks._x -= 828; } } treesSlanted.trees._x -= 3 / slow; if (treesSlanted.trees._x < -828) { treesSlanted.trees._x += 828; } else { if (treesSlanted.trees._x > 0) { treesSlanted.trees._x -= 828; } } smTreesSlanted.trees._x -= 2 / slow; if (smTreesSlanted.trees._x < -828) { smTreesSlanted.trees._x += 828; } else { if (smTreesSlanted.trees._x > 0) { smTreesSlanted.trees._x -= 828; } } hillSlanted.hill._x -= 4 / slow; if (hillSlanted.hill._x < -828) { hillSlanted.hill._x += 828; } else { if (hillSlanted.hill._x > 0) { hillSlanted.hill._x -= 828; } } if (ballAccel > accelDest[currentLevel - 1]) { ballAccel /= 2; } else { if (ballAccel < accelDest[currentLevel - 1]) { ballAccel = accelDest[currentLevel - 1]; } } if (!locked && Math.round(ballRotationLag) % 360 == altHolePos[currentLevel - 1] && barrelRotation % 360 >= altHolePos[currentLevel - 1] - 60 && barrelRotation % 360 <= altHolePos[currentLevel - 1] + 60) { locked = true; ballRotationLag = Math.floor(ballRotationLag / 360) * 360 + altHolePos[currentLevel - 1]; entraceType = 'alt'; maze.ball.ballBounce.gotoAndPlay('toRing' + altHoleExitRing[currentLevel - 1]); if (swapPath[currentLevel - 1] > 0) { maze.ballMask.gotoAndStop('path' + Math.abs(swapPath[currentLevel - 1])); } } else { if (!locked && Math.round(ballRotationLag) % 360 == holePos[currentLevel - 1] && barrelRotation % 360 >= holePos[currentLevel - 1] - 60 && barrelRotation % 360 <= holePos[currentLevel - 1] + 60) { locked = true; ballRotationLag = Math.floor(ballRotationLag / 360) * 360 + holePos[currentLevel - 1]; entraceType = 'reg'; maze.ball.ballBounce.gotoAndPlay('toRing' + holeExitRing[currentLevel - 1]); } else { if (!locked) { yInc = ((barrelRotation - ballRotationLag) / ballAccel + yInc) / bounce[currentLevel - 1]; if (yInc > 28) { yInc = 28; } else { if (yInc < -28) { yInc = -28; } } hitVolume = Math.abs(yInc) * 6 + 15; if (!leftCaught && !rightCaught) { ballRotationLag += yInc; } if (negBarrier[currentLevel - 1] < 30) { rightCatchCondition = yInc <= 0 && (ballRotationLag % 360 >= 0 && ballRotationLag % 360 <= negBarrier[currentLevel - 1] || ballRotationLag % 360 >= 330 + negBarrier[currentLevel - 1] && ballRotationLag % 360 <= 360); rightReleaseCondition = rightCaught && barrelRotation % 360 <= negBarrier[currentLevel - 1] + 180 && barrelRotation % 360 >= negBarrier[currentLevel - 1] + 180 - 20; rightExitCondition = rightCaught && barrelRotation % 360 >= (negBarrier[currentLevel - 1] + 180) % 360 && barrelRotation % 360 <= (negBarrier[currentLevel - 1] + 180 + 60 + 360) % 360; } else { rightCatchCondition = yInc <= 0 && ballRotationLag % 360 >= negBarrier[currentLevel - 1] - 30 && ballRotationLag % 360 <= negBarrier[currentLevel - 1]; rightReleaseCondition = rightCaught && barrelRotation % 360 <= (negBarrier[currentLevel - 1] + 180 + 360) % 360 && barrelRotation % 360 >= (negBarrier[currentLevel - 1] + 180 - 20 + 360) % 360; rightExitCondition = rightCaught && barrelRotation % 360 >= (negBarrier[currentLevel - 1] + 180) % 360 && barrelRotation % 360 <= (negBarrier[currentLevel - 1] + 180 + 60 + 360) % 360; } if (posBarrier[currentLevel - 1] > 330) { leftCatchCondition = yInc >= 0 && (ballRotationLag % 360 >= posBarrier[currentLevel - 1] && ballRotationLag % 360 <= 360 || ballRotationLag % 360 >= 0 && ballRotationLag % 360 <= (posBarrier[currentLevel - 1] + 30) % 360); leftReleaseCondition = leftCaught && barrelRotation % 360 >= (posBarrier[currentLevel - 1] + 180 + 360) % 360 && barrelRotation % 360 <= (posBarrier[currentLevel - 1] + 180 + 20 + 360) % 360; } else { leftCatchCondition = yInc >= 0 && ballRotationLag % 360 >= posBarrier[currentLevel - 1] && ballRotationLag % 360 <= posBarrier[currentLevel - 1] + 30; leftReleaseCondition = leftCaught && barrelRotation % 360 >= (posBarrier[currentLevel - 1] + 180 + 360) % 360 && barrelRotation % 360 <= (posBarrier[currentLevel - 1] + 180 + 20 + 360) % 360; } if (leftCatchCondition) { yInc = 0; if (!leftCaught) { _parent.balldrop3.balldrop3.setVolume(hitVolume); _parent.balldrop3.balldrop3.start(0); if (posBarrier[currentLevel - 1] > 330) { ballRotationLag = Math.round(ballRotationLag / 360) * 360 + posBarrier[currentLevel - 1] - 360; } else { ballRotationLag = Math.floor(ballRotationLag / 360) * 360 + posBarrier[currentLevel - 1]; } leftCaught = true; } else { if (leftReleaseCondition) { ballAccel = 50000 * (currentLevel + 1); ballRotationLag += 360; leftCaught = false; } } } else { if (rightCatchCondition) { yInc = 0; if (!rightCaught) { _parent.balldrop2.balldrop2.setVolume(hitVolume); _parent.balldrop2.balldrop2.start(0); if (negBarrier[currentLevel - 1] < 180) { ballRotationLag = Math.round(ballRotationLag / 360) * 360 + negBarrier[currentLevel - 1]; } else { ballRotationLag = Math.floor(ballRotationLag / 360) * 360 + negBarrier[currentLevel - 1]; } rightCaught = true; } else { if (rightReleaseCondition) { ballAccel = 50000 * (currentLevel + 1); ballRotationLag -= 360; rightCaught = false; } else { if (negExit[currentLevel - 1] > 0 && rightExitCondition) { locked = true; rightCaught = false; entraceType = 'neg'; maze.ball.ballBounce.gotoAndPlay('upToRing' + negExitRing[currentLevel - 1]); if (swapPath[currentLevel - 1] < 0) { maze.ballMask.gotoAndStop('path' + Math.abs(swapPath[currentLevel - 1])); } } } } } else { if (rightCaught && barrelRotation % 360 >= negBarrier[currentLevel - 1] % 360 && barrelRotation % 360 <= (negBarrier[currentLevel - 1] + 90) % 360 - ((negBarrier[currentLevel - 1] + 90) % 360 - negBarrier[currentLevel - 1] % 360 - 90)) { rightCaught = false; } else { if (leftCaught && barrelRotation % 360 <= posBarrier[currentLevel - 1] % 360 && barrelRotation % 360 >= (posBarrier[currentLevel - 1] - 90) % 360) { leftCaught = false; } } } } if (Math.abs(ballRotationLag % 360 - altHolePos[currentLevel - 1]) <= 1.5 && barrelRotation % 360 >= altHolePos[currentLevel - 1] - 60 && barrelRotation % 360 <= altHolePos[currentLevel - 1] + 60) { ballRotationLag = Math.floor(ballRotationLag / 360) * 360 + altHolePos[currentLevel - 1]; } else { if (Math.abs(ballRotationLag % 360 - holePos[currentLevel - 1]) <= 1.5 && barrelRotation % 360 >= holePos[currentLevel - 1] - 60 && barrelRotation % 360 <= holePos[currentLevel - 1] + 60) { ballRotationLag = Math.floor(ballRotationLag / 360) * 360 + holePos[currentLevel - 1]; } } } } } maze.ball._rotation = barrelRotation; maze.ball.ballBounce._rotation = -ballRotationLag; }; } } movieClip 493 { frame 1 { clearedTxt = Math.round(_parent.chap1cTime / 1000) + ' seconds'; } } movieClip 495 { } movieClip 496 { frame 1 { stop(); } frame 2 { _root.trackingHolder.trackPageview('chap1/easy'); chap1aTime = 0; chap1bTime = 0; chap1cTime = 0; myMusic.chap1 = new Sound(myMusic); myMusic.chap1.attachSound('tomorrow'); balldrop1.balldrop1 = new Sound(balldrop1); balldrop1.balldrop1.attachSound('dropballa'); balldrop2.balldrop2 = new Sound(balldrop2); balldrop2.balldrop2.attachSound('dropballb'); balldrop3.balldrop3 = new Sound(balldrop3); balldrop3.balldrop3.attachSound('dropballc'); balldrop4.balldrop4 = new Sound(balldrop4); balldrop4.balldrop4.attachSound('dropballd'); audioTrans.chap1complete = new Sound(audioTrans); audioTrans.chap1complete.attachSound('chap1_complete'); audioTrans.chap1timesup = new Sound(audioTrans); audioTrans.chap1timesup.attachSound('chap1_timesup'); myMusic.chap1.start(); myMusic.chap1.setVolume(100); startTime = getTimer(); timeOut = false; transition = true; recordClickArea.onRollOver = function () { recordClickArea.useHandCursor = false; Mouse.hide(); _root.customCursor._visible = true; }; recordClickArea.onRollOut = function () { Mouse.show(); _root.customCursor._visible = false; }; recordClickArea.onReleaseOutside = function () { if (recordClickArea._currentframe == 1) { _root.customCursor._xscale = 105; _root.customCursor._yscale = 105; chap.pressedDown = false; _root.mySound.slow.stop(); _root.mySound.normal.start(_root.mySound.slow.position / 1.25 / 1000); chap.justUp = false; chap.slow = 1; } }; recordClickArea.onMouseMove = function () { _root.customCursor._y = _root._ymouse; _root.customCursor._x = _root._xmouse; xDist = chap.center._x - _root.customCursor._x; yDist = chap.center._y - _root.customCursor._y; angle = (Math.atan2(yDist, xDist) / Math.PI) * 180; _root.customCursor._rotation = angle; updateAfterEvent(); }; recordClickArea.onPress = function () { _root.customCursor._xscale = 95; _root.customCursor._yscale = 95; _root.mySound.normal.stop(); _root.mySound.slow.start(_root.mySound.normal.position * 1.25 / 1000); chap.pressedDown = true; chap.slow = 2; }; recordClickArea.onRelease = function () { if (recordClickArea._currentframe == 1) { _root.customCursor._xscale = 105; _root.customCursor._yscale = 105; chap.pressedDown = false; _root.mySound.slow.stop(); _root.mySound.normal.start(_root.mySound.slow.position / 1.25 / 1000); chap.justUp = false; chap.slow = 1; } }; } frame 10 { stop(); transition = false; } frame 11 { _root.trackingHolder.trackPageview('chap1/medium'); } frame 23 { _root.ding.ding.start(0); } frame 96 { chap.stopWheel(); } frame 104 { stop(); transition = false; if (timeOut) { timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; recordClickArea.gotoAndStop(2); Mouse.show(); chap.stopWheel(); _root.startBlankWheel(); } } frame 105 { _root.trackingHolder.trackPageview('chap1/hard'); } frame 117 { _root.ding.ding.start(0); } frame 190 { chap.stopWheel(); } frame 198 { stop(); transition = false; if (timeOut) { timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; recordClickArea.gotoAndStop(2); Mouse.show(); chap.stopWheel(); _root.startBlankWheel(); } } frame 199 { _root.customCursor._visible = false; Mouse.show(); chap.stopWheel(); _root.startBlankWheel(); } frame 211 { _root.ding.ding.start(0); } frame 233 { fadeOut = true; } frame 288 { audioTrans.chap1complete.start(0); } frame 353 { _root.chap2Trans.gotoAndPlay('intro'); } } movieClip 499 { } movieClip 501 { } movieClip 505 { } movieClip 507 { } movieClip 511 { } movieClip 516 { } movieClip 520 { } movieClip 526 { } movieClip 527 { frame 1 { stop(); } frame 11 { stop(); } } movieClip 529 { } movieClip 532 { } movieClip 534 { } movieClip 536 { } movieClip 538 { } movieClip 540 { } // unknown tag 88 length 172 movieClip 549 { } movieClip 550 { } movieClip 552 { } movieClip 554 { } movieClip 556 { } movieClip 558 { } movieClip 559 { } movieClip 561 { } movieClip 563 { } movieClip 565 { } movieClip 566 { } movieClip 570 { } movieClip 572 { } movieClip 574 { } movieClip 576 { } movieClip 577 { } movieClip 579 { } movieClip 581 { } movieClip 582 { } movieClip 583 { } movieClip 584 { } movieClip 587 { } movieClip 589 { } movieClip 591 { } movieClip 593 { } movieClip 594 { frame 1 { stop(); } frame 7 { _parent._parent._parent.safedooropen.safedooropen.start(); } frame 12 { if (!_parent._parent._parent.timeOut) { _parent._parent.chapterComplete(); } } frame 32 { stop(); } } movieClip 595 { frame 1 { stop(); } frame 6 { gotoAndStop(1); } } movieClip 599 { } movieClip 601 { } movieClip 603 { } movieClip 605 { } movieClip 606 { } // unknown tag 88 length 211 movieClip 610 { frame 1 { stop(); } } movieClip 613 { } // unknown tag 88 length 73 movieClip 616 { } movieClip 617 { frame 1 { stop(); circleArrow.gotoAndStop(circleArrow._currentframe); } frame 2 { circleArrow.gotoAndPlay(circleArrow._currentframe + 1); } frame 16 { stop(); } } movieClip 621 { } movieClip 623 { frame 1 { stop(); } } movieClip 627 { } movieClip 628 { } movieClip 630 { } movieClip 631 { frame 1 { stop(); circleArrow.gotoAndStop(circleArrow._currentframe); } frame 2 { circleArrow.gotoAndPlay(circleArrow._currentframe + 1); } frame 16 { stop(); } } movieClip 635 { } movieClip 637 { frame 1 { stop(); } } movieClip 640 { } movieClip 642 { } movieClip 643 { frame 1 { stop(); circleArrow.gotoAndStop(circleArrow._currentframe); } frame 2 { circleArrow.gotoAndPlay(circleArrow._currentframe + 1); } frame 16 { stop(); } } movieClip 648 { } movieClip 649 { } movieClip 650 { } movieClip 657 { } movieClip 659 { } movieClip 663 { } movieClip 664 { } movieClip 666 { } movieClip 667 { } movieClip 669 { } movieClip 670 { } movieClip 672 { } movieClip 673 { } movieClip 674 { } movieClip 677 { } movieClip 678 { } movieClip 679 { } movieClip 680 { } movieClip 681 { } movieClip 682 { } movieClip 683 { } movieClip 684 { } movieClip 685 { } movieClip 686 { } movieClip 690 { } movieClip 692 { } movieClip 694 { } movieClip 696 { } movieClip 698 { } movieClip 700 { } movieClip 702 { } movieClip 703 { frame 1 { stop(); } } movieClip 704 { frame 10 { _parent.frame01.gotoAndPlay('intro'); stop(); } } movieClip 705 { frame 1 { stop(); } frame 5 { _root.rotateObj(-4); } frame 6 { _root.rotateObj(-8); } frame 7 { _root.rotateObj(-16); } frame 8 { _root.rotateObj(-8); } frame 9 { _root.rotateObj(-4); } frame 10 { gotoAndStop(1); } frame 20 { _root.rotateObj(-2); } frame 21 { _root.rotateObj(-4); } frame 22 { _root.rotateObj(-8); } frame 23 { _root.rotateObj(-4); } frame 24 { _root.rotateObj(-2); } frame 25 { gotoAndStop(1); } frame 35 { _root.rotateObj(2); } frame 36 { _root.rotateObj(4); } frame 37 { _root.rotateObj(8); } frame 38 { _root.rotateObj(4); } frame 39 { _root.rotateObj(2); } frame 40 { gotoAndStop(1); } frame 50 { _root.rotateObj(1); } frame 51 { _root.rotateObj(2); } frame 52 { _root.rotateObj(4); } frame 53 { _root.rotateObj(2); } frame 54 { _root.rotateObj(1); } frame 55 { gotoAndStop(1); } } movieClip 706 { frame 1 { function stopWheel() { com.pixelbreaker.ui.MouseWheel.removeListener(_root.mouseListener); } function chapterComplete() { solved = true; if (!_parent.timeOut) { _parent.chap2aTime = currentTime; _parent.transition = true; _parent.gotoAndPlay('chap2b'); } } function rotateObj(inc) { dialRotation += inc; safe.safe.numbers.numbers._rotation += inc; safe.safe.numbersIndent.numbers._rotation += inc; safe.safe.dial.ridges._rotation += inc; } pressedDown = false; justUp = false; slow = 1; i = 0; entered1 = false; entered2 = false; entered3 = false; mistake = false; notches = 6; notchesInc = 360 / notches; variation = random(2) + 1; trace(variation); if (variation == 1) { comboNum1 = 4; comboNum2 = 2; comboNum3 = 3; } else { comboNum1 = 3; comboNum2 = 1; comboNum3 = 2; } frame01.comboNum.gotoAndStop(variation); frame02.comboNum.gotoAndStop(variation); frame03.comboNum.gotoAndStop(variation); dialRotation = 360000 + notchesInc * (notches - comboNum1 + 1); safe.safe.numbers.numbers._rotation += notchesInc * (notches - comboNum1 + 1); safe.safe.numbersIndent.numbers._rotation += notchesInc * (notches - comboNum1 + 1); safe.safe.dial.ridges._rotation += notchesInc * (notches - comboNum1 + 1); destTickRight = dialRotation + notchesInc - 10; destTickLeft = dialRotation + 10; dest1 = Math.ceil(dialRotation / 360) * 360 + (360 - notchesInc * comboNum1); safeOpen = false; _root.stopBlankWheel(); _root.mouseListener.onMouseWheel = function (delta) { if (delta < 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch02.start(); if (_root.mySound.slow.position > 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 - 1); } else { _root.mySound.slow.start(_root.mySound.slow.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBackSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch02.start(); if (_root.mySound.normal.position > 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 - 1); } else { _root.mySound.normal.start(_root.mySound.normal.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBack'); } _root.customCursor.gotoAndPlay('down'); } if (delta > 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch01.start(); if (_root.mySound.slow.position < _root.mySound.slow.duration - 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 + 1); } else { _root.mySound.slow.start(1); } scratchControl.gotoAndPlay('scratchForwardSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch01.start(); if (_root.mySound.normal.position < _root.mySound.normal.duration - 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 + 1); } else { _root.mySound.normal.start(1); } scratchControl.gotoAndPlay('scratchForward'); } _root.customCursor.gotoAndPlay('up'); } }; com.pixelbreaker.ui.MouseWheel.addListener(_root.mouseListener); actions.onEnterFrame = function () { if (_parent.fadeOut && _root.mySound.normal.getVolume() > 0) { _root.mySound.normal.setVolume(_root.mySound.normal.getVolume() - 2); _parent.myMusic.chap2.setVolume(_parent.myMusic.chap2.getVolume() - 2); } else { if (_root.mySound.normal.getVolume() == 0) { _parent.fadeOut = false; _root.mySound.normal.stop(); _root.mySound.slow.stop(); _root.mySound.normal.setVolume(100); _parent.myMusic.chap2.stop(); _parent.myMusic.chap2.setVolume(100); Mouse.show(); _root.customCursor._visible = false; } } dialRotation += 2 / slow; safe.safe.numbers.numbers._rotation += 2 / slow; safe.safe.numbersIndent.numbers._rotation += 2 / slow; safe.safe.dial.ridges._rotation += 2 / slow; if (dialRotation > destTickRight && !safeOpen) { _parent.safetick.safetick.start(); destTickRight += notchesInc; } else { if (dialRotation < destTickRight - notchesInc && !safeOpen) { destTickRight -= notchesInc; } } if (dialRotation < destTickLeft && !safeOpen) { _parent.safetick.safetick.start(); destTickLeft -= notchesInc; } else { if (dialRotation > destTickLeft + notchesInc && !safeOpen) { destTickLeft += notchesInc; } } if (!entered1 && dialRotation < Math.floor(dest1 / 360) * 360 - 360) { dest1 -= 360; } if (!entered1 && dialRotation > dest1) { safe.safe.front.bolt1.gotoAndPlay('unbolt'); _parent.latches.latch1.start(); dest2 = (Math.floor(dialRotation / 360) - 1) * 360 + (360 - notchesInc * comboNum2); frame01.gotoAndPlay('outro'); frame02.gotoAndPlay('intro'); entered1 = true; } if (entered1 && !entered2 && dialRotation > Math.ceil(dest1 / 360) * 360) { safe.gotoAndPlay('reset'); safe.safe.front.bolt1.gotoAndPlay('reset'); _parent.latches.snap.start(); dest1 = Math.floor(dialRotation / 360) * 360 + (360 - notchesInc * comboNum1); frame02.gotoAndPlay('outro'); frame01.gotoAndPlay('intro'); entered1 = false; } if (entered1 && !entered2 && dialRotation < dest2) { safe.safe.front.bolt2.gotoAndPlay('unbolt'); _parent.latches.latch2.start(); dest3 = Math.ceil(dialRotation / 360) * 360 + (360 - notchesInc * comboNum3); frame02.gotoAndPlay('outro'); frame03.gotoAndPlay('intro'); entered2 = true; } if (entered2 && !entered3 && dialRotation < Math.floor(dest2 / 360) * 360) { safe.gotoAndPlay('reset'); safe.safe.front.bolt1.gotoAndPlay('reset'); safe.safe.front.bolt2.gotoAndPlay('reset'); _parent.latches.snap.start(); dest1 = Math.ceil(dialRotation / 360) * 360 + (360 - notchesInc * comboNum1); frame03.gotoAndPlay('outro'); frame01.gotoAndPlay('intro'); entered1 = false; entered2 = false; } if (entered2 && !entered3 && dialRotation > dest3) { safe.safe.front.bolt3.gotoAndPlay('unbolt'); _parent.latches.latch3.start(); safe.safe.gotoAndPlay('open'); entered3 = true; frame03.gotoAndPlay('outro'); safeOpen = true; } currentTime = getTimer() - _parent.startTime; if (currentTime < 80000) { if (!_parent.fadeOut && currentTime > 78000) { _parent.fadeOut = true; } _parent.hourglass.topSand.rim._y = 29 + Math.pow((currentTime / 80000) * 5.099019513592785, 2); _parent.hourglass.topSand.rim._height = 6 - Math.pow((currentTime / 80000) * 2.23606797749979, 2); _parent.hourglass.topSand.sandMask._height = 30 - Math.pow((currentTime / 80000) * 5.385164807134504, 2); _parent.hourglass.bottomSand.rim._y = 78 + Math.pow(((80000 - currentTime) / 80000) * 4.795831523312719, 2); _parent.hourglass.bottomSand.sandMask._height = 27 - Math.pow(((80000 - currentTime) / 80000) * 5.099019513592785, 2); } else { if (!_parent.timeOut) { _parent.timeOut = true; if (!_parent.transition) { _parent.timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; _parent.recordClickArea.gotoAndStop(2); Mouse.show(); stopWheel(); _root.startBlankWheel(); } } } posNeg = (_xmouse - 320) / Math.abs(_xmouse - 320); if (_xmouse < 0) { xmouse = 0; } else { if (_xmouse > 640) { xmouse = 640; } else { xmouse = _xmouse; } } rightHand._x = handInitX + posNeg * 16 - Math.pow(posNeg * 4 - ((xmouse - 320) / 320) * 4, 2) * posNeg; posNeg = (_ymouse - 360) / Math.abs(_ymouse - 360); if (_ymouse < 0) { ymouse = 0; } else { if (_ymouse > 360) { ymouse = 360; } else { ymouse = _ymouse; } } }; _root.customCursor._xscale = 105; _root.customCursor._yscale = 105; _root.customCursor._y = _root._ymouse; _root.customCursor._x = _root._xmouse; xDist = center._x - _root.customCursor._x; yDist = center._y - _root.customCursor._y; angle = (Math.atan2(yDist, xDist) / Math.PI) * 180; _root.customCursor._rotation = angle; } instance of movieClip 686 { onClipEvent (load) { this.gotoAndPlay(180); } } } movieClip 721 { frame 43 { if (!_parent._parent.timeOut) { gotoAndPlay(28); } } frame 60 { stop(); } } movieClip 722 { } movieClip 723 { frame 1 { sandFallMask.gotoAndPlay(12); } } movieClip 725 { } movieClip 726 { frame 1 { stop(); } frame 2 { _parent.audioTrans.chap2timesup.start(); } frame 70 { _root.chap3Trans.gotoAndPlay('intro'); } frame 79 { _parent.gotoAndStop(1); } } movieClip 728 { frame 1 { clearedTxt = Math.round(_parent.chap2aTime / 1000) + ' seconds'; } } movieClip 734 { } movieClip 735 { } movieClip 739 { } movieClip 740 { } movieClip 745 { } movieClip 751 { } movieClip 755 { } movieClip 759 { } movieClip 760 { } movieClip 762 { } movieClip 763 { frame 1 { stop(); } instance of movieClip 686 { onClipEvent (load) { this.gotoAndPlay(180); } } frame 7 { _parent._parent._parent.safedooropen.safedooropen.start(); } frame 12 { if (!_parent._parent._parent.timeOut) { _parent._parent.chapterComplete(); } } frame 32 { stop(); } } movieClip 764 { frame 1 { stop(); } frame 6 { gotoAndStop(1); } } movieClip 765 { frame 20 { _parent.frame01.gotoAndPlay('intro'); stop(); } } movieClip 768 { } // unknown tag 88 length 171 movieClip 772 { } movieClip 774 { frame 1 { stop(); } } movieClip 777 { } movieClip 778 { frame 1 { stop(); } frame 18 { stop(); } } movieClip 781 { frame 1 { stop(); } } movieClip 784 { } movieClip 785 { frame 1 { stop(); } frame 18 { stop(); } } movieClip 788 { frame 1 { stop(); } } movieClip 791 { } movieClip 792 { frame 1 { stop(); } frame 18 { stop(); } } movieClip 794 { frame 1 { function stopWheel() { com.pixelbreaker.ui.MouseWheel.removeListener(_root.mouseListener); } function chapterComplete() { solved = true; if (!_parent.timeOut) { _parent.chap2bTime = currentTime - _parent.chap2aTime; _parent.transition = true; _parent.gotoAndPlay('chap2c'); } } function rotateObj(inc) { dialRotation += inc; safe.safe.numbers.numbers._rotation += inc; safe.safe.numbersIndent.numbers._rotation += inc; safe.safe.dial.ridges._rotation += inc; } pressedDown = false; justUp = false; slow = 1; i = 0; entered1 = false; entered2 = false; entered3 = false; mistake = false; notches = 8; notchesInc = 360 / notches; variation = random(2) + 1; trace(variation); if (variation == 1) { comboNum1 = 6; comboNum2 = 4; comboNum3 = 5; } else { comboNum1 = 5; comboNum2 = 3; comboNum3 = 4; } frame01.comboNum.gotoAndStop(variation); frame02.comboNum.gotoAndStop(variation); frame03.comboNum.gotoAndStop(variation); dialRotation = 360000 + notchesInc * (notches - comboNum1 + 1); safe.safe.numbers.numbers._rotation += notchesInc * (notches - comboNum1 + 1); safe.safe.numbersIndent.numbers._rotation += notchesInc * (notches - comboNum1 + 1); safe.safe.dial.ridges._rotation += notchesInc * (notches - comboNum1 + 1); destTickRight = dialRotation + notchesInc - 10; destTickLeft = dialRotation + 10; dest1 = Math.ceil(dialRotation / 360) * 360 + (360 - notchesInc * comboNum1); safeOpen = false; _root.mouseListener.onMouseWheel = function (delta) { if (delta < 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch02.start(); if (_root.mySound.slow.position > 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 - 1); } else { _root.mySound.slow.start(_root.mySound.slow.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBackSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch02.start(); if (_root.mySound.normal.position > 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 - 1); } else { _root.mySound.normal.start(_root.mySound.normal.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBack'); } _root.customCursor.gotoAndPlay('down'); } if (delta > 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch01.start(); if (_root.mySound.slow.position < _root.mySound.slow.duration - 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 + 1); } else { _root.mySound.slow.start(1); } scratchControl.gotoAndPlay('scratchForwardSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch01.start(); if (_root.mySound.normal.position < _root.mySound.normal.duration - 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 + 1); } else { _root.mySound.normal.start(1); } scratchControl.gotoAndPlay('scratchForward'); } _root.customCursor.gotoAndPlay('up'); } }; com.pixelbreaker.ui.MouseWheel.addListener(_root.mouseListener); actions.onEnterFrame = function () { if (_parent.fadeOut && _root.mySound.normal.getVolume() > 0) { _root.mySound.normal.setVolume(_root.mySound.normal.getVolume() - 2); _parent.myMusic.chap2.setVolume(_parent.myMusic.chap2.getVolume() - 2); } else { if (_root.mySound.normal.getVolume() == 0) { _parent.fadeOut = false; _root.mySound.normal.stop(); _root.mySound.slow.stop(); _root.mySound.normal.setVolume(100); _parent.myMusic.chap2.stop(); _parent.myMusic.chap2.setVolume(100); Mouse.show(); _root.customCursor._visible = false; } } dialRotation += 2 / slow; safe.safe.numbers.numbers._rotation += 2 / slow; safe.safe.numbersIndent.numbers._rotation += 2 / slow; safe.safe.dial.ridges._rotation += 2 / slow; if (dialRotation > destTickRight && !safeOpen) { _parent.safetick.safetick.start(); destTickRight += notchesInc; } else { if (dialRotation < destTickRight - notchesInc && !safeOpen) { destTickRight -= notchesInc; } } if (dialRotation < destTickLeft && !safeOpen) { _parent.safetick.safetick.start(); destTickLeft -= notchesInc; } else { if (dialRotation > destTickLeft + notchesInc && !safeOpen) { destTickLeft += notchesInc; } } if (!entered1 && dialRotation < Math.floor(dest1 / 360) * 360 - 360) { dest1 -= 360; } if (!entered1 && dialRotation > dest1) { safe.safe.front.bolt1.gotoAndPlay('unbolt'); _parent.latches.latch1.start(); dest2 = (Math.floor(dialRotation / 360) - 1) * 360 + (360 - notchesInc * comboNum2); frame01.gotoAndPlay('outro'); frame02.gotoAndPlay('intro'); entered1 = true; } if (entered1 && !entered2 && dialRotation > Math.ceil(dest1 / 360) * 360) { safe.gotoAndPlay('reset'); safe.safe.front.bolt1.gotoAndPlay('reset'); _parent.latches.snap.start(); dest1 = Math.floor(dialRotation / 360) * 360 + (360 - notchesInc * comboNum1); frame02.gotoAndPlay('outro'); frame01.gotoAndPlay('intro'); entered1 = false; } if (entered1 && !entered2 && dialRotation < dest2) { safe.safe.front.bolt2.gotoAndPlay('unbolt'); _parent.latches.latch2.start(); dest3 = Math.ceil(dialRotation / 360) * 360 + (360 - notchesInc * comboNum3); frame02.gotoAndPlay('outro'); frame03.gotoAndPlay('intro'); entered2 = true; } if (entered2 && !entered3 && dialRotation < Math.floor(dest2 / 360) * 360) { safe.gotoAndPlay('reset'); safe.safe.front.bolt1.gotoAndPlay('reset'); safe.safe.front.bolt2.gotoAndPlay('reset'); _parent.latches.snap.start(); dest1 = Math.ceil(dialRotation / 360) * 360 + (360 - notchesInc * comboNum1); frame03.gotoAndPlay('outro'); frame01.gotoAndPlay('intro'); entered1 = false; entered2 = false; } if (entered2 && !entered3 && dialRotation > dest3) { safe.safe.front.bolt3.gotoAndPlay('unbolt'); _parent.latches.latch3.start(); safe.safe.gotoAndPlay('open'); entered3 = true; frame03.gotoAndPlay('outro'); safeOpen = true; } currentTime = getTimer() - _parent.startTime; if (currentTime < 80000) { if (!_parent.fadeOut && currentTime > 78000) { _parent.fadeOut = true; } _parent.hourglass.topSand.rim._y = 29 + Math.pow((currentTime / 80000) * 5.099019513592785, 2); _parent.hourglass.topSand.rim._height = 6 - Math.pow((currentTime / 80000) * 2.23606797749979, 2); _parent.hourglass.topSand.sandMask._height = 30 - Math.pow((currentTime / 80000) * 5.385164807134504, 2); _parent.hourglass.bottomSand.rim._y = 78 + Math.pow(((80000 - currentTime) / 80000) * 4.795831523312719, 2); _parent.hourglass.bottomSand.sandMask._height = 27 - Math.pow(((80000 - currentTime) / 80000) * 5.099019513592785, 2); } else { if (!_parent.timeOut) { _parent.timeOut = true; if (!_parent.transition) { _parent.timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; _parent.recordClickArea.gotoAndStop(2); Mouse.show(); stopWheel(); _root.startBlankWheel(); } } } posNeg = (_xmouse - 320) / Math.abs(_xmouse - 320); if (_xmouse < 0) { xmouse = 0; } else { if (_xmouse > 640) { xmouse = 640; } else { xmouse = _xmouse; } } rightHand._x = handInitX + posNeg * 16 - Math.pow(posNeg * 4 - ((xmouse - 320) / 320) * 4, 2) * posNeg; posNeg = (_ymouse - 360) / Math.abs(_ymouse - 360); if (_ymouse < 0) { ymouse = 0; } else { if (_ymouse > 360) { ymouse = 360; } else { ymouse = _ymouse; } } }; } } movieClip 796 { } movieClip 798 { frame 1 { clearedTxt = Math.round(_parent.chap2bTime / 1000) + ' seconds'; } } movieClip 803 { } movieClip 805 { } movieClip 806 { } movieClip 807 { } movieClip 808 { frame 1 { stop(); } instance of movieClip 806 { onClipEvent (load) { this.gotoAndPlay(50); } } instance of movieClip 807 { onClipEvent (load) { this.gotoAndPlay(20); } } } movieClip 811 { } movieClip 812 { } movieClip 813 { frame 1 { stop(); } frame 15 { stop(); } } movieClip 816 { } movieClip 817 { frame 1 { stop(); } instance of movieClip 807 { onClipEvent (load) { this.gotoAndPlay(45); } } instance of movieClip 816 { onClipEvent (load) { this.gotoAndPlay(65); } } instance of movieClip 816 { onClipEvent (load) { this.gotoAndPlay(40); } } instance of movieClip 807 { onClipEvent (load) { this.gotoAndPlay(20); } } } movieClip 820 { } movieClip 821 { } movieClip 822 { frame 1 { stop(); } frame 15 { stop(); } } movieClip 825 { frame 1 { stop(); } instance of movieClip 807 { onClipEvent (load) { this.gotoAndPlay(45); } } instance of movieClip 816 { onClipEvent (load) { this.gotoAndPlay(65); } } instance of movieClip 807 { onClipEvent (load) { this.gotoAndPlay(20); } } instance of movieClip 806 { onClipEvent (load) { this.gotoAndPlay(50); } } } movieClip 828 { } movieClip 829 { } movieClip 830 { frame 1 { stop(); } frame 15 { stop(); } } movieClip 835 { } movieClip 836 { } movieClip 837 { frame 1 { stop(); } instance of movieClip 686 { onClipEvent (load) { this.gotoAndPlay(180); } } frame 7 { _parent._parent._parent.safedooropen.safedooropen.start(); } frame 12 { if (!_parent._parent._parent.timeOut) { _parent._parent.chapterComplete(); } } frame 32 { stop(); } } movieClip 838 { frame 1 { stop(); } frame 6 { gotoAndStop(1); } } movieClip 839 { frame 11 { _parent.frame01.gotoAndPlay('intro'); stop(); } } movieClip 840 { frame 1 { function stopWheel() { com.pixelbreaker.ui.MouseWheel.removeListener(_root.mouseListener); } function chapterComplete() { solved = true; if (!_parent.timeOut) { _parent.chap2cTime = currentTime - _parent.chap2aTime - _parent.chap2bTime; _parent.transition = true; _parent.gotoAndPlay('outro'); } } function rotateObj(inc) { dialRotation += inc; safe.safe.numbers.numbers._rotation += inc; safe.safe.numbersIndent.numbers._rotation += inc; safe.safe.dial.ridges._rotation += inc; } pressedDown = false; justUp = false; slow = 1; i = 0; entered1 = false; entered2 = false; entered3 = false; mistake = false; notches = 10; notchesInc = 360 / notches; variation = random(2) + 1; trace(variation); if (variation == 1) { comboNum1 = 5; comboNum2 = 2; comboNum3 = 3; } else { comboNum1 = 4; comboNum2 = 1; comboNum3 = 2; } frame01.comboNum.gotoAndStop(variation); frame02.comboNum.gotoAndStop(variation); frame03.comboNum.gotoAndStop(variation); dialRotation = 360000 + notchesInc * (notches - comboNum1 + 1); safe.safe.numbers.numbers._rotation += notchesInc * (notches - comboNum1 + 1); safe.safe.numbersIndent.numbers._rotation += notchesInc * (notches - comboNum1 + 1); safe.safe.dial.ridges._rotation += notchesInc * (notches - comboNum1 + 1); destTickRight = dialRotation + notchesInc - 10; destTickLeft = dialRotation + 10; dest1 = Math.ceil(dialRotation / 360) * 360 + (360 - notchesInc * comboNum1); safeOpen = false; _root.mouseListener.onMouseWheel = function (delta) { if (delta < 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch02.start(); if (_root.mySound.slow.position > 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 - 1); } else { _root.mySound.slow.start(_root.mySound.slow.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBackSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch02.start(); if (_root.mySound.normal.position > 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 - 1); } else { _root.mySound.normal.start(_root.mySound.normal.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBack'); } _root.customCursor.gotoAndPlay('down'); } if (delta > 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch01.start(); if (_root.mySound.slow.position < _root.mySound.slow.duration - 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 + 1); } else { _root.mySound.slow.start(1); } scratchControl.gotoAndPlay('scratchForwardSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch01.start(); if (_root.mySound.normal.position < _root.mySound.normal.duration - 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 + 1); } else { _root.mySound.normal.start(1); } scratchControl.gotoAndPlay('scratchForward'); } _root.customCursor.gotoAndPlay('up'); } }; com.pixelbreaker.ui.MouseWheel.addListener(_root.mouseListener); actions.onEnterFrame = function () { if (_parent.fadeOut && _root.mySound.normal.getVolume() > 0) { _root.mySound.normal.setVolume(_root.mySound.normal.getVolume() - 2); _parent.myMusic.chap2.setVolume(_parent.myMusic.chap2.getVolume() - 2); } else { if (_root.mySound.normal.getVolume() == 0) { _parent.fadeOut = false; _root.mySound.normal.stop(); _root.mySound.slow.stop(); _root.mySound.normal.setVolume(100); _parent.myMusic.chap2.stop(); _parent.myMusic.chap2.setVolume(100); Mouse.show(); _root.customCursor._visible = false; } } dialRotation += 2 / slow; safe.safe.numbers.numbers._rotation += 2 / slow; safe.safe.numbersIndent.numbers._rotation += 2 / slow; safe.safe.dial.ridges._rotation += 2 / slow; if (dialRotation > destTickRight && !safeOpen) { _parent.safetick.safetick.start(); destTickRight += notchesInc; } else { if (dialRotation < destTickRight - notchesInc && !safeOpen) { destTickRight -= notchesInc; } } if (dialRotation < destTickLeft && !safeOpen) { _parent.safetick.safetick.start(); destTickLeft -= notchesInc; } else { if (dialRotation > destTickLeft + notchesInc && !safeOpen) { destTickLeft += notchesInc; } } if (!entered1 && dialRotation < Math.floor(dest1 / 360) * 360 - 360) { dest1 -= 360; } if (!entered1 && dialRotation > dest1) { safe.safe.front.bolt1.gotoAndPlay('unbolt'); _parent.latches.latch1.start(); dest2 = (Math.floor(dialRotation / 360) - 1) * 360 + (360 - notchesInc * comboNum2); frame01.gotoAndPlay('outro'); frame02.gotoAndPlay('intro'); entered1 = true; } if (entered1 && !entered2 && dialRotation > Math.ceil(dest1 / 360) * 360) { safe.gotoAndPlay('reset'); safe.safe.front.bolt1.gotoAndPlay('reset'); _parent.latches.snap.start(); dest1 = Math.floor(dialRotation / 360) * 360 + (360 - notchesInc * comboNum1); frame02.gotoAndPlay('outro'); frame01.gotoAndPlay('intro'); entered1 = false; } if (entered1 && !entered2 && dialRotation < dest2) { safe.safe.front.bolt2.gotoAndPlay('unbolt'); _parent.latches.latch2.start(); dest3 = Math.ceil(dialRotation / 360) * 360 + (360 - notchesInc * comboNum3); frame02.gotoAndPlay('outro'); frame03.gotoAndPlay('intro'); entered2 = true; } if (entered2 && !entered3 && dialRotation < Math.floor(dest2 / 360) * 360) { safe.gotoAndPlay('reset'); safe.safe.front.bolt1.gotoAndPlay('reset'); safe.safe.front.bolt2.gotoAndPlay('reset'); _parent.latches.snap.start(); dest1 = Math.ceil(dialRotation / 360) * 360 + (360 - notchesInc * comboNum1); frame03.gotoAndPlay('outro'); frame01.gotoAndPlay('intro'); entered1 = false; entered2 = false; } if (entered2 && !entered3 && dialRotation > dest3) { safe.safe.front.bolt3.gotoAndPlay('unbolt'); _parent.latches.latch3.start(); safe.safe.gotoAndPlay('open'); entered3 = true; frame03.gotoAndPlay('outro'); safeOpen = true; } currentTime = getTimer() - _parent.startTime; if (currentTime < 80000) { if (!_parent.fadeOut && currentTime > 78000 && !solved) { _parent.fadeOut = true; } _parent.hourglass.topSand.rim._y = 29 + Math.pow((currentTime / 80000) * 5.099019513592785, 2); _parent.hourglass.topSand.rim._height = 6 - Math.pow((currentTime / 80000) * 2.23606797749979, 2); _parent.hourglass.topSand.sandMask._height = 30 - Math.pow((currentTime / 80000) * 5.385164807134504, 2); _parent.hourglass.bottomSand.rim._y = 78 + Math.pow(((80000 - currentTime) / 80000) * 4.795831523312719, 2); _parent.hourglass.bottomSand.sandMask._height = 27 - Math.pow(((80000 - currentTime) / 80000) * 5.099019513592785, 2); } else { if (!_parent.timeOut) { _parent.timeOut = true; if (!_parent.transition) { _parent.timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; _parent.recordClickArea.gotoAndStop(2); Mouse.show(); stopWheel(); _root.startBlankWheel(); } } } posNeg = (_xmouse - 320) / Math.abs(_xmouse - 320); if (_xmouse < 0) { xmouse = 0; } else { if (_xmouse > 640) { xmouse = 640; } else { xmouse = _xmouse; } } rightHand._x = handInitX + posNeg * 16 - Math.pow(posNeg * 4 - ((xmouse - 320) / 320) * 4, 2) * posNeg; posNeg = (_ymouse - 360) / Math.abs(_ymouse - 360); if (_ymouse < 0) { ymouse = 0; } else { if (_ymouse > 360) { ymouse = 360; } else { ymouse = _ymouse; } } }; } } movieClip 842 { frame 1 { clearedTxt = Math.round(_parent.chap2cTime / 1000) + ' seconds'; } } movieClip 844 { } movieClip 845 { frame 1 { stop(); } frame 2 { _root.trackingHolder.trackPageview('chap2/easy'); chap2aTime = 0; chap2bTime = 0; chap2cTime = 0; safetick.safetick = new Sound(safetick); safetick.safetick.attachSound('safetick'); latches.latch1 = new Sound(latches); latches.latch1.attachSound('latch1'); latches.latch2 = new Sound(latches); latches.latch2.attachSound('latch2'); latches.latch3 = new Sound(latches); latches.latch3.attachSound('latch3'); latches.snap = new Sound(snap); latches.snap.attachSound('snap'); safedooropen.safedooropen = new Sound(safedooropen); safedooropen.safedooropen.attachSound('safedooropen'); myMusic.chap2 = new Sound(myMusic); myMusic.chap2.attachSound('cellphone'); audioTrans.chap2complete = new Sound(audioTrans); audioTrans.chap2complete.attachSound('chap2_complete'); audioTrans.chap2timesup = new Sound(audioTrans); audioTrans.chap2timesup.attachSound('chap2_timesup'); myMusic.chap2.start(); myMusic.chap2.setVolume(100); startTime = getTimer(); timeOut = false; transition = true; recordClickArea.onRollOver = function () { recordClickArea.useHandCursor = false; Mouse.hide(); _root.customCursor._visible = true; }; recordClickArea.onRollOut = function () { Mouse.show(); _root.customCursor._visible = false; }; recordClickArea.onReleaseOutside = function () { if (recordClickArea._currentframe == 1) { _root.customCursor._xscale = 105; _root.customCursor._yscale = 105; chap.pressedDown = false; _root.mySound.slow.stop(); _root.mySound.normal.start(_root.mySound.slow.position / 1.25 / 1000); chap.justUp = false; chap.slow = 1; } }; recordClickArea.onMouseMove = function () { _root.customCursor._y = _root._ymouse; _root.customCursor._x = _root._xmouse; xDist = chap.center._x - _root.customCursor._x; yDist = chap.center._y - _root.customCursor._y; angle = (Math.atan2(yDist, xDist) / Math.PI) * 180; _root.customCursor._rotation = angle; updateAfterEvent(); }; recordClickArea.onPress = function () { _root.customCursor._xscale = 95; _root.customCursor._yscale = 95; _root.mySound.normal.stop(); _root.mySound.slow.start(_root.mySound.normal.position * 1.25 / 1000); chap.pressedDown = true; chap.slow = 2; }; recordClickArea.onRelease = function () { if (recordClickArea._currentframe == 1) { _root.customCursor._xscale = 105; _root.customCursor._yscale = 105; chap.pressedDown = false; _root.mySound.slow.stop(); _root.mySound.normal.start(_root.mySound.slow.position / 1.25 / 1000); chap.justUp = false; chap.slow = 1; } }; } frame 10 { stop(); transition = false; } frame 11 { _root.trackingHolder.trackPageview('chap2/medium'); } frame 23 { _root.ding.ding.start(0); } frame 96 { chap.stopWheel(); } frame 115 { stop(); transition = false; if (timeOut) { timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; recordClickArea.gotoAndStop(2); Mouse.show(); chap.stopWheel(); _root.startBlankWheel(); } } frame 116 { _root.trackingHolder.trackPageview('chap2/hard'); } frame 128 { _root.ding.ding.start(0); } frame 202 { chap.stopWheel(); } frame 220 { stop(); transition = false; if (timeOut) { timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; recordClickArea.gotoAndStop(2); Mouse.show(); chap.stopWheel(); _root.startBlankWheel(); } } frame 221 { _root.customCursor._visible = false; Mouse.show(); chap.stopWheel(); _root.startBlankWheel(); } frame 233 { _root.ding.ding.start(0); } frame 255 { fadeOut = true; } frame 310 { audioTrans.chap2complete.start(0); } frame 375 { _root.chap3Trans.gotoAndPlay('intro'); } } movieClip 850 { } movieClip 851 { } movieClip 857 { } movieClip 858 { } movieClip 861 { } movieClip 862 { } movieClip 866 { } movieClip 867 { } movieClip 868 { } movieClip 872 { frame 1 { stop(); } } movieClip 873 { frame 1 { stop(); } } movieClip 878 { } movieClip 879 { frame 1 { if (_parent._parent._parent.dive) { stop(); } } frame 18 { gotoAndPlay(1); } } movieClip 880 { frame 1 { if (_parent._parent.dive) { stop(); } } } movieClip 881 { frame 1 { stop(); } frame 2 { seed.seed.gotoAndPlay(15); } frame 18 { _parent._parent.suck.suck.start(); } frame 19 { _parent.potFront.gotoAndPlay('recoil'); _parent.potBack.gotoAndPlay('recoil'); } frame 21 { stop(); } } movieClip 885 { } movieClip 889 { } movieClip 893 { } movieClip 894 { } movieClip 898 { } movieClip 899 { } movieClip 900 { } movieClip 901 { } movieClip 902 { } movieClip 906 { } movieClip 910 { } movieClip 914 { } movieClip 916 { } movieClip 917 { } movieClip 919 { } movieClip 920 { } movieClip 921 { } movieClip 925 { } movieClip 931 { } movieClip 933 { } movieClip 934 { } movieClip 936 { } movieClip 938 { } movieClip 940 { } movieClip 941 { } movieClip 943 { } movieClip 947 { } movieClip 949 { } movieClip 950 { } movieClip 952 { } movieClip 954 { } movieClip 955 { } movieClip 957 { } movieClip 958 { } movieClip 960 { } movieClip 961 { } movieClip 962 { } movieClip 963 { } movieClip 967 { } movieClip 969 { } movieClip 970 { } movieClip 972 { } movieClip 974 { } movieClip 975 { } movieClip 977 { } movieClip 978 { } movieClip 980 { } movieClip 981 { } movieClip 982 { } movieClip 983 { } movieClip 985 { } movieClip 987 { } movieClip 991 { } movieClip 993 { } movieClip 995 { } movieClip 997 { } movieClip 999 { } movieClip 1001 { } movieClip 1003 { } movieClip 1005 { } movieClip 1006 { frame 1 { stop(); } frame 42 { stop(); _parent.seed._x = 294; _parent.seedDest = _parent.seed._x + 20; _parent.seed._y = -5; if (_parent.missed) { _parent.missed = false; _parent.potFront.pot.gotoAndStop(1); _parent.potBack.pot.gotoAndStop(1); } } } movieClip 1009 { frame 1 { stop(); } } movieClip 1010 { frame 1 { stop(); } frame 5 { _parent.plant.gotoAndPlay('grow'); } frame 6 { _parent._parent.sprout.sprout.start(); } } movieClip 1012 { } movieClip 1013 { frame 1 { function stopWheel() { com.pixelbreaker.ui.MouseWheel.removeListener(_root.mouseListener); } function chapterComplete() { solved = true; if (!_parent.timeOut) { _parent.chap3aTime = currentTime; _parent.transition = true; _parent.gotoAndPlay('chap3b'); } } function rotateObj(inc) { bladesShadow.blades._rotation += inc; windmill.blades._rotation += inc; cloudsDest += 1 * inc; seedDest += 1 * inc; } pressedDown = false; justUp = false; slow = 1; i = 0; handInitX = rightHand._x; handInitY = rightHand._y; step = 1; cloudsDest = clouds._x + 40; seedDest = seed._x; dive = false; seedDiveInc = 10; _root.stopBlankWheel(); _root.mouseListener.onMouseWheel = function (delta) { if (delta < 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch02.start(); if (_root.mySound.slow.position > 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 - 1); } else { _root.mySound.slow.start(_root.mySound.slow.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBackSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch02.start(); if (_root.mySound.normal.position > 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 - 1); } else { _root.mySound.normal.start(_root.mySound.normal.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBack'); } _root.customCursor.gotoAndPlay('down'); } if (delta > 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch01.start(); if (_root.mySound.slow.position < _root.mySound.slow.duration - 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 + 1); } else { _root.mySound.slow.start(1); } scratchControl.gotoAndPlay('scratchForwardSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch01.start(); if (_root.mySound.normal.position < _root.mySound.normal.duration - 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 + 1); } else { _root.mySound.normal.start(1); } scratchControl.gotoAndPlay('scratchForward'); } _root.customCursor.gotoAndPlay('up'); } }; com.pixelbreaker.ui.MouseWheel.addListener(_root.mouseListener); actions.onEnterFrame = function () { if (_parent.fadeOut && _root.mySound.normal.getVolume() > 0) { _root.mySound.normal.setVolume(_root.mySound.normal.getVolume() - 2); _parent.myMusic.chap3.setVolume(_parent.myMusic.chap3.getVolume() - 2); } else { if (_root.mySound.normal.getVolume() == 0) { _parent.fadeOut = false; _root.mySound.normal.stop(); _root.mySound.slow.stop(); _root.mySound.normal.setVolume(100); _parent.myMusic.chap3.stop(); _parent.myMusic.chap3.setVolume(100); Mouse.show(); _root.customCursor._visible = false; } } currentTime = getTimer() - _parent.startTime; if (currentTime < 80000) { if (!_parent.fadeOut && currentTime > 78000) { _parent.fadeOut = true; } _parent.hourglass.topSand.rim._y = 29 + Math.pow((currentTime / 80000) * 5.099019513592785, 2); _parent.hourglass.topSand.rim._height = 6 - Math.pow((currentTime / 80000) * 2.23606797749979, 2); _parent.hourglass.topSand.sandMask._height = 30 - Math.pow((currentTime / 80000) * 5.385164807134504, 2); _parent.hourglass.bottomSand.rim._y = 78 + Math.pow(((80000 - currentTime) / 80000) * 4.795831523312719, 2); _parent.hourglass.bottomSand.sandMask._height = 27 - Math.pow(((80000 - currentTime) / 80000) * 5.099019513592785, 2); } else { if (!_parent.timeOut) { _parent.timeOut = true; if (!_parent.transition) { _parent.timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; _parent.recordClickArea.gotoAndStop(2); Mouse.show(); stopWheel(); _root.startBlankWheel(); } } } windmill.blades._rotation += 2 / slow; bladesShadow.blades._rotation += 2 / slow; hill.windmill.blades._rotation += 2; posNeg = (_xmouse - 320) / Math.abs(_xmouse - 320); if (_xmouse < 0) { xmouse = 0; } else { if (_xmouse > 640) { xmouse = 640; } else { xmouse = _xmouse; } } rightHand._x = handInitX + posNeg * 16 - Math.pow(posNeg * 4 - ((xmouse - 320) / 320) * 4, 2) * posNeg; posNeg = (_ymouse - 360) / Math.abs(_ymouse - 360); if (_ymouse < 0) { ymouse = 0; } else { if (_ymouse > 360) { ymouse = 360; } else { ymouse = _ymouse; } } rightHand._y = handInitY + posNeg * 9 - Math.pow(posNeg * 3 - ((ymouse - 180) / 180) * 3, 2) * posNeg; rightHand.wrist._rotation = ((rightHand._x - handInitX) / 16) * 10 + ((rightHand._y - handInitY) / 9) * 8; rightHand._rotation = (-(rightHand._y - handInitY) / 9) * 7 + 12; clouds._x += (cloudsDest - clouds._x) / 40; cloudsDest += 3 / slow / slow; if (cloudsDest > 0) { cloudsDest -= 1027; clouds._x -= 1027; } else { if (cloudsDest < -1300) { cloudsDest += 1027; clouds._x += 1027; } } if (!dive) { seed._x += (seedDest - seed._x) / 20; seedDest += 1.5 / slow / slow; seed._y += 1 * slow; if (seed._x < 0 || seed._x > 670 || seed._y > 375) { seed._x = 294; seedDest = seed._x + 20; seed._y = -5; if (missed) { missed = false; potFront.pot.gotoAndStop(1); potBack.pot.gotoAndStop(1); } } if (diveArea.hitTest(seed._x, seed._y, true) && !missed) { seed.gotoAndPlay('dive'); dive = true; chapterComplete(); } else { if (!missed && seed._y > diveArea._y + diveArea._height) { missed = true; potFront.pot.gotoAndStop(2); potBack.pot.gotoAndStop(2); } } } else { seed._x += (diveArea._x + diveArea._width / 2 - seed._x) / seedDiveInc; if (seedDiveInc > 5) { --seedDiveInc; } } }; _root.customCursor._xscale = 105; _root.customCursor._yscale = 105; _root.customCursor._y = _root._ymouse; _root.customCursor._x = _root._xmouse; xDist = center._x - _root.customCursor._x; yDist = center._y - _root.customCursor._y; angle = (Math.atan2(yDist, xDist) / Math.PI) * 180; _root.customCursor._rotation = angle; } } movieClip 1014 { frame 1 { sandFallMask.gotoAndPlay(12); } } movieClip 1016 { } movieClip 1017 { frame 1 { stop(); } frame 2 { _parent.audioTrans.chap3timesup.start(); } frame 70 { _root.chap4Trans.gotoAndPlay('intro'); } frame 79 { _parent.gotoAndStop(1); } } movieClip 1019 { frame 1 { clearedTxt = Math.round(_parent.chap3aTime / 1000) + ' seconds'; } } movieClip 1024 { } movieClip 1025 { } movieClip 1030 { } movieClip 1032 { } movieClip 1036 { } movieClip 1038 { } movieClip 1042 { } movieClip 1044 { } movieClip 1048 { } movieClip 1050 { } movieClip 1054 { } movieClip 1055 { frame 1 { stop(); } frame 30 { stop(); if (_parent._parent._parent.dive) { _parent._parent._parent.hangingPotLeftFront.pot.gotoAndStop(2); } else { _parent._parent._parent.hangingPotRightFront.pot.gotoAndStop(2); } _parent._parent._parent.dive = false; _parent._parent._parent.diveRight = false; _parent._parent._parent.seed.gotoAndPlay(1); _parent._parent._parent.seed._x = 140; _parent._parent._parent.seedDest = _parent._parent._parent.seed._x + 20; _parent._parent._parent.seed._y = -12; if (_parent._parent._parent.missed) { _parent._parent._parent.missed = false; _parent._parent._parent.hangingPotLeftFront.pot.gotoAndStop(1); _parent._parent._parent.hangingPotLeftBack.pot.gotoAndStop(1); } if (_parent._parent._parent.missedRight) { _parent._parent._parent.missedRight = false; _parent._parent._parent.hangingPotRightFront.pot.gotoAndStop(1); _parent._parent._parent.hangingPotRightBack.pot.gotoAndStop(1); } _parent._parent._parent.seedDiveInc = 20; _parent.gotoAndStop(2); } } movieClip 1056 { frame 1 { stop(); } } movieClip 1057 { frame 1 { stop(); } frame 4 { _parent._parent.sprout.sprout.start(); } frame 5 { pot.flowers.gotoAndPlay('grow'); } } movieClip 1062 { } movieClip 1064 { } movieClip 1066 { } movieClip 1067 { frame 42 { gotoAndPlay(1); } } movieClip 1068 { } movieClip 1069 { frame 1 { stop(); } frame 19 { _parent._parent.suck.suck.start(); } frame 23 { if (_parent.dive) { _parent.hangingPotLeft.gotoAndPlay('recoil'); _parent.hangingPotLeftFront.gotoAndPlay('recoil'); } else { if (_parent.diveRight) { _parent.hangingPotRight.gotoAndPlay('recoil'); _parent.hangingPotRightFront.gotoAndPlay('recoil'); } } } frame 25 { stop(); } } movieClip 1072 { frame 1 { stop(); } } movieClip 1073 { frame 1 { stop(); } } movieClip 1078 { } movieClip 1079 { frame 1 { function stopWheel() { com.pixelbreaker.ui.MouseWheel.removeListener(_root.mouseListener); } function chapterComplete() { solved = true; if (!_parent.timeOut) { _parent.chap3bTime = currentTime - _parent.chap3aTime; _parent.transition = true; _parent.gotoAndPlay('chap3c'); } } function rotateObj(inc) { bladesShadow.blades._rotation += inc; windmill.blades._rotation += inc; cloudsDest += 1 * inc; seedDest += 1 * inc; } pressedDown = false; justUp = false; slow = 1; i = 0; handInitX = rightHand._x; handInitY = rightHand._y; step = 1; cloudsDest = clouds._x + 40; seedDest = seed._x; dive = false; seedRotationDest = 30; hangingPotDest = -(cloudsDest - clouds._x) / 20; seedDiveInc = 20; _root.mouseListener.onMouseWheel = function (delta) { if (delta < 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch02.start(); if (_root.mySound.slow.position > 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 - 1); } else { _root.mySound.slow.start(_root.mySound.slow.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBackSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch02.start(); if (_root.mySound.normal.position > 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 - 1); } else { _root.mySound.normal.start(_root.mySound.normal.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBack'); } _root.customCursor.gotoAndPlay('down'); } if (delta > 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch01.start(); if (_root.mySound.slow.position < _root.mySound.slow.duration - 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 + 1); } else { _root.mySound.slow.start(1); } scratchControl.gotoAndPlay('scratchForwardSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch01.start(); if (_root.mySound.normal.position < _root.mySound.normal.duration - 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 + 1); } else { _root.mySound.normal.start(1); } scratchControl.gotoAndPlay('scratchForward'); } _root.customCursor.gotoAndPlay('up'); } }; com.pixelbreaker.ui.MouseWheel.addListener(_root.mouseListener); actions.onEnterFrame = function () { if (_parent.fadeOut && _root.mySound.normal.getVolume() > 0) { _root.mySound.normal.setVolume(_root.mySound.normal.getVolume() - 2); _parent.myMusic.chap3.setVolume(_parent.myMusic.chap3.getVolume() - 2); } else { if (_root.mySound.normal.getVolume() == 0) { _parent.fadeOut = false; _root.mySound.normal.stop(); _root.mySound.slow.stop(); _root.mySound.normal.setVolume(100); _parent.myMusic.chap3.stop(); _parent.myMusic.chap3.setVolume(100); Mouse.show(); _root.customCursor._visible = false; } } currentTime = getTimer() - _parent.startTime; if (currentTime < 80000) { if (!_parent.fadeOut && currentTime > 78000) { _parent.fadeOut = true; } _parent.hourglass.topSand.rim._y = 29 + Math.pow((currentTime / 80000) * 5.099019513592785, 2); _parent.hourglass.topSand.rim._height = 6 - Math.pow((currentTime / 80000) * 2.23606797749979, 2); _parent.hourglass.topSand.sandMask._height = 30 - Math.pow((currentTime / 80000) * 5.385164807134504, 2); _parent.hourglass.bottomSand.rim._y = 78 + Math.pow(((80000 - currentTime) / 80000) * 4.795831523312719, 2); _parent.hourglass.bottomSand.sandMask._height = 27 - Math.pow(((80000 - currentTime) / 80000) * 5.099019513592785, 2); } else { if (!_parent.timeOut) { _parent.timeOut = true; if (!_parent.transition) { _parent.timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; _parent.recordClickArea.gotoAndStop(2); Mouse.show(); stopWheel(); _root.startBlankWheel(); } } } windmill.blades._rotation += 2 / slow; bladesShadow.blades._rotation += 2 / slow; hill.windmill.blades._rotation += 2; posNeg = (_xmouse - 320) / Math.abs(_xmouse - 320); if (_xmouse < 0) { xmouse = 0; } else { if (_xmouse > 640) { xmouse = 640; } else { xmouse = _xmouse; } } rightHand._x = handInitX + posNeg * 16 - Math.pow(posNeg * 4 - ((xmouse - 320) / 320) * 4, 2) * posNeg; posNeg = (_ymouse - 360) / Math.abs(_ymouse - 360); if (_ymouse < 0) { ymouse = 0; } else { if (_ymouse > 360) { ymouse = 360; } else { ymouse = _ymouse; } } rightHand._y = handInitY + posNeg * 9 - Math.pow(posNeg * 3 - ((ymouse - 180) / 180) * 3, 2) * posNeg; rightHand.wrist._rotation = ((rightHand._x - handInitX) / 16) * 10 + ((rightHand._y - handInitY) / 9) * 8; rightHand._rotation = (-(rightHand._y - handInitY) / 9) * 7 + 12; clouds._x += (cloudsDest - clouds._x) / 40; cloudsDest += 3 / slow / slow; if (cloudsDest > 0) { cloudsDest -= 1027; clouds._x -= 1027; } else { if (cloudsDest < -1300) { cloudsDest += 1027; clouds._x += 1027; } } hangingPotLeft._rotation += (hangingPotDest - hangingPotLeft._rotation) / 30; hangingPotLeft._x = -hangingPotLeft._rotation * 3 + 75; hangingPotLeftFront._rotation = hangingPotLeft._rotation; hangingPotLeftFront._x = hangingPotLeft._x; diveArea._x = -hangingPotLeft._rotation * 4 + 30; diveArea._rotation = hangingPotLeft._rotation; hangingPotRight._rotation += (hangingPotLeft._rotation - hangingPotRight._rotation) / 10; hangingPotRight._x = -hangingPotRight._rotation * 4 + 553; hangingPotRightFront._rotation = hangingPotRight._rotation; hangingPotRightFront._x = hangingPotRight._x; diveAreaRight._x = -hangingPotRight._rotation * 4 + 513; diveAreaRight._rotation = hangingPotRight._rotation; seed.seed.seed._rotation += (seedRotationDest - seed.seed.seed._rotation) / 10; hangingPotDest = -(cloudsDest - clouds._x) / 20; if (dive) { seedRotationDest = 0; seed._x += (diveArea._x + diveArea._width / 2 - seed._x) / seedDiveInc; if (seedDiveInc > 5) { --seedDiveInc; } } else { if (diveRight) { seedRotationDest = 0; seed._x += (diveAreaRight._x + diveAreaRight._width / 2 - seed._x) / seedDiveInc; if (seedDiveInc > 5) { --seedDiveInc; } } else { seed._x += (seedDest - seed._x) / 20; seedRotationDest = (seedDest - seed._x) / 2; seedDest += 2 / slow / slow; seed._y += 1 * slow; if (seed._x < -80 || seed._x > 720 || seed._y > 410) { seed._x = 140; seedDest = seed._x + 20; seed._y = -12; if (missed) { missed = false; hangingPotLeftFront.pot.gotoAndStop(1); hangingPotLeftBack.pot.gotoAndStop(1); } if (missedRight) { missedRight = false; hangingPotRightFront.pot.gotoAndStop(1); hangingPotRightBack.pot.gotoAndStop(1); } } if (diveArea.hitTest(seed._x, seed._y, true) && !missed && !bloomed) { seed.gotoAndPlay('dive'); dive = true; bloomed = true; } else { if (!missed && seed._y > diveArea._y + diveArea._height && !bloomed) { missed = true; hangingPotLeftFront.pot.gotoAndStop(3); hangingPotLeftBack.pot.gotoAndStop(2); } } if (diveAreaRight.hitTest(seed._x, seed._y, true) && !missedRight && !bloomedRight) { seed.gotoAndPlay('dive'); diveRight = true; bloomedRight = true; } else { if (!missedRight && seed._y > diveAreaRight._y + diveAreaRight._height && !bloomedRight) { missedRight = true; hangingPotRightFront.pot.gotoAndStop(3); hangingPotRightBack.pot.gotoAndStop(2); } } } } if (bloomed && bloomedRight && !solved) { chapterComplete(); } }; } instance hangingPotRight of movieClip 1057 { } instance hangingPotRightFront of movieClip 1073 { } } movieClip 1081 { frame 1 { clearedTxt = Math.round(_parent.chap3bTime / 1000) + ' seconds'; } } movieClip 1086 { } movieClip 1089 { } movieClip 1090 { frame 98 { _parent._parent.thunder.thunder.start(); } } movieClip 1092 { } movieClip 1093 { } movieClip 1097 { frame 1 { stop(); } } movieClip 1098 { frame 1 { stop(); } } movieClip 1100 { } movieClip 1101 { } movieClip 1105 { frame 1 { stop(); } } movieClip 1106 { frame 1 { stop(); } } movieClip 1107 { } movieClip 1111 { frame 1 { stop(); } } movieClip 1112 { frame 1 { stop(); } } movieClip 1115 { } movieClip 1116 { frame 99 { gotoAndPlay(1); } } movieClip 1117 { frame 1 { stop(); still = true; } frame 42 { still = true; } frame 60 { gotoAndStop(1); } frame 104 { still = true; } frame 118 { gotoAndStop(1); } } movieClip 1118 { } movieClip 1119 { frame 1 { stop(); } frame 23 { _parent._parent.suck.suck.start(); } frame 25 { if (_parent.dive) { _parent.potFront.gotoAndPlay('recoil'); _parent.potBack.gotoAndPlay('recoil'); } else { if (_parent.diveRight) { _parent.potRightFront.gotoAndPlay('recoil'); _parent.potRightBack.gotoAndPlay('recoil'); } else { if (_parent.diveTop) { _parent.potTopFront.pot.gotoAndPlay('recoil'); _parent.potTopBack.pot.gotoAndPlay('recoil'); } } } } frame 27 { stop(); } } movieClip 1123 { } movieClip 1127 { } movieClip 1129 { } movieClip 1131 { } movieClip 1133 { } movieClip 1135 { } movieClip 1137 { } movieClip 1140 { frame 1 { stop(); } frame 29 { stop(); _parent.gotoAndStop(2); _parent._parent._parent._parent.potTopBack.pot.pot.gotoAndStop(2); _parent._parent._parent._parent.diveTop = false; _parent._parent._parent._parent.seed._rotation = 0; _parent._parent._parent._parent.seed.gotoAndStop(1); _parent._parent._parent._parent.seed._x = 275; _parent._parent._parent._parent.seedDest = _parent._parent._parent._parent.seed._x + 20; _parent._parent._parent._parent.seed._y = -45; _parent._parent._parent._parent.seedDiveInc = 20; } } movieClip 1142 { frame 1 { stop(); } } movieClip 1143 { frame 1 { stop(); } frame 5 { pot.plant.gotoAndPlay('grow'); } frame 8 { _parent._parent._parent.sprout.sprout.start(); } } movieClip 1145 { } movieClip 1146 { } movieClip 1148 { } movieClip 1151 { } movieClip 1154 { frame 1 { stop(); } } movieClip 1155 { frame 1 { stop(); } frame 4 { _parent.dove.gotoAndPlay('fly'); } frame 5 { _parent.plant.gotoAndPlay('grow'); } frame 8 { _parent._parent.sprout.sprout.start(); } } movieClip 1157 { } movieClip 1159 { } movieClip 1161 { } movieClip 1163 { } movieClip 1165 { } movieClip 1167 { } movieClip 1169 { } movieClip 1171 { } movieClip 1173 { } movieClip 1175 { } movieClip 1177 { } movieClip 1179 { } movieClip 1181 { } movieClip 1183 { } movieClip 1186 { frame 1 { stop(); } frame 31 { stop(); _parent.potFront.pot.gotoAndStop(2); _parent.potBack.pot.gotoAndStop(2); _parent.dive = false; _parent.seed.gotoAndStop(1); _parent.seed._x = 275; _parent.seedDest = _parent.seed._x + 20; _parent.seed._y = -45; _parent.seedDiveInc = 20; if (_parent.missedTop) { _parent.missedTop = false; _parent.potTopFront.pot.pot.gotoAndStop(1); _parent.potTopBack.pot.pot.gotoAndStop(1); } } } movieClip 1190 { } movieClip 1192 { } movieClip 1194 { } movieClip 1196 { } movieClip 1198 { } movieClip 1200 { } movieClip 1202 { } movieClip 1203 { } movieClip 1204 { frame 1 { stop(); } } movieClip 1207 { frame 1 { stop(); } } movieClip 1208 { frame 1 { stop(); } frame 4 { _parent.doveRight.gotoAndPlay('fly'); } frame 5 { _parent.plantRight.gotoAndPlay('grow'); } frame 8 { _parent._parent.sprout.sprout.start(); } } movieClip 1211 { frame 1 { stop(); } frame 31 { stop(); _parent.potRightFront.pot.gotoAndStop(2); _parent.potRightBack.pot.gotoAndStop(2); _parent.diveRight = false; _parent.seed.gotoAndStop(1); _parent.seed._x = 275; _parent.seedDest = _parent.seed._x + 20; _parent.seed._y = -45; _parent.seedDiveInc = 20; if (_parent.missedTop) { _parent.missedTop = false; _parent.potTopFront.pot.pot.gotoAndStop(1); _parent.potTopBack.pot.pot.gotoAndStop(1); } if (_parent.missed) { _parent.missed = false; _parent.potFront.pot.gotoAndStop(1); _parent.potBack.pot.gotoAndStop(1); } } } movieClip 1213 { } movieClip 1216 { } movieClip 1217 { } movieClip 1218 { frame 1 { function stopWheel() { com.pixelbreaker.ui.MouseWheel.removeListener(_root.mouseListener); } function chapterComplete() { solved = true; if (!_parent.timeOut) { _parent.chap3cTime = currentTime - _parent.chap3aTime - _parent.chap3bTime; _parent.transition = true; _parent.gotoAndPlay('outro'); } } function rotateObj(inc) { bladesShadow.blades._rotation += inc; windmill.blades._rotation += inc; cloudsDest += 1 * inc; seedDest += 1 * inc; } pressedDown = false; justUp = false; slow = 1; i = 0; handInitX = rightHand._x; handInitY = rightHand._y; step = 1; cloudsDest = clouds._x + 40; seedDest = seed._x; dive = false; seedRotationDest = 30; hangingPotDest = 0; seedRotationLag = 0; seedDiveInc = 20; _root.mouseListener.onMouseWheel = function (delta) { if (delta < 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch02.start(); if (_root.mySound.slow.position > 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 - 1); } else { _root.mySound.slow.start(_root.mySound.slow.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBackSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch02.start(); if (_root.mySound.normal.position > 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 - 1); } else { _root.mySound.normal.start(_root.mySound.normal.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBack'); } _root.customCursor.gotoAndPlay('down'); } if (delta > 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch01.start(); if (_root.mySound.slow.position < _root.mySound.slow.duration - 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 + 1); } else { _root.mySound.slow.start(1); } scratchControl.gotoAndPlay('scratchForwardSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch01.start(); if (_root.mySound.normal.position < _root.mySound.normal.duration - 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 + 1); } else { _root.mySound.normal.start(1); } scratchControl.gotoAndPlay('scratchForward'); } _root.customCursor.gotoAndPlay('up'); } }; com.pixelbreaker.ui.MouseWheel.addListener(_root.mouseListener); actions.onEnterFrame = function () { if (_parent.fadeOut && _root.mySound.normal.getVolume() > 0) { _root.mySound.normal.setVolume(_root.mySound.normal.getVolume() - 2); _parent.myMusic.chap3.setVolume(_parent.myMusic.chap3.getVolume() - 2); } else { if (_root.mySound.normal.getVolume() == 0) { _parent.fadeOut = false; _root.mySound.normal.stop(); _root.mySound.slow.stop(); _root.mySound.normal.setVolume(100); _parent.myMusic.chap3.stop(); _parent.myMusic.chap3.setVolume(100); Mouse.show(); _root.customCursor._visible = false; } } currentTime = getTimer() - _parent.startTime; if (currentTime < 80000) { if (!_parent.fadeOut && currentTime > 78000 && !solved) { _parent.fadeOut = true; } _parent.hourglass.topSand.rim._y = 29 + Math.pow((currentTime / 80000) * 5.099019513592785, 2); _parent.hourglass.topSand.rim._height = 6 - Math.pow((currentTime / 80000) * 2.23606797749979, 2); _parent.hourglass.topSand.sandMask._height = 30 - Math.pow((currentTime / 80000) * 5.385164807134504, 2); _parent.hourglass.bottomSand.rim._y = 78 + Math.pow(((80000 - currentTime) / 80000) * 4.795831523312719, 2); _parent.hourglass.bottomSand.sandMask._height = 27 - Math.pow(((80000 - currentTime) / 80000) * 5.099019513592785, 2); } else { if (!_parent.timeOut) { _parent.timeOut = true; if (!_parent.transition) { _parent.timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; _parent.recordClickArea.gotoAndStop(2); Mouse.show(); stopWheel(); _root.startBlankWheel(); } } } windmill.blades._rotation += 2 / slow; bladesShadow.blades._rotation += 2 / slow; hill.windmill.blades._rotation += 2; posNeg = (_xmouse - 320) / Math.abs(_xmouse - 320); if (_xmouse < 0) { xmouse = 0; } else { if (_xmouse > 640) { xmouse = 640; } else { xmouse = _xmouse; } } rightHand._x = handInitX + posNeg * 16 - Math.pow(posNeg * 4 - ((xmouse - 320) / 320) * 4, 2) * posNeg; posNeg = (_ymouse - 360) / Math.abs(_ymouse - 360); if (_ymouse < 0) { ymouse = 0; } else { if (_ymouse > 360) { ymouse = 360; } else { ymouse = _ymouse; } } rightHand._y = handInitY + posNeg * 9 - Math.pow(posNeg * 3 - ((ymouse - 180) / 180) * 3, 2) * posNeg; rightHand.wrist._rotation = ((rightHand._x - handInitX) / 16) * 10 + ((rightHand._y - handInitY) / 9) * 8; rightHand._rotation = (-(rightHand._y - handInitY) / 9) * 7 + 12; clouds._x += (cloudsDest - clouds._x) / 40; cloudsDest += 3 / slow / slow; if (cloudsDest > 0) { cloudsDest -= 1027; clouds._x -= 1027; } else { if (cloudsDest < -1300) { cloudsDest += 1027; clouds._x += 1027; } } if (dive) { seedRotationDest = 0; seed.seed.seed._rotation += (seedRotationDest - seed.seed.seed._rotation) / seedDiveInc; seed._x += (diveArea._x + diveArea._width / 2 - seed._x) / seedDiveInc; if (seedDiveInc > 5) { --seedDiveInc; } } else { if (diveRight) { seedRotationDest = 0; seed.seed.seed._rotation += (seedRotationDest - seed.seed.seed._rotation) / seedDiveInc; seed._x += (diveAreaRight._x + diveAreaRight._width / 2 - seed._x) / seedDiveInc; if (seedDiveInc > 5) { --seedDiveInc; } } else { if (diveTop) { seed._rotation += (-90 - seed._rotation) / seedDiveInc; seedRotationDest = 0; seed.seed.seed._rotation += (seedRotationDest - seed.seed.seed._rotation) / seedDiveInc; seed._x += (diveAreaRight._x + diveAreaRight._width / 2 - seed._x) / seedDiveInc; seed._y += (diveAreaTop._y + 70 - seed._y) / seedDiveInc; if (seedDiveInc > 5) { --seedDiveInc; } } else { if (seedDest - seed._x > 70 && seed.seed.seed.still && !slowArea.hitTest(seed._x, seed._y, true) && !slowAreaRight.hitTest(seed._x, seed._y, true) && !slowAreaTop.hitTest(seed._x, seed._y, true)) { seed.seed.seed.still = false; seed.seed.seed.gotoAndPlay('counterclockwise'); } else { if (seedDest - seed._x < -70 && seed.seed.seed.still && !slowArea.hitTest(seed._x, seed._y, true) && !slowAreaRight.hitTest(seed._x, seed._y, true) && !slowAreaTop.hitTest(seed._x, seed._y, true)) { seed.seed.seed.still = false; seed.seed.seed.gotoAndPlay('clockwise'); } } seedRotationLag = ((seedRotationDest - seedRotationLag) / 5 + seedRotationLag) / 3; seed.seed.seed._rotation += seedRotationLag; seed._x += (seedDest - seed._x) / 15; seedRotationDest = -(seedDest - seed._x) / 2; seedDest += 2 / slow / slow; seed._y += 1 * slow; if (seed._x < -60 || seed._x > 700 || seed._y > 390) { seed._x = 275; seedDest = seed._x - 20; seed._y = -45; if (missed) { missed = false; potFront.pot.gotoAndStop(1); potBack.pot.gotoAndStop(1); } if (missedRight) { missedRight = false; potRightFront.pot.gotoAndStop(1); potRightBack.pot.gotoAndStop(1); } if (missedTop) { missedTop = false; potTopFront.pot.pot.gotoAndStop(1); potTopBack.pot.pot.gotoAndStop(1); } } if (diveArea.hitTest(seed._x, seed._y, true) && !missed && !bloom) { bloom = true; seed.gotoAndPlay('dive'); dive = true; } else { if (diveAreaRight.hitTest(seed._x, seed._y, true) && !missedRight && !bloomedRight) { seed.gotoAndPlay('dive'); diveRight = true; bloomedRight = true; } else { if (diveAreaTop.hitTest(seed._x, seed._y, true) && !missedTop && !bloomedTop) { seed.gotoAndPlay('dive'); diveTop = true; bloomedTop = true; } else { if (!missed && seed._y > diveArea._y + diveArea._height && !bloomed) { missed = true; potFront.pot.gotoAndStop(2); potBack.pot.gotoAndStop(2); } else { if (!missedRight && seed._y > diveAreaRight._y + diveAreaRight._height && !bloomedRight) { missedRight = true; potRightFront.pot.gotoAndStop(2); potRightBack.pot.gotoAndStop(2); } else { if (!missedTop && seed._y > diveAreaTop._y + diveAreaTop._height && !bloomedTop) { missedTop = true; potTopFront.pot.pot.gotoAndStop(2); potTopBack.pot.pot.gotoAndStop(2); } } } } } } } } } if (bloom && bloomedRight && bloomedTop && !solved) { chapterComplete(); } }; } } movieClip 1220 { frame 1 { clearedTxt = Math.round(_parent.chap3cTime / 1000) + ' seconds'; } } movieClip 1222 { } movieClip 1223 { frame 1 { stop(); } frame 2 { _root.trackingHolder.trackPageview('chap3/easy'); chap3aTime = 0; chap3bTime = 0; chap3cTime = 0; thunder.thunder = new Sound(thunder); thunder.thunder.attachSound('thunder'); sprout.sprout = new Sound(sprout); sprout.sprout.attachSound('sprout'); suck.suck = new Sound(suck); suck.suck.attachSound('suck'); myMusic.chap3 = new Sound(myMusic); myMusic.chap3.attachSound('brothers'); audioTrans.chap3complete = new Sound(audioTrans); audioTrans.chap3complete.attachSound('chap3_complete'); audioTrans.chap3timesup = new Sound(audioTrans); audioTrans.chap3timesup.attachSound('chap3_timesup'); myMusic.chap3.start(); myMusic.chap3.setVolume(100); startTime = getTimer(); timeOut = false; transition = true; recordClickArea.onRollOver = function () { recordClickArea.useHandCursor = false; Mouse.hide(); _root.customCursor._visible = true; }; recordClickArea.onRollOut = function () { Mouse.show(); _root.customCursor._visible = false; }; recordClickArea.onReleaseOutside = function () { if (recordClickArea._currentframe == 1) { _root.customCursor._xscale = 105; _root.customCursor._yscale = 105; chap.pressedDown = false; _root.mySound.slow.stop(); _root.mySound.normal.start(_root.mySound.slow.position / 1.25 / 1000); chap.justUp = false; chap.slow = 1; } }; recordClickArea.onMouseMove = function () { _root.customCursor._y = _root._ymouse; _root.customCursor._x = _root._xmouse; xDist = chap.center._x - _root.customCursor._x; yDist = chap.center._y - _root.customCursor._y; angle = (Math.atan2(yDist, xDist) / Math.PI) * 180; _root.customCursor._rotation = angle; updateAfterEvent(); }; recordClickArea.onPress = function () { _root.customCursor._xscale = 95; _root.customCursor._yscale = 95; _root.mySound.normal.stop(); _root.mySound.slow.start(_root.mySound.normal.position * 1.25 / 1000); chap.pressedDown = true; chap.slow = 2; }; recordClickArea.onRelease = function () { if (recordClickArea._currentframe == 1) { _root.customCursor._xscale = 105; _root.customCursor._yscale = 105; chap.pressedDown = false; _root.mySound.slow.stop(); _root.mySound.normal.start(_root.mySound.slow.position / 1.25 / 1000); chap.justUp = false; chap.slow = 1; } }; } frame 10 { stop(); transition = false; } frame 11 { _root.trackingHolder.trackPageview('chap3/medium'); } frame 48 { _root.ding.ding.start(0); } frame 121 { chap.stopWheel(); } frame 129 { stop(); transition = false; if (timeOut) { timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; recordClickArea.gotoAndStop(2); Mouse.show(); chap.stopWheel(); _root.startBlankWheel(); } } frame 130 { _root.trackingHolder.trackPageview('chap3/hard'); } frame 167 { _root.ding.ding.start(0); } frame 240 { chap.stopWheel(); } frame 248 { stop(); transition = false; if (timeOut) { timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; recordClickArea.gotoAndStop(2); Mouse.show(); chap.stopWheel(); _root.startBlankWheel(); } } frame 249 { _root.customCursor._visible = false; Mouse.show(); chap.stopWheel(); _root.startBlankWheel(); } frame 286 { _root.ding.ding.start(0); } frame 308 { fadeOut = true; } frame 363 { audioTrans.chap3complete.start(0); } frame 428 { _root.chap4Trans.gotoAndPlay('intro'); } } movieClip 1226 { } movieClip 1235 { frame 1 { stop(); } } movieClip 1260 { frame 1 { stop(); } } movieClip 1294 { frame 1 { stop(); } } movieClip 1295 { frame 1 { stop(); } } movieClip 1296 { frame 1 { stop(); } frame 10 { stop(); } } movieClip 1299 { } movieClip 1302 { } movieClip 1303 { frame 1 { stop(); } frame 5 { stop(); } frame 10 { stop(); } frame 15 { stop(); } } movieClip 1307 { } movieClip 1308 { } movieClip 1314 { } movieClip 1318 { } movieClip 1319 { frame 1 { stop(); } frame 2 { _parent._parent._parent.door.doorOpen.start(); } frame 12 { stop(); } frame 13 { _parent._parent._parent.door.doorClose.start(); } } movieClip 1321 { } movieClip 1323 { frame 1 { stop(); } frame 6 { _parent._parent.trainSound.arrive.start(); } frame 61 { stop(); _parent.trainPresent = true; if (_parent.pressing) { door.gotoAndPlay(2); } } frame 120 { door.gotoAndPlay(13); if (_parent.trainNum == _parent.trainLimit) { _parent.chapterComplete(); } } frame 139 { _parent._parent.trainSound.depart.start(); } frame 156 { _parent.boardDeparted(); } frame 185 { _parent.boardOnTime(); } } movieClip 1325 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1329 { } movieClip 1331 { } movieClip 1333 { } movieClip 1335 { } movieClip 1337 { } movieClip 1339 { } movieClip 1343 { } movieClip 1344 { } movieClip 1346 { } movieClip 1348 { } movieClip 1349 { } movieClip 1352 { } movieClip 1353 { } movieClip 1354 { } movieClip 1355 { } movieClip 1356 { } movieClip 1357 { } movieClip 1359 { } movieClip 1360 { } movieClip 1361 { } movieClip 1362 { } movieClip 1363 { } movieClip 1366 { } movieClip 1367 { } movieClip 1368 { } movieClip 1369 { } movieClip 1370 { } movieClip 1371 { } movieClip 1373 { } movieClip 1374 { } movieClip 1375 { } movieClip 1376 { } movieClip 1377 { } movieClip 1378 { frame 31 { if (!_parent.rabbit2Visible && !_parent.rabbit3Visible) { gotoAndPlay(63); } } frame 50 { if (!_parent.rabbit3Visible) { gotoAndPlay(63); } } frame 58 { gotoAndPlay(63); } frame 131 { if (!_parent.rabbit3Visible && !_parent.rabbit1Visible) { gotoAndPlay(163); } } frame 150 { if (!_parent.rabbit1Visible) { gotoAndPlay(163); } } frame 158 { gotoAndPlay(163); } frame 231 { if (!_parent.rabbit1Visible && !_parent.rabbit2Visible) { gotoAndPlay(263); } } frame 250 { if (!_parent.rabbit2Visible) { gotoAndPlay(263); } } frame 258 { gotoAndPlay(263); } frame 337 { if (!_parent.rabbit3Visible) { gotoAndPlay(363); } } frame 355 { gotoAndPlay(363); } frame 437 { if (!_parent.rabbit1Visible) { gotoAndPlay(463); } } frame 455 { gotoAndPlay(463); } frame 537 { if (!_parent.rabbit2Visible) { gotoAndPlay(563); } } frame 555 { gotoAndPlay(563); } frame 659 { gotoAndPlay(663); } frame 759 { gotoAndPlay(763); } frame 859 { gotoAndPlay(863); } frame 931 { if (!_parent.rabbit3Visible) { gotoAndPlay(963); } } frame 955 { gotoAndPlay(963); } frame 1031 { if (!_parent.rabbit1Visible) { gotoAndPlay(1063); } } frame 1055 { gotoAndPlay(1063); } frame 1131 { if (!_parent.rabbit2Visible) { gotoAndPlay(1163); } } frame 1155 { gotoAndPlay(1163); } } movieClip 1379 { } movieClip 1383 { } movieClip 1387 { } movieClip 1390 { } movieClip 1391 { } movieClip 1393 { } movieClip 1397 { } movieClip 1398 { } movieClip 1399 { } movieClip 1400 { frame 1 { function stopWheel() { com.pixelbreaker.ui.MouseWheel.removeListener(_root.mouseListener); } function chapterComplete() { solved = true; if (!_parent.timeOut) { _parent.chap4aTime = currentTime; _parent.transition = true; _parent.gotoAndPlay('chap4b'); } } function boardTrains() { if (trainLimit >= 1) { train1.currentTop.gotoAndStop('trainBlank'); train1.currentBottom.gotoAndStop('trainBlank'); train1.nextBottom.gotoAndStop('train1'); train1.nextTop.gotoAndStop('train1'); train1.gotoAndPlay(2); } if (trainLimit >= 2) { train2.currentTop.gotoAndStop('trainBlank'); train2.currentBottom.gotoAndStop('trainBlank'); train2.nextBottom.gotoAndStop('train2'); train2.nextTop.gotoAndStop('train2'); train2.gotoAndPlay(2); } if (trainLimit >= 3) { train3.currentTop.gotoAndStop('trainBlank'); train3.currentBottom.gotoAndStop('trainBlank'); train3.nextBottom.gotoAndStop('train3'); train3.nextTop.gotoAndStop('train3'); train3.gotoAndPlay(2); } } function boardOnTime() { if (trainLimit >= trainNum) { timeField = 'time' + trainNum; statusField = 'status' + trainNum; colorField = 'color' + trainNum; if (trainNum == 1 && variation == 1) { rabbitColor = 'colorBrown'; correctRabbitColor = 3; timeHour = 6; timeMin = 1; time = timeHour + timeMin / 4; } else { if (trainNum == 1) { rabbitColor = 'colorBrown'; correctRabbitColor = 3; timeHour = 8; timeMin = 3; time = timeHour + timeMin / 4; } } timeRotation = 30 * time; if (timeRotation > 180) { timeRotation -= 360; } _parent.flip.flip.start(0); this[timeField].currentTop.gotoAndStop('timeBlank'); this[timeField].currentBottom.gotoAndStop('timeBlank'); this[timeField].nextBottom.gotoAndStop('time1'); this[timeField].nextTop.gotoAndStop('time1'); this[timeField].nextBottom.minField.gotoAndStop(timeMin + 1); this[timeField].nextTop.minField.gotoAndStop(timeMin + 1); this[timeField].nextBottom.hourField.gotoAndStop(timeHour); this[timeField].nextTop.hourField.gotoAndStop(timeHour); this[timeField].currentTop.gotoAndStop('timeBlank'); this[timeField].currentBottom.gotoAndStop('timeBlank'); this[timeField].nextBottom.gotoAndStop('time1'); this[timeField].nextTop.gotoAndStop('time1'); this[statusField].currentTop.gotoAndStop('statusBlank'); this[statusField].currentBottom.gotoAndStop('statusBlank'); this[statusField].nextBottom.gotoAndStop('onTime'); this[statusField].nextTop.gotoAndStop('onTime'); this[colorField].currentTop.gotoAndStop('colorBlank'); this[colorField].currentBottom.gotoAndStop('colorBlank'); this[colorField].nextBottom.gotoAndStop(rabbitColor); this[colorField].nextTop.gotoAndStop(rabbitColor); this[timeField].gotoAndPlay(2); this[statusField].gotoAndPlay(2); this[colorField].gotoAndPlay(2); enterTime = true; } } function boardArrived() { _parent.flip.flip.start(0); this[statusField].currentTop.gotoAndStop('onTime'); this[statusField].currentBottom.gotoAndStop('onTime'); this[statusField].nextBottom.gotoAndStop('arrived'); this[statusField].nextTop.gotoAndStop('arrived'); this[statusField].gotoAndPlay(2); train.gotoAndPlay('arrive'); trainArrived = true; } function boardDeparted() { _parent.flip.flip.start(0); trainPresent = false; this[statusField].currentTop.gotoAndStop('arrived'); this[statusField].currentBottom.gotoAndStop('arrived'); this[statusField].nextBottom.gotoAndStop('departed'); this[statusField].nextTop.gotoAndStop('departed'); this[statusField].gotoAndPlay(2); trainNum += 1; colorLight.gotoAndStop('off'); } function rabbitHide() { rabbitsLine['rabbit' + rabbitBoarded + 'Mask1'].gotoAndStop('hidden'); rabbitsLine['rabbit' + rabbitBoarded + 'Mask2'].gotoAndStop('hidden'); rabbitsLine['rabbit' + rabbitBoarded + 'Mask3'].gotoAndStop('hidden'); rabbitsCircle['rabbit' + rabbitBoarded + 'Mask1'].gotoAndStop('hidden'); rabbitsCircle['rabbit' + rabbitBoarded + 'Mask2'].gotoAndStop('hidden'); rabbitsCircle['rabbit' + rabbitBoarded + 'Mask3'].gotoAndStop('hidden'); this['rabbit' + rabbitBoarded + 'Visible'] = false; } function rabbitBoard() { trainArrived = false; trainPresent = false; train.gotoAndPlay('depart'); rabbitNum -= 1; rabbitBoarded = firstPos; rabbitHide(); if (lineArrangement >= 1 && lineArrangement <= 6) { lineArrangement += 3; rabbitsLine.gotoAndStop(lineArrangement * 100 - 39); } else { if (lineArrangement >= 10 && lineArrangement <= 12) { lineArrangement -= 3; rabbitsLine.gotoAndStop(lineArrangement * 100 - 39); } } } function setLineDest() { if (!lineDest && rabbitsCircle._visible && pressedDown && rabbitsCircle._currentframe >= 1 && rabbitsCircle._currentframe <= 250) { circleDestFrame = 250; if (rabbit1Visible && rabbit2Visible && rabbit3Visible || rabbit1Visible && rabbit2Visible && !rabbit3Visible || rabbit1Visible && !rabbit2Visible && !rabbit3Visible) { firstPos = 1; lineDestFrame = 1; lineDest = true; lineArrangement = 1; } else { if (rabbit1Visible && !rabbit2Visible && rabbit3Visible) { firstPos = 1; lineDestFrame = 901; lineDest = true; lineArrangement = 10; } else { if (!rabbit1Visible && rabbit2Visible && rabbit3Visible || !rabbit1Visible && rabbit2Visible && !rabbit3Visible) { firstPos = 2; lineDestFrame = 301; lineDest = true; lineArrangement = 4; } else { if (!rabbit1Visible && !rabbit2Visible && rabbit3Visible) { firstPos = 3; lineDestFrame = 601; lineDest = true; lineArrangement = 7; } } } } } else { if (!lineDest && rabbitsCircle._visible && pressedDown && rabbitsCircle._currentframe >= 251 && rabbitsCircle._currentframe <= 500) { circleDestFrame = 500; if (rabbit1Visible && rabbit2Visible && rabbit3Visible || !rabbit1Visible && rabbit2Visible && rabbit3Visible || !rabbit1Visible && rabbit2Visible && !rabbit3Visible) { firstPos = 2; lineDestFrame = 101; lineDest = true; lineArrangement = 2; } else { if (rabbit1Visible && rabbit2Visible && !rabbit3Visible) { firstPos = 2; lineDestFrame = 1001; lineDest = true; lineArrangement = 11; } else { if (rabbit1Visible && !rabbit2Visible && rabbit3Visible || !rabbit1Visible && !rabbit2Visible && rabbit3Visible) { firstPos = 3; lineDestFrame = 401; lineDest = true; lineArrangement = 5; } else { if (rabbit1Visible && !rabbit2Visible && !rabbit3Visible) { firstPos = 1; lineDestFrame = 701; lineDest = true; lineArrangement = 8; } } } } } else { if (!lineDest && rabbitsCircle._visible && pressedDown && rabbitsCircle._currentframe >= 501 && rabbitsCircle._currentframe <= 750) { circleDestFrame = 750; if (rabbit1Visible && rabbit2Visible && rabbit3Visible || rabbit1Visible && !rabbit2Visible && rabbit3Visible || !rabbit1Visible && !rabbit2Visible && rabbit3Visible) { firstPos = 3; lineDestFrame = 201; lineDest = true; lineArrangement = 3; } else { if (!rabbit1Visible && rabbit2Visible && rabbit3Visible) { firstPos = 3; lineDestFrame = 1101; lineDest = true; lineArrangement = 12; } else { if (rabbit1Visible && rabbit2Visible && !rabbit3Visible || rabbit1Visible && !rabbit2Visible && !rabbit3Visible) { firstPos = 1; lineDestFrame = 501; lineDest = true; lineArrangement = 6; } else { if (!rabbit1Visible && rabbit2Visible && !rabbit3Visible) { firstPos = 2; lineDestFrame = 801; lineDest = true; lineArrangement = 9; } } } } } } } } function clearLineDest() { lineDest = false; } function rotateObj(inc) { clock.hour._rotation += inc / 12 / handSlow; clock.minute._rotation += inc / handSlow; clock.hands.hourShadow._rotation += inc / 12 / handSlow; clock.hands.minuteShadow._rotation += inc / handSlow; sunlight.light._rotation += inc / 1.6; train.sunlight.light._rotation += inc / 1.6; destFrame = (leavesSlow._totalframes + leavesSlow._currentframe + inc * 2 - 1) % leavesSlow._totalframes + 1; leavesSlow.gotoAndPlay(destFrame); leavesFast.gotoAndPlay(destFrame); snowDestFrame = (_parent.snow._totalframes + _parent.snow._currentframe + (inc / snowSlow) * 3 - 1) % _parent.snow._totalframes + 1; _parent.snow.gotoAndStop(snowDestFrame); rabbitsCircleDestFrame = (rabbitsCircle._totalframes + rabbitsCircle._currentframe + (inc * 1.5 - 1)) % rabbitsCircle._totalframes + 1; rabbitsCircle.gotoAndStop(rabbitsCircleDestFrame); } pressedDown = false; justUp = false; slow = 1; handSlow = 0.25; i = 0; handInitX = rightHand._x; handInitY = rightHand._y; step = 1; colorLight._visible = false; levelComplete = false; trainArrived = false; trainNum = 1; trainPresent = false; rabbitsLine._visible = false; rabbitsLineMove = true; rabbitsLine.rabbit1Mask1.gotoAndStop('hidden'); rabbitsLine.rabbit1Mask2.gotoAndStop('hidden'); rabbitsLine.rabbit1Mask3.gotoAndStop('hidden'); rabbitsCircle.rabbit1Mask1.gotoAndStop('hidden'); rabbitsCircle.rabbit1Mask2.gotoAndStop('hidden'); rabbitsCircle.rabbit1Mask3.gotoAndStop('hidden'); rabbitsLine.rabbit2Mask1.gotoAndStop('hidden'); rabbitsLine.rabbit2Mask2.gotoAndStop('hidden'); rabbitsLine.rabbit2Mask3.gotoAndStop('hidden'); rabbitsCircle.rabbit2Mask1.gotoAndStop('hidden'); rabbitsCircle.rabbit2Mask2.gotoAndStop('hidden'); rabbitsCircle.rabbit2Mask3.gotoAndStop('hidden'); rabbit1Visible = false; rabbit2Visible = false; rabbit3Visible = true; trainLimit = 1; rabbitNum = 1; firstPos = 0; lineDest = false; snowSlow = 0.25; slowRabbits = 0.5; trainsArrived = 0; trainsDeparted = 0; variation = random(2) + 1; trace(variation); _root.stopBlankWheel(); _root.mouseListener.onMouseWheel = function (delta) { if (delta < 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch02.start(); if (_root.mySound.slow.position > 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 - 1); } else { _root.mySound.slow.start(_root.mySound.slow.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBackSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch02.start(); if (_root.mySound.normal.position > 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 - 1); } else { _root.mySound.normal.start(_root.mySound.normal.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBack'); } _root.customCursor.gotoAndPlay('down'); } if (delta > 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch01.start(); if (_root.mySound.slow.position < _root.mySound.slow.duration - 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 + 1); } else { _root.mySound.slow.start(1); } scratchControl.gotoAndPlay('scratchForwardSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch01.start(); if (_root.mySound.normal.position < _root.mySound.normal.duration - 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 + 1); } else { _root.mySound.normal.start(1); } scratchControl.gotoAndPlay('scratchForward'); } _root.customCursor.gotoAndPlay('up'); } }; com.pixelbreaker.ui.MouseWheel.addListener(_root.mouseListener); actions.onEnterFrame = function () { if (_parent.fadeOut && _root.mySound.normal.getVolume() > 0) { _root.mySound.normal.setVolume(_root.mySound.normal.getVolume() - 2); _parent.myMusic.chap4.setVolume(_parent.myMusic.chap4.getVolume() - 2); _parent.ticks.tick.setVolume(_parent.ticks.tick.getVolume() - 2); } else { if (_root.mySound.normal.getVolume() == 0) { _parent.fadeOut = false; _root.mySound.normal.stop(); _root.mySound.slow.stop(); _parent.ticks.tick.stop(); _parent.ticks.tick.setVolume(100); _root.mySound.normal.setVolume(100); _parent.myMusic.chap4.stop(); _parent.myMusic.chap4.setVolume(100); Mouse.show(); _root.customCursor._visible = false; } } currentTime = getTimer() - _parent.startTime; if (currentTime < 80000) { if (!_parent.fadeOut && currentTime > 78000) { _parent.fadeOut = true; } _parent.hourglass.topSand.rim._y = 29 + Math.pow((currentTime / 80000) * 5.099019513592785, 2); _parent.hourglass.topSand.rim._height = 6 - Math.pow((currentTime / 80000) * 2.23606797749979, 2); _parent.hourglass.topSand.sandMask._height = 30 - Math.pow((currentTime / 80000) * 5.385164807134504, 2); _parent.hourglass.bottomSand.rim._y = 78 + Math.pow(((80000 - currentTime) / 80000) * 4.795831523312719, 2); _parent.hourglass.bottomSand.sandMask._height = 27 - Math.pow(((80000 - currentTime) / 80000) * 5.099019513592785, 2); } else { if (!_parent.timeOut) { _parent.timeOut = true; if (!_parent.transition) { _parent.timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; _parent.recordClickArea.gotoAndStop(2); Mouse.show(); stopWheel(); _root.startBlankWheel(); } } } if (trainArrived) { colorLight._visible = true; } else { if (!trainArrived) { colorLight._visible = false; } } if (!trainPresent && rabbitsLine._visible && rabbitsLine._currentframe > lineArrangement * 100 - 37) { rabbitsLine.gotoAndStop(lineArrangement * 100 - 37); } if (trainPresent && rabbitsLine._visible && rabbitsLine._currentframe > lineArrangement * 100 - 37 && firstPos != correctRabbitColor) { rabbitsLine.gotoAndStop(lineArrangement * 100 - 37); } if (rabbitsLineMove && rabbitsLine._visible && rabbitsLine._currentframe >= lineArrangement * 100 - 1) { rabbitsLineMove = false; rabbitsLine.gotoAndStop(lineArrangement * 100 - 1); } else { if (rabbitsLine._visible && rabbitsLine._currentframe <= lineArrangement * 100 - 100 + 1) { rabbitsCircle._visible = true; rabbitsCircle.gotoAndStop(circleDestFrame); rabbitsLine._visible = false; clearLineDest(); } } if (!lineDest && rabbitsCircle._visible && pressedDown && (rabbitsCircle._currentframe >= 201 && rabbitsCircle._currentframe <= 250 || rabbitsCircle._currentframe >= 451 && rabbitsCircle._currentframe <= 500 || rabbitsCircle._currentframe >= 701 && rabbitsCircle._currentframe <= 750)) { setLineDest(); } if (lineDest && rabbitsCircle._visible && pressedDown && (rabbitsCircle._currentframe >= 1 && rabbitsCircle._currentframe <= 50 || rabbitsCircle._currentframe >= 251 && rabbitsCircle._currentframe <= 300 || rabbitsCircle._currentframe >= 501 && rabbitsCircle._currentframe <= 550)) { rabbitsLine._visible = true; rabbitsLine.gotoAndStop(lineDestFrame); rabbitsCircle._visible = false; } if (lineDest && rabbitsCircle._visible && (rabbitsCircle._currentframe >= 101 && rabbitsCircle._currentframe <= 150 || rabbitsCircle._currentframe >= 351 && rabbitsCircle._currentframe <= 400 || rabbitsCircle._currentframe >= 601 && rabbitsCircle._currentframe <= 650)) { clearLineDest(); } if (rabbitsLine._visible && rabbitsLine._currentframe >= lineArrangement * 100 - 8 && rabbitsLine._currentframe <= lineArrangement * 100) { rabbitBoard(); } else { if (timeRotation <= clock.hour._rotation + 3 && timeRotation >= clock.hour._rotation - 3 && enterTime) { enterTime = false; boardArrived(); } } if (step == 3 && !pressedDown && further) { instruction.gotoAndPlay('retry'); further = false; midstep = false; } clock.hour._rotation += 0.1666666666666667 / handSlow; clock.minute._rotation += 2 / handSlow; clock.hands.hourShadow._rotation += 0.1666666666666667 / handSlow; clock.hands.minuteShadow._rotation += 2 / handSlow; snowDestFrame = (_parent.snow._currentframe + 2 / snowSlow - 1) % (_parent.snow._totalframes - 1) + 1; _parent.snow.gotoAndStop(snowDestFrame); rabbitsCircleDestFrame = (rabbitsCircle._currentframe + 2 / slowRabbits - 1) % (rabbitsCircle._totalframes - 1) + 1; rabbitsCircle.gotoAndStop(rabbitsCircleDestFrame); if (rabbitsLineMove) { rabbitsLineDestFrame = (rabbitsLine._currentframe + 2 / slowRabbits - 1) % (rabbitsLine._totalframes - 1) + 1; rabbitsLine.gotoAndStop(rabbitsLineDestFrame); } sunlight.light._rotation += 1.25 / slow; train.sunlight.light._rotation += 1.25 / slow; if (slow == 5) { leavesSlow._visible = true; leavesFast._visible = false; } else { leavesSlow._visible = false; leavesFast._visible = true; } clouds._x += 1 / slow; if (clouds._x > 0) { clouds._x -= 1027; } else { if (clouds._x < -1027) { clouds._x += 1027; } } }; _root.customCursor._xscale = 105; _root.customCursor._yscale = 105; _root.customCursor._y = _root._ymouse; _root.customCursor._x = _root._xmouse; xDist = center._x - _root.customCursor._x; yDist = center._y - _root.customCursor._y; angle = (Math.atan2(yDist, xDist) / Math.PI) * 180; _root.customCursor._rotation = angle; } instance actions of movieClip 117 { onClipEvent (load) { _parent.boardTrains(); _parent.boardOnTime(); } } } movieClip 1404 { } movieClip 1405 { } movieClip 1407 { } movieClip 1408 { frame 1 { stop(); } frame 2 { _parent.audioTrans.chap4timesup.start(); } frame 70 { _root.chap5Trans.gotoAndPlay('intro'); } frame 79 { _parent.gotoAndStop(1); } } movieClip 1410 { frame 1 { clearedTxt = Math.round(_parent.chap4aTime / 1000) + ' seconds'; } } movieClip 1415 { } movieClip 1420 { } movieClip 1422 { } movieClip 1424 { } movieClip 1425 { frame 1 { stop(); } frame 2 { _parent._parent._parent.door.doorOpen.start(); } frame 12 { stop(); } frame 13 { _parent._parent._parent.door.doorClose.start(); } } movieClip 1426 { } movieClip 1428 { frame 1 { stop(); } frame 6 { _parent._parent.trainSound.arrive.start(); } frame 61 { stop(); _parent.trainPresent = true; if (_parent.pressing) { door.gotoAndPlay(2); } } frame 120 { door.gotoAndPlay(13); if (_parent.trainNum == _parent.trainLimit) { _parent.chapterComplete(); } } frame 139 { _parent._parent.trainSound.depart.start(); } frame 156 { _parent.boardDeparted(); } frame 185 { _parent.boardOnTime(); } } movieClip 1431 { } movieClip 1432 { } movieClip 1433 { frame 1 { function stopWheel() { com.pixelbreaker.ui.MouseWheel.removeListener(_root.mouseListener); } function chapterComplete() { solved = true; if (!_parent.timeOut) { _parent.chap4bTime = currentTime - _parent.chap4aTime; _parent.transition = true; _parent.gotoAndPlay('chap4c'); } } function boardTrains() { if (trainLimit >= 1) { train1.currentTop.gotoAndStop('trainBlank'); train1.currentBottom.gotoAndStop('trainBlank'); train1.nextBottom.gotoAndStop('train2'); train1.nextTop.gotoAndStop('train2'); train1.gotoAndPlay(2); } if (trainLimit >= 2) { train2.currentTop.gotoAndStop('trainBlank'); train2.currentBottom.gotoAndStop('trainBlank'); train2.nextBottom.gotoAndStop('train3'); train2.nextTop.gotoAndStop('train3'); train2.gotoAndPlay(2); } if (trainLimit >= 3) { train3.currentTop.gotoAndStop('trainBlank'); train3.currentBottom.gotoAndStop('trainBlank'); train3.nextBottom.gotoAndStop('train4'); train3.nextTop.gotoAndStop('train4'); train3.gotoAndPlay(2); } } function boardOnTime() { if (trainLimit >= trainNum) { timeField = 'time' + trainNum; statusField = 'status' + trainNum; colorField = 'color' + trainNum; if (trainNum == 1 && variation == 1) { rabbitColor = 'colorBrown'; correctRabbitColor = 3; timeHour = 4; timeMin = 2; time = timeHour + timeMin / 4; } else { if (trainNum == 1) { rabbitColor = 'colorBrown'; correctRabbitColor = 3; timeHour = 9; timeMin = 2; time = timeHour + timeMin / 4; } else { if (trainNum == 2 && variation == 1) { rabbitColor = 'colorWhite'; correctRabbitColor = 1; timeHour = 9; timeMin = 3; time = timeHour + timeMin / 4; } else { if (trainNum == 2) { rabbitColor = 'colorWhite'; correctRabbitColor = 1; timeHour = 3; timeMin = 0; time = timeHour + timeMin / 4; } } } } timeRotation = 30 * time; if (timeRotation > 180) { timeRotation -= 360; } _parent.flip.flip.start(0); this[timeField].currentTop.gotoAndStop('timeBlank'); this[timeField].currentBottom.gotoAndStop('timeBlank'); this[timeField].nextBottom.gotoAndStop('time1'); this[timeField].nextTop.gotoAndStop('time1'); this[timeField].nextBottom.minField.gotoAndStop(timeMin + 1); this[timeField].nextTop.minField.gotoAndStop(timeMin + 1); this[timeField].nextBottom.hourField.gotoAndStop(timeHour); this[timeField].nextTop.hourField.gotoAndStop(timeHour); this[timeField].currentTop.gotoAndStop('timeBlank'); this[timeField].currentBottom.gotoAndStop('timeBlank'); this[timeField].nextBottom.gotoAndStop('time1'); this[timeField].nextTop.gotoAndStop('time1'); this[statusField].currentTop.gotoAndStop('statusBlank'); this[statusField].currentBottom.gotoAndStop('statusBlank'); this[statusField].nextBottom.gotoAndStop('onTime'); this[statusField].nextTop.gotoAndStop('onTime'); this[colorField].currentTop.gotoAndStop('colorBlank'); this[colorField].currentBottom.gotoAndStop('colorBlank'); this[colorField].nextBottom.gotoAndStop(rabbitColor); this[colorField].nextTop.gotoAndStop(rabbitColor); this[timeField].gotoAndPlay(2); this[statusField].gotoAndPlay(2); this[colorField].gotoAndPlay(2); enterTime = true; } } function boardArrived() { _parent.flip.flip.start(0); this[statusField].currentTop.gotoAndStop('onTime'); this[statusField].currentBottom.gotoAndStop('onTime'); this[statusField].nextBottom.gotoAndStop('arrived'); this[statusField].nextTop.gotoAndStop('arrived'); this[statusField].gotoAndPlay(2); train.gotoAndPlay('arrive'); trainArrived = true; } function boardDeparted() { _parent.flip.flip.start(0); trainPresent = false; this[statusField].currentTop.gotoAndStop('arrived'); this[statusField].currentBottom.gotoAndStop('arrived'); this[statusField].nextBottom.gotoAndStop('departed'); this[statusField].nextTop.gotoAndStop('departed'); this[statusField].gotoAndPlay(2); trainNum += 1; colorLight.gotoAndStop('off'); } function rabbitHide() { rabbitsLine['rabbit' + rabbitBoarded + 'Mask1'].gotoAndStop('hidden'); rabbitsLine['rabbit' + rabbitBoarded + 'Mask2'].gotoAndStop('hidden'); rabbitsLine['rabbit' + rabbitBoarded + 'Mask3'].gotoAndStop('hidden'); rabbitsCircle['rabbit' + rabbitBoarded + 'Mask1'].gotoAndStop('hidden'); rabbitsCircle['rabbit' + rabbitBoarded + 'Mask2'].gotoAndStop('hidden'); rabbitsCircle['rabbit' + rabbitBoarded + 'Mask3'].gotoAndStop('hidden'); this['rabbit' + rabbitBoarded + 'Visible'] = false; } function rabbitBoard() { trainArrived = false; trainPresent = false; train.gotoAndPlay('depart'); rabbitNum -= 1; rabbitBoarded = firstPos; rabbitHide(); if (lineArrangement >= 1 && lineArrangement <= 6) { lineArrangement += 3; rabbitsLine.gotoAndStop(lineArrangement * 100 - 39); } else { if (lineArrangement >= 10 && lineArrangement <= 12) { lineArrangement -= 3; rabbitsLine.gotoAndStop(lineArrangement * 100 - 39); } } } function setLineDest() { if (!lineDest && rabbitsCircle._visible && pressedDown && rabbitsCircle._currentframe >= 1 && rabbitsCircle._currentframe <= 250) { circleDestFrame = 250; if (rabbit1Visible && rabbit2Visible && rabbit3Visible || rabbit1Visible && rabbit2Visible && !rabbit3Visible || rabbit1Visible && !rabbit2Visible && !rabbit3Visible) { firstPos = 1; lineDestFrame = 1; lineDest = true; lineArrangement = 1; } else { if (rabbit1Visible && !rabbit2Visible && rabbit3Visible) { firstPos = 1; lineDestFrame = 901; lineDest = true; lineArrangement = 10; } else { if (!rabbit1Visible && rabbit2Visible && rabbit3Visible || !rabbit1Visible && rabbit2Visible && !rabbit3Visible) { firstPos = 2; lineDestFrame = 301; lineDest = true; lineArrangement = 4; } else { if (!rabbit1Visible && !rabbit2Visible && rabbit3Visible) { firstPos = 3; lineDestFrame = 601; lineDest = true; lineArrangement = 7; } } } } } else { if (!lineDest && rabbitsCircle._visible && pressedDown && rabbitsCircle._currentframe >= 251 && rabbitsCircle._currentframe <= 500) { circleDestFrame = 500; if (rabbit1Visible && rabbit2Visible && rabbit3Visible || !rabbit1Visible && rabbit2Visible && rabbit3Visible || !rabbit1Visible && rabbit2Visible && !rabbit3Visible) { firstPos = 2; lineDestFrame = 101; lineDest = true; lineArrangement = 2; } else { if (rabbit1Visible && rabbit2Visible && !rabbit3Visible) { firstPos = 2; lineDestFrame = 1001; lineDest = true; lineArrangement = 11; } else { if (rabbit1Visible && !rabbit2Visible && rabbit3Visible || !rabbit1Visible && !rabbit2Visible && rabbit3Visible) { firstPos = 3; lineDestFrame = 401; lineDest = true; lineArrangement = 5; } else { if (rabbit1Visible && !rabbit2Visible && !rabbit3Visible) { firstPos = 1; lineDestFrame = 701; lineDest = true; lineArrangement = 8; } } } } } else { if (!lineDest && rabbitsCircle._visible && pressedDown && rabbitsCircle._currentframe >= 501 && rabbitsCircle._currentframe <= 750) { circleDestFrame = 750; if (rabbit1Visible && rabbit2Visible && rabbit3Visible || rabbit1Visible && !rabbit2Visible && rabbit3Visible || !rabbit1Visible && !rabbit2Visible && rabbit3Visible) { firstPos = 3; lineDestFrame = 201; lineDest = true; lineArrangement = 3; } else { if (!rabbit1Visible && rabbit2Visible && rabbit3Visible) { firstPos = 3; lineDestFrame = 1101; lineDest = true; lineArrangement = 12; } else { if (rabbit1Visible && rabbit2Visible && !rabbit3Visible || rabbit1Visible && !rabbit2Visible && !rabbit3Visible) { firstPos = 1; lineDestFrame = 501; lineDest = true; lineArrangement = 6; } else { if (!rabbit1Visible && rabbit2Visible && !rabbit3Visible) { firstPos = 2; lineDestFrame = 801; lineDest = true; lineArrangement = 9; } } } } } } } } function clearLineDest() { lineDest = false; } function rotateObj(inc) { clock.hour._rotation += inc / 12 / handSlow; clock.minute._rotation += inc / handSlow; clock.hands.hourShadow._rotation += inc / 12 / handSlow; clock.hands.minuteShadow._rotation += inc / handSlow; sunlight.light._rotation += inc / 1.6; train.sunlight.light._rotation += inc / 1.6; destFrame = (leavesSlow._totalframes + leavesSlow._currentframe + inc * 2 - 1) % leavesSlow._totalframes + 1; leavesSlow.gotoAndPlay(destFrame); leavesFast.gotoAndPlay(destFrame); snowDestFrame = (snow._totalframes + snow._currentframe + (inc / snowSlow) * 3 - 1) % snow._totalframes + 1; snow.gotoAndStop(snowDestFrame); rabbitsCircleDestFrame = (rabbitsCircle._totalframes + rabbitsCircle._currentframe + (inc * 1.5 - 1)) % rabbitsCircle._totalframes + 1; rabbitsCircle.gotoAndStop(rabbitsCircleDestFrame); } pressedDown = false; justUp = false; slow = 1; handSlow = 0.25; i = 0; handInitX = rightHand._x; handInitY = rightHand._y; step = 1; colorLight._visible = false; levelComplete = false; trainArrived = false; trainNum = 1; trainPresent = false; rabbitsLine._visible = false; rabbitsLineMove = true; rabbitsLine.rabbit2Mask1.gotoAndStop('hidden'); rabbitsLine.rabbit2Mask2.gotoAndStop('hidden'); rabbitsLine.rabbit2Mask3.gotoAndStop('hidden'); rabbitsCircle.rabbit2Mask1.gotoAndStop('hidden'); rabbitsCircle.rabbit2Mask2.gotoAndStop('hidden'); rabbitsCircle.rabbit2Mask3.gotoAndStop('hidden'); rabbit1Visible = true; rabbit2Visible = false; rabbit3Visible = true; trainLimit = 2; rabbitNum = 2; firstPos = 0; lineDest = false; snowSlow = 0.25; slowRabbits = 0.5; trainsArrived = 0; trainsDeparted = 0; pressing = false; variation = random(2) + 1; trace(variation); _root.mouseListener.onMouseWheel = function (delta) { if (delta < 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch02.start(); if (_root.mySound.slow.position > 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 - 1); } else { _root.mySound.slow.start(_root.mySound.slow.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBackSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch02.start(); if (_root.mySound.normal.position > 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 - 1); } else { _root.mySound.normal.start(_root.mySound.normal.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBack'); } _root.customCursor.gotoAndPlay('down'); } if (delta > 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch01.start(); if (_root.mySound.slow.position < _root.mySound.slow.duration - 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 + 1); } else { _root.mySound.slow.start(1); } scratchControl.gotoAndPlay('scratchForwardSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch01.start(); if (_root.mySound.normal.position < _root.mySound.normal.duration - 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 + 1); } else { _root.mySound.normal.start(1); } scratchControl.gotoAndPlay('scratchForward'); } _root.customCursor.gotoAndPlay('up'); } }; com.pixelbreaker.ui.MouseWheel.addListener(_root.mouseListener); actions.onEnterFrame = function () { if (_parent.fadeOut && _root.mySound.normal.getVolume() > 0) { _root.mySound.normal.setVolume(_root.mySound.normal.getVolume() - 2); _parent.myMusic.chap4.setVolume(_parent.myMusic.chap4.getVolume() - 2); _parent.ticks.tick.setVolume(_parent.ticks.tick.getVolume() - 2); } else { if (_root.mySound.normal.getVolume() == 0) { _parent.fadeOut = false; _root.mySound.normal.stop(); _root.mySound.slow.stop(); _parent.ticks.tick.stop(); _parent.ticks.tick.setVolume(100); _root.mySound.normal.setVolume(100); _parent.myMusic.chap4.stop(); _parent.myMusic.chap4.setVolume(100); Mouse.show(); _root.customCursor._visible = false; } } currentTime = getTimer() - _parent.startTime; if (currentTime < 80000) { if (!_parent.fadeOut && currentTime > 78000) { _parent.fadeOut = true; } _parent.hourglass.topSand.rim._y = 29 + Math.pow((currentTime / 80000) * 5.099019513592785, 2); _parent.hourglass.topSand.rim._height = 6 - Math.pow((currentTime / 80000) * 2.23606797749979, 2); _parent.hourglass.topSand.sandMask._height = 30 - Math.pow((currentTime / 80000) * 5.385164807134504, 2); _parent.hourglass.bottomSand.rim._y = 78 + Math.pow(((80000 - currentTime) / 80000) * 4.795831523312719, 2); _parent.hourglass.bottomSand.sandMask._height = 27 - Math.pow(((80000 - currentTime) / 80000) * 5.099019513592785, 2); } else { if (!_parent.timeOut) { _parent.timeOut = true; if (!_parent.transition) { _parent.timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; _parent.recordClickArea.gotoAndStop(2); Mouse.show(); stopWheel(); _root.startBlankWheel(); } } } if (trainArrived) { colorLight._visible = true; } else { if (!trainArrived) { colorLight._visible = false; } } if (!trainPresent && rabbitsLine._visible && rabbitsLine._currentframe > lineArrangement * 100 - 37) { rabbitsLine.gotoAndStop(lineArrangement * 100 - 37); } if (trainPresent && rabbitsLine._visible && rabbitsLine._currentframe > lineArrangement * 100 - 37 && firstPos != correctRabbitColor) { rabbitsLine.gotoAndStop(lineArrangement * 100 - 37); } if (rabbitsLineMove && rabbitsLine._visible && rabbitsLine._currentframe >= lineArrangement * 100 - 1) { rabbitsLineMove = false; rabbitsLine.gotoAndStop(lineArrangement * 100 - 1); } else { if (rabbitsLine._visible && rabbitsLine._currentframe <= lineArrangement * 100 - 100 + 1) { rabbitsCircle._visible = true; rabbitsCircle.gotoAndStop(circleDestFrame); rabbitsLine._visible = false; clearLineDest(); } } if (!lineDest && rabbitsCircle._visible && pressedDown && (rabbitsCircle._currentframe >= 201 && rabbitsCircle._currentframe <= 250 || rabbitsCircle._currentframe >= 451 && rabbitsCircle._currentframe <= 500 || rabbitsCircle._currentframe >= 701 && rabbitsCircle._currentframe <= 750)) { setLineDest(); } if (lineDest && rabbitsCircle._visible && pressedDown && (rabbitsCircle._currentframe >= 1 && rabbitsCircle._currentframe <= 50 || rabbitsCircle._currentframe >= 251 && rabbitsCircle._currentframe <= 300 || rabbitsCircle._currentframe >= 501 && rabbitsCircle._currentframe <= 550)) { rabbitsLine._visible = true; rabbitsLine.gotoAndStop(lineDestFrame); rabbitsCircle._visible = false; } if (lineDest && rabbitsCircle._visible && (rabbitsCircle._currentframe >= 101 && rabbitsCircle._currentframe <= 150 || rabbitsCircle._currentframe >= 351 && rabbitsCircle._currentframe <= 400 || rabbitsCircle._currentframe >= 601 && rabbitsCircle._currentframe <= 650)) { clearLineDest(); } if (rabbitsLine._visible && rabbitsLine._currentframe >= lineArrangement * 100 - 8 && rabbitsLine._currentframe <= lineArrangement * 100) { rabbitBoard(); } else { if (timeRotation <= clock.hour._rotation + 3 && timeRotation >= clock.hour._rotation - 3 && enterTime) { enterTime = false; boardArrived(); } } if (step == 3 && !pressedDown && further) { instruction.gotoAndPlay('retry'); further = false; midstep = false; } clock.hour._rotation += 0.1666666666666667 / handSlow; clock.minute._rotation += 2 / handSlow; clock.hands.hourShadow._rotation += 0.1666666666666667 / handSlow; clock.hands.minuteShadow._rotation += 2 / handSlow; snowDestFrame = (snow._currentframe + 2 / snowSlow - 1) % (snow._totalframes - 1) + 1; snow.gotoAndStop(snowDestFrame); rabbitsCircleDestFrame = (rabbitsCircle._currentframe + 2 / slowRabbits - 1) % (rabbitsCircle._totalframes - 1) + 1; rabbitsCircle.gotoAndStop(rabbitsCircleDestFrame); if (rabbitsLineMove) { rabbitsLineDestFrame = (rabbitsLine._currentframe + 2 / slowRabbits - 1) % (rabbitsLine._totalframes - 1) + 1; rabbitsLine.gotoAndStop(rabbitsLineDestFrame); } sunlight.light._rotation += 1.25 / slow; train.sunlight.light._rotation += 1.25 / slow; if (slow == 5) { leavesSlow._visible = true; leavesFast._visible = false; } else { leavesSlow._visible = false; leavesFast._visible = true; } clouds._x += 1 / slow; if (clouds._x > 0) { clouds._x -= 1027; } else { if (clouds._x < -1027) { clouds._x += 1027; } } }; } instance actions of movieClip 117 { onClipEvent (load) { _parent.boardTrains(); _parent.boardOnTime(); } } } movieClip 1435 { frame 1 { clearedTxt = Math.round(_parent.chap4bTime / 1000) + ' seconds'; } } movieClip 1440 { } movieClip 1443 { } movieClip 1444 { frame 1 { stop(); } frame 2 { _parent._parent._parent.door.doorOpen.start(); } frame 12 { stop(); } frame 13 { _parent._parent._parent.door.doorClose.start(); } } movieClip 1445 { frame 1 { stop(); } frame 6 { _parent._parent.trainSound.arrive.start(); } frame 61 { stop(); _parent.trainPresent = true; if (_parent.pressing) { door.gotoAndPlay(2); } } frame 120 { door.gotoAndPlay(13); if (_parent.trainNum == _parent.trainLimit) { _parent.chapterComplete(); } } frame 139 { _parent._parent.trainSound.depart.start(); } frame 156 { _parent.boardDeparted(); } frame 185 { _parent.boardOnTime(); } } movieClip 1449 { } movieClip 1450 { } movieClip 1451 { } movieClip 1452 { frame 1 { function stopWheel() { com.pixelbreaker.ui.MouseWheel.removeListener(_root.mouseListener); } function chapterComplete() { solved = true; if (!_parent.timeOut) { _parent.chap4cTime = currentTime - _parent.chap4aTime - _parent.chap4bTime; _parent.transition = true; _parent.gotoAndPlay('outro'); } } function boardTrains() { if (trainLimit >= 1) { train1.currentTop.gotoAndStop('trainBlank'); train1.currentBottom.gotoAndStop('trainBlank'); train1.nextBottom.gotoAndStop('train4'); train1.nextTop.gotoAndStop('train4'); train1.gotoAndPlay(2); } if (trainLimit >= 2) { train2.currentTop.gotoAndStop('trainBlank'); train2.currentBottom.gotoAndStop('trainBlank'); train2.nextBottom.gotoAndStop('train5'); train2.nextTop.gotoAndStop('train5'); train2.gotoAndPlay(2); } if (trainLimit >= 3) { train3.currentTop.gotoAndStop('trainBlank'); train3.currentBottom.gotoAndStop('trainBlank'); train3.nextBottom.gotoAndStop('train6'); train3.nextTop.gotoAndStop('train6'); train3.gotoAndPlay(2); } } function boardOnTime() { if (trainLimit >= trainNum) { timeField = 'time' + trainNum; statusField = 'status' + trainNum; colorField = 'color' + trainNum; if (trainNum == 1 && variation == 1) { rabbitColor = 'colorWhite'; correctRabbitColor = 1; timeHour = 10; timeMin = 0; time = timeHour + timeMin / 4; } else { if (trainNum == 1) { rabbitColor = 'colorWhite'; correctRabbitColor = 1; timeHour = 3; timeMin = 1; time = timeHour + timeMin / 4; } else { if (trainNum == 2 && variation == 1) { rabbitColor = 'colorBrown'; correctRabbitColor = 3; timeHour = 5; timeMin = 1; time = timeHour + timeMin / 4; } else { if (trainNum == 2) { rabbitColor = 'colorBrown'; correctRabbitColor = 3; timeHour = 12; timeMin = 2; time = timeHour + timeMin / 4; } else { if (trainNum == 3 && variation == 1) { rabbitColor = 'colorSpotted'; correctRabbitColor = 2; timeHour = 2; timeMin = 3; time = timeHour + timeMin / 4; } else { if (trainNum == 3) { rabbitColor = 'colorSpotted'; correctRabbitColor = 2; timeHour = 7; timeMin = 0; time = timeHour + timeMin / 4; } } } } } } timeRotation = 30 * time; if (timeRotation > 180) { timeRotation -= 360; } _parent.flip.flip.start(0); this[timeField].currentTop.gotoAndStop('timeBlank'); this[timeField].currentBottom.gotoAndStop('timeBlank'); this[timeField].nextBottom.gotoAndStop('time1'); this[timeField].nextTop.gotoAndStop('time1'); this[timeField].nextBottom.minField.gotoAndStop(timeMin + 1); this[timeField].nextTop.minField.gotoAndStop(timeMin + 1); this[timeField].nextBottom.hourField.gotoAndStop(timeHour); this[timeField].nextTop.hourField.gotoAndStop(timeHour); this[timeField].currentTop.gotoAndStop('timeBlank'); this[timeField].currentBottom.gotoAndStop('timeBlank'); this[timeField].nextBottom.gotoAndStop('time1'); this[timeField].nextTop.gotoAndStop('time1'); this[statusField].currentTop.gotoAndStop('statusBlank'); this[statusField].currentBottom.gotoAndStop('statusBlank'); this[statusField].nextBottom.gotoAndStop('onTime'); this[statusField].nextTop.gotoAndStop('onTime'); this[colorField].currentTop.gotoAndStop('colorBlank'); this[colorField].currentBottom.gotoAndStop('colorBlank'); this[colorField].nextBottom.gotoAndStop(rabbitColor); this[colorField].nextTop.gotoAndStop(rabbitColor); this[timeField].gotoAndPlay(2); this[statusField].gotoAndPlay(2); this[colorField].gotoAndPlay(2); enterTime = true; } } function boardArrived() { _parent.flip.flip.start(0); this[statusField].currentTop.gotoAndStop('onTime'); this[statusField].currentBottom.gotoAndStop('onTime'); this[statusField].nextBottom.gotoAndStop('arrived'); this[statusField].nextTop.gotoAndStop('arrived'); this[statusField].gotoAndPlay(2); train.gotoAndPlay('arrive'); trainArrived = true; } function boardDeparted() { _parent.flip.flip.start(0); trainPresent = false; this[statusField].currentTop.gotoAndStop('arrived'); this[statusField].currentBottom.gotoAndStop('arrived'); this[statusField].nextBottom.gotoAndStop('departed'); this[statusField].nextTop.gotoAndStop('departed'); this[statusField].gotoAndPlay(2); trainNum += 1; colorLight.gotoAndStop('off'); } function rabbitHide() { rabbitsLine['rabbit' + rabbitBoarded + 'Mask1'].gotoAndStop('hidden'); rabbitsLine['rabbit' + rabbitBoarded + 'Mask2'].gotoAndStop('hidden'); rabbitsLine['rabbit' + rabbitBoarded + 'Mask3'].gotoAndStop('hidden'); rabbitsCircle['rabbit' + rabbitBoarded + 'Mask1'].gotoAndStop('hidden'); rabbitsCircle['rabbit' + rabbitBoarded + 'Mask2'].gotoAndStop('hidden'); rabbitsCircle['rabbit' + rabbitBoarded + 'Mask3'].gotoAndStop('hidden'); this['rabbit' + rabbitBoarded + 'Visible'] = false; } function rabbitBoard() { trainArrived = false; trainPresent = false; train.gotoAndPlay('depart'); rabbitNum -= 1; rabbitBoarded = firstPos; rabbitHide(); if (lineArrangement >= 1 && lineArrangement <= 6) { lineArrangement += 3; rabbitsLine.gotoAndStop(lineArrangement * 100 - 39); } else { if (lineArrangement >= 10 && lineArrangement <= 12) { lineArrangement -= 3; rabbitsLine.gotoAndStop(lineArrangement * 100 - 39); } } } function setLineDest() { if (!lineDest && rabbitsCircle._visible && pressedDown && rabbitsCircle._currentframe >= 1 && rabbitsCircle._currentframe <= 250) { circleDestFrame = 250; if (rabbit1Visible && rabbit2Visible && rabbit3Visible || rabbit1Visible && rabbit2Visible && !rabbit3Visible || rabbit1Visible && !rabbit2Visible && !rabbit3Visible) { firstPos = 1; lineDestFrame = 1; lineDest = true; lineArrangement = 1; } else { if (rabbit1Visible && !rabbit2Visible && rabbit3Visible) { firstPos = 1; lineDestFrame = 901; lineDest = true; lineArrangement = 10; } else { if (!rabbit1Visible && rabbit2Visible && rabbit3Visible || !rabbit1Visible && rabbit2Visible && !rabbit3Visible) { firstPos = 2; lineDestFrame = 301; lineDest = true; lineArrangement = 4; } else { if (!rabbit1Visible && !rabbit2Visible && rabbit3Visible) { firstPos = 3; lineDestFrame = 601; lineDest = true; lineArrangement = 7; } } } } } else { if (!lineDest && rabbitsCircle._visible && pressedDown && rabbitsCircle._currentframe >= 251 && rabbitsCircle._currentframe <= 500) { circleDestFrame = 500; if (rabbit1Visible && rabbit2Visible && rabbit3Visible || !rabbit1Visible && rabbit2Visible && rabbit3Visible || !rabbit1Visible && rabbit2Visible && !rabbit3Visible) { firstPos = 2; lineDestFrame = 101; lineDest = true; lineArrangement = 2; } else { if (rabbit1Visible && rabbit2Visible && !rabbit3Visible) { firstPos = 2; lineDestFrame = 1001; lineDest = true; lineArrangement = 11; } else { if (rabbit1Visible && !rabbit2Visible && rabbit3Visible || !rabbit1Visible && !rabbit2Visible && rabbit3Visible) { firstPos = 3; lineDestFrame = 401; lineDest = true; lineArrangement = 5; } else { if (rabbit1Visible && !rabbit2Visible && !rabbit3Visible) { firstPos = 1; lineDestFrame = 701; lineDest = true; lineArrangement = 8; } } } } } else { if (!lineDest && rabbitsCircle._visible && pressedDown && rabbitsCircle._currentframe >= 501 && rabbitsCircle._currentframe <= 750) { circleDestFrame = 750; if (rabbit1Visible && rabbit2Visible && rabbit3Visible || rabbit1Visible && !rabbit2Visible && rabbit3Visible || !rabbit1Visible && !rabbit2Visible && rabbit3Visible) { firstPos = 3; lineDestFrame = 201; lineDest = true; lineArrangement = 3; } else { if (!rabbit1Visible && rabbit2Visible && rabbit3Visible) { firstPos = 3; lineDestFrame = 1101; lineDest = true; lineArrangement = 12; } else { if (rabbit1Visible && rabbit2Visible && !rabbit3Visible || rabbit1Visible && !rabbit2Visible && !rabbit3Visible) { firstPos = 1; lineDestFrame = 501; lineDest = true; lineArrangement = 6; } else { if (!rabbit1Visible && rabbit2Visible && !rabbit3Visible) { firstPos = 2; lineDestFrame = 801; lineDest = true; lineArrangement = 9; } } } } } } } trace('set'); } function clearLineDest() { lineDest = false; trace('clear'); } function rotateObj(inc) { clock.hour._rotation += inc / 12 / handSlow; clock.minute._rotation += inc / handSlow; clock.hands.hourShadow._rotation += inc / 12 / handSlow; clock.hands.minuteShadow._rotation += inc / handSlow; sunlight.light._rotation += inc / 1.6; train.sunlight.light._rotation += inc / 1.6; destFrame = (leavesSlow._totalframes + leavesSlow._currentframe + inc * 2 - 1) % leavesSlow._totalframes + 1; leavesSlow.gotoAndPlay(destFrame); leavesFast.gotoAndPlay(destFrame); snowDestFrame = (_parent.snow._totalframes + _parent.snow._currentframe + (inc / snowSlow) * 3 - 1) % _parent.snow._totalframes + 1; _parent.snow.gotoAndStop(snowDestFrame); rabbitsCircleDestFrame = (rabbitsCircle._totalframes + rabbitsCircle._currentframe + (inc * 1.5 - 1)) % rabbitsCircle._totalframes + 1; rabbitsCircle.gotoAndStop(rabbitsCircleDestFrame); } pressedDown = false; justUp = false; slow = 1; handSlow = 0.25; i = 0; handInitX = rightHand._x; handInitY = rightHand._y; step = 1; colorLight._visible = false; levelComplete = false; trainArrived = false; trainNum = 1; trainPresent = false; rabbitsLine._visible = false; rabbitsLineMove = true; rabbit1Visible = true; rabbit2Visible = true; rabbit3Visible = true; trainLimit = 3; rabbitNum = 3; firstPos = 0; lineDest = false; snowSlow = 0.25; slowRabbits = 0.5; trainsArrived = 0; trainsDeparted = 0; pressing = false; variation = random(2) + 1; trace(variation); _root.mouseListener.onMouseWheel = function (delta) { if (delta < 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch02.start(); if (_root.mySound.slow.position > 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 - 1); } else { _root.mySound.slow.start(_root.mySound.slow.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBackSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch02.start(); if (_root.mySound.normal.position > 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 - 1); } else { _root.mySound.normal.start(_root.mySound.normal.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBack'); } _root.customCursor.gotoAndPlay('down'); } if (delta > 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch01.start(); if (_root.mySound.slow.position < _root.mySound.slow.duration - 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 + 1); } else { _root.mySound.slow.start(1); } scratchControl.gotoAndPlay('scratchForwardSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch01.start(); if (_root.mySound.normal.position < _root.mySound.normal.duration - 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 + 1); } else { _root.mySound.normal.start(1); } scratchControl.gotoAndPlay('scratchForward'); } _root.customCursor.gotoAndPlay('up'); } }; com.pixelbreaker.ui.MouseWheel.addListener(_root.mouseListener); actions.onEnterFrame = function () { if (_parent.fadeOut && _root.mySound.normal.getVolume() > 0) { _root.mySound.normal.setVolume(_root.mySound.normal.getVolume() - 2); _parent.myMusic.chap4.setVolume(_parent.myMusic.chap4.getVolume() - 2); _parent.ticks.tick.setVolume(_parent.ticks.tick.getVolume() - 2); } else { if (_root.mySound.normal.getVolume() == 0) { _parent.fadeOut = false; _root.mySound.normal.stop(); _root.mySound.slow.stop(); _parent.ticks.tick.stop(); _parent.ticks.tick.setVolume(100); _root.mySound.normal.setVolume(100); _parent.myMusic.chap4.stop(); _parent.myMusic.chap4.setVolume(100); Mouse.show(); _root.customCursor._visible = false; } } currentTime = getTimer() - _parent.startTime; if (currentTime < 80000) { if (!_parent.fadeOut && currentTime > 78000 && !solved) { _parent.fadeOut = true; } _parent.hourglass.topSand.rim._y = 29 + Math.pow((currentTime / 80000) * 5.099019513592785, 2); _parent.hourglass.topSand.rim._height = 6 - Math.pow((currentTime / 80000) * 2.23606797749979, 2); _parent.hourglass.topSand.sandMask._height = 30 - Math.pow((currentTime / 80000) * 5.385164807134504, 2); _parent.hourglass.bottomSand.rim._y = 78 + Math.pow(((80000 - currentTime) / 80000) * 4.795831523312719, 2); _parent.hourglass.bottomSand.sandMask._height = 27 - Math.pow(((80000 - currentTime) / 80000) * 5.099019513592785, 2); } else { if (!_parent.timeOut) { _parent.timeOut = true; if (!_parent.transition) { _parent.timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; _parent.recordClickArea.gotoAndStop(2); Mouse.show(); stopWheel(); _root.startBlankWheel(); } } } if (trainArrived) { colorLight._visible = true; } else { if (!trainArrived) { colorLight._visible = false; } } if (!trainPresent && rabbitsLine._visible && rabbitsLine._currentframe > lineArrangement * 100 - 37) { rabbitsLine.gotoAndStop(lineArrangement * 100 - 37); trace('No Train'); trace(rabbitsLine._currentframe); } if (trainPresent && rabbitsLine._visible && rabbitsLine._currentframe > lineArrangement * 100 - 37 && firstPos != correctRabbitColor) { rabbitsLine.gotoAndStop(lineArrangement * 100 - 37); trace('No Train'); trace(rabbitsLine._currentframe); } if (rabbitsLineMove && rabbitsLine._visible && rabbitsLine._currentframe >= lineArrangement * 100 - 1) { rabbitsLineMove = false; rabbitsLine.gotoAndStop(lineArrangement * 100 - 1); trace('Over Limit'); trace(rabbitsLine._currentframe); } else { if (rabbitsLine._visible && rabbitsLine._currentframe <= lineArrangement * 100 - 100 + 1) { rabbitsCircle._visible = true; rabbitsCircle.gotoAndStop(circleDestFrame); rabbitsLine._visible = false; trace('circle'); clearLineDest(); } } if (!lineDest && rabbitsCircle._visible && pressedDown && (rabbitsCircle._currentframe >= 201 && rabbitsCircle._currentframe <= 250 || rabbitsCircle._currentframe >= 451 && rabbitsCircle._currentframe <= 500 || rabbitsCircle._currentframe >= 701 && rabbitsCircle._currentframe <= 750)) { setLineDest(); } if (lineDest && rabbitsCircle._visible && pressedDown && (rabbitsCircle._currentframe >= 1 && rabbitsCircle._currentframe <= 50 || rabbitsCircle._currentframe >= 251 && rabbitsCircle._currentframe <= 300 || rabbitsCircle._currentframe >= 501 && rabbitsCircle._currentframe <= 550)) { rabbitsLine._visible = true; rabbitsLine.gotoAndStop(lineDestFrame); rabbitsCircle._visible = false; trace('transfer'); } if (lineDest && rabbitsCircle._visible && (rabbitsCircle._currentframe >= 101 && rabbitsCircle._currentframe <= 150 || rabbitsCircle._currentframe >= 351 && rabbitsCircle._currentframe <= 400 || rabbitsCircle._currentframe >= 601 && rabbitsCircle._currentframe <= 650)) { clearLineDest(); } if (rabbitsLine._visible && rabbitsLine._currentframe >= lineArrangement * 100 - 8 && rabbitsLine._currentframe <= lineArrangement * 100) { rabbitBoard(); } else { if (timeRotation <= clock.hour._rotation + 3 && timeRotation >= clock.hour._rotation - 3 && enterTime) { enterTime = false; boardArrived(); } } if (step == 3 && !pressedDown && further) { instruction.gotoAndPlay('retry'); further = false; midstep = false; } clock.hour._rotation += 0.1666666666666667 / handSlow; clock.minute._rotation += 2 / handSlow; clock.hands.hourShadow._rotation += 0.1666666666666667 / handSlow; clock.hands.minuteShadow._rotation += 2 / handSlow; snowDestFrame = (_parent.snow._currentframe + 2 / snowSlow - 1) % (_parent.snow._totalframes - 1) + 1; _parent.snow.gotoAndStop(snowDestFrame); rabbitsCircleDestFrame = (rabbitsCircle._currentframe + 2 / slowRabbits - 1) % (rabbitsCircle._totalframes - 1) + 1; rabbitsCircle.gotoAndStop(rabbitsCircleDestFrame); if (rabbitsLineMove) { rabbitsLineDestFrame = (rabbitsLine._currentframe + 2 / slowRabbits - 1) % (rabbitsLine._totalframes - 1) + 1; rabbitsLine.gotoAndStop(rabbitsLineDestFrame); } sunlight.light._rotation += 1.25 / slow; train.sunlight.light._rotation += 1.25 / slow; if (slow == 5) { leavesSlow._visible = true; leavesFast._visible = false; } else { leavesSlow._visible = false; leavesFast._visible = true; } clouds._x += 1 / slow; if (clouds._x > 0) { clouds._x -= 1027; } else { if (clouds._x < -1027) { clouds._x += 1027; } } }; } instance actions of movieClip 117 { onClipEvent (load) { _parent.boardTrains(); _parent.boardOnTime(); } } } movieClip 1454 { frame 1 { clearedTxt = Math.round(_parent.chap4cTime / 1000) + ' seconds'; } } movieClip 1456 { } movieClip 1457 { frame 1 { stop(); } frame 2 { _root.trackingHolder.trackPageview('chap4/easy'); chap4aTime = 0; chap4bTime = 0; chap4cTime = 0; myMusic.chap4 = new Sound(myMusic); myMusic.chap4.attachSound('manana'); ticks.tick = new Sound(ticks); ticks.tick.attachSound('tick'); ticks.tick_slow = new Sound(ticks); ticks.tick_slow.attachSound('tick_slow'); trainSound.arrive = new Sound(trainSound); trainSound.arrive.attachSound('train_arrive'); trainSound.depart = new Sound(trainSound); trainSound.depart.attachSound('train_depart'); flip.flip = new Sound(flip); flip.flip.attachSound('flip'); door.doorOpen = new Sound(door.doorOpen); door.doorOpen.attachSound('door_open'); door.doorClose = new Sound(door.doorClose); door.doorClose.attachSound('door_close'); audioTrans.chap4complete = new Sound(audioTrans); audioTrans.chap4complete.attachSound('chap4_complete'); audioTrans.chap4timesup = new Sound(audioTrans); audioTrans.chap4timesup.attachSound('chap4_timesup'); ticks.tick.onSoundComplete = function () { ticks.tick.start(0); }; ticks.tick_slow.onSoundComplete = function () { ticks.tick_slow.start(0); }; myMusic.chap4.start(); myMusic.chap4.setVolume(100); ticks.tick.start(); startTime = getTimer(); timeOut = false; transition = true; recordClickArea.onRollOver = function () { recordClickArea.useHandCursor = false; Mouse.hide(); _root.customCursor._visible = true; }; recordClickArea.onRollOut = function () { Mouse.show(); _root.customCursor._visible = false; }; recordClickArea.onReleaseOutside = function () { if (recordClickArea._currentframe == 1) { if (chap.train._currentframe == 61) { chap.train.door.gotoAndPlay(13); } if (chap.rabbitsLine._visible && chap.rabbitsLine._currentframe >= chap.lineArrangement * 100 - 25 && chap.rabbitsLine._currentframe <= chap.lineArrangement * 100) { chap.rabbitBoard(); } ticks.tick_slow.stop(); ticks.tick.start(ticks.tick_slow.position / 1.25 / 1000); _root.customCursor._xscale = 105; _root.customCursor._yscale = 105; chap.pressing = false; chap.pressedDown = false; _root.mySound.slow.stop(); _root.mySound.normal.start(_root.mySound.slow.position / 1.25 / 1000); chap.justUp = false; chap.slow = 1; chap.handSlow = 0.25; chap.snowSlow = 0.25; chap.slowRabbits = 0.5; chap.leaves.gotoAndStop(1); if (!chap.rabbitsCircle._visible) { chap.rabbitsCircle._visible = true; chap.rabbitsCircle.gotoAndStop(chap.circleDestFrame); chap.rabbitsLine._visible = false; chap.rabbitsLine.gotoAndStop(1); } chap.rabbitsLineMove = true; chap.clearLineDest(); chap.colorLight.gotoAndStop('off'); } }; recordClickArea.onMouseMove = function () { _root.customCursor._y = _root._ymouse; _root.customCursor._x = _root._xmouse; xDist = chap.center._x - _root.customCursor._x; yDist = chap.center._y - _root.customCursor._y; angle = (Math.atan2(yDist, xDist) / Math.PI) * 180; _root.customCursor._rotation = angle; updateAfterEvent(); }; recordClickArea.onPress = function () { if (chap.train._currentframe == 61) { chap.train.door.gotoAndPlay(2); } ticks.tick.stop(); ticks.tick_slow.start(ticks.tick.position * 1.25 / 1000); _root.customCursor._xscale = 95; _root.customCursor._yscale = 95; _root.mySound.normal.stop(); _root.mySound.slow.start(_root.mySound.normal.position * 1.25 / 1000); chap.pressing = true; chap.pressedDown = true; chap.slow = 5; chap.handSlow = 1; chap.snowSlow = 2; chap.slowRabbits = 2; chap.leaves.gotoAndStop(2); chap.setLineDest(); chap.rabbitsCircle._visible = true; chap.rabbitsCircle.gotoAndStop(chap.circleDestFrame); chap.rabbitsLine._visible = false; chap.rabbitsLine.gotoAndStop(1); if (chap.firstPos == chap.correctRabbitColor) { chap.colorLight.gotoAndPlay('green'); } else { if (chap.firstPos != chap.correctRabbitColor) { chap.colorLight.gotoAndPlay('red'); } } }; recordClickArea.onRelease = function () { if (recordClickArea._currentframe == 1) { if (chap.train._currentframe == 61) { chap.train.door.gotoAndPlay(13); } if (chap.rabbitsLine._visible && chap.rabbitsLine._currentframe >= chap.lineArrangement * 100 - 25 && chap.rabbitsLine._currentframe <= chap.lineArrangement * 100) { chap.rabbitBoard(); } ticks.tick_slow.stop(); ticks.tick.start(ticks.tick_slow.position / 1.25 / 1000); _root.customCursor._xscale = 105; _root.customCursor._yscale = 105; chap.pressing = false; chap.pressedDown = false; _root.mySound.slow.stop(); _root.mySound.normal.start(_root.mySound.slow.position / 1.25 / 1000); chap.justUp = false; chap.slow = 1; chap.handSlow = 0.25; chap.snowSlow = 0.25; chap.slowRabbits = 0.5; chap.leaves.gotoAndStop(1); if (!chap.rabbitsCircle._visible) { chap.rabbitsCircle._visible = true; chap.rabbitsCircle.gotoAndStop(chap.circleDestFrame); chap.rabbitsLine._visible = false; chap.rabbitsLine.gotoAndStop(1); } chap.rabbitsLineMove = true; chap.clearLineDest(); chap.colorLight.gotoAndStop('off'); } }; } frame 10 { stop(); transition = false; } frame 11 { _root.trackingHolder.trackPageview('chap4/medium'); } frame 48 { _root.ding.ding.start(0); } frame 121 { chap.stopWheel(); } frame 129 { stop(); transition = false; if (timeOut) { timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; recordClickArea.gotoAndStop(2); Mouse.show(); chap.stopWheel(); _root.startBlankWheel(); } } frame 130 { _root.trackingHolder.trackPageview('chap4/hard'); } frame 167 { _root.ding.ding.start(0); } frame 240 { chap.stopWheel(); } frame 248 { stop(); transition = false; if (timeOut) { timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; recordClickArea.gotoAndStop(2); Mouse.show(); chap.stopWheel(); _root.startBlankWheel(); } } frame 249 { _root.customCursor._visible = false; Mouse.show(); chap.stopWheel(); _root.startBlankWheel(); } frame 286 { _root.ding.ding.start(0); } frame 308 { fadeOut = true; } frame 363 { audioTrans.chap4complete.start(0); } frame 428 { _root.chap5Trans.gotoAndPlay('intro'); } } movieClip 1461 { } movieClip 1464 { } movieClip 1467 { } movieClip 1470 { } movieClip 1473 { } movieClip 1476 { } movieClip 1479 { } movieClip 1482 { } movieClip 1485 { } movieClip 1486 { frame 1 { stop(); } frame 6 { _parent._parent.flip.flip.start(); } frame 15 { stop(); } frame 16 { _parent._parent.flip.flip.start(); } frame 38 { _parent._parent.flip.flip.start(); } frame 46 { stop(); } frame 47 { _parent._parent.flip.flip.start(); } frame 61 { stop(); _parent['ticker' + _parent.animalNum].gotoAndPlay('white'); } } movieClip 1488 { } movieClip 1492 { } movieClip 1493 { frame 1 { stop(); } } movieClip 1495 { } movieClip 1498 { } movieClip 1499 { frame 1 { stop(); } } movieClip 1501 { } movieClip 1504 { } movieClip 1509 { } movieClip 1510 { frame 1 { stop(); } } movieClip 1512 { } movieClip 1513 { } movieClip 1516 { } movieClip 1517 { } movieClip 1521 { } movieClip 1523 { } movieClip 1525 { } movieClip 1527 { } movieClip 1529 { } movieClip 1531 { } movieClip 1533 { } movieClip 1535 { } movieClip 1537 { } movieClip 1539 { } movieClip 1541 { } movieClip 1543 { } movieClip 1545 { } movieClip 1546 { frame 1 { stop(); } } movieClip 1551 { } movieClip 1554 { } movieClip 1556 { } movieClip 1558 { } movieClip 1560 { } movieClip 1562 { } movieClip 1564 { } movieClip 1566 { } movieClip 1568 { } movieClip 1570 { } movieClip 1571 { frame 1 { stop(); } } movieClip 1576 { } movieClip 1580 { } movieClip 1585 { } movieClip 1587 { } movieClip 1590 { } movieClip 1592 { } movieClip 1596 { } movieClip 1597 { } movieClip 1598 { } movieClip 1602 { } movieClip 1604 { } movieClip 1605 { frame 16 { stop(); } frame 25 { stop(); } frame 32 { this.removeMovieClip(); } frame 40 { this.removeMovieClip(); } } movieClip 1606 { frame 1 { function duplicateMouse() { duplicateMovieClip('stuffedMouse', 'stuffedMouse' + _parent.animalCycle, _parent.mouseLevel++); this['stuffedMouse' + _parent.animalCycle]._x = 120; this['stuffedMouse' + _parent.animalCycle].gotoAndPlay('bounce'); if (_parent.animalCycle < 4) { ++_parent.animalCycle; } else { _parent.animalCycle = 1; } if (this['stuffedMouse' + _parent.animalCycle]._currentframe <= 17) { this['stuffedMouse' + _parent.animalCycle].gotoAndPlay('shrink'); } else { this['stuffedMouse' + _parent.animalCycle].gotoAndPlay('crushShrink'); } stuffedMouse1.stuffedMouse.stuffedMouse.mouseTint._alpha = (Math.abs(stuffedMouse1._x - 260) / 460) * 30; stuffedMouse2.stuffedMouse.stuffedMouse.mouseTint._alpha = (Math.abs(stuffedMouse2._x - 260) / 460) * 30; stuffedMouse3.stuffedMouse.stuffedMouse.mouseTint._alpha = (Math.abs(stuffedMouse3._x - 260) / 460) * 30; stuffedMouse4.stuffedMouse.stuffedMouse.mouseTint._alpha = (Math.abs(stuffedMouse4._x - 260) / 460) * 30; } } } movieClip 1611 { } movieClip 1613 { } movieClip 1614 { } movieClip 1616 { } movieClip 1617 { } movieClip 1620 { } movieClip 1621 { } movieClip 1623 { } movieClip 1624 { } movieClip 1625 { frame 1 { stop(); } frame 18 { stop(); } } movieClip 1626 { } movieClip 1630 { } movieClip 1633 { } movieClip 1635 { } movieClip 1637 { } movieClip 1639 { } movieClip 1641 { } movieClip 1643 { } movieClip 1645 { } movieClip 1647 { } movieClip 1648 { frame 1 { stop(); } frame 4 { if (_parent.box._x > 34 && _parent.box._x < 192 && !_parent.boxClosed) { _parent.inRange = true; } _parent.comingDown = true; } frame 8 { i = 1; while (i <= 4) { if (i != _parent.animalCycle && _parent.mice['stuffedMouse' + i]._x > 70 && _parent.mice['stuffedMouse' + i]._x < 160 && _parent.mice['stuffedMouse' + i]._currentframe <= 17) { _parent.mice['stuffedMouse' + i].gotoAndPlay('crush'); } ++i; } } frame 9 { if (_parent.inRange && !_parent.boxClosed) { _parent.boxDest = _parent.boxInit + 3; _parent.box._y = _parent.boxDest; _parent.boxFront._y = _parent.boxDest; } } frame 12 { i = 1; while (i <= 4) { if (i != _parent.animalCycle && _parent.mice['stuffedMouse' + i]._x > 70 && _parent.mice['stuffedMouse' + i]._x < 160 && _parent.mice['stuffedMouse' + i]._currentframe <= 17) { _parent.mice['stuffedMouse' + i].gotoAndPlay('crush'); } ++i; } } frame 20 { if (_parent.inRange && !_parent.boxClosed) { _parent.boxFront.gotoAndPlay('filled'); _parent.box.gotoAndPlay('filled'); _parent.boxClosed = true; _parent.boxDest = _parent.boxInit; _parent['ticker' + _parent.animalNum].gotoAndPlay('green'); if (!_parent._parent.timeOut && _parent.animalNum == 3) { _parent._parent.chap5aTime = _parent.currentTime; _parent._parent.transition = true; _parent._parent.gotoAndPlay(_parent.chapDest); _parent.solved = true; } ++_parent.animalNum; } else { _parent.mice.duplicateMouse(); } } frame 23 { _parent.inRange = false; _parent.comingDown = false; } } movieClip 1650 { } movieClip 1653 { } movieClip 1654 { frame 1 { stop(); } frame 7 { stuffedMouse.stuffedMouse.stuffedMouse.mouseTint._alpha = 20; } frame 24 { stop(); } frame 42 { _parent.box._visible = false; stop(); } } movieClip 1655 { frame 10 { _parent.ticker1.gotoAndPlay('white'); stop(); } } movieClip 1656 { frame 1 { function stopWheel() { com.pixelbreaker.ui.MouseWheel.removeListener(_root.mouseListener); } function rotateObj(inc) { conveyorGear.screw._rotation += inc; conveyorGear.gear._rotation += inc; conveyorGear.gearMask._rotation += inc; conveyorGear.gearShadow._rotation += inc; conveyorGearBelow.screw._rotation += inc; conveyorGearBelow.gear._rotation += inc; conveyorGearBelow.gearMask._rotation += inc; conveyorGearBelow.gearShadow._rotation += inc; conveyorBeltLeft.belt._x -= inc * 3; conveyorBeltRight.belt._x -= inc * 3; conveyorBeltLeft.beltBottom._x += inc * 3; conveyorBeltRight.beltBottom._x += inc * 3; mice.stuffedMouse1._x -= inc * 3; mice.stuffedMouse2._x -= inc * 3; mice.stuffedMouse3._x -= inc * 3; mice.stuffedMouse4._x -= inc * 3; if (!inRange) { box._x -= inc * 3; boxFront._x = box._x; } conveyorBeltRight.wheelRight._rotation -= inc * 5; conveyorBeltRight.wheelMiddle._rotation -= inc * 5; conveyorBeltRight.wheelLeft._rotation -= inc * 5; conveyorBeltLeft.wheelRight._rotation -= inc * 5; conveyorBeltLeft.wheelMiddle._rotation -= inc * 5; conveyorBeltLeft.wheelLeft._rotation -= inc * 5; if (inc < 0) { dialRotation += inc / 4; } else { dialRotation += inc / 2; } } pressedDown = false; justUp = false; slow = 1; i = 0; _root.customCursor._xscale = 105; _root.customCursor._yscale = 105; _root.customCursor._y = _root._ymouse; _root.customCursor._x = _root._xmouse; xDist = center._x - _root.customCursor._x; yDist = center._y - _root.customCursor._y; angle = (Math.atan2(yDist, xDist) / Math.PI) * 180; _root.customCursor._rotation = angle; dialRotation = 360000; dialLag = 360000; dialAccel = 2; yInc = 0; bounce = 1.5; dropAnimal = true; animalCycle = 1; mouseLevel = 0; boxAccel = 3; comingDown = false; boxClosed = false; boxInit = box._y; boxDest = boxInit; animalNum = 1; chapDest = 'chap5b'; stuffedMouseInc = 0; _root.stopBlankWheel(); _root.mouseListener.onMouseWheel = function (delta) { if (delta < 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch02.start(); if (_root.mySound.slow.position > 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 - 1); } else { _root.mySound.slow.start(_root.mySound.slow.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBackSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch02.start(); if (_root.mySound.normal.position > 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 - 1); } else { _root.mySound.normal.start(_root.mySound.normal.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBack'); } _root.customCursor.gotoAndPlay('down'); } if (delta > 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch01.start(); if (_root.mySound.slow.position < _root.mySound.slow.duration - 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 + 1); } else { _root.mySound.slow.start(1); } scratchControl.gotoAndPlay('scratchForwardSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch01.start(); if (_root.mySound.normal.position < _root.mySound.normal.duration - 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 + 1); } else { _root.mySound.normal.start(1); } scratchControl.gotoAndPlay('scratchForward'); } _root.customCursor.gotoAndPlay('up'); } }; com.pixelbreaker.ui.MouseWheel.addListener(_root.mouseListener); actions.onEnterFrame = function () { if (_parent.fadeOut && _root.mySound.normal.getVolume() > 0) { _root.mySound.normal.setVolume(_root.mySound.normal.getVolume() - 2); _parent.myMusic.chap5.setVolume(_parent.myMusic.chap5.getVolume() - 2); } else { if (_root.mySound.normal.getVolume() == 0) { _parent.fadeOut = false; _root.mySound.normal.stop(); _root.mySound.slow.stop(); _root.mySound.normal.setVolume(100); _parent.myMusic.chap5.stop(); _parent.myMusic.chap5.setVolume(100); Mouse.show(); _root.customCursor._visible = false; } } currentTime = getTimer() - _parent.startTime; if (currentTime < 80000) { if (!_parent.fadeOut && currentTime > 78000) { _parent.fadeOut = true; } _parent.hourglass.topSand.rim._y = 29 + Math.pow((currentTime / 80000) * 5.099019513592785, 2); _parent.hourglass.topSand.rim._height = 6 - Math.pow((currentTime / 80000) * 2.23606797749979, 2); _parent.hourglass.topSand.sandMask._height = 30 - Math.pow((currentTime / 80000) * 5.385164807134504, 2); _parent.hourglass.bottomSand.rim._y = 78 + Math.pow(((80000 - currentTime) / 80000) * 4.795831523312719, 2); _parent.hourglass.bottomSand.sandMask._height = 27 - Math.pow(((80000 - currentTime) / 80000) * 5.099019513592785, 2); } else { if (!_parent.timeOut) { _parent.timeOut = true; if (!_parent.transition) { _parent.timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; _parent.recordClickArea.gotoAndStop(2); Mouse.show(); stopWheel(); _root.startBlankWheel(); } } } conveyorGear.screw._rotation += 2 / slow; conveyorGear.gear._rotation += 2 / slow; conveyorGear.gearMask._rotation += 2 / slow; conveyorGear.gearShadow._rotation += 2 / slow; conveyorGearBelow.screw._rotation += 2 / slow; conveyorGearBelow.gear._rotation += 2 / slow; conveyorGearBelow.gearMask._rotation += 2 / slow; conveyorGearBelow.gearShadow._rotation += 2 / slow; conveyorBeltRight.wheelRight._rotation -= 6 / slow; conveyorBeltRight.wheelMiddle._rotation -= 6 / slow; conveyorBeltRight.wheelLeft._rotation -= 6 / slow; conveyorBeltLeft.wheelRight._rotation -= 6 / slow; conveyorBeltLeft.wheelMiddle._rotation -= 6 / slow; conveyorBeltLeft.wheelLeft._rotation -= 6 / slow; dialRotation += 2 / slow; mice.stuffedMouse1._x -= 5 / slow; mice.stuffedMouse2._x -= 5 / slow; mice.stuffedMouse3._x -= 5 / slow; mice.stuffedMouse4._x -= 5 / slow; box._y += (boxDest - box._y) / 2; if (inRange && !boxClosed) { box._x += (114 - box._x) / boxAccel; } else { box._x -= 5 / slow; } if (!inRange && comingDown && box._x > 114 && box._x < 192 && !boxClosed) { box._x = 192; } else { if (!inRange && comingDown && box._x > 34 && box._x < 114 && !boxClosed) { box._x = 34; } } conveyorBeltLeft.belt._x -= 5 / slow; conveyorBeltRight.belt._x -= 5 / slow; conveyorBeltLeft.beltBottom._x += 5 / slow; conveyorBeltRight.beltBottom._x += 5 / slow; if (conveyorBeltLeft.belt._x < -413) { conveyorBeltLeft.belt._x += 413; conveyorBeltRight.belt._x += 413; conveyorBeltLeft.beltBottom._x -= 413; conveyorBeltRight.beltBottom._x -= 413; } else { if (conveyorBeltLeft.belt._x > 0) { conveyorBeltLeft.belt._x -= 413; conveyorBeltRight.belt._x -= 413; conveyorBeltLeft.beltBottom._x += 413; conveyorBeltRight.beltBottom._x += 413; } } if (box._x < -80) { box._x = 700; box._visible = true; boxClosed = false; boxFront.gotoAndStop('empty'); box.gotoAndStop('empty'); } else { if (box._x > 740) { box._x = 740; } } boxFront._x = box._x; boxFront._y = box._y; i = 1; while (i <= 4) { if (mice['stuffedMouse' + i]._x < -30 || mice['stuffedMouse' + i]._x > 670) { mice['stuffedMouse' + i]._visible = false; } mice['stuffedMouse' + i].stuffedMouse.stuffedMouse.mouseTint._alpha = (Math.abs(mice['stuffedMouse' + i]._x - 260) / 460) * 30; ++i; } musicPosition = _parent.myMusic.chap5.position; if (musicPosition > _parent.firstMark[_parent.currentFirstMark] - 400) { ++_parent.currentFirstMark; } if (musicPosition > _parent.secondMark[_parent.currentSecondMark] - 400) { if (!comingDown) { pressShadow.gotoAndPlay(2); conveyorPress.gotoAndPlay(2); pressGearLarge.gotoAndPlay(2); pressGearSmall.gotoAndPlay(2); leaves.gotoAndPlay(2); catAbove.gotoAndPlay(2); catBelow.gotoAndPlay(2); } ++_parent.currentSecondMark; } }; } instance leaves of movieClip 1493 { onClipEvent (load) { this.gotoAndPlay(2); } } } movieClip 1658 { } movieClip 1659 { frame 1 { stop(); } frame 2 { _parent.audioTrans.chap5timesup.start(); } frame 74 { _parent.chap5c.conveyorGear.gear._visible = false; _root.outro.gotoAndPlay('intro'); } frame 84 { _parent.gotoAndStop(1); } } movieClip 1661 { frame 1 { clearedTxt = Math.round(_parent.chap5aTime / 1000) + ' seconds'; } } movieClip 1667 { } movieClip 1670 { } movieClip 1673 { } movieClip 1676 { } movieClip 1679 { } movieClip 1682 { } movieClip 1685 { } movieClip 1688 { } movieClip 1689 { frame 1 { stop(); } frame 6 { _parent._parent.flip.flip.start(); } frame 15 { stop(); } frame 16 { _parent._parent.flip.flip.start(); } frame 46 { stop(); } frame 47 { _parent._parent.flip.flip.start(); } frame 61 { stop(); _parent['ticker' + _parent.animalNum].gotoAndPlay('white'); } } movieClip 1693 { } movieClip 1694 { } movieClip 1696 { } movieClip 1697 { frame 16 { stop(); } frame 25 { stop(); } frame 32 { this.removeMovieClip(); } frame 40 { this.removeMovieClip(); } } movieClip 1698 { frame 1 { function duplicateMouse(animalInit) { duplicateMovieClip('stuffedMouse', 'stuffedMouse' + _parent.mouseCycle, _parent.mouseLevel++); this['stuffedMouse' + _parent.mouseCycle]._x = animalInit; this['stuffedMouse' + _parent.mouseCycle].gotoAndPlay('bounce'); if (_parent.mouseCycle < 3) { ++_parent.mouseCycle; } else { _parent.mouseCycle = 1; } if (this['stuffedMouse' + _parent.mouseCycle]._currentframe <= 17) { this['stuffedMouse' + _parent.mouseCycle].gotoAndPlay('shrink'); } else { this['stuffedMouse' + _parent.mouseCycle].gotoAndPlay('crushShrink'); } stuffedMouse1.stuffedMouse.stuffedMouse.mouseTint._alpha = (Math.abs(stuffedMouse1._x - 260) / 460) * 30; stuffedMouse2.stuffedMouse.stuffedMouse.mouseTint._alpha = (Math.abs(stuffedMouse2._x - 260) / 460) * 30; stuffedMouse3.stuffedMouse.stuffedMouse.mouseTint._alpha = (Math.abs(stuffedMouse3._x - 260) / 460) * 30; } function duplicateBunny(animalInit) { duplicateMovieClip('stuffedBunny', 'stuffedBunny' + _parent.bunnyCycle, _parent.mouseLevel++); this['stuffedBunny' + _parent.bunnyCycle]._x = animalInit; this['stuffedBunny' + _parent.bunnyCycle].gotoAndPlay('bounce'); if (_parent.bunnyCycle < 3) { ++_parent.bunnyCycle; } else { _parent.bunnyCycle = 1; } if (this['stuffedBunny' + _parent.bunnyCycle]._currentframe <= 17) { this['stuffedBunny' + _parent.bunnyCycle].gotoAndPlay('shrink'); } else { this['stuffedBunny' + _parent.bunnyCycle].gotoAndPlay('crushShrink'); } stuffedBunny1.stuffedMouse.stuffedMouse.mouseTint._alpha = (Math.abs(stuffedBunny1._x - 260) / 460) * 30; stuffedBunny2.stuffedMouse.stuffedMouse.mouseTint._alpha = (Math.abs(stuffedBunny2._x - 260) / 460) * 30; stuffedBunny3.stuffedMouse.stuffedMouse.mouseTint._alpha = (Math.abs(stuffedBunny3._x - 260) / 460) * 30; } } } movieClip 1699 { frame 1 { stop(); } frame 4 { if (_parent.box._x > 14 && _parent.box._x < 172 && !_parent.boxClosed) { _parent.inRange = true; } _parent.comingDown = true; } frame 8 { i = 1; while (i <= 4) { if (_parent.mice['stuffedMouse' + i]._x > 50 && _parent.mice['stuffedMouse' + i]._x < 140 && _parent.mice['stuffedMouse' + i]._currentframe <= 17) { _parent.mice['stuffedMouse' + i].gotoAndPlay('crush'); } if (_parent.mice['stuffedBunny' + i]._x > 50 && _parent.mice['stuffedBunny' + i]._x < 140 && _parent.mice['stuffedBunny' + i]._currentframe <= 17) { _parent.mice['stuffedBunny' + i].gotoAndPlay('crush'); } ++i; } } frame 9 { if (_parent.inRange && !_parent.boxClosed) { _parent.boxDest = _parent.boxInit + 3; _parent.box._y = _parent.boxDest; _parent.boxFront._y = _parent.boxDest; } } frame 12 { i = 1; while (i <= 4) { if (_parent.mice['stuffedMouse' + i]._x > 50 && _parent.mice['stuffedMouse' + i]._x < 140 && _parent.mice['stuffedMouse' + i]._currentframe <= 17) { _parent.mice['stuffedMouse' + i].gotoAndPlay('crush'); } if (_parent.mice['stuffedBunny' + i]._x > 50 && _parent.mice['stuffedBunny' + i]._x < 140 && _parent.mice['stuffedBunny' + i]._currentframe <= 17) { _parent.mice['stuffedBunny' + i].gotoAndPlay('crush'); } ++i; } } frame 20 { if (_parent.inRange && !_parent.boxClosed) { if (_parent.currentAnimal == 'bunny') { _parent.boxFront.gotoAndPlay('filled'); } else { _parent.boxFront.gotoAndPlay('filledMouse'); } _parent.box.gotoAndPlay('filled'); _parent.boxClosed = true; _parent.boxDest = _parent.boxInit; if (_parent['animal' + _parent.animalNum] == _parent.currentAnimal) { if (!_parent._parent.timeOut && _parent.animalNum == 3) { _parent._parent.chap5bTime = _parent.currentTime - _parent._parent.chap5aTime; _parent._parent.transition = true; _parent._parent.gotoAndPlay(_parent.chapDest); _parent.solved = true; } _parent['ticker' + _parent.animalNum].gotoAndPlay('green'); ++_parent.animalNum; } else { _parent['ticker' + _parent.animalNum].gotoAndPlay('red'); } } else { if (_parent.currentAnimal == 'bunny') { _parent.mice.duplicateBunny(110); } else { _parent.mice.duplicateMouse(110); } } if (_parent.currentAnimal == 'bunny') { _parent.currentAnimal = 'mouse'; } else { _parent.currentAnimal = 'bunny'; } } frame 23 { _parent.inRange = false; _parent.comingDown = false; } } movieClip 1701 { } movieClip 1702 { frame 10 { stop(); } } movieClip 1703 { frame 1 { stop(); } frame 7 { stuffedMouse.stuffedMouse.stuffedMouse.mouseTint._alpha = 20; } frame 24 { stop(); } frame 42 { _parent.box._visible = false; stop(); } frame 43 { stuffedMouse.stuffedMouse.stuffedMouse.mouseTint._alpha = 20; } frame 60 { stop(); } } movieClip 1704 { frame 1 { function stopWheel() { com.pixelbreaker.ui.MouseWheel.removeListener(_root.mouseListener); } function rotateObj(inc) { conveyorGear.screw._rotation += inc; conveyorGear.gear._rotation += inc; conveyorGear.gearMask._rotation += inc; conveyorGear.gearShadow._rotation += inc; conveyorGearBelow.screw._rotation += inc; conveyorGearBelow.gear._rotation += inc; conveyorGearBelow.gearMask._rotation += inc; conveyorGearBelow.gearShadow._rotation += inc; conveyorBeltLeft.belt._x -= inc * 3; conveyorBeltRight.belt._x -= inc * 3; conveyorBeltLeft.beltBottom._x += inc * 3; conveyorBeltRight.beltBottom._x += inc * 3; mice.stuffedMouse1._x -= inc * 3; mice.stuffedMouse2._x -= inc * 3; mice.stuffedMouse3._x -= inc * 3; mice.stuffedBunny1._x -= inc * 3; mice.stuffedBunny2._x -= inc * 3; mice.stuffedBunny3._x -= inc * 3; if (!inRange) { box._x -= inc * 3; boxFront._x = box._x; } conveyorBeltRight.wheelRight._rotation -= inc * 5; conveyorBeltRight.wheelMiddle._rotation -= inc * 5; conveyorBeltRight.wheelLeft._rotation -= inc * 5; conveyorBeltLeft.wheelRight._rotation -= inc * 5; conveyorBeltLeft.wheelMiddle._rotation -= inc * 5; conveyorBeltLeft.wheelLeft._rotation -= inc * 5; if (inc < 0) { dialRotation += inc / 4; } else { dialRotation += inc / 2; } } pressedDown = false; justUp = false; slow = 1; i = 0; dialRotation = 360000; dialLag = 360000; dialAccel = 2; yInc = 0; bounce = 1.5; dropAnimal = true; dropAnimalRight = true; mouseCycle = 1; bunnyCycle = 1; mouseLevel = 0; bunnyLevel = 0; boxAccel = 3; comingDown = false; comingDownRight = false; boxClosed = false; boxInit = box._y; boxDest = boxInit; animalNum = 1; animal1 = 'bunny'; animal2 = 'mouse'; animal3 = 'bunny'; currentAnimal = 'bunny'; chapDest = 'chap5c'; stuffedMouseInc = 0; stuffedBunnyInc = 0; _root.mouseListener.onMouseWheel = function (delta) { if (delta < 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch02.start(); if (_root.mySound.slow.position > 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 - 1); } else { _root.mySound.slow.start(_root.mySound.slow.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBackSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch02.start(); if (_root.mySound.normal.position > 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 - 1); } else { _root.mySound.normal.start(_root.mySound.normal.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBack'); } _root.customCursor.gotoAndPlay('down'); } if (delta > 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch01.start(); if (_root.mySound.slow.position < _root.mySound.slow.duration - 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 + 1); } else { _root.mySound.slow.start(1); } scratchControl.gotoAndPlay('scratchForwardSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch01.start(); if (_root.mySound.normal.position < _root.mySound.normal.duration - 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 + 1); } else { _root.mySound.normal.start(1); } scratchControl.gotoAndPlay('scratchForward'); } _root.customCursor.gotoAndPlay('up'); } }; com.pixelbreaker.ui.MouseWheel.addListener(_root.mouseListener); actions.onEnterFrame = function () { if (_parent.fadeOut && _root.mySound.normal.getVolume() > 0) { _root.mySound.normal.setVolume(_root.mySound.normal.getVolume() - 2); _parent.myMusic.chap5.setVolume(_parent.myMusic.chap5.getVolume() - 2); } else { if (_root.mySound.normal.getVolume() == 0) { _parent.fadeOut = false; _root.mySound.normal.stop(); _root.mySound.slow.stop(); _root.mySound.normal.setVolume(100); _parent.myMusic.chap5.stop(); _parent.myMusic.chap5.setVolume(100); Mouse.show(); _root.customCursor._visible = false; } } currentTime = getTimer() - _parent.startTime; if (currentTime < 80000) { if (!_parent.fadeOut && currentTime > 78000) { _parent.fadeOut = true; } _parent.hourglass.topSand.rim._y = 29 + Math.pow((currentTime / 80000) * 5.099019513592785, 2); _parent.hourglass.topSand.rim._height = 6 - Math.pow((currentTime / 80000) * 2.23606797749979, 2); _parent.hourglass.topSand.sandMask._height = 30 - Math.pow((currentTime / 80000) * 5.385164807134504, 2); _parent.hourglass.bottomSand.rim._y = 78 + Math.pow(((80000 - currentTime) / 80000) * 4.795831523312719, 2); _parent.hourglass.bottomSand.sandMask._height = 27 - Math.pow(((80000 - currentTime) / 80000) * 5.099019513592785, 2); } else { if (!_parent.timeOut) { _parent.timeOut = true; if (!_parent.transition) { _parent.timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; _parent.recordClickArea.gotoAndStop(2); Mouse.show(); stopWheel(); _root.startBlankWheel(); } } } conveyorGear.screw._rotation += 2 / slow; conveyorGear.gear._rotation += 2 / slow; conveyorGear.gearMask._rotation += 2 / slow; conveyorGear.gearShadow._rotation += 2 / slow; conveyorGearBelow.screw._rotation += 2 / slow; conveyorGearBelow.gear._rotation += 2 / slow; conveyorGearBelow.gearMask._rotation += 2 / slow; conveyorGearBelow.gearShadow._rotation += 2 / slow; conveyorBeltRight.wheelRight._rotation -= 6 / slow; conveyorBeltRight.wheelMiddle._rotation -= 6 / slow; conveyorBeltRight.wheelLeft._rotation -= 6 / slow; conveyorBeltLeft.wheelRight._rotation -= 6 / slow; conveyorBeltLeft.wheelMiddle._rotation -= 6 / slow; conveyorBeltLeft.wheelLeft._rotation -= 6 / slow; dialRotation += 2 / slow; mice.stuffedMouse1._x -= 5 / slow; mice.stuffedMouse2._x -= 5 / slow; mice.stuffedMouse3._x -= 5 / slow; mice.stuffedBunny1._x -= 5 / slow; mice.stuffedBunny2._x -= 5 / slow; mice.stuffedBunny3._x -= 5 / slow; box._y += (boxDest - box._y) / 2; if (inRange && !boxClosed) { box._x += (104 - box._x) / boxAccel; } else { box._x -= 5 / slow; } if (!inRange && comingDown && box._x > 104 && box._x < 182 && !boxClosed) { box._x = 182; } else { if (!inRange && comingDown && box._x > 24 && box._x < 104 && !boxClosed) { box._x = 24; } } conveyorBeltLeft.belt._x -= 5 / slow; conveyorBeltRight.belt._x -= 5 / slow; conveyorBeltLeft.beltBottom._x += 5 / slow; conveyorBeltRight.beltBottom._x += 5 / slow; if (conveyorBeltLeft.belt._x < -415) { conveyorBeltLeft.belt._x += 415; conveyorBeltRight.belt._x += 415; conveyorBeltLeft.beltBottom._x -= 415; conveyorBeltRight.beltBottom._x -= 415; } else { if (conveyorBeltLeft.belt._x > 0) { conveyorBeltLeft.belt._x -= 415; conveyorBeltRight.belt._x -= 415; conveyorBeltLeft.beltBottom._x += 415; conveyorBeltRight.beltBottom._x += 415; } } if (box._x < -80) { box._x = 700; box._visible = true; boxClosed = false; boxFront.gotoAndStop('empty'); box.gotoAndStop('empty'); } else { if (box._x > 740) { box._x = 740; } } boxFront._x = box._x; boxFront._y = box._y; i = 1; while (i <= 3) { if (mice['stuffedMouse' + i]._x < -30 || mice['stuffedMouse' + i]._x > 670) { mice['stuffedMouse' + i]._visible = false; } mice['stuffedMouse' + i].stuffedMouse.stuffedMouse.mouseTint._alpha = (Math.abs(mice['stuffedMouse' + i]._x - 260) / 460) * 30; if (mice['stuffedBunny' + i]._x < -30 || mice['stuffedBunny' + i]._x > 670) { mice['stuffedBunny' + i]._visible = false; } mice['stuffedBunny' + i].stuffedMouse.stuffedMouse.mouseTint._alpha = (Math.abs(mice['stuffedBunny' + i]._x - 260) / 460) * 30; ++i; } musicPosition = _parent.myMusic.chap5.position; if (musicPosition > _parent.firstMark[_parent.currentFirstMark] - 400) { ++_parent.currentFirstMark; } if (musicPosition > _parent.secondMark[_parent.currentSecondMark] - 400) { if (!comingDown) { conveyorPress.gotoAndPlay(2); pressGearSmall.gotoAndPlay(2); pressGearLarge.gotoAndPlay(2); leaves.gotoAndPlay(2); catBelow.gotoAndPlay(2); catAbove.gotoAndPlay(2); } ++_parent.currentSecondMark; } }; } } movieClip 1706 { frame 1 { clearedTxt = Math.round(_parent.chap5bTime / 1000) + ' seconds'; } } movieClip 1711 { } movieClip 1712 { } movieClip 1713 { frame 1 { stop(); } frame 4 { if (_parent.box._x > 14 && _parent.box._x < 172 && !_parent.boxClosed) { _parent.inRange = true; } _parent.comingDown = true; } frame 8 { i = 1; while (i <= 4) { if (_parent.mice['stuffedMouse' + i]._x > 50 && _parent.mice['stuffedMouse' + i]._x < 140 && _parent.mice['stuffedMouse' + i]._currentframe <= 17) { _parent.mice['stuffedMouse' + i].gotoAndPlay('crush'); } if (_parent.mice['stuffedBunny' + i]._x > 50 && _parent.mice['stuffedBunny' + i]._x < 140 && _parent.mice['stuffedBunny' + i]._currentframe <= 17) { _parent.mice['stuffedBunny' + i].gotoAndPlay('crush'); } ++i; } } frame 9 { if (_parent.inRange && !_parent.boxClosed) { _parent.boxDest = _parent.boxInit + 3; _parent.box._y = _parent.boxDest; _parent.boxFront._y = _parent.boxDest; } } frame 12 { i = 1; while (i <= 4) { if (_parent.mice['stuffedMouse' + i]._x > 50 && _parent.mice['stuffedMouse' + i]._x < 140 && _parent.mice['stuffedMouse' + i]._currentframe <= 17) { _parent.mice['stuffedMouse' + i].gotoAndPlay('crush'); } if (_parent.mice['stuffedBunny' + i]._x > 50 && _parent.mice['stuffedBunny' + i]._x < 140 && _parent.mice['stuffedBunny' + i]._currentframe <= 17) { _parent.mice['stuffedBunny' + i].gotoAndPlay('crush'); } ++i; } } frame 20 { if (_parent.inRange && !_parent.boxClosed) { _parent.boxFront.gotoAndPlay('filledMouse'); _parent.box.gotoAndPlay('filled'); _parent.boxClosed = true; _parent.boxDest = _parent.boxInit; if (_parent['animal' + _parent.animalNum] == 'mouse') { if (!_parent._parent.timeOut && _parent.animalNum == 3) { _parent._parent.chap5cTime = _parent.currentTime - _parent._parent.chap5aTime - _parent._parent.chap5bTime; _parent._parent.transition = true; _parent._parent.gotoAndPlay(_parent.chapDest); _parent.solved = true; } _parent['ticker' + _parent.animalNum].gotoAndPlay('green'); ++_parent.animalNum; } else { _parent['ticker' + _parent.animalNum].gotoAndPlay('red'); } } else { _parent.mice.duplicateMouse(100); } } frame 23 { _parent.inRange = false; _parent.comingDown = false; } } movieClip 1714 { frame 1 { stop(); } frame 4 { if (_parent.box._x > 224 && _parent.box._x < 382 && !_parent.boxClosed) { _parent.inRangeRight = true; } _parent.comingDownRight = true; } frame 8 { i = 1; while (i <= 4) { if (_parent.mice['stuffedBunny' + i]._x > 260 && _parent.mice['stuffedBunny' + i]._x < 350 && _parent.mice['stuffedBunny' + i]._currentframe <= 17) { _parent.mice['stuffedBunny' + i].gotoAndPlay('crush'); } if (_parent.mice['stuffedMouse' + i]._x > 260 && _parent.mice['stuffedMouse' + i]._x < 350 && _parent.mice['stuffedMouse' + i]._currentframe <= 17) { _parent.mice['stuffedMouse' + i].gotoAndPlay('crush'); } ++i; } } frame 9 { if (_parent.inRangeRight && !_parent.boxClosed) { _parent.boxDest = _parent.boxInit + 3; _parent.box._y = _parent.boxDest; _parent.boxFront._y = _parent.boxDest; } } frame 12 { i = 1; while (i <= 4) { if (_parent.mice['stuffedBunny' + i]._x > 260 && _parent.mice['stuffedBunny' + i]._x < 350 && _parent.mice['stuffedBunny' + i]._currentframe <= 17) { _parent.mice['stuffedBunny' + i].gotoAndPlay('crush'); } if (_parent.mice['stuffedMouse' + i]._x > 260 && _parent.mice['stuffedMouse' + i]._x < 350 && _parent.mice['stuffedMouse' + i]._currentframe <= 17) { _parent.mice['stuffedMouse' + i].gotoAndPlay('crush'); } ++i; } } frame 20 { if (_parent.inRangeRight && !_parent.boxClosed) { _parent.boxFront.gotoAndPlay('filled'); _parent.box.gotoAndPlay('filled'); _parent.boxClosed = true; _parent.boxDest = _parent.boxInit; if (_parent['animal' + _parent.animalNum] == 'bunny') { if (!_parent._parent.timeOut && _parent.animalNum == 3) { _parent._parent.chap5cTime = _parent.currentTime - _parent._parent.chap5aTime - _parent._parent.chap5bTime; _parent._parent.transition = true; _parent._parent.gotoAndPlay(_parent.chapDest); _parent.solved = true; } _parent['ticker' + _parent.animalNum].gotoAndPlay('green'); ++_parent.animalNum; } else { _parent['ticker' + _parent.animalNum].gotoAndPlay('red'); } } else { _parent.mice.duplicateBunny(310); } } frame 23 { _parent.inRangeRight = false; _parent.comingDownRight = false; } } movieClip 1715 { frame 1 { function stopWheel() { com.pixelbreaker.ui.MouseWheel.removeListener(_root.mouseListener); } function rotateObj(inc) { conveyorGear.screw._rotation += inc; conveyorGear.gear._rotation += inc; conveyorGear.gearMask._rotation += inc; conveyorGear.gearShadow._rotation += inc; conveyorGearBelow.screw._rotation += inc; conveyorGearBelow.gear._rotation += inc; conveyorGearBelow.gearMask._rotation += inc; conveyorGearBelow.gearShadow._rotation += inc; conveyorBeltLeft.belt._x -= inc * 3; conveyorBeltRight.belt._x -= inc * 3; conveyorBeltLeft.beltBottom._x += inc * 3; conveyorBeltRight.beltBottom._x += inc * 3; mice.stuffedMouse1._x -= inc * 3; mice.stuffedMouse2._x -= inc * 3; mice.stuffedMouse3._x -= inc * 3; mice.stuffedBunny1._x -= inc * 3; mice.stuffedBunny2._x -= inc * 3; mice.stuffedBunny3._x -= inc * 3; if (!(inRange || inRangeRight)) { box._x -= inc * 3; boxFront._x = box._x; } conveyorBeltRight.wheelRight._rotation -= inc * 5; conveyorBeltRight.wheelMiddle._rotation -= inc * 5; conveyorBeltRight.wheelLeft._rotation -= inc * 5; conveyorBeltLeft.wheelRight._rotation -= inc * 5; conveyorBeltLeft.wheelMiddle._rotation -= inc * 5; conveyorBeltLeft.wheelLeft._rotation -= inc * 5; if (inc < 0) { dialRotation += inc / 4; } else { dialRotation += inc / 2; } } pressedDown = false; justUp = false; slow = 1; i = 0; dialRotation = 360000; dialLag = 360000; dialAccel = 2; yInc = 0; bounce = 1.5; dropAnimal = true; dropAnimalRight = true; mouseCycle = 1; bunnyCycle = 1; mouseLevel = 0; bunnyLevel = 0; boxAccel = 3; comingDown = false; comingDownRight = false; boxClosed = false; boxInit = box._y; boxDest = boxInit; animalNum = 1; animal1 = 'mouse'; animal2 = 'bunny'; animal3 = 'mouse'; chapDest = 'outro'; stuffedMouseInc = 0; stuffedBunnyInc = 0; _root.mouseListener.onMouseWheel = function (delta) { if (delta < 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch02.start(); if (_root.mySound.slow.position > 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 - 1); } else { _root.mySound.slow.start(_root.mySound.slow.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBackSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch02.start(); if (_root.mySound.normal.position > 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 - 1); } else { _root.mySound.normal.start(_root.mySound.normal.duration / 1000 - 1); } scratchControl.gotoAndPlay('scratchBack'); } _root.customCursor.gotoAndPlay('down'); } if (delta > 0) { if (pressedDown) { _root.mySound.slow.stop(); _root.mySound.scratch01.start(); if (_root.mySound.slow.position < _root.mySound.slow.duration - 1000) { _root.mySound.slow.start(_root.mySound.slow.position / 1000 + 1); } else { _root.mySound.slow.start(1); } scratchControl.gotoAndPlay('scratchForwardSlow'); } else { _root.mySound.normal.stop(); _root.mySound.scratch01.start(); if (_root.mySound.normal.position < _root.mySound.normal.duration - 1000) { _root.mySound.normal.start(_root.mySound.normal.position / 1000 + 1); } else { _root.mySound.normal.start(1); } scratchControl.gotoAndPlay('scratchForward'); } _root.customCursor.gotoAndPlay('up'); } }; com.pixelbreaker.ui.MouseWheel.addListener(_root.mouseListener); actions.onEnterFrame = function () { if (_parent.fadeOut && _root.mySound.normal.getVolume() > 0) { _root.mySound.normal.setVolume(_root.mySound.normal.getVolume() - 2); _parent.myMusic.chap5.setVolume(_parent.myMusic.chap5.getVolume() - 2); } else { if (_root.mySound.normal.getVolume() == 0) { _parent.fadeOut = false; _root.mySound.normal.stop(); _root.mySound.slow.stop(); _root.mySound.normal.setVolume(100); _parent.myMusic.chap5.stop(); _parent.myMusic.chap5.setVolume(100); Mouse.show(); _root.customCursor._visible = false; } } currentTime = getTimer() - _parent.startTime; if (currentTime < 80000) { if (!_parent.fadeOut && currentTime > 78000 && !solved) { _parent.fadeOut = true; } _parent.hourglass.topSand.rim._y = 29 + Math.pow((currentTime / 80000) * 5.099019513592785, 2); _parent.hourglass.topSand.rim._height = 6 - Math.pow((currentTime / 80000) * 2.23606797749979, 2); _parent.hourglass.topSand.sandMask._height = 30 - Math.pow((currentTime / 80000) * 5.385164807134504, 2); _parent.hourglass.bottomSand.rim._y = 78 + Math.pow(((80000 - currentTime) / 80000) * 4.795831523312719, 2); _parent.hourglass.bottomSand.sandMask._height = 27 - Math.pow(((80000 - currentTime) / 80000) * 5.099019513592785, 2); } else { if (!_parent.timeOut) { _parent.timeOut = true; if (!_parent.transition) { _parent.timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; _parent.recordClickArea.gotoAndStop(2); Mouse.show(); stopWheel(); _root.startBlankWheel(); } } } conveyorGear.screw._rotation += 2 / slow; conveyorGear.gear._rotation += 2 / slow; conveyorGear.gearMask._rotation += 2 / slow; conveyorGear.gearShadow._rotation += 2 / slow; conveyorGearBelow.screw._rotation += 2 / slow; conveyorGearBelow.gear._rotation += 2 / slow; conveyorGearBelow.gearMask._rotation += 2 / slow; conveyorGearBelow.gearShadow._rotation += 2 / slow; conveyorBeltRight.wheelRight._rotation -= 6 / slow; conveyorBeltRight.wheelMiddle._rotation -= 6 / slow; conveyorBeltRight.wheelLeft._rotation -= 6 / slow; conveyorBeltLeft.wheelRight._rotation -= 6 / slow; conveyorBeltLeft.wheelMiddle._rotation -= 6 / slow; conveyorBeltLeft.wheelLeft._rotation -= 6 / slow; dialRotation += 2 / slow; mice.stuffedMouse1._x -= 5 / slow; mice.stuffedMouse2._x -= 5 / slow; mice.stuffedMouse3._x -= 5 / slow; mice.stuffedBunny1._x -= 5 / slow; mice.stuffedBunny2._x -= 5 / slow; mice.stuffedBunny3._x -= 5 / slow; box._y += (boxDest - box._y) / 2; if (inRange && !boxClosed) { box._x += (94 - box._x) / boxAccel; } else { if (inRangeRight && !boxClosed) { box._x += (304 - box._x) / boxAccel; } else { box._x -= 5 / slow; } } if (!inRange && comingDown && box._x > 94 && box._x < 172 && !boxClosed) { box._x = 172; } else { if (!inRange && comingDown && box._x > 14 && box._x < 94 && !boxClosed) { box._x = 14; } } if (inRangeRight && !boxClosed) { box._x += (304 - box._x) / boxAccel; } if (!inRangeRight && comingDownRight && box._x > 304 && box._x < 382 && !boxClosed) { box._x = 382; } else { if (!inRangeRight && comingDownRight && box._x > 224 && box._x < 304 && !boxClosed) { box._x = 224; } } conveyorBeltLeft.belt._x -= 5 / slow; conveyorBeltRight.belt._x -= 5 / slow; conveyorBeltLeft.beltBottom._x += 5 / slow; conveyorBeltRight.beltBottom._x += 5 / slow; if (conveyorBeltLeft.belt._x < -415) { conveyorBeltLeft.belt._x += 415; conveyorBeltRight.belt._x += 415; conveyorBeltLeft.beltBottom._x -= 415; conveyorBeltRight.beltBottom._x -= 415; } else { if (conveyorBeltLeft.belt._x > 0) { conveyorBeltLeft.belt._x -= 415; conveyorBeltRight.belt._x -= 415; conveyorBeltLeft.beltBottom._x += 415; conveyorBeltRight.beltBottom._x += 415; } } if (box._x < -80) { box._x = 700; box._visible = true; boxClosed = false; boxFront.gotoAndStop('empty'); box.gotoAndStop('empty'); } else { if (box._x > 740) { box._x = 740; } } boxFront._x = box._x; boxFront._y = box._y; i = 1; while (i <= 3) { if (mice['stuffedMouse' + i]._x < -30 || mice['stuffedMouse' + i]._x > 670) { mice['stuffedMouse' + i]._visible = false; } mice['stuffedMouse' + i].stuffedMouse.stuffedMouse.mouseTint._alpha = (Math.abs(mice['stuffedMouse' + i]._x - 260) / 460) * 30; if (mice['stuffedBunny' + i]._x < -30 || mice['stuffedBunny' + i]._x > 670) { mice['stuffedBunny' + i]._visible = false; } mice['stuffedBunny' + i].stuffedMouse.stuffedMouse.mouseTint._alpha = (Math.abs(mice['stuffedBunny' + i]._x - 260) / 460) * 30; ++i; } musicPosition = _parent.myMusic.chap5.position; if (musicPosition > _parent.secondMark[_parent.currentSecondMark] - 400) { if (!comingDown) { conveyorPress.gotoAndPlay(2); leaves.gotoAndPlay(2); catAbove.gotoAndPlay(2); } ++_parent.currentSecondMark; } if (musicPosition > _parent.firstMark[_parent.currentFirstMark] - 400) { if (!comingDownRight) { conveyorPressRight.gotoAndPlay(2); pressGearSmall.gotoAndPlay(2); pressGearLarge.gotoAndPlay(2); catBelow.gotoAndPlay(2); } ++_parent.currentFirstMark; } }; } } movieClip 1717 { frame 1 { clearedTxt = Math.round(_parent.chap5cTime / 1000) + ' seconds'; } } movieClip 1719 { } movieClip 1720 { frame 1 { stop(); } frame 2 { _root.trackingHolder.trackPageview('chap5/easy'); chap5aTime = 0; chap5bTime = 0; chap5cTime = 0; myMusic.chap5 = new Sound(myMusic); myMusic.chap5.attachSound('camera'); flip.flip = new Sound(flip); flip.flip.attachSound('flip'); startTime = getTimer(); timeOut = false; transition = true; audioTrans.chap5complete = new Sound(audioTrans); audioTrans.chap5complete.attachSound('chap5_complete'); audioTrans.chap5timesup = new Sound(audioTrans); audioTrans.chap5timesup.attachSound('chap5_timesup'); myMusic.chap5.start(); myMusic.chap5.setVolume(100); firstMark = new Array(); secondMark = new Array(); markSet = 50; currentFirstMark = 0; currentSecondMark = 0; i = 0; while (markSet < 80000) { firstMark[i] = markSet; markSet += 1200; ++i; } markSet = 650; i = 0; while (markSet < 80000) { secondMark[i] = markSet; markSet += 1200; ++i; } recordClickArea.onRollOver = function () { recordClickArea.useHandCursor = false; Mouse.hide(); _root.customCursor._visible = true; }; recordClickArea.onRollOut = function () { Mouse.show(); _root.customCursor._visible = false; }; recordClickArea.onReleaseOutside = function () { if (recordClickArea._currentframe == 1) { _root.customCursor._xscale = 105; _root.customCursor._yscale = 105; chap.pressedDown = false; _root.mySound.slow.stop(); _root.mySound.normal.start(_root.mySound.slow.position / 1.25 / 1000); chap.justUp = false; chap.slow = 1; } }; recordClickArea.onMouseMove = function () { _root.customCursor._y = _root._ymouse; _root.customCursor._x = _root._xmouse; xDist = chap.center._x - _root.customCursor._x; yDist = chap.center._y - _root.customCursor._y; angle = (Math.atan2(yDist, xDist) / Math.PI) * 180; _root.customCursor._rotation = angle; updateAfterEvent(); }; recordClickArea.onPress = function () { _root.customCursor._xscale = 95; _root.customCursor._yscale = 95; _root.mySound.normal.stop(); _root.mySound.slow.start(_root.mySound.normal.position * 1.25 / 1000); chap.pressedDown = true; chap.slow = 2; }; recordClickArea.onRelease = function () { if (recordClickArea._currentframe == 1) { _root.customCursor._xscale = 105; _root.customCursor._yscale = 105; chap.pressedDown = false; _root.mySound.slow.stop(); _root.mySound.normal.start(_root.mySound.slow.position / 1.25 / 1000); chap.justUp = false; chap.slow = 1; } }; } frame 10 { stop(); transition = false; } frame 11 { _root.trackingHolder.trackPageview('chap5/medium'); } frame 23 { _root.ding.ding.start(0); } frame 96 { chap.stopWheel(); } frame 104 { stop(); transition = false; if (timeOut) { timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; recordClickArea.gotoAndStop(2); Mouse.show(); chap.stopWheel(); _root.startBlankWheel(); } } frame 105 { _root.trackingHolder.trackPageview('chap5/hard'); } frame 117 { _root.ding.ding.start(0); } frame 190 { chap.stopWheel(); } frame 198 { stop(); transition = false; if (timeOut) { timesUp.gotoAndPlay('intro'); _root.customCursor._visible = false; recordClickArea.gotoAndStop(2); Mouse.show(); chap.stopWheel(); _root.startBlankWheel(); } } frame 199 { _root.customCursor._visible = false; Mouse.show(); chap.stopWheel(); _root.startBlankWheel(); } frame 211 { _root.ding.ding.start(0); } frame 233 { fadeOut = true; } frame 288 { audioTrans.chap5complete.start(0); } frame 356 { chap.conveyorGear.gear._visible = false; _root.outro.gotoAndPlay('intro'); } } movieClip 1724 { } movieClip 1730 { } movieClip 1734 { } movieClip 1736 { } movieClip 1738 { } movieClip 1739 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 1744 { } movieClip 1745 { } movieClip 1746 { frame 1 { stop(); } frame 2 { _root.trackingHolder.trackPageview('chap1/instructions'); audioTrans.chapter1 = new Sound(audioTrans); audioTrans.chapter1.attachSound('chapter1'); audioTrans.chapter1.onSoundComplete = function () { _root.mySound.normal.start(14.954); }; actions.onEnterFrame = function () { book.steady._x = Math.sin(0.0006 * getTimer() + 90) * 4; book.steady._y = Math.cos(0.0009 * getTimer() + 90) * 4; bird.bird._y = Math.cos(0.003 * getTimer() + 90) * 3 - 3; birdShad.bird._y = Math.cos(0.003 * getTimer() + 90) * 3 - 3; }; } frame 9 { audioTrans.chapter1.start(); } frame 25 { buttonContinueClickArea.onRollOver = function () { book.steady.buttonContinue.gotoAndPlay('intro'); }; buttonContinueClickArea.onRollOut = function () { book.steady.buttonContinue.gotoAndPlay('outro'); }; buttonContinueClickArea.onReleaseOutside = function () { book.steady.buttonContinue.gotoAndPlay('outro'); }; buttonContinueClickArea.onRelease = function () { _root.menuDest = 'chap1'; gotoAndPlay('outro'); }; } frame 51 { stop(); } frame 82 { _root[_root.menuDest].gotoAndPlay('intro'); } } movieClip 1752 { } movieClip 1753 { } movieClip 1754 { frame 1 { stop(); } frame 2 { _root.trackingHolder.trackPageview('chap2/instructions'); audioTrans.chapter2 = new Sound(audioTrans); audioTrans.chapter2.attachSound('chapter2'); audioTrans.chapter2.onSoundComplete = function () { _root.mySound.normal.start(27.107); }; actions.onEnterFrame = function () { book.steady._x = Math.sin(0.0006 * getTimer() + 90) * 4; book.steady._y = Math.cos(0.0009 * getTimer() + 90) * 4; bird.bird._y = Math.cos(0.003 * getTimer() + 90) * 3 - 3; birdShad.bird._y = Math.cos(0.003 * getTimer() + 90) * 3 - 3; }; } frame 15 { audioTrans.chapter2.start(); } frame 25 { buttonContinueClickArea.onRollOver = function () { book.steady.buttonContinue.gotoAndPlay('intro'); }; buttonContinueClickArea.onRollOut = function () { book.steady.buttonContinue.gotoAndPlay('outro'); }; buttonContinueClickArea.onReleaseOutside = function () { book.steady.buttonContinue.gotoAndPlay('outro'); }; buttonContinueClickArea.onRelease = function () { _root.menuDest = 'chap2'; gotoAndPlay('outro'); }; } frame 51 { stop(); } frame 85 { _root[_root.menuDest].gotoAndPlay('intro'); } } movieClip 1761 { } movieClip 1762 { } movieClip 1763 { frame 1 { stop(); } frame 2 { _root.trackingHolder.trackPageview('chap3/instructions'); audioTrans.chapter3 = new Sound(audioTrans); audioTrans.chapter3.attachSound('chapter3'); audioTrans.chapter3.onSoundComplete = function () { _root.mySound.normal.start(39.863); }; actions.onEnterFrame = function () { book.steady._x = Math.sin(0.0006 * getTimer() + 90) * 4; book.steady._y = Math.cos(0.0009 * getTimer() + 90) * 4; bird.bird._y = Math.cos(0.003 * getTimer() + 90) * 3 - 3; birdShad.bird._y = Math.cos(0.003 * getTimer() + 90) * 3 - 3; }; } frame 15 { audioTrans.chapter3.start(); } frame 25 { buttonContinueClickArea.onRollOver = function () { book.steady.buttonContinue.gotoAndPlay('intro'); }; buttonContinueClickArea.onRollOut = function () { book.steady.buttonContinue.gotoAndPlay('outro'); }; buttonContinueClickArea.onReleaseOutside = function () { book.steady.buttonContinue.gotoAndPlay('outro'); }; buttonContinueClickArea.onRelease = function () { _root.menuDest = 'chap3'; gotoAndPlay('outro'); }; } frame 51 { stop(); } frame 85 { _root[_root.menuDest].gotoAndPlay('intro'); } } movieClip 1769 { } movieClip 1770 { } movieClip 1771 { frame 1 { stop(); } frame 2 { _root.trackingHolder.trackPageview('chap4/instructions'); audioTrans.chapter4 = new Sound(audioTrans); audioTrans.chapter4.attachSound('chapter4'); audioTrans.chapter4.onSoundComplete = function () { _root.mySound.normal.start(52.963); }; actions.onEnterFrame = function () { book.steady._x = Math.sin(0.0006 * getTimer() + 90) * 4; book.steady._y = Math.cos(0.0009 * getTimer() + 90) * 4; bird.bird._y = Math.cos(0.003 * getTimer() + 90) * 3 - 3; birdShad.bird._y = Math.cos(0.003 * getTimer() + 90) * 3 - 3; }; } frame 17 { audioTrans.chapter4.start(); } frame 25 { buttonContinueClickArea.onRollOver = function () { book.steady.buttonContinue.gotoAndPlay('intro'); }; buttonContinueClickArea.onRollOut = function () { book.steady.buttonContinue.gotoAndPlay('outro'); }; buttonContinueClickArea.onReleaseOutside = function () { book.steady.buttonContinue.gotoAndPlay('outro'); }; buttonContinueClickArea.onRelease = function () { _root.menuDest = 'chap4'; gotoAndPlay('outro'); }; } frame 51 { stop(); } frame 85 { _root[_root.menuDest].gotoAndPlay('intro'); } } movieClip 1778 { } movieClip 1779 { } movieClip 1780 { frame 1 { stop(); } frame 2 { _root.trackingHolder.trackPageview('chap5/instructions'); audioTrans.chapter5 = new Sound(audioTrans); audioTrans.chapter5.attachSound('chapter5'); audioTrans.chapter5.onSoundComplete = function () { _root.mySound.normal.start(60.935); }; actions.onEnterFrame = function () { book.steady._x = Math.sin(0.0006 * getTimer() + 90) * 4; book.steady._y = Math.cos(0.0009 * getTimer() + 90) * 4; bird.bird._y = Math.cos(0.003 * getTimer() + 90) * 3 - 3; birdShad.bird._y = Math.cos(0.003 * getTimer() + 90) * 3 - 3; }; } frame 17 { audioTrans.chapter5.start(); } frame 25 { buttonContinueClickArea.onRollOver = function () { book.steady.buttonContinue.gotoAndPlay('intro'); }; buttonContinueClickArea.onRollOut = function () { book.steady.buttonContinue.gotoAndPlay('outro'); }; buttonContinueClickArea.onReleaseOutside = function () { book.steady.buttonContinue.gotoAndPlay('outro'); }; buttonContinueClickArea.onRelease = function () { _root.menuDest = 'chap5'; gotoAndPlay('outro'); }; } frame 51 { stop(); } frame 85 { _root[_root.menuDest].gotoAndPlay('intro'); } } movieClip 1781 { } movieClip 1782 { } movieClip 1785 { } movieClip 1788 { } movieClip 1791 { } movieClip 1793 { } movieClip 1797 { } movieClip 1798 { frame 1 { stop(); } } movieClip 1799 { } movieClip 1800 { } movieClip 1803 { } movieClip 1804 { } movieClip 1807 { } movieClip 1808 { } movieClip 1809 { } movieClip 1813 { } movieClip 1814 { } movieClip 1815 { } movieClip 1816 { frame 42 { stop(); } frame 107 { stop(); } } movieClip 1819 { } movieClip 1821 { } movieClip 1822 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 1824 { } movieClip 1826 { } movieClip 1828 { } movieClip 1831 { } movieClip 1833 { frame 1 { gear._rotation += 2; gearMask._rotation += 2; } frame 2 { gear._rotation += 2; gearMask._rotation += 2; } } movieClip 1835 { } movieClip 1838 { } movieClip 1841 { } movieClip 1843 { frame 1 { gear._rotation -= 3; gearMask._rotation -= 3; } frame 2 { gear._rotation -= 3; gearMask._rotation -= 3; } } movieClip 1844 { } movieClip 1847 { } movieClip 1850 { } movieClip 1853 { } movieClip 1854 { frame 1 { gear._rotation -= 3; gearMask._rotation -= 3; gearSmall._rotation -= 3; } frame 2 { gear._rotation -= 3; gearMask._rotation -= 3; gearSmall._rotation -= 3; } } movieClip 1855 { frame 32 { function checkRanking() { i = 1; while (i <= 49) { if (scoreCard['alltimePlayerName' + i] == scoreCard.playerName && scoreCard['alltimeScore' + i] == scoreCard.score) { _root.alltimeRank = i; } ++i; } if (_root.alltimeRank == 0) { i = 1; while (i <= 49) { if (scoreCard['todayPlayerName' + i] == scoreCard.playerName && scoreCard['todayScore' + i] == scoreCard.score) { _root.todayRank = i; } ++i; } } } stop(); _root.alltimeRank = 0; _root.todayRank = 0; System.security.allowDomain('http:www.bellbrothers.net'); scoreCard = new LoadVars(); scoreCard.playerName = _parent.userName; scoreCard.score = _parent.finalTotal; scoreCard.onLoad = function (success) { if (success) { if (Boolean(scoreCard.success)) { checkRanking(); scoresLoaded = true; gotoAndPlay('loaded'); } else { scoresLoaded = false; gotoAndPlay('loaded'); } } else { scoresLoaded = false; gotoAndPlay('loaded'); } }; scoreCard.sendAndLoad('http://www.bellbrothers.net/recordtripping_highscores.php', scoreCard, 'POST'); } frame 45 { stop(); if (scoresLoaded) { _parent.gotoAndPlay('submitted'); } else { _parent.gotoAndPlay('error'); } } } movieClip 1857 { } movieClip 1859 { } movieClip 1860 { frame 1 { stop(); enterName.onSetFocus = function () { enterName.text = ''; enterName.textColor = 6710886; enterName.restrict = 'a-z A-Z 0-9'; enterName.maxChars = 16; }; buttonSubmitClickArea.onEnterFrame = function () { if (Key.isDown(13)) { if (enterName.text == '' || enterName.text == 'Enter Your Name') { } else { gotoAndPlay('submitting'); } } }; buttonSubmitClickArea.onRollOver = function () { buttonSubmit.gotoAndPlay('intro'); }; buttonSubmitClickArea.onRollOut = function () { buttonSubmit.gotoAndPlay('outro'); }; buttonSubmitClickArea.onReleaseOutside = function () { buttonSubmit.gotoAndPlay('outro'); }; buttonSubmitClickArea.onRelease = function () { if (enterName.text == '' || enterName.text == 'Enter Your Name') { } else { gotoAndPlay('submitting'); } }; i = 1; while (i <= 5) { this['penalty' + i] = 0; if (_root['chap' + i]['chap' + i + 'aTime'] != 0) { this['chap' + i + 'a'].gotoAndStop(2); } else { this['penalty' + i] += 5000; } if (_root['chap' + i]['chap' + i + 'bTime'] != 0) { this['chap' + i + 'b'].gotoAndStop(2); } else { this['penalty' + i] += 5000; } if (_root['chap' + i]['chap' + i + 'cTime'] != 0) { this['chap' + i + 'c'].gotoAndStop(2); } else { this['penalty' + i] += 5000; } if (_root['chap' + i]['chap' + i + 'aTime'] != 0 && _root['chap' + i]['chap' + i + 'bTime'] != 0 && _root['chap' + i]['chap' + i + 'cTime'] != 0) { this['chap' + i + 'final'] = _root['chap' + i]['chap' + i + 'aTime'] + _root['chap' + i]['chap' + i + 'bTime'] + _root['chap' + i]['chap' + i + 'cTime']; } else { this['chap' + i + 'final'] = 80000; } ++i; } finalTotal = chap1final + chap2final + chap3final + chap4final + chap5final + penalty1 + penalty2 + penalty3 + penalty4 + penalty5; } frame 15 { } frame 24 { stop(); } frame 25 { _parent.bird.gotoAndPlay('outro'); } frame 77 { _parent.nameSubmitted = true; if (_parent.outroComplete) { _root.resultsMenu.gotoAndPlay('intro'); _parent.gotoAndStop(1); } stop(); } frame 78 { _parent.bird.gotoAndPlay('outro'); } frame 130 { _parent.nameSubmitted = true; if (_parent.outroComplete) { _root.resultsMenu.gotoAndPlay('intro'); _parent.gotoAndStop(1); } stop(); } } movieClip 1863 { } movieClip 1868 { } movieClip 1869 { } movieClip 1872 { } movieClip 1876 { } movieClip 1880 { } movieClip 1881 { } movieClip 1884 { } movieClip 1887 { } movieClip 1888 { } movieClip 1889 { frame 1 { stop(); } frame 6 { gotoAndStop(1); } } movieClip 1890 { frame 1 { slow = 1; barrelFace.onEnterFrame = function () { rim._rotation += 2 / slow; barrelFace._rotation += 2 / slow; barrelRotation += 2 / slow; maze.mazeMask._rotation += 2 / slow; maze.mazeShadow._rotation += 2 / slow; destFrame = (outsideFront._currentframe + 2 / slow - 1) % (outsideFront._totalframes - 1) + 1; outsideFront.gotoAndStop(destFrame); outsideBack.gotoAndStop(destFrame); insidePanel.gotoAndStop(destFrame); }; } } movieClip 1891 { frame 1 { stop(); } frame 2 { _root.trackingHolder.trackPageview('outro'); _root.stopBlankWheel(); conveyorGear.gear._rotation = _root.chap5.chap.conveyorGear.gear._rotation; conveyorGear.gearMask._rotation = _root.chap5.chap.conveyorGear.gearMask._rotation; audioTrans.outro = new Sound(audioTrans); audioTrans.outro.attachSound('ending'); outroComplete = false; nameSubmitted = false; actions.onEnterFrame = function () { bird.bird.bird._y = Math.cos(0.003 * getTimer() + 90) * 3 - 3; conveyorGear.gear._rotation += 2; conveyorGear.gearMask._rotation += 2; }; } frame 6 { audioTrans.outro.start(); } frame 434 { outroComplete = true; if (nameSubmitted) { _root.resultsMenu.gotoAndPlay('intro'); } else { stop(); } } } movieClip 1895 { } movieClip 1899 { frame 1 { stop(); } } // unknown tag 88 length 137 movieClip 1923 { frame 1 { i = 1; while (i <= 5) { this['penalty' + i] = 0; if (_root['chap' + i]['chap' + i + 'aTime'] != 0) { this['chap' + i + 'a'].gotoAndStop(2); } else { this['penalty' + i] += 5000; } if (_root['chap' + i]['chap' + i + 'bTime'] != 0) { this['chap' + i + 'b'].gotoAndStop(2); } else { this['penalty' + i] += 5000; } if (_root['chap' + i]['chap' + i + 'cTime'] != 0) { this['chap' + i + 'c'].gotoAndStop(2); } else { this['penalty' + i] += 5000; } if (this['penalty' + i] != 0) { this['penalty' + i + 'txt'] = '+' + this['penalty' + i] / 1000; } else { this['penalty' + i + 'txt'] = ''; } if (_root['chap' + i]['chap' + i + 'aTime'] != 0 && _root['chap' + i]['chap' + i + 'bTime'] != 0 && _root['chap' + i]['chap' + i + 'cTime'] != 0) { this['chap' + i + 'final'] = _root['chap' + i]['chap' + i + 'aTime'] + _root['chap' + i]['chap' + i + 'bTime'] + _root['chap' + i]['chap' + i + 'cTime']; this['chap' + i + 'sec'] = Math.floor((_root['chap' + i]['chap' + i + 'aTime'] + _root['chap' + i]['chap' + i + 'bTime'] + _root['chap' + i]['chap' + i + 'cTime']) / 1000); this['chap' + i + 'mili'] = Math.round(((_root['chap' + i]['chap' + i + 'aTime'] + _root['chap' + i]['chap' + i + 'bTime'] + _root['chap' + i]['chap' + i + 'cTime']) % 1000) / 10); } else { this['chap' + i + 'final'] = 80000; this['chap' + i + 'sec'] = 80; this['chap' + i + 'mili'] = 0; } if (this['chap' + i + 'mili'] < 10) { this['chap' + i + 'mili'] = '0' + this['chap' + i + 'mili']; } ++i; } finalTotal = chap1final + chap2final + chap3final + chap4final + chap5final + penalty1 + penalty2 + penalty3 + penalty4 + penalty5; finalSecNum = Math.floor(finalTotal / 1000); finalSecRemain = finalSecNum % 60; _parent._parent.finalMinutes = Math.floor(finalSecNum / 60); _parent._parent.finalSec = finalSecRemain; if (finalSecRemain < 10) { finalSecRemain = '0' + finalSecRemain; } finalSec = Math.floor(finalSecNum / 60) + ':' + finalSecRemain; finalMiliNum = Math.round((finalTotal % 1000) / 10); if (finalMiliNum < 10) { finalMili = '.0' + finalMiliNum; } else { finalMili = '.' + finalMiliNum; } } } movieClip 1924 { } movieClip 1927 { frame 1 { stop(); } } movieClip 1929 { } movieClip 1931 { } movieClip 1932 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 1934 { } movieClip 1935 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 1937 { } movieClip 1939 { } movieClip 1941 { } movieClip 1943 { } movieClip 1945 { } movieClip 1947 { } movieClip 1948 { frame 1 { stop(); } frame 7 { stop(); } frame 13 { stop(); } frame 19 { stop(); } } movieClip 1950 { } movieClip 1958 { frame 1 { stop(); } } movieClip 1959 { frame 1 { stop(); } frame 2 { _root.trackingHolder.trackPageview('results'); actions.onEnterFrame = function () { book.steady._x = Math.sin(0.0006 * getTimer() + 90) * 4; book.steady._y = Math.cos(0.0009 * getTimer() + 90) * 4; bird.bird._y = Math.cos(0.003 * getTimer() + 90) * 3 - 3; birdShad.bird._y = Math.cos(0.003 * getTimer() + 90) * 3 - 3; altText._y = _root._ymouse; altText._x = _root._xmouse; }; } frame 28 { buttonMusicClickArea.onRollOver = function () { buttonMusic.gotoAndPlay('intro'); }; buttonMusicClickArea.onRollOut = function () { buttonMusic.gotoAndPlay('outro'); }; buttonMusicClickArea.onReleaseOutside = function () { buttonMusic.gotoAndPlay('outro'); }; buttonMusicClickArea.onRelease = function () { _root.menuDest = 'musicMenu'; gotoAndPlay('outro'); }; buttonScoresClickArea.onRollOver = function () { buttonScores.gotoAndPlay('intro'); }; buttonScoresClickArea.onRollOut = function () { buttonScores.gotoAndPlay('outro'); }; buttonScoresClickArea.onReleaseOutside = function () { buttonScores.gotoAndPlay('outro'); }; buttonScoresClickArea.onRelease = function () { _root.menuDest = 'highScores'; gotoAndPlay('outro'); }; buttonTweetClickArea.onRelease = function () { if (finalSec == 1) { getURL('http://twitter.com/home?status=I scratched my way through Record Tripping in ' + finalMinutes + ' minutes ' + finalSec + ' second. http://www.recordtripping.com', '_blank'); } else { getURL('http://twitter.com/home?status=I scratched my way through Record Tripping in ' + finalMinutes + ' minutes ' + finalSec + ' seconds. http://www.recordtripping.com', '_blank'); } _root.trackingHolder.trackPageview('tweet'); }; buttonMenuClickArea.onRollOver = function () { buttonMenu.gotoAndPlay('intro'); }; buttonMenuClickArea.onRollOut = function () { buttonMenu.gotoAndPlay('outro'); }; buttonMenuClickArea.onReleaseOutside = function () { buttonMenu.gotoAndPlay('outro'); }; buttonMenuClickArea.onRelease = function () { _root.menuDest = 'mainMenu'; gotoAndPlay('outro'); }; } frame 40 { if (_root.alltimeRank != 0) { twitter.gotoAndStop('alltime'); if (_root.alltimeRank % 10 == 0 || _root.alltimeRank % 10 == 4 || _root.alltimeRank % 10 == 5 || _root.alltimeRank % 10 == 6 || _root.alltimeRank % 10 == 7 || _root.alltimeRank % 10 == 8 || _root.alltimeRank % 10 == 9) { suffix = 'th'; } else { if (_root.alltimeRank % 10 == 1) { suffix = 'st'; } else { if (_root.alltimeRank % 10 == 2) { suffix = 'nd'; } else { if (_root.alltimeRank % 10 == 3) { suffix = 'rd'; } } } } twitter.rank = 'You ranked ' + _root.alltimeRank + suffix; } else { if (_root.todayRank != 0) { twitter.gotoAndStop('today'); if (_root.todayRank % 10 == 0 || _root.todayRank % 10 == 4 || _root.todayRank % 10 == 5 || _root.todayRank % 10 == 6 || _root.todayRank % 10 == 7 || _root.todayRank % 10 == 8 || _root.todayRank % 10 == 9) { suffix = 'th'; } else { if (_root.todayRank % 10 == 1) { suffix = 'st'; } else { if (_root.todayRank % 10 == 2) { suffix = 'nd'; } else { if (_root.todayRank % 10 == 3) { suffix = 'rd'; } } } } twitter.rank = 'You ranked ' + _root.todayRank + suffix; } } } frame 72 { stop(); } frame 90 { _root[_root.menuDest].gotoAndPlay('intro'); } } movieClip 1963 { } movieClip 1964 { } movieClip 1965 { } movieClip 1969 { } movieClip 1975 { } movieClip 1976 { frame 1 { stop(); } } movieClip 1978 { } movieClip 1980 { } movieClip 1982 { } movieClip 1983 { frame 1 { stop(); } } movieClip 1986 { } movieClip 1987 { } movieClip 1991 { } movieClip 1993 { } movieClip 1995 { } movieClip 1997 { } movieClip 1999 { } movieClip 2001 { } movieClip 2003 { } movieClip 2005 { } movieClip 2007 { } movieClip 2008 { frame 90 { gotoAndPlay('loop'); } } movieClip 2009 { } movieClip 2010 { frame 1 { stop(); } frame 2 { _root.trackingHolder.trackPageview('mainMenu'); actions.onEnterFrame = function () { menuLeft.steady._x = Math.sin(0.0007 * getTimer() + 180) * 4; menuLeft.steady._y = Math.cos(0.001 * getTimer() + 180) * 4; menuRight.steady._x = Math.sin(0.0006 * getTimer() + 90) * 4; menuRight.steady._y = Math.cos(0.0009 * getTimer() + 90) * 4; bird.bird._y = Math.cos(0.003 * getTimer() + 90) * 3 - 3; birdShad.bird._y = Math.cos(0.003 * getTimer() + 90) * 3 - 3; altText._y = _root._ymouse - 3; altText._x = _root._xmouse + 1; }; } frame 28 { buttonStartClickArea.onRollOver = function () { menuRight.steady.buttonStart.gotoAndPlay('intro'); }; buttonStartClickArea.onRollOut = function () { menuRight.steady.buttonStart.gotoAndPlay('outro'); }; buttonStartClickArea.onReleaseOutside = function () { menuRight.steady.buttonStart.gotoAndPlay('outro'); }; buttonStartClickArea.onRelease = function () { _root.menuDest = 'instructions'; gotoAndPlay('outro'); }; buttonMusicClickArea.onRollOver = function () { menuRight.steady.buttonMusic.gotoAndPlay('intro'); menuRight.steady.piano.gotoAndPlay('intro'); }; buttonMusicClickArea.onRollOut = function () { menuRight.steady.buttonMusic.gotoAndPlay('outro'); }; buttonMusicClickArea.onReleaseOutside = function () { menuRight.steady.buttonMusic.gotoAndPlay('outro'); }; buttonMusicClickArea.onRelease = function () { _root.menuDest = 'musicMenu'; gotoAndPlay('outro'); }; buttonScoresClickArea.onRollOver = function () { menuRight.steady.buttonScores.gotoAndPlay('intro'); menuRight.steady.medal.gotoAndPlay('intro'); }; buttonScoresClickArea.onRollOut = function () { menuRight.steady.buttonScores.gotoAndPlay('outro'); }; buttonScoresClickArea.onReleaseOutside = function () { menuRight.steady.buttonScores.gotoAndPlay('outro'); }; buttonScoresClickArea.onRelease = function () { _root.menuDest = 'highScores'; gotoAndPlay('outro'); }; buttonBellBrothersClickArea.onRollOver = function () { altText.gotoAndPlay('bell'); bellBrothers.gotoAndPlay('intro'); }; buttonBellBrothersClickArea.onRollOut = function () { altText.gotoAndPlay('bellOut'); bellBrothers.gotoAndPlay('outro'); }; buttonBellBrothersClickArea.onReleaseOutside = function () { altText.gotoAndPlay('bellOut'); bellBrothers.gotoAndPlay('outro'); }; buttonBellBrothersClickArea.onRelease = function () { getURL('http://www.bellbrothers.net', '_blank'); _root.trackingHolder.trackPageview('bellbrothers'); }; } frame 64 { stop(); } frame 86 { _root[_root.menuDest].gotoAndPlay('intro'); } } movieClip 2013 { } movieClip 2017 { } movieClip 2018 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 2022 { } movieClip 2023 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 2031 { } movieClip 2032 { } movieClip 2034 { frame 1 { stop(); } } movieClip 2035 { frame 1 { stop(); } frame 2 { _root.trackingHolder.trackPageview('music/main'); actions.onEnterFrame = function () { book.steady._x = Math.sin(0.0006 * getTimer() + 90) * 4; book.steady._y = Math.cos(0.0009 * getTimer() + 90) * 4; bird.bird._y = Math.cos(0.003 * getTimer() + 90) * 3 - 3; birdShad.bird._y = Math.cos(0.003 * getTimer() + 90) * 3 - 3; altText._y = _root._ymouse - 3; altText._x = _root._xmouse + 1; }; } frame 28 { song1aButton.onRollOver = function () { altText.gotoAndPlay('itunes'); book.steady.song1a.gotoAndPlay('intro'); }; song1aButton.onRollOut = function () { altText.gotoAndPlay('itunesOut'); book.steady.song1a.gotoAndPlay('outro'); }; song1aButton.onReleaseOutside = function () { altText.gotoAndPlay('itunesOut'); book.steady.song1a.gotoAndPlay('outro'); }; song1aButton.onRelease = function () { getURL(_root.song1aLink, '_blank'); _root.trackingHolder.trackPageview('music/itunes/song1'); }; song2aButton.onRollOver = function () { altText.gotoAndPlay('itunes'); book.steady.song2a.gotoAndPlay('intro'); }; song2aButton.onRollOut = function () { altText.gotoAndPlay('itunesOut'); book.steady.song2a.gotoAndPlay('outro'); }; song2aButton.onReleaseOutside = function () { altText.gotoAndPlay('itunesOut'); book.steady.song2a.gotoAndPlay('outro'); }; song2aButton.onRelease = function () { getURL(_root.song2aLink, '_blank'); _root.trackingHolder.trackPageview('music/itunes/song2'); }; song3aButton.onRollOver = function () { altText.gotoAndPlay('itunes'); book.steady.song3a.gotoAndPlay('intro'); }; song3aButton.onRollOut = function () { altText.gotoAndPlay('itunesOut'); book.steady.song3a.gotoAndPlay('outro'); }; song3aButton.onReleaseOutside = function () { altText.gotoAndPlay('itunesOut'); book.steady.song3a.gotoAndPlay('outro'); }; song3aButton.onRelease = function () { getURL(_root.song3aLink, '_blank'); _root.trackingHolder.trackPageview('music/itunes/song3'); }; song4aButton.onRollOver = function () { altText.gotoAndPlay('itunes'); book.steady.song4a.gotoAndPlay('intro'); }; song4aButton.onRollOut = function () { altText.gotoAndPlay('itunesOut'); book.steady.song4a.gotoAndPlay('outro'); }; song4aButton.onReleaseOutside = function () { altText.gotoAndPlay('itunesOut'); book.steady.song4a.gotoAndPlay('outro'); }; song4aButton.onRelease = function () { getURL(_root.song4aLink, '_blank'); _root.trackingHolder.trackPageview('music/itunes/song4'); }; song5aButton.onRollOver = function () { altText.gotoAndPlay('itunes'); book.steady.song5a.gotoAndPlay('intro'); }; song5aButton.onRollOut = function () { altText.gotoAndPlay('itunesOut'); book.steady.song5a.gotoAndPlay('outro'); }; song5aButton.onReleaseOutside = function () { altText.gotoAndPlay('itunesOut'); book.steady.song5a.gotoAndPlay('outro'); }; song5aButton.onRelease = function () { getURL(_root.song5aLink, '_blank'); _root.trackingHolder.trackPageview('music/itunes/song5'); }; song6aButton.onRollOver = function () { altText.gotoAndPlay('itunes'); book.steady.song6a.gotoAndPlay('intro'); }; song6aButton.onRollOut = function () { altText.gotoAndPlay('itunesOut'); book.steady.song6a.gotoAndPlay('outro'); }; song6aButton.onReleaseOutside = function () { altText.gotoAndPlay('itunesOut'); book.steady.song6a.gotoAndPlay('outro'); }; song6aButton.onRelease = function () { getURL(_root.song6aLink, '_blank'); _root.trackingHolder.trackPageview('music/itunes/song6'); }; song1bButton.onRollOver = function () { altText.gotoAndPlay('amazon'); book.steady.song1b.gotoAndPlay('intro'); }; song1bButton.onRollOut = function () { altText.gotoAndPlay('amazonOut'); book.steady.song1b.gotoAndPlay('outro'); }; song1bButton.onReleaseOutside = function () { altText.gotoAndPlay('amazonOut'); book.steady.song1b.gotoAndPlay('outro'); }; song1bButton.onRelease = function () { getURL(_root.song1bLink, '_blank'); _root.trackingHolder.trackPageview('music/amazon/song1'); }; song2bButton.onRollOver = function () { altText.gotoAndPlay('amazon'); book.steady.song2b.gotoAndPlay('intro'); }; song2bButton.onRollOut = function () { altText.gotoAndPlay('amazonOut'); book.steady.song2b.gotoAndPlay('outro'); }; song2bButton.onReleaseOutside = function () { altText.gotoAndPlay('amazonOut'); book.steady.song2b.gotoAndPlay('outro'); }; song2bButton.onRelease = function () { getURL(_root.song2bLink, '_blank'); _root.trackingHolder.trackPageview('music/amazon/song2'); }; song3bButton.onRollOver = function () { altText.gotoAndPlay('amazon'); book.steady.song3b.gotoAndPlay('intro'); }; song3bButton.onRollOut = function () { altText.gotoAndPlay('amazonOut'); book.steady.song3b.gotoAndPlay('outro'); }; song3bButton.onReleaseOutside = function () { altText.gotoAndPlay('amazonOut'); book.steady.song3b.gotoAndPlay('outro'); }; song3bButton.onRelease = function () { getURL(_root.song3bLink, '_blank'); _root.trackingHolder.trackPageview('music/amazon/song3'); }; song4bButton.onRollOver = function () { altText.gotoAndPlay('amazon'); book.steady.song4b.gotoAndPlay('intro'); }; song4bButton.onRollOut = function () { altText.gotoAndPlay('amazonOut'); book.steady.song4b.gotoAndPlay('outro'); }; song4bButton.onReleaseOutside = function () { altText.gotoAndPlay('amazonOut'); book.steady.song4b.gotoAndPlay('outro'); }; song4bButton.onRelease = function () { getURL(_root.song4bLink, '_blank'); _root.trackingHolder.trackPageview('music/amazon/song4'); }; song5bButton.onRollOver = function () { altText.gotoAndPlay('amazon'); book.steady.song5b.gotoAndPlay('intro'); }; song5bButton.onRollOut = function () { altText.gotoAndPlay('amazonOut'); book.steady.song5b.gotoAndPlay('outro'); }; song5bButton.onReleaseOutside = function () { altText.gotoAndPlay('amazonOut'); book.steady.song5b.gotoAndPlay('outro'); }; song5bButton.onRelease = function () { getURL(_root.song5bLink, '_blank'); _root.trackingHolder.trackPageview('music/amazon/song5'); }; buttonMenuClickArea.onRollOver = function () { buttonMenu.gotoAndPlay('intro'); }; buttonMenuClickArea.onRollOut = function () { buttonMenu.gotoAndPlay('outro'); }; buttonMenuClickArea.onReleaseOutside = function () { buttonMenu.gotoAndPlay('outro'); }; buttonMenuClickArea.onRelease = function () { _root.menuDest = 'mainMenu'; gotoAndPlay('outro'); }; } frame 54 { stop(); } frame 72 { _root[_root.menuDest].gotoAndPlay('intro'); } } movieClip 2039 { } movieClip 2041 { } movieClip 2042 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 2044 { } movieClip 2045 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 2050 { } movieClip 2052 { } movieClip 2053 { frame 20 { function showScores() { i = 1; while (i <= 7) { iPage = i + page; this['item' + i].rank = iPage + '.'; this['item' + i].playerName = scoreCard[scoreType + 'PlayerName' + iPage]; score = scoreCard[scoreType + 'Score' + iPage]; scoreMin = Math.floor(score / 1000 / 60); scoreSec = Math.floor(score / 1000 % 60); if (scoreSec < 10) { this['item' + i].scoreMin = scoreMin + ':0' + scoreSec + '.'; } else { this['item' + i].scoreMin = scoreMin + ':' + scoreSec + '.'; } scoreDec = Math.round((score % 1000) / 10); if (scoreDec < 10) { this['item' + i].scoreDec = '0' + scoreDec; } else { this['item' + i].scoreDec = scoreDec; } if (scoreCard[scoreType + 'PlayerName' + iPage] == null) { this['item' + i].scoreMin = ''; this['item' + i].scoreDec = ''; this['item' + i].playerName = ' -'; } ++i; } } stop(); page = 0; scoreType = 'today'; System.security.allowDomain('http:www.bellbrothers.net'); scoreCard = new LoadVars(); scoreCard.playerName = _root.playerName; scoreCard.score = _root.score; scoreCard.sendAndLoad('http://www.bellbrothers.net/recordtripping_highscores.php', scoreCard, 'POST'); scoreCard.onLoad = function (success) { if (success) { if (Boolean(scoreCard.success)) { _parent._parent._parent.buttonUpClickArea.gotoAndStop(2); _parent._parent._parent.buttonDownClickArea.gotoAndStop(2); _parent._parent._parent.alltimeSwitch.gotoAndPlay('intro'); gotoAndPlay('loaded'); scoresLoaded = true; } else { scoresLoaded = false; gotoAndPlay('loaded'); } } else { scoresLoaded = false; gotoAndPlay('loaded'); } }; } frame 36 { if (!scoresLoaded) { gotoAndPlay('error'); } } frame 37 { showScores(); } frame 50 { stop(); } frame 58 { stop(); } } movieClip 2056 { } movieClip 2057 { frame 1 { stop(); } } movieClip 2058 { } movieClip 2060 { } movieClip 2062 { } movieClip 2063 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 2067 { frame 1 { stop(); } } movieClip 2068 { frame 1 { stop(); } frame 8 { stop(); buttonAlltimeClickArea.onRollOver = function () { buttonAlltime.gotoAndPlay('intro'); }; buttonAlltimeClickArea.onRollOut = function () { buttonAlltime.gotoAndPlay('outro'); }; buttonAlltimeClickArea.onReleaseOutside = function () { buttonAlltime.gotoAndPlay('outro'); }; buttonAlltimeClickArea.onRelease = function () { gotoAndPlay('alltime'); _parent.gotoAndPlay('alltime'); }; } frame 26 { if (highScoresButtonTitle._currentframe == 1) { highScoresButtonTitle.gotoAndStop(2); } else { highScoresButtonTitle.gotoAndStop(1); } } frame 50 { stop(); } } movieClip 2069 { frame 1 { stop(); } } movieClip 2071 { frame 1 { stop(); } } movieClip 2072 { frame 1 { stop(); } frame 2 { _root.trackingHolder.trackPageview('highscores/today'); actions.onEnterFrame = function () { album.steady._x = Math.sin(0.0006 * getTimer() + 90) * 4; album.steady._y = Math.cos(0.0009 * getTimer() + 90) * 4; bird.bird._y = Math.cos(0.003 * getTimer() + 90) * 3 - 3; birdShad.bird._y = Math.cos(0.003 * getTimer() + 90) * 3 - 3; }; } frame 33 { buttonUpClickArea.onRollOver = function () { album.steady.buttonUp.gotoAndPlay('intro'); }; buttonUpClickArea.onRollOut = function () { album.steady.buttonUp.gotoAndPlay('outro'); }; buttonUpClickArea.onReleaseOutside = function () { album.steady.buttonUp.gotoAndPlay('outro'); }; buttonUpClickArea.onRelease = function () { album.steady.highScoresTxt.gotoAndPlay('scores'); if (album.steady.highScoresTxt.page > 0) { album.steady.highScoresTxt.page -= 7; } else { album.steady.highScoresTxt.page = 42; } }; buttonDownClickArea.onRollOver = function () { album.steady.buttonDownWhite.gotoAndPlay('intro'); }; buttonDownClickArea.onRollOut = function () { album.steady.buttonDownWhite.gotoAndPlay('outro'); }; buttonDownClickArea.onReleaseOutside = function () { album.steady.buttonDownWhite.gotoAndPlay('outro'); }; buttonDownClickArea.onRelease = function () { album.steady.highScoresTxt.gotoAndPlay('scores'); if (album.steady.highScoresTxt.page < 42) { album.steady.highScoresTxt.page += 7; } else { album.steady.highScoresTxt.page = 0; } }; buttonMenuClickArea.onRollOver = function () { buttonMenu.gotoAndPlay('intro'); }; buttonMenuClickArea.onRollOut = function () { buttonMenu.gotoAndPlay('outro'); }; buttonMenuClickArea.onReleaseOutside = function () { buttonMenu.gotoAndPlay('outro'); }; buttonMenuClickArea.onRelease = function () { _root.menuDest = 'mainMenu'; if (album.steady.highScoresTxt.scoresLoaded) { alltimeSwitch.gotoAndPlay('outro'); } gotoAndPlay('outro'); }; } frame 50 { stop(); } frame 51 { recordClickArea.onRollOver = function () {}; recordClickArea.useHandCursor = false; } frame 66 { if (highScoresTitle._currentframe == 1) { highScoresTitle.gotoAndStop(2); } else { highScoresTitle.gotoAndStop(1); } } frame 71 { if (album.steady._currentframe == 1) { album.steady.gotoAndStop(2); album.steady.highScoresTxt.scoreType = 'alltime'; _root.trackingHolder.trackPageview('highscores/alltime'); } else { album.steady.gotoAndStop(1); album.steady.highScoresTxt.scoreType = 'today'; _root.trackingHolder.trackPageview('highscores/today'); } album.steady.highScoresTxt.page = 0; album.steady.highScoresTxt.gotoAndPlay('scores'); } frame 92 { stop(); } frame 110 { _root[_root.menuDest].gotoAndPlay('intro'); } } movieClip 2076 { frame 1 { stop(); } frame 14 { gotoAndStop('default'); } frame 24 { gotoAndStop('default'); } }




http://swfchan.com/18/89172/info.shtml
Created: 29/3 -2019 04:02:46 Last modified: 29/3 -2019 04:02:46 Server time: 19/04 -2024 02:16:39