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

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

reaction-road.swf

This is the info page for
Flash #127165

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


ActionScript [AS1/AS2]
Combined Code
movieClip 5 { frame 1 { stop(); } } movieClip 7 { } movieClip 9 { } movieClip 10 { frame 1 { stop(); } instance of movieClip 7 { onClipEvent (press) { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'Wait until it is highlighted... Lose some power!!'; _parent._parent.bypassnow = 1; _parent._parent.bypasslate = 1; _parent._parent.bypassnowR = 1; _parent._parent.bypasslateR = 1; _root.identifier(); _root.VARs0x = _root.VARs0x + 'd-' + '0' + _root.VARidentifier + '0'; _parent._parent.trafficLightRightOverlayMC.gotoAndStop('end'); _parent.gotoAndStop('end'); } } instance of movieClip 9 { onClipEvent (load) { _parent._parent.starttime = getTimer(); } onClipEvent (press) { endtime = getTimer(); reactiontime = endtime - _parent._parent.starttime; score = _root.scoreWeightingTrafficLights - Number(reactiontime); _root.totalscore += Number(score); _parent._parent.bypasslate = 1; var my_color = new Color(_root.messageMC); my_color.setRGB(65280); _root.messageMC.gotoAndPlay(3); _root.textmessage = 'Well done. You spotted the traffic lights.'; _root.identifier(); _root.VARs0x = _root.VARs0x + 'd' + reactiontime + _root.VARidentifier + score; _parent._parent.leftTrafficLight.gotoAndStop(2); _parent.gotoAndStop('end'); } } } movieClip 15 { frame 1 { stop(); } } movieClip 16 { frame 1 { stop(); } instance of movieClip 7 { onClipEvent (press) { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'Wait until it is highlighted... Lose some power!!'; _parent._parent.bypassnow = 1; _parent._parent.bypasslate = 1; _parent._parent.bypassnowR = 1; _parent._parent.bypasslateR = 1; _root.identifier(); _root.VARs0x = _root.VARs0x + 'd-' + '0' + _root.VARidentifier + '0'; _parent._parent.trafficLightLeftOverlayMC.gotoAndStop('end'); _parent.gotoAndStop('end'); } } instance of movieClip 9 { onClipEvent (load) { _parent._parent.starttime = getTimer(); } onClipEvent (press) { endtime = getTimer(); reactiontime = endtime - _parent._parent.starttime; score = _root.scoreWeightingTrafficLights - Number(reactiontime); _root.totalscore += Number(score); _parent._parent.bypasslateR = 1; var my_color = new Color(_root.messageMC); my_color.setRGB(65280); _root.messageMC.gotoAndPlay(3); _root.textmessage = 'Well done. You spotted the traffic lights.'; _root.identifier(); _root.VARs0x = _root.VARs0x + 'd' + reactiontime + _root.VARidentifier + score; _parent._parent.rightTrafficLight.gotoAndStop(2); _parent.gotoAndStop('end'); } } } movieClip 17 TrafficLightsMC { frame 1 { stop(); } frame 2 { prevFrame(); } frame 84 { if (bypassnow == 1 or bypassnowR == 1) { play(); } else { trafficLightLeftOverlayMC.gotoAndStop('now'); trafficLightRightOverlayMC.gotoAndStop('now'); } } frame 177 { if (bypasslate == 1 and bypasslateR == 1) { play(); } else { _root.messageMC.gotoAndPlay(2); _root.textmessage = 'You went through a red light! Lose a life.'; } } frame 182 { bypassnow = 0; bypasslate = 0; bypassnowR = 0; bypasslateR = 0; } } movieClip 19 arrow { } movieClip 20 ultimateScroller_drag { frame 1 { function setSkins() { var v2 = new Color(face_mc); v2.setRGB(this._parent.c_face); v2 = new Color(shadow_mc); v2.setRGB(this._parent.c_shadow); v2 = new Color(darkshadow_mc); v2.setRGB(this._parent.c_darkshadow); v2 = new Color(highlight_mc); v2.setRGB(this._parent.c_highlight); v2 = new Color(highlight3d_mc); v2.setRGB(this._parent.c_highlight3d); false; } if (this._parent.c_horizontal == true) { this._rotation = 90; tmp = h; h = w; w = tmp; x = 0; y = -16; delete tmp; } else { this._rotation = 0; x = 0; y = 0; } this.createEmptyMovieClip('darkshadow_mc', 1000); with (this.darkshadow_mc) { beginFill(_parent._parent.c_darkshadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } w -= 1; h -= 1; this.createEmptyMovieClip('highlight3d_mc', 1001); with (this.highlight3d_mc) { beginFill(_parent._parent.c_highlight3d); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 1; h -= 1; this.createEmptyMovieClip('shadow_mc', 1002); with (this.shadow_mc) { beginFill(_parent._parent.c_shadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } w -= 1; h -= 1; this.createEmptyMovieClip('highlight_mc', 1003); with (this.highlight_mc) { beginFill(_parent._parent.c_highlight); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 1; h -= 1; this.createEmptyMovieClip('face_mc', 1004); with (this.face_mc) { beginFill(_parent._parent.c_face); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } delete x; delete y; delete w; delete h; } } movieClip 21 ultimateScroller_button_up { frame 1 { this.useHandCursor = false; setSkins(); this.onPress = function () { if (this._parent.enabled == false) { gotoAndStop('disabled'); return undefined; } this._parent.scrollUp(); this._parent.scrollDelay = true; this._parent.delayTimer = setInterval(this._parent, 'clearDelay', 300); this._parent.scrolling = 'UP'; gotoAndStop('down'); updateAfterEvent(); }; this.onReleaseOutside = function () { if (this._parent.enabled == false) { gotoAndStop('disabled'); return undefined; } this._parent.scrolling = false; this._parent.clearDelay(); gotoAndStop('up'); updateAfterEvent(); }; this.onRelease = this.onReleaseOutside; this.setSkins = function () { this.drawButtons(); }; this.drawButtons = function () { w = _parent.c_scrollWidth; h = 16; arrowX = w / 2; arrowY = h / 2; x = 0; y = 0; this.createEmptyMovieClip('buttonG', 1000); switch (this._currentframe) { case 1: if (_parent.c_buttonsVisible) { this.buttonG.createEmptyMovieClip('darkshadow_mc', 1000); with (this.buttonG.darkshadow_mc) { beginFill(_parent._parent._parent.c_darkshadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('highlight3d_mc', 1001); with (this.buttonG.highlight3d_mc) { beginFill(_parent._parent._parent.c_highlight3d); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('shadow_mc', 1002); with (this.buttonG.shadow_mc) { beginFill(_parent._parent._parent.c_shadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('highlight_mc', 1003); with (this.buttonG.highlight_mc) { beginFill(_parent._parent._parent.c_highlight); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('face_mc', 1004); with (this.buttonG.face_mc) { beginFill(_parent._parent._parent.c_face); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } } if (_parent.c_arrowsVisible) { this.buttonG.attachMovie('arrow', 'arrow_mc', 1005, {'_x': arrowX, '_y': arrowY, '_rotation': -180, '_xscale': -100, '_yscale': 100}); if (!_parent.c_arrowDefaultColor) { var tmp = new Color(this.buttonG.arrow_mc); tmp.setRGB(this._parent.c_arrow); } } break; case 2: if (_parent.c_buttonsVisible) { this.buttonG.createEmptyMovieClip('shadow_mc', 1000); with (this.buttonG.shadow_mc) { beginFill(_parent._parent._parent.c_shadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 2; h -= 2; this.buttonG.createEmptyMovieClip('face_mc', 1004); with (this.buttonG.face_mc) { beginFill(_parent._parent._parent.c_face); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } } if (_parent.c_arrowsVisible) { this.buttonG.attachMovie('arrow', 'arrow_mc', 1005, {'_x': arrowX, '_y': arrowY, '_rotation': -180, '_xscale': -100, '_yscale': 100}); if (!_parent.c_arrowDefaultColor) { var tmp = new Color(this.buttonG.arrow_mc); tmp.setRGB(this._parent.c_arrow); } } break; case 3: if (_parent.c_buttonsVisible) { this.buttonG.createEmptyMovieClip('darkshadow_mc', 1000); with (this.buttonG.darkshadow_mc) { beginFill(_parent._parent._parent.c_darkshadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('highlight3d_mc', 1001); with (this.buttonG.highlight3d_mc) { beginFill(_parent._parent._parent.c_highlight3d); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('shadow_mc', 1002); with (this.buttonG.shadow_mc) { beginFill(_parent._parent._parent.c_shadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('highlight_mc', 1003); with (this.buttonG.highlight_mc) { beginFill(_parent._parent._parent.c_highlight); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('face_mc', 1004); with (this.buttonG.face_mc) { beginFill(_parent._parent._parent.c_face); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } } if (!_parent.c_arrowsVisible) break; this.buttonG.attachMovie('arrow', 'arrow_mc', 1005, {'_x': arrowX, '_y': arrowY, '_rotation': -180, '_xscale': -100, '_yscale': 100}); if (!_parent.c_useDisabledColor) break; var tmp = new Color(this.buttonG.arrow_mc); tmp.setRGB(this._parent.c_foregroundDisabled); } delete x; delete y; delete w; delete h; }; stop(); } frame 2 { setSkins(); stop(); } frame 3 { setSkins(); stop(); } } movieClip 22 ultimateScroller_button_right { frame 1 { this.useHandCursor = false; this._focusRect = false; setSkins(); this.onPress = function () { if (this._parent.enabled == false) { gotoAndStop('disabled'); return undefined; } this._parent.scrollDown(); this._parent.scrollDelay = true; this._parent.delayTimer = setInterval(this._parent, 'clearDelay', 300); this._parent.scrolling = 'DOWN'; gotoAndStop('down'); updateAfterEvent(); }; this.onReleaseOutside = function () { if (this._parent.enabled == false) { gotoAndStop('disabled'); return undefined; } this._parent.scrolling = false; this._parent.clearDelay(); gotoAndStop('up'); updateAfterEvent(); }; this.onRelease = this.onReleaseOutside; this.setSkins = function () { this.drawButtons(); }; this.drawButtons = function () { w = 16; h = _parent.c_scrollWidth; arrowX = w / 2; arrowY = h / 2; x = 0; y = 0; this.createEmptyMovieClip('buttonG', 1000); this.buttonG._rotation = 90; this.buttonG._x = 16; switch (this._currentframe) { case 1: if (_parent.c_buttonsVisible) { this.buttonG.createEmptyMovieClip('darkshadow_mc', 1000); with (this.buttonG.darkshadow_mc) { beginFill(_parent._parent._parent.c_darkshadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('highlight3d_mc', 1001); with (this.buttonG.highlight3d_mc) { beginFill(_parent._parent._parent.c_highlight3d); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('shadow_mc', 1002); with (this.buttonG.shadow_mc) { beginFill(_parent._parent._parent.c_shadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('highlight_mc', 1003); with (this.buttonG.highlight_mc) { beginFill(_parent._parent._parent.c_highlight); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('face_mc', 1004); with (this.buttonG.face_mc) { beginFill(_parent._parent._parent.c_face); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } } if (_parent.c_arrowsVisible) { this.buttonG.attachMovie('arrow', 'arrow_mc', 1005, {'_x': arrowX, '_y': arrowY, '_rotation': 270, '_xscale': -100, '_yscale': 100}); if (!_parent.c_arrowDefaultColor) { var tmp = new Color(this.buttonG.arrow_mc); tmp.setRGB(this._parent.c_arrow); } } break; case 2: if (_parent.c_buttonsVisible) { this.buttonG.createEmptyMovieClip('shadow_mc', 1000); with (this.buttonG.shadow_mc) { beginFill(_parent._parent._parent.c_shadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 2; h -= 2; this.buttonG.createEmptyMovieClip('face_mc', 1004); with (this.buttonG.face_mc) { beginFill(_parent._parent._parent.c_face); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } } if (_parent.c_arrowsVisible) { this.buttonG.attachMovie('arrow', 'arrow_mc', 1005, {'_x': arrowX, '_y': arrowY, '_rotation': 270, '_xscale': -100, '_yscale': 100}); if (!_parent.c_arrowDefaultColor) { var tmp = new Color(this.buttonG.arrow_mc); tmp.setRGB(this._parent.c_arrow); } } break; case 3: if (_parent.c_buttonsVisible) { this.buttonG.createEmptyMovieClip('darkshadow_mc', 1000); with (this.buttonG.darkshadow_mc) { beginFill(_parent._parent._parent.c_darkshadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('highlight3d_mc', 1001); with (this.buttonG.highlight3d_mc) { beginFill(_parent._parent._parent.c_highlight3d); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('shadow_mc', 1002); with (this.buttonG.shadow_mc) { beginFill(_parent._parent._parent.c_shadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('highlight_mc', 1003); with (this.buttonG.highlight_mc) { beginFill(_parent._parent._parent.c_highlight); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('face_mc', 1004); with (this.buttonG.face_mc) { beginFill(_parent._parent._parent.c_face); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } } if (!_parent.c_arrowsVisible) break; this.buttonG.attachMovie('arrow', 'arrow_mc', 1005, {'_x': arrowX, '_y': arrowY, '_rotation': 270, '_xscale': -100, '_yscale': 100}); if (!_parent.c_useDisabledColor) break; var tmp = new Color(this.buttonG.arrow_mc); tmp.setRGB(_parent.c_foregroundDisabled); } delete x; delete y; delete w; delete h; }; stop(); } frame 2 { setSkins(); stop(); } frame 3 { setSkins(); stop(); } } movieClip 23 ultimateScroller_button_left { frame 1 { this.useHandCursor = false; this._focusRect = false; setSkins(); this.onPress = function () { if (this._parent.enabled == false) { gotoAndStop('disabled'); return undefined; } this._parent.scrollUp(); this._parent.scrollDelay = true; this._parent.delayTimer = setInterval(this._parent, 'clearDelay', 300); this._parent.scrolling = 'UP'; gotoAndStop('down'); updateAfterEvent(); }; this.onReleaseOutside = function () { if (this._parent.enabled == false) { gotoAndStop('disabled'); return undefined; } this._parent.scrolling = false; this._parent.clearDelay(); gotoAndStop('up'); updateAfterEvent(); }; this.onRelease = this.onReleaseOutside; this.setSkins = function () { this.drawButtons(); }; this.drawButtons = function () { w = 16; h = _parent.c_scrollWidth; arrowX = w / 2; arrowY = h / 2; x = 0; y = 0; this.createEmptyMovieClip('buttonG', 1000); this.buttonG._rotation = 90; this.buttonG._x = 16; switch (this._currentframe) { case 1: if (_parent.c_buttonsVisible) { this.buttonG.createEmptyMovieClip('darkshadow_mc', 1000); with (this.buttonG.darkshadow_mc) { beginFill(_parent._parent._parent.c_darkshadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('highlight3d_mc', 1001); with (this.buttonG.highlight3d_mc) { beginFill(_parent._parent._parent.c_highlight3d); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('shadow_mc', 1002); with (this.buttonG.shadow_mc) { beginFill(_parent._parent._parent.c_shadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('highlight_mc', 1003); with (this.buttonG.highlight_mc) { beginFill(_parent._parent._parent.c_highlight); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('face_mc', 1004); with (this.buttonG.face_mc) { beginFill(_parent._parent._parent.c_face); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } } if (_parent.c_arrowsVisible) { this.buttonG.attachMovie('arrow', 'arrow_mc', 1005, {'_x': arrowX, '_y': arrowY, '_rotation': 90, '_xscale': -100, '_yscale': 100}); if (!_parent.c_arrowDefaultColor) { var tmp = new Color(this.buttonG.arrow_mc); tmp.setRGB(this._parent.c_arrow); } } break; case 2: if (_parent.c_buttonsVisible) { this.buttonG.createEmptyMovieClip('shadow_mc', 1000); with (this.buttonG.shadow_mc) { beginFill(_parent._parent._parent.c_shadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 2; h -= 2; this.buttonG.createEmptyMovieClip('face_mc', 1004); with (this.buttonG.face_mc) { beginFill(_parent._parent._parent.c_face); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } } if (_parent.c_arrowsVisible) { this.buttonG.attachMovie('arrow', 'arrow_mc', 1005, {'_x': arrowX, '_y': arrowY, '_rotation': 90, '_xscale': -100, '_yscale': 100}); if (!_parent.c_arrowDefaultColor) { var tmp = new Color(this.buttonG.arrow_mc); tmp.setRGB(this._parent.c_arrow); } } break; case 3: if (_parent.c_buttonsVisible) { this.buttonG.createEmptyMovieClip('darkshadow_mc', 1000); with (this.buttonG.darkshadow_mc) { beginFill(_parent._parent._parent.c_darkshadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('highlight3d_mc', 1001); with (this.buttonG.highlight3d_mc) { beginFill(_parent._parent._parent.c_highlight3d); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('shadow_mc', 1002); with (this.buttonG.shadow_mc) { beginFill(_parent._parent._parent.c_shadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('highlight_mc', 1003); with (this.buttonG.highlight_mc) { beginFill(_parent._parent._parent.c_highlight); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('face_mc', 1004); with (this.buttonG.face_mc) { beginFill(_parent._parent._parent.c_face); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } } if (!_parent.c_arrowsVisible) break; this.buttonG.attachMovie('arrow', 'arrow_mc', 1005, {'_x': arrowX, '_y': arrowY, '_rotation': 90, '_xscale': -100, '_yscale': 100}); if (!_parent.c_useDisabledColor) break; var tmp = new Color(this.buttonG.arrow_mc); tmp.setRGB(this._parent.c_foregroundDisabled); } delete x; delete y; delete w; delete h; }; stop(); } frame 2 { setSkins(); stop(); } frame 3 { setSkins(); stop(); } } movieClip 24 ultimateScroller_button_down { frame 1 { this.useHandCursor = false; this._focusRect = false; setSkins(); this.onPress = function () { if (this._parent.enabled == false) { gotoAndStop('disabled'); return undefined; } this._parent.scrollDown(); this._parent.scrollDelay = true; this._parent.delayTimer = setInterval(this._parent, 'clearDelay', 300); this._parent.scrolling = 'DOWN'; gotoAndStop('down'); updateAfterEvent(); }; this.onReleaseOutside = function () { if (this._parent.enabled == false) { gotoAndStop('disabled'); return undefined; } this._parent.scrolling = false; this._parent.clearDelay(); gotoAndStop('up'); updateAfterEvent(); }; this.onRelease = this.onReleaseOutside; this.setSkins = function () { this.drawButtons(); }; this.drawButtons = function () { w = _parent.c_scrollWidth; h = 16; arrowX = w / 2; arrowY = h / 2; x = 0; y = 0; this.createEmptyMovieClip('buttonG', 1000); switch (this._currentframe) { case 1: if (_parent.c_buttonsVisible) { this.buttonG.createEmptyMovieClip('darkshadow_mc', 1000); with (this.buttonG.darkshadow_mc) { beginFill(_parent._parent._parent.c_darkshadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('highlight3d_mc', 1001); with (this.buttonG.highlight3d_mc) { beginFill(_parent._parent._parent.c_highlight3d); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('shadow_mc', 1002); with (this.buttonG.shadow_mc) { beginFill(_parent._parent._parent.c_shadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('highlight_mc', 1003); with (this.buttonG.highlight_mc) { beginFill(_parent._parent._parent.c_highlight); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('face_mc', 1004); with (this.buttonG.face_mc) { beginFill(_parent._parent._parent.c_face); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } } if (_parent.c_arrowsVisible) { this.buttonG.attachMovie('arrow', 'arrow_mc', 1005, {'_x': arrowX, '_y': arrowY}); if (!_parent.c_arrowDefaultColor) { var tmp = new Color(this.buttonG.arrow_mc); tmp.setRGB(this._parent.c_arrow); } } break; case 2: if (_parent.c_buttonsVisible) { this.buttonG.createEmptyMovieClip('shadow_mc', 1000); with (this.buttonG.shadow_mc) { beginFill(_parent._parent._parent.c_shadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 2; h -= 2; this.buttonG.createEmptyMovieClip('face_mc', 1004); with (this.buttonG.face_mc) { beginFill(_parent._parent._parent.c_face); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } } if (_parent.c_arrowsVisible) { this.buttonG.attachMovie('arrow', 'arrow_mc', 1005, {'_x': arrowX, '_y': arrowY}); if (!_parent.c_arrowDefaultColor) { var tmp = new Color(this.buttonG.arrow_mc); tmp.setRGB(this._parent.c_arrow); } } break; case 3: if (_parent.c_buttonsVisible) { this.buttonG.createEmptyMovieClip('darkshadow_mc', 1000); with (this.buttonG.darkshadow_mc) { beginFill(_parent._parent._parent.c_darkshadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('highlight3d_mc', 1001); with (this.buttonG.highlight3d_mc) { beginFill(_parent._parent._parent.c_highlight3d); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('shadow_mc', 1002); with (this.buttonG.shadow_mc) { beginFill(_parent._parent._parent.c_shadow); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('highlight_mc', 1003); with (this.buttonG.highlight_mc) { beginFill(_parent._parent._parent.c_highlight); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } x += 1; y += 1; w -= 1; h -= 1; this.buttonG.createEmptyMovieClip('face_mc', 1004); with (this.buttonG.face_mc) { beginFill(_parent._parent._parent.c_face); lineStyle(); moveTo(x, y); lineTo(x + w, y); lineTo(x + w, y + h); lineTo(x, y + h); lineTo(x, y); endFill(); } } if (!_parent.c_arrowsVisible) break; this.buttonG.attachMovie('arrow', 'arrow_mc', 1005, {'_x': arrowX, '_y': arrowY}); if (!_parent.c_useDisabledColor) break; var tmp = new Color(this.buttonG.arrow_mc); tmp.setRGB(this._parent.c_foregroundDisabled); } delete x; delete y; delete w; delete h; }; stop(); } frame 2 { setSkins(); stop(); } frame 3 { setSkins(); stop(); } } movieClip 26 { } movieClip 27 { frame 1 { function setSkins() { if (_parent.c_scrollTrackVisible) { var v3 = new Color(scrollTrack_mc); v3.setRGB(_parent.c_scrollTrack); false; } else { scrollTrack_mc._visible = false; } this._width = _parent.c_scrollWidth; if (_parent.c_horizontal) { this._x += 16 - _parent.c_scrollWidth; } } this.useHandCursor = false; setSkins(); this.onPress = function () { if (this._parent.enabled == false || this._parent.hitTest(_root._xmouse, _root._ymouse) == false) { return undefined; } if (this.hitTest(_root._xmouse, _root._ymouse) && !this._parent.drag.hitTest(_root._xmouse, _root._ymouse) && !this._parent.button_up.hitTest(_root._xmouse, _root._ymouse) && !this._parent.button_down.hitTest(_root._xmouse, _root._ymouse)) { if (_parent._ymouse < this._parent.drag._y) { this._parent.pageUp(); this._parent.scrollDelay = true; this._parent.delayTimer = setInterval(this._parent, 'clearDelay', 300); this._parent.scrolling = 'PAGEUP'; } else { this._parent.pageDown(); this._parent.scrollDelay = true; this._parent.delayTimer = setInterval(this._parent, 'clearDelay', 300); this._parent.scrolling = 'PAGEDOWN'; } } }; this.onDragOut = function () { this._parent.scrolling = false; this._parent.clearDelay(); }; this.onRelease = function () { this._parent.scrolling = false; this._parent.clearDelay(); }; stop(); } } movieClip 28 ultimateScroller { #initclip function ultimateScrollerClass() { this.initialize(); } ultimateScrollerClass.prototype = new MovieClip(); ultimateScrollerClass.prototype.scrollUp = function () { if (this.enabled == false) { return undefined; } if (this.c_horizontal) { if (this.targetClip._x < this.scrollBottom) { var v4 = this.targetClip._x + this.scrollAmount < this.scrollBottom ? this.targetClip._x + this.scrollAmount : this.scrollBottom; var v2 = ((v4 - this.scrollBottom) * 100 / (this.scrollBottom - this.scrollTop)) * -1; this.drag._y = Math.floor(this.dragTop - ((this.dragTop - this.dragBottom) / 100) * v2); this.syncTargetPos(); false; false; } } else { if (this.targetClip._y < this.scrollTop) { var v3 = this.targetClip._y + this.scrollAmount < this.scrollTop ? this.targetClip._y + this.scrollAmount : this.scrollTop; var v2 = ((v3 - this.scrollTop) * 100 / (this.scrollTop - this.scrollBottom)) * -1; this.drag._y = Math.floor(this.dragTop - ((this.dragTop - this.dragBottom) / 100) * v2); this.syncTargetPos(); false; false; } } }; ultimateScrollerClass.prototype.scrollDown = function () { if (this.enabled == false) { return undefined; } if (this.c_horizontal == true) { if (this.targetClip._x > this.scrollTop) { var v4 = this.targetClip._x - this.scrollAmount > this.scrollTop ? this.targetClip._x - this.scrollAmount : this.scrollTop; var v2 = ((v4 - this.scrollBottom) * 100 / (this.scrollBottom - this.scrollTop)) * -1; this.drag._y = Math.ceil(this.dragTop - ((this.dragTop - this.dragBottom) / 100) * v2); this.syncTargetPos(); false; false; } } else { if (this.targetClip._y > this.scrollBottom) { var v3 = this.targetClip._y - this.scrollAmount > this.scrollBottom ? this.targetClip._y - this.scrollAmount : this.scrollBottom; var v2 = ((v3 - this.scrollTop) * 100 / (this.scrollTop - this.scrollBottom)) * -1; this.drag._y = Math.ceil(this.dragTop - ((this.dragTop - this.dragBottom) / 100) * v2); this.syncTargetPos(); false; false; } } }; ultimateScrollerClass.prototype.pageUp = function () { var v2 = this.c_scrollAmount; this.c_scrollAmount = int(this.h); this.scrollUp(); this.c_scrollAmount = v2; false; }; ultimateScrollerClass.prototype.pageDown = function () { var v2 = this.c_scrollAmount; this.c_scrollAmount = int(this.h); this.scrollDown(); this.c_scrollAmount = v2; false; }; ultimateScrollerClass.prototype.scrollToTop = function () { if (this.enabled == false) { return undefined; } this.drag._y = this.dragTop; this.syncTargetPos(); }; ultimateScrollerClass.prototype.scrollToBottom = function () { if (this.enabled == false) { return undefined; } this.drag._y = this.dragBottom; this.syncTargetPos(); }; ultimateScrollerClass.prototype.getScrollPosition = function () { return this.drag._y; }; ultimateScrollerClass.prototype.setScrollPosition = function (scrollPos) { this.drag._y = scrollPos; }; ultimateScrollerClass.prototype.setDragHeight = function (usrHeight) { this.c_dragHeight = usrHeight; if (usrHeight > this.track_mc._height - 48) { usrHeight = this.track_mc._height - 48; } else { if (usrHeight < 2) { usrHeight = 2; } } this.dragHeight = usrHeight; var btnDrag = this.attachMovie('ultimateScroller_drag', 'drag', 5, {'_x': 0, '_y': 16, 'w': this.c_scrollWidth, 'h': this.dragHeight}); btnDrag.useHandCursor = false; this.dragTop = 16; this.dragBottom = this.h - 16 - this.dragHeight; if (this.scrollTo != null) { btnDrag._y = this.scrollTo > this.dragBottom ? this.dragBottom : this.scrollTo; var v3 = this.c_easing; this.c_easing = 'none'; this.syncTargetPos(); this.c_easing = v3; false; } btnDrag.onMouseDown = function () { if (this._parent.enabled == false) { return undefined; } if (btnDrag.hitTest(_level0._xmouse, _level0._ymouse)) { btnDrag.startDrag(false, 0, this._parent.dragTop, 0, this._parent.dragBottom); this._parent.dragging = true; updateAfterEvent(); } }; btnDrag.onMouseUp = function () { btnDrag.stopDrag(); this._parent.dragging = false; updateAfterEvent(); }; if (!this.c_dragVisible) { this.drag._visible = false; } }; ultimateScrollerClass.prototype.initialize = function () { this.setDefaults(); this.enabled = false; if (this.c_horizontal == true) { this._rotation = -90; this._xscale = -100; this._y = int(this._y + 16); if (this.size == null) { this.setSize(this._width); } else { this.setSize(this.size); } } else { this._rotation = 0; this._xscale = 100; if (this.size == null) { this.setSize(this._height); } else { this.setSize(this.size); } } if (this._targetInstanceName.length > 0) { var v2 = this._parent[this._targetInstanceName]; this.initX = v2._x; this.initY = v2._y; this.initW = v2._width; this.initH = v2._height; this.setTarget(v2); false; } else { this.setEnabled(false); } }; ultimateScrollerClass.prototype.setDefaults = function () { if (this.c_horizontal == null) { if (this.horizontal == null) { this.c_horizontal = false; } else { this.c_horizontal = Boolean(this.horizontal); delete this.horizontal; } } if (this.c_buffer == null) { if (this.buffer == null) { this.c_buffer = 10; } else { this.c_buffer = int(this.buffer); delete this.buffer; } } if (this.c_scrollAmount == null) { if (this.scrollAmount == null) { this.c_scrollAmount = 40; } else { this.c_scrollAmount = int(this.scrollAmount); delete this.scrollAmount; } } if (this.c_easing == null) { if (this.easing == null) { this.c_easing = 'none'; } else { this.c_easing = this.easing; delete this.easing; } } if (this.c_useMask == null) { if (this.useMask == null) { this.c_useMask = false; } else { this.c_useMask = Boolean(this.useMask); delete this.useMask; } } if (this.c_dragVisible == null) { if (this.dragVisible == null) { this.c_dragVisible = true; } else { this.c_dragVisible = Boolean(this.dragVisible); delete this.dragVisible; } } if (this.c_dragAuto == null) { if (this.dragHeightAuto == null) { this.c_dragAuto = true; } else { this.c_dragAuto = Boolean(this.dragHeightAuto); delete this.dragHeightAuto; } } if (this.c_scrollTrackVisible == null) { if (this.scrollTrackVisible == null) { this.c_scrollTrackVisible = true; } else { this.c_scrollTrackVisible = Boolean(this.scrollTrackVisible); delete this.scrollTrackVisible; } } if (this.c_buttonsVisible == null) { if (this.buttonsVisible == null) { this.c_buttonsVisible = true; } else { this.c_buttonsVisible = Boolean(this.buttonsVisible); delete this.buttonsVisible; } } if (this.c_arrowsVisible == null) { if (this.arrowsVisible == null) { this.c_arrowsVisible = true; } else { this.c_arrowsVisible = Boolean(this.arrowsVisible); delete this.arrowsVisible; } } if (this.c_arrowDefaultColor == null) { if (this.arrowDefaultColor == null) { this.c_arrowDefaultColor = false; } else { this.c_arrowDefaultColor = Boolean(this.arrowDefaultColor); delete this.arrowDefaultColor; } } if (this.c_scrollWidth == null) { if (this.scrollWidth == null) { this.c_scrollWidth = 16; } else { this.c_scrollWidth = int(this.scrollWidth); delete this.scrollWidth; } } if (this.c_useDisabledColor == null) { if (this.useDisabledColor == null) { this.c_useDisabledColor = true; } else { this.c_useDisabledColor = Boolean(this.useDisabledColor); delete this.useDisabledColor; } } if (this.c_scrollSide == null) { if (this.scrollSide == null) { this.c_scrollSide = 'right'; } else { this.c_scrollSide = String(this.scrollSide); delete this.scrollSide; } } if (this.c_face == null) { if (this.face == null) { this.c_face = 14078926; } else { this.c_face = this.face; delete this.face; } } if (this.c_shadow == null) { if (this.shadow == null) { this.c_shadow = 8684164; } else { this.c_shadow = this.shadow; delete this.shadow; } } if (this.c_darkshadow == null) { if (this.darkshadow == null) { this.c_darkshadow = 4342082; } else { this.c_darkshadow = this.darkshadow; delete this.darkshadow; } } if (this.c_highlight == null) { if (this.highlight == null) { this.c_highlight = 16777215; } else { this.c_highlight = this.highlight; delete this.highlight; } } if (this.c_highlight3d == null) { if (this.highlight3d == null) { this.c_highlight3d = 14078926; } else { this.c_highlight3d = this.highlight3d; } } if (this.c_arrow == null) { if (this.arrow == null) { this.c_arrow = 0; } else { this.c_arrow = this.arrow; delete this.arrow; } } if (this.c_foregroundDisabled == null) { if (this.foregroundDisabled == null) { this.c_foregroundDisabled = 10066329; } else { this.c_foregroundDisabled = this.foregroundDisabled; delete this.foregroundDisabled; } } if (this.c_scrollTrack == null) { if (this.scrollTrack == null) { this.c_scrollTrack = 15066078; } else { this.c_scrollTrack = this.scrollTrack; delete this.scrollTrack; } } if (this.c_borderColorTop == null) { if (this.borderColorTop == null) { this.c_borderColorTop = 0; } else { this.c_borderColorTop = this.borderColorTop; delete this.borderColorTop; } } if (this.c_borderColorBottom == null) { if (this.borderColorBottom == null) { this.c_borderColorBottom = 0; } else { this.c_borderColorBottom = this.borderColorBottom; delete this.borderColorBottom; } } if (this.c_borderColorLeft == null) { if (this.borderColorLeft == null) { this.c_borderColorLeft = 0; } else { this.c_borderColorLeft = this.borderColorLeft; delete this.borderColorLeft; } } if (this.c_borderColorRight == null) { if (this.borderColorRight == null) { this.c_borderColorRight = 0; } else { this.c_borderColorRight = this.borderColorRight; delete this.borderColorRight; } } if (this.scrollTarget != null) { this.setTarget(this.scrollTarget); delete this.scrollTarget; } }; ultimateScrollerClass.prototype.setEnabled = function (e) { this.enabled = e; if (this.enabled) { this.button_up.gotoAndStop('up'); this.button_down.gotoAndStop('up'); } else { this.button_up.gotoAndStop('disabled'); this.button_down.gotoAndStop('disabled'); this.drag.removeMovieClip(); } this.button_up.setSkins(); this.drag.setSkins(); this.button_down.setSkins(); }; ultimateScrollerClass.prototype.clearDelay = function () { clearInterval(this.delayTimer); this.scrollDelay = false; }; ultimateScrollerClass.prototype.resetPositions = function () { this.targetClip._x = this.initX; this.targetClip._y = this.initY; this.drag._y = this.dragTop; }; ultimateScrollerClass.prototype.drawMask = function () { var mx = 0; var my = 0; var mwidth = 0; var mheight = 0; this.resetPositions(); if (this.c_horizontal == true) { mwidth = this.track_mc._height - 0.5; mheight = this._y - this.targetClip._y; mx = this._x; my = this.targetClip._y; } else { if (this.c_scrollSide eq 'right') { mwidth = this._x - this.targetClip._x; mheight = this.h - 0.5; mx = this.targetClip._x - 1.5; my = this._y; } else { var bWidth = this.targetClip._x + this.targetClip._width - this._x - this._width + 16.5; mwidth = this.targetClip._x + this.targetClip._width - this._x - this._width + 3; mheight = this.h - 0.5; mx = this.targetClip._x - 0.5; my = this._y; } } this.maskObj.removeMovieClip(); this.maskObj = this._parent.createEmptyMovieClip(this.targetClip._name + '_mask', this.targetClip.getDepth() + 44496 + random(1774) + (random(4) + 1), {'_x': this.targetClip._x, '_y': this.targetClip._y}); with (this.maskObj) { beginFill(16711680); lineStyle(0); moveTo(0, 0); lineTo(mwidth, 0); lineTo(mwidth, mheight); lineTo(0, mheight); lineTo(0, 0); endFill(); } this.maskObj._x = mx; this.maskObj._y = my; this.maskObj._alpha = 0; this.targetClip.setMask(this.maskObj); }; ultimateScrollerClass.prototype.drawBorder = function () { this.resetPositions(); if (this.c_horizontal == true) { var bWidth = this.h + 1; var bHeight = this._y - this.targetClip._y + 1.5 - (16 - this.c_scrollWidth); var bX = this._x - 0.5; var bY = this.targetClip._y - 1; } else { if (this.c_scrollSide eq 'right') { if (this.c_borderStyle == '3d') { var bWidth = this._x - this.targetClip._x + this.c_scrollWidth + 4; var bHeight = this.h + 1.5; var bX = this.targetClip._x - 3; var bY = this._y - 0.5; } else { var bWidth = this._x - this.targetClip._x + this.c_scrollWidth + 2; var bHeight = this.h + 1.5; var bX = this.targetClip._x - 1.5; var bY = this._y - 1; } } else { if (this.c_borderStyle == '3d') { var bWidth = this.targetClip._x + this.targetClip._width - this._x + 4; var bHeight = this.h + 1.5; var bX = this._x - 2.5; var bY = this._y - 1; } else { var bWidth = this.targetClip._x + this.targetClip._width - this._x + 2; var bHeight = this.h + 1.5; var bX = this._x - 1; var bY = this._y - 1; } } } this.borderObj.removeMovieClip(); this.borderObj = this._parent.createEmptyMovieClip(this.targetClip._name + '_border', this.targetClip.getDepth() + 55596 + random(622) + (random(9) + 2), {'_x': this.targetClip._x, '_y': this.targetClip._y}); switch (String(this.c_borderStyle)) { case 'line': with (this.borderObj) { lineStyle(1, this.c_borderColorT); moveTo(0, 0); lineTo(bWidth, 0); lineStyle(1, this.c_borderColorR); lineTo(bWidth, bHeight); lineStyle(1, this.c_borderColorB); lineTo(0, bHeight); lineStyle(1, this.c_borderColorL); lineTo(0, 0); } break; case '3d': bWidth += 1; bHeight += 3; bX += 1; bY -= 1; with (this.borderObj) { lineStyle(2, this.c_shadow); moveTo(0, 0); lineTo(bWidth, 0); lineStyle(0.75, this.c_highlight3d); lineTo(bWidth, bHeight); lineTo(0, bHeight); lineStyle(2, this.c_shadow); lineTo(0, 0); } break; default: } this.borderObj._width = bWidth + 0.5; this.borderObj._height = bHeight + 0.5; this.borderObj._x = bX + 0.5; this.borderObj._y = bY + 0.5; delete bWidth; delete bHeight; delete bX; delete bY; }; ultimateScrollerClass.prototype.syncTargetPos = function () { var v2 = (this.drag._y - 16) * 100 / (this.dragBottom - this.dragTop); if (this.c_horizontal == true) { if (!(this.c_easing eq 'none')) { switch (this.c_easing) { case 'high': var v3 = 8; break; case 'med': var v3 = 6; break; case 'low': var v3 = 4; } this.easeTo(int(this.scrollBottom - ((this.scrollBottom - this.scrollTop) / 100) * v2), this.targetClip._y, storedv3); } else { this.targetClip._x = int(this.scrollBottom - ((this.scrollBottom - this.scrollTop) / 100) * v2); } } else { if (!(this.c_easing eq 'none')) { switch (this.c_easing) { case 'high': var v3 = 8; break; case 'med': var v3 = 6; break; case 'low': var v3 = 4; } this.easeTo(this.targetClip._x, int(this.scrollTop - ((this.scrollTop - this.scrollBottom) / 100) * v2), storedv3); } else { this.targetClip._y = int(this.scrollTop - ((this.scrollTop - this.scrollBottom) / 100) * v2); } } false; false; }; ultimateScrollerClass.prototype.onEnterFrame = function () { if (this.initW != this.targetClip._width || this.initH != this.targetClip._height) { this.setSize(this.h); } if (this.enabled == false) { return undefined; } this.syncTargetPos(); if (this.scrollDelay == true) { return undefined; } if (this.scrolling eq 'DOWN') { this.scrollDown(); } if (this.scrolling eq 'UP') { this.scrollUp(); } if (this.scrolling eq 'PAGEDOWN') { this.pageDown(); } if (this.scrolling eq 'PAGEUP') { this.pageUp(); } }; ultimateScrollerClass.prototype.onUnload = function () { this.maskObj.removeMovieClip(); this.borderObj.removeMovieClip(); }; ultimateScrollerClass.prototype.easeTo = function (tx, ty, speed) { this.easeMov.removeMovieClip(); if (this.targetClip._x == tx && this.targetClip._y == ty) { return undefined; } var v3 = this.createEmptyMovieClip('easeMov', 99945); var scroller = this; var oldY = scroller.targetClip._y; var oldX = scroller.targetClip._x; v3.onEnterFrame = function () { if (scroller.c_horizontal == true) { var v3 = scroller.targetClip._x - tx < 0 ? (scroller.targetClip._x - tx) * -1 : scroller.targetClip._x - tx; var v2 = (tx - oldX) / speed; if (v2 < 0 and v2 > -1) { v2 = -1; } if (v2 > 0 and v2 < 1) { v2 = 1; } newX = oldX + v2; oldX = newX; scroller.targetClip._x = int(newX); false; false; } else { var v3 = scroller.targetClip._y - ty < 0 ? (scroller.targetClip._y - ty) * -1 : scroller.targetClip._y - ty; var v2 = (ty - oldY) / speed; if (v2 < 0 and v2 > -1) { v2 = -1; } if (v2 > 0 and v2 < 1) { v2 = 1; } newY = oldY + v2; oldY = newY; scroller.targetClip._y = int(newY); false; false; } updateAfterEvent(); if (v3 < 1) { scroller.targetClip._x = int(scroller.targetClip._x); scroller.targetClip._y = int(scroller.targetClip._y); this.removeMovieClip(); } }; false; delete scroller; }; ultimateScrollerClass.prototype.getHorizontal = function () { return this.c_horizontal; }; ultimateScrollerClass.prototype.setHorizontal = function (p) { this.c_horizontal = Boolean(p); if (this.h) { this._rotation = -90; this._xscale = -100; this.setSize(this._width); } else { this._rotation = 0; this._xscale = 100; this.setSize(this._height); } }; ultimateScrollerClass.prototype.getTarget = function () { return this.targetClip; }; ultimateScrollerClass.prototype.setTarget = function (t) { if (this.drag._y != undefined) { this.scrollTo = this.drag._y; } else { this.scrollTo = null; } this.resetPositions(); if (eval(t)) { this.targetClip = t; this.targetClip._x = int(this.targetClip._x); this.targetClip._y = int(this.targetClip._y); this.initX = int(this.targetClip._x); this.initY = int(this.targetClip._y); this.initH = this.targetClip._height; this.initW = this.targetClip._width; if (this.c_horizontal == true) { this.targetClip._x = this.initX; this._x = int(this._x); this._y = int(this._y); } else { this.targetClip._y = this.initY; this._x = int(this._x); this._y = int(this._y); } if (this.c_useMask) { this.drawMask(); } if (!(this.c_borderStyle eq 'none')) { this.drawBorder(); } if (this.c_horizontal == true) { this.scrollBottom = int(this.targetClip._x); this.scrollTop = int(this.targetClip._x) - Math.ceil(this.targetClip._width - (this._width - (this.c_buffer + 2)) - (this._x - this.targetClip._x)); this.visiblePercent = this.h * 100 / (this.targetClip._width - (this._x - this.targetClip._x)); if (this.scrollTop >= this.scrollBottom) { this.setEnabled(false); return undefined; } } else { this.scrollTop = int(this.targetClip._y); this.scrollBottom = Math.ceil((this.targetClip._height - (this.h - (this.c_buffer + 2))) * -1) + this.scrollTop + (this._y - this.targetClip._y); this.visiblePercent = this.h * 100 / (this.targetClip._height - (this._y - this.targetClip._y)); if (this.scrollTop <= this.scrollBottom) { this.setEnabled(false); return undefined; } } this.setEnabled(true); this.drawDrag(); if (!this.c_dragVisible) { this.drag._visible = false; } } else { delete this.targetClip; this.setEnabled(false); } delete btnDrag; }; ultimateScrollerClass.prototype.drawDrag = function () { this.dragHeight = ((this.h - 32) / 100) * this.visiblePercent; this.dragHeight = this.dragHeight > int(this.h - 34) ? int(this.h - 34) : int(this.dragHeight); this.dragHeight = this.dragHeight < 6 ? 6 : int(this.dragHeight); if (!this.c_dragAuto) { if (this.c_dragHeight > this.track_mc._height - 48) { this.c_dragHeight = this.track_mc._height - 48; } else { if (this.c_dragHeight < 2) { this.c_dragHeight = 2; } } this.dragHeight = this.c_dragHeight; } var btnDrag = this.attachMovie('ultimateScroller_drag', 'drag', 5, {'_x': 0, '_y': 16, 'w': this.c_scrollWidth, 'h': this.dragHeight}); btnDrag.useHandCursor = false; this.dragTop = 16; this.dragBottom = this.h - 16 - this.dragHeight; if (this.scrollTo != null) { btnDrag._y = this.scrollTo > this.dragBottom ? this.dragBottom : this.scrollTo; var v2 = this.c_easing; this.c_easing = 'none'; this.syncTargetPos(); this.c_easing = v2; false; } btnDrag.onMouseDown = function () { if (this._parent.enabled == false) { return undefined; } if (btnDrag.hitTest(_level0._xmouse, _level0._ymouse)) { btnDrag.startDrag(false, 0, this._parent.dragTop, 0, this._parent.dragBottom); this._parent.dragging = true; updateAfterEvent(); } }; btnDrag.onMouseUp = function () { btnDrag.stopDrag(); this._parent.dragging = false; updateAfterEvent(); }; }; ultimateScrollerClass.prototype.getSize = function () { return this.h; }; ultimateScrollerClass.prototype.setSize = function (s) { this.h = s <= 55 ? 55 : int(s); this._yscale = 100; this._xscale = 100; this.track_mc._height = this.h; if (this.c_horizontal == true) { this.attachMovie('ultimateScroller_button_left', 'button_up', 1, {'_x': 0, '_y': 0}); this.button_up.gotoAndStop(3); this.attachMovie('ultimateScroller_button_right', 'button_down', 2, {'_x': 0, '_y': this.h - 16}); this.button_down.gotoAndStop(3); } else { this.attachMovie('ultimateScroller_button_up', 'button_up', 1, {'_x': 0, '_y': 0}); this.button_up.gotoAndStop(3); this.attachMovie('ultimateScroller_button_down', 'button_down', 2, {'_x': 0, '_y': this.h - 16}); this.button_down.gotoAndStop(3); } if (this.targetClip) { this.setTarget(this.targetClip); } else { this.setEnabled(false); } }; ultimateScrollerClass.prototype.getBuffer = function () { return this.c_buffer; }; ultimateScrollerClass.prototype.setBuffer = function (p) { this.c_buffer = int(p); }; ultimateScrollerClass.prototype.getEasing = function () { return this.c_easing; }; ultimateScrollerClass.prototype.setEasing = function (p) { this.c_easing = String(p); }; ultimateScrollerClass.prototype.getScrollAmount = function () { return this.c_scrollAmount; }; ultimateScrollerClass.prototype.setScrollAmount = function (p) { this.c_scrollAmount = int(p); }; ultimateScrollerClass.prototype.getUseMask = function () { return this.c_useMask; }; ultimateScrollerClass.prototype.setUseMask = function (p) { this.c_useMask = Boolean(p); if (this.c_useMask && eval(this.targetClip._name)) { this.drawMask(); } else { var tmp = eval(this.targetClip._name + '_mask'); tmp.removeMovieClip(); delete tmp; } }; ultimateScrollerClass.prototype.getScrollTrackVisible = function () { return this.c_scrollTrackVisible; }; ultimateScrollerClass.prototype.setScrollTrackVisible = function (p) { this.c_scrollTrackVisible = Boolean(p); }; ultimateScrollerClass.prototype.getButtonsVisible = function () { return this.c_buttonsVisible; }; ultimateScrollerClass.prototype.setButtonsVisible = function (p) { this.c_buttonsVisible = Boolean(p); }; ultimateScrollerClass.prototype.getArrowsVisible = function () { return this.c_arrowsVisible; }; ultimateScrollerClass.prototype.setArrowsVisible = function (p) { this.c_arrowsVisible = Boolean(p); }; ultimateScrollerClass.prototype.getArrowDefaultColor = function () { return this.c_arrowDefaultColor; }; ultimateScrollerClass.prototype.setArrowDefaultColor = function (p) { this.c_arrowDefaultColor = Boolean(p); }; ultimateScrollerClass.prototype.getUseDisabledColor = function () { return this.c_useDisabledColor; }; ultimateScrollerClass.prototype.setUseDisabledColor = function (p) { this.c_useDisabledColor = Boolean(p); }; ultimateScrollerClass.prototype.getScrollWidth = function () { return this.c_scrollWidth; }; ultimateScrollerClass.prototype.setScrollWidth = function (p) { this.c_scrollWidth = int(p); this.drawDrag(); this.drawBorder(); }; ultimateScrollerClass.prototype.getDragVisible = function () { return this.c_dragVisible; }; ultimateScrollerClass.prototype.setDragVisible = function (p) { this.c_dragVisible = Boolean(p); if (this.c_dragVisible) { this.drag._visible = true; } else { this.drag._visible = false; } }; ultimateScrollerClass.prototype.getDragHeightAuto = function () { return this.c_dragAuto; }; ultimateScrollerClass.prototype.setDragHeightAuto = function (p) { this.c_dragAuto = Boolean(p); this.drawDrag(); }; ultimateScrollerClass.prototype.getScrollSide = function () { return this.c_scrollSide; }; ultimateScrollerClass.prototype.setScrollSide = function (p) { this.c_scrollSide = String(p); this.drawMask(); this.drawBorder(); }; ultimateScrollerClass.prototype.getBorderStyle = function () { return this.c_borderStyle; }; ultimateScrollerClass.prototype.setBorderStyle = function (p) { this.c_borderStyle = p.toLowerCase(); var tmp = eval(this.targetClip._name + '_border'); tmp.removeMovieClip(); if (!(this.c_borderStyle eq 'none') && eval(this.targetClip._name)) { this.drawBorder(); } delete tmp; }; ultimateScrollerClass.prototype.getFace = function () { return this.c_face; }; ultimateScrollerClass.prototype.setFace = function (p) { this.c_face = p; this.button_up.setSkins(); this.drag.setSkins(); this.button_down.setSkins(); this.track_mc.setSkins(); }; ultimateScrollerClass.prototype.getShadow = function () { return this.c_shadow; }; ultimateScrollerClass.prototype.setShadow = function (p) { this.c_shadow = p; this.button_up.setSkins(); this.drag.setSkins(); this.button_down.setSkins(); this.track_mc.setSkins(); if (!(this.c_borderStyle eq 'none') && eval(this.targetClip._name)) { this.drawBorder(); } }; ultimateScrollerClass.prototype.getDarkshadow = function () { return this.c_darkshadow; }; ultimateScrollerClass.prototype.setDarkshadow = function (p) { this.c_darkshadow = p; this.button_up.setSkins(); this.drag.setSkins(); this.button_down.setSkins(); this.track_mc.setSkins(); }; ultimateScrollerClass.prototype.getHighlight = function () { return this.c_highlight; }; ultimateScrollerClass.prototype.setHighlight = function (p) { this.c_highlight = p; this.button_up.setSkins(); this.drag.setSkins(); this.button_down.setSkins(); this.track_mc.setSkins(); }; ultimateScrollerClass.prototype.getHighlight3d = function () { return this.c_highlight3d; }; ultimateScrollerClass.prototype.setHighlight3d = function (p) { this.c_highlight3d = p; this.button_up.setSkins(); this.drag.setSkins(); this.button_down.setSkins(); this.track_mc.setSkins(); if (!(this.c_borderStyle eq 'none') && eval(this.targetClip._name)) { this.drawBorder(); } }; ultimateScrollerClass.prototype.getArrow = function () { return this.c_arrow; }; ultimateScrollerClass.prototype.setArrow = function (p) { this.c_arrow = p; this.button_up.setSkins(); this.button_down.setSkins(); }; ultimateScrollerClass.prototype.getForegroundDisabled = function () { return this.c_foregroundDisabled; }; ultimateScrollerClass.prototype.setForegroundDisabled = function (p) { this.c_foregroundDisabled = p; this.button_up.setSkins(); this.drag.setSkins(); this.button_down.setSkins(); this.track_mc.setSkins(); }; ultimateScrollerClass.prototype.getScrollTrack = function () { return this.c_scrollTrack; }; ultimateScrollerClass.prototype.setScrollTrack = function (p) { this.c_scrollTrack = p; this.track_mc.setSkins(); }; ultimateScrollerClass.prototype.getBorderColorTop = function () { return this.c_borderColorT; }; ultimateScrollerClass.prototype.setBorderColorTop = function (p) { this.c_borderColorT = p; if (eval(this.targetClip._name) && this.c_borderStyle eq 'line') { this.drawBorder(); } }; ultimateScrollerClass.prototype.getBorderColorBottom = function () { return this.c_borderColorB; }; ultimateScrollerClass.prototype.setBorderColorBottom = function (p) { this.c_borderColorB = p; if (eval(this.targetClip._name) && this.c_borderStyle eq 'line') { this.drawBorder(); } }; ultimateScrollerClass.prototype.getBorderColorLeft = function () { return this.c_borderColorL; }; ultimateScrollerClass.prototype.setBorderColorLeft = function (p) { this.c_borderColorL = p; if (eval(this.targetClip._name) && this.c_borderStyle eq 'line') { this.drawBorder(); } }; ultimateScrollerClass.prototype.getBorderColorRight = function () { return this.c_borderColorR; }; ultimateScrollerClass.prototype.setBorderColorRight = function (p) { this.c_borderColorR = p; if (eval(this.targetClip._name) && this.c_borderStyle eq 'line') { this.drawBorder(); } }; ultimateScrollerClass.prototype.addProperty('horizontal', ultimateScrollerClass.prototype.getHorizontal, ultimateScrollerClass.prototype.setHorizontal); ultimateScrollerClass.prototype.addProperty('scrollTarget', ultimateScrollerClass.prototype.getTarget, ultimateScrollerClass.prototype.setTarget); ultimateScrollerClass.prototype.addProperty('size', ultimateScrollerClass.prototype.getSize, ultimateScrollerClass.prototype.setSize); ultimateScrollerClass.prototype.addProperty('scrollBuffer', ultimateScrollerClass.prototype.getBuffer, ultimateScrollerClass.prototype.setBuffer); ultimateScrollerClass.prototype.addProperty('scrollAmount', ultimateScrollerClass.prototype.getScrollAmount, ultimateScrollerClass.prototype.setScrollAmount); ultimateScrollerClass.prototype.addProperty('easing', ultimateScrollerClass.prototype.getEasing, ultimateScrollerClass.prototype.setEasing); ultimateScrollerClass.prototype.addProperty('useMask', ultimateScrollerClass.prototype.getUseMask, ultimateScrollerClass.prototype.setUseMask); ultimateScrollerClass.prototype.addProperty('dragVisible', ultimateScrollerClass.prototype.getDragVisible, ultimateScrollerClass.prototype.setDragVisible); ultimateScrollerClass.prototype.addProperty('dragHeightAuto', ultimateScrollerClass.prototype.getDragHeightAuto, ultimateScrollerClass.prototype.setDragHeightAuto); ultimateScrollerClass.prototype.addProperty('scrollSide', ultimateScrollerClass.prototype.getScrollSide, ultimateScrollerClass.prototype.setScrollSide); ultimateScrollerClass.prototype.addProperty('borderStyle', ultimateScrollerClass.prototype.getBorderStyle, ultimateScrollerClass.prototype.setBorderStyle); ultimateScrollerClass.prototype.addProperty('face', ultimateScrollerClass.prototype.getFace, ultimateScrollerClass.prototype.setFace); ultimateScrollerClass.prototype.addProperty('shadow', ultimateScrollerClass.prototype.getShadow, ultimateScrollerClass.prototype.setShadow); ultimateScrollerClass.prototype.addProperty('darkshadow', ultimateScrollerClass.prototype.getDarkshadow, ultimateScrollerClass.prototype.setDarkshadow); ultimateScrollerClass.prototype.addProperty('highlight', ultimateScrollerClass.prototype.getHighlight, ultimateScrollerClass.prototype.setHighlight); ultimateScrollerClass.prototype.addProperty('highlight3d', ultimateScrollerClass.prototype.getHighlight3d, ultimateScrollerClass.prototype.setHighlight3d); ultimateScrollerClass.prototype.addProperty('arrow', ultimateScrollerClass.prototype.getArrow, ultimateScrollerClass.prototype.setArrow); ultimateScrollerClass.prototype.addProperty('foregroundDisabled', ultimateScrollerClass.prototype.getForegroundDisabled, ultimateScrollerClass.prototype.setForegroundDisabled); ultimateScrollerClass.prototype.addProperty('scrollTrack', ultimateScrollerClass.prototype.getScrollTrack, ultimateScrollerClass.prototype.setScrollTrack); ultimateScrollerClass.prototype.addProperty('borderColorTop', ultimateScrollerClass.prototype.getBorderColorTop, ultimateScrollerClass.prototype.setBorderColorTop); ultimateScrollerClass.prototype.addProperty('borderColorBottom', ultimateScrollerClass.prototype.getBorderColorBottom, ultimateScrollerClass.prototype.setBorderColorBottom); ultimateScrollerClass.prototype.addProperty('borderColorLeft', ultimateScrollerClass.prototype.getBorderColorLeft, ultimateScrollerClass.prototype.setBorderColorLeft); ultimateScrollerClass.prototype.addProperty('borderColorRight', ultimateScrollerClass.prototype.getBorderColorRight, ultimateScrollerClass.prototype.setBorderColorRight); ultimateScrollerClass.prototype.addProperty('scrollTrackVisible', ultimateScrollerClass.prototype.getScrollTrackVisible, ultimateScrollerClass.prototype.setScrollTrackVisible); ultimateScrollerClass.prototype.addProperty('buttonsVisible', ultimateScrollerClass.prototype.getButtonsVisible, ultimateScrollerClass.prototype.setButtonsVisible); ultimateScrollerClass.prototype.addProperty('arrowsVisible', ultimateScrollerClass.prototype.getArrowsVisible, ultimateScrollerClass.prototype.setArrowsVisible); ultimateScrollerClass.prototype.addProperty('arrowDefaultColor', ultimateScrollerClass.prototype.getArrowDefaultColor, ultimateScrollerClass.prototype.setArrowDefaultColor); ultimateScrollerClass.prototype.addProperty('scrollWidth', ultimateScrollerClass.prototype.getScrollWidth, ultimateScrollerClass.prototype.setScrollWidth); ultimateScrollerClass.prototype.addProperty('useDisabledColor', ultimateScrollerClass.prototype.getUseDisabledColor, ultimateScrollerClass.prototype.setUseDisabledColor); Object.registerClass('ultimateScroller', ultimateScrollerClass); #endinitclip frame 1 { } } frame 1 { function goToThisURL() { getURL(linkURL, '_blank'); } function goToThisURL2() { getURL(linkURL2, '_blank'); } function identifier() { l = random(8); if (l == 0) { _root.VARidentifier = 'A'; } if (l == 1) { _root.VARidentifier = 'B'; } if (l == 2) { _root.VARidentifier = 'C'; } if (l == 3) { _root.VARidentifier = 'D'; } if (l == 4) { _root.VARidentifier = 'E'; } if (l == 5) { _root.VARidentifier = 'F'; } if (l == 6) { _root.VARidentifier = 'G'; } if (l == 7) { _root.VARidentifier = 'H'; } } var absoluteURL = 'http://www.driveessex.co.uk'; snd = new Sound(); bigwhitemask.useHandCursor = false; var linkURL = 'http://www.driveessex.co.uk'; var linkText = '© Drive Essex'; var linkURL2 = 'http://www.halomedia.co.uk'; var linkText2 = 'Game by Halomedia'; var myMenu = new ContextMenu(); var copyright = new ContextMenuItem(linkText, goToThisURL); myMenu.customItems.push(copyright); myMenu.hideBuiltInItems(); var designedby = new ContextMenuItem(linkText2, goToThisURL2); myMenu.customItems.push(designedby); _root.menu = myMenu; } movieClip 34 { } movieClip 37 { } movieClip 40 { } movieClip 43 { } // unknown tag 88 length 108 movieClip 46 { frame 21 { stop(); } frame 38 { stop(); } } instance homepagebgMC of movieClip 46 { onClipEvent (load) { this._alpha = 0; } onClipEvent (enterFrame) { this._alpha = int((_parent.getBytesLoaded() / _parent.getBytesTotal()) * 100); } } movieClip 49 { } movieClip 51 { } button 52 { on (release) { nextFrame(); } } movieClip 54 { } button 55 { on (release) { prevFrame(); } } movieClip 56 { frame 1 { stop(); _root.myMasterSoundObject.setVolume(100); _root.snd.setVolume(100); } frame 2 { stop(); _root.myMasterSoundObject.setVolume(0); _root.snd.setVolume(0); } } movieClip 58 { } movieClip 60 { } button 62 { on (release) { getURL('http://www.driveessex.co.uk', '_blank'); } } movieClip 67 { } // unknown tag 88 length 107 movieClip 70 { frame 10 { stop(); } } instance loader of movieClip 70 { onClipEvent (enterFrame) { percent = int((_parent.getBytesLoaded() / _parent.getBytesTotal()) * 100); loaderbar._width = int((_parent.getBytesLoaded() / _parent.getBytesTotal()) * 470); if (percent == '100') { eval(this)._visible = '0'; } } } frame 3 { ifFrameLoaded (90) { gotoAndPlay('start'); } } frame 4 { gotoAndPlay(2); } frame 6 { _root.VARfirstplay = 0; } frame 30 { stop(); } movieClip 72 { } // unknown tag 88 length 52 button 75 { on (release) { _root.homepagebgMC.gotoAndPlay('out'); _root.play(); } } movieClip 77 { } button 79 { on (release) { _root.instructionsMC.play(); _root.bottabs.termsMC.gotoAndStop(1); _root.bottabs.privacyMC.gotoAndStop(1); _root.bottabs.embedMC.gotoAndStop(1); } } movieClip 81 { } button 83 { on (release) { getURL(_root.absoluteURL + '/game/scoreboard', '_self'); } } movieClip 84 { frame 17 { stop(); } } // unknown tag 88 length 108 movieClip 90 { } button 92 { on (release) { _parent.play(); } } movieClip 93 { frame 1 { invisiwindowbg.useHandCursor = false; } } movieClip 94 { frame 1 { stop(); } frame 12 { stop(); } } movieClip 103 { frame 1 { stop(); } } movieClip 105 { frame 1 { stop(); invisiwindowbg.useHandCursor = false; } } button 106 { on (release) { play(); _root.bottabs.termsMC.gotoAndStop(1); _root.bottabs.privacyMC.gotoAndStop(1); _root.instructionsMC.gotoAndStop(1); } } button 107 { on (release) { play(); } } movieClip 108 { frame 1 { stop(); } frame 13 { stop(); } } movieClip 114 { } movieClip 116 { frame 1 { invisiwindowbg.useHandCursor = false; } instance of movieClip 28 ultimateScroller { onClipEvent (construct) { _targetInstanceName = 'text'; c_horizontal = false; c_buffer = 16; c_scrollAmount = 20; c_easing = 'low'; c_scrollSide = 'right'; c_dragAuto = true; c_dragHeight = 16; c_scrollWidth = 16; c_useMask = true; c_borderStyle = 'none'; c_face = 4615268; c_shadow = 4811100; c_darkshadow = 3953994; c_highlight = 8236195; c_highlight3d = 7316119; c_arrow = 16777215; c_foregroundDisabled = 3228237; c_scrollTrack = 8236195; c_borderColorT = 0; c_borderColorB = 0; c_borderColorL = 0; c_borderColorR = 0; c_dragVisible = true; c_scrollTrackVisible = true; c_buttonsVisible = true; c_arrowsVisible = true; c_arrowDefaultColor = false; c_useDisabledColor = true; } } } button 117 { on (release) { play(); _root.bottabs.embedMC.gotoAndStop(1); _root.bottabs.privacyMC.gotoAndStop(1); _root.instructionsMC.gotoAndStop(1); } } movieClip 118 { frame 1 { stop(); } frame 13 { stop(); } } movieClip 124 { } movieClip 126 { frame 1 { invisiwindowbg.useHandCursor = false; } instance of movieClip 28 ultimateScroller { onClipEvent (construct) { _targetInstanceName = 'text'; c_horizontal = false; c_buffer = 16; c_scrollAmount = 20; c_easing = 'low'; c_scrollSide = 'right'; c_dragAuto = true; c_dragHeight = 16; c_scrollWidth = 16; c_useMask = true; c_borderStyle = 'none'; c_face = 4615268; c_shadow = 4811100; c_darkshadow = 3953994; c_highlight = 8236195; c_highlight3d = 7316119; c_arrow = 16777215; c_foregroundDisabled = 3228237; c_scrollTrack = 8236195; c_borderColorT = 0; c_borderColorB = 0; c_borderColorL = 0; c_borderColorR = 0; c_dragVisible = true; c_scrollTrackVisible = true; c_buttonsVisible = true; c_arrowsVisible = true; c_arrowDefaultColor = false; c_useDisabledColor = true; } } } button 127 { on (release) { play(); _root.bottabs.embedMC.gotoAndStop(1); _root.bottabs.termsMC.gotoAndStop(1); _root.instructionsMC.gotoAndStop(1); } } movieClip 128 { frame 1 { stop(); } frame 13 { stop(); } } movieClip 129 { frame 11 { stop(); } } frame 49 { if (_root.VARfirstplay == 0) { stop(); } else { play(); } } // unknown tag 88 length 109 movieClip 133 { } movieClip 135 { } movieClip 137 { } movieClip 139 { } button 141 { on (release) { _root.play(); _root.VARspeedoAngle = 30; } } movieClip 142 { frame 16 { stop(); } } frame 50 { _root.VARfirstplay = 1; _root.VARlevel = 1; _root.totalscore = 0; _root.VARturnleft = 0; _root.VARspeedoAngle = 30; _root.sessionSecured = random(10); _root.purpleUmbrella = random(20); _root.s01 = 0; _root.s02 = 0; _root.s03 = 0; _root.s04 = 0; _root.s05 = 0; _root.s06 = 0; _root.VARs0x = ''; _root.scoreWeighting30mphSign = 3000; _root.scoreWeightingSchoolSign = 3000; _root.scoreWeightingTrafficLights = 3000; _root.scoreWeightingMopedMirror = 5000; _root.scoreWeightingIndicator = 4000; _root.scoreWeightingWipersLever = 5000; _root.scoreWeightingZebra = 4000; _root.scoreWeightingPhone = 6000; _root.scoreWeighting40mphSign = 2000; _root.scoreWeightingDashIcons = 2000; _root.scoreWeightingStreetLights = 3000; } frame 51 { stop(); } movieClip 144 { frame 1 { n = 0; _root.middleMirrorMC.play(); _root.wingMirrorMC.play(); _root.dashboardMC.play(); _root.dashboardMC.dashboardMovingMC.gotoAndStop('home'); if (_root.VARlevel == 1) { numberofrepeats = 8; } if (_root.VARlevel == 2) { numberofrepeats = 20; } if (_root.VARlevel == 3) { numberofrepeats = 20; } } frame 20 { if (_root.VARlevel == 3) { if (n > numberofrepeats) { play(); } else { p = random(2); if (p == 0) { _root.mopedwingmirrorMC.gotoAndPlay('start'); } if (p == 1) { if (_root.VARphone == 0) { _root.dashboardMC.dashboardMovingMC.phoneMC.gotoAndPlay('start'); } else { _root.mopedwingmirrorMC.gotoAndPlay('start'); } } } } } frame 21 { if (_root.VARlevel == 1) { if (n > numberofrepeats) { play(); } else { _root.oncomingcars1MC.gotoAndPlay('start'); } } if (_root.VARlevel == 2) { if (n > numberofrepeats) { play(); } else { if (n > numberofrepeats / 2) { _root.oncomingcars1MC.gotoAndPlay('start'); } } } if (_root.VARlevel == 3) { if (n > numberofrepeats) { play(); } else { _root.oncomingcars1MC.gotoAndPlay('start'); } } } frame 38 { if (_root.VARlevel == 2) { if (n > numberofrepeats) { play(); } else { _root.oncomingcars2MC.gotoAndPlay('start'); } } if (_root.VARlevel == 3) { if (n > numberofrepeats) { play(); } else { _root.oncomingcars2MC.gotoAndPlay('start'); } } } frame 41 { if (_root.VARlevel == 2) { if (n > numberofrepeats) { play(); } else { p = random(4); if (p == 0) { _root.mopedwingmirrorMC.gotoAndPlay('start'); } if (p == 1) { _root.mopedcentralmirrorMC.gotoAndPlay('start'); } if (p == 2) { _root.dashboardMC.dashboardMovingMC.dashiconsMC.gotoAndPlay('start'); } if (p == 3) { if (_root.VARphone == 0) { _root.dashboardMC.dashboardMovingMC.phoneMC.gotoAndPlay('start'); } else { _root.mopedwingmirrorMC.gotoAndPlay('start'); } } } } if (_root.VARlevel == 3) { if (n > numberofrepeats) { play(); } else { p = random(3); if (p == 0) { _root.signMC.gotoAndPlay('start'); } if (p == 1) { _root.schoolsignMC.gotoAndPlay('start'); } if (p == 2) { _root.zebraMC.gotoAndPlay('start'); } } } } frame 55 { if (_root.VARlevel == 1) { if (n > numberofrepeats) { play(); } else { if (n > numberofrepeats / 2) { _root.oncomingcars2MC.gotoAndPlay('start'); } } } if (_root.VARlevel == 2) { if (n > numberofrepeats) { play(); } else { _root.oncomingcars3MC.gotoAndPlay('start'); } } if (_root.VARlevel == 3) { if (n > numberofrepeats) { play(); } else { _root.oncomingcars3MC.gotoAndPlay('start'); } } } frame 60 { if (_root.VARlevel == 3) { if (n > numberofrepeats) { play(); } else { p = random(2); if (p == 0) { _root.mopedcentralmirrorMC.gotoAndPlay('start'); } if (p == 1) { _root.dashboardMC.dashboardMovingMC.dashiconsMC.gotoAndPlay('start'); } } } } frame 71 { if (_root.VARlevel == 3) { if (n > numberofrepeats) { play(); } else { if (n > numberofrepeats / 2) { _root.oncomingcars4MC.gotoAndPlay('start'); } } } } frame 82 { n += 1; if (_root.VARturnleft == 1) { _parent.gotoAndStop('left'); } _root.carSoundsMC.play(); if (_root.VARlevel == 1) { if (n == 1) { } if (n == 4 or n == 8) { _root.truckMC.play(); } if (n > numberofrepeats) { _root.dashboardMC.dashboardMovingMC.indicatorMC.gotoAndPlay('indicatorleft'); } else { if (n < numberofrepeats) { p = random(10); if (p == 0) { _root.signMC.gotoAndPlay('start'); } if (p == 1) { _root.schoolsignMC.gotoAndPlay('start'); } if (p == 2) { _root.trafficlightsMC.gotoAndPlay('start'); } if (p == 3) { _root.mopedcentralmirrorMC.gotoAndPlay('start'); } if (p == 4) { _root.mopedwingmirrorMC.gotoAndPlay('start'); } if (p == 5) { _root.zebraMC.gotoAndPlay('start'); } if (p == 6) { if (_root.VARphone == 0) { _root.dashboardMC.dashboardMovingMC.phoneMC.gotoAndPlay('start'); } else { _root.mopedwingmirrorMC.gotoAndPlay('start'); } } if (p == 7) { _root.fortysignsMC.gotoAndPlay('start'); } if (p == 8) { _root.dashboardMC.dashboardMovingMC.dashiconsMC.gotoAndPlay('start'); } if (p == 9) { _root.streetlightsMC.gotoAndPlay('start'); } } else { p = random(6); if (p == 0) { _root.signMC.gotoAndPlay('start'); } if (p == 1) { _root.schoolsignMC.gotoAndPlay('start'); } if (p == 2) { _root.trafficlightsMC.gotoAndPlay('start'); } if (p == 3) { _root.zebraMC.gotoAndPlay('start'); } if (p == 4) { _root.fortysignsMC.gotoAndPlay('start'); } if (p == 5) { _root.streetlightsMC.gotoAndPlay('start'); } q = random(4); if (q == 0) { _root.mopedwingmirrorMC.gotoAndPlay('start'); } if (q == 1) { _root.mopedcentralmirrorMC.gotoAndPlay('start'); } if (q == 2) { _root.dashboardMC.dashboardMovingMC.dashiconsMC.gotoAndPlay('start'); } if (q == 3) { if (_root.VARphone == 0) { _root.dashboardMC.dashboardMovingMC.phoneMC.gotoAndPlay('start'); } else { _root.mopedwingmirrorMC.gotoAndPlay('start'); } } } } } if (_root.VARlevel == 2) { if (n == 1) { } if (n == 7 or n == 12 or n == 18) { _root.truckMC.play(); } if (n == numberofrepeats / 2) { _root.wipersMC.gotoAndPlay('rain'); _root.extrarainMC.gotoAndStop('rain'); } if (n > numberofrepeats) { _root.dashboardMC.dashboardMovingMC.indicatorMC.gotoAndPlay('indicatorleft'); } else { p = random(6); if (p == 0) { _root.signMC.gotoAndPlay('start'); } if (p == 1) { _root.schoolsignMC.gotoAndPlay('start'); } if (p == 2) { _root.trafficlightsMC.gotoAndPlay('start'); } if (p == 3) { _root.zebraMC.gotoAndPlay('start'); } if (p == 4) { _root.fortysignsMC.gotoAndPlay('start'); } if (p == 5) { _root.streetlightsMC.gotoAndPlay('start'); } } } if (_root.VARlevel == 3) { if (n == 11 or n == 13 or n == 17 or n == 19) { _root.truckMC.play(); } if (n == numberofrepeats / 2) { _root.wipersMC.gotoAndPlay('rain'); _root.extrarainMC.gotoAndStop('rain'); } if (n > numberofrepeats) { _root.dashboardMC.dashboardMovingMC.indicatorMC.gotoAndPlay('indicatorleft'); } else { p = random(3); if (p == 0) { _root.trafficlightsMC.gotoAndPlay('start'); } if (p == 1) { _root.fortysignsMC.gotoAndPlay('start'); } if (p == 2) { _root.streetlightsMC.gotoAndPlay('start'); } } } gotoAndPlay('repeat'); } } movieClip 158 { frame 1 { b = random(6); if (b == 0) { _root.VARbillboard = 'seatbelt'; gotoAndStop('seatbelt'); } if (b == 1) { _root.VARbillboard = 'phone'; gotoAndStop('phone'); } if (b == 2) { _root.VARbillboard = 'moped'; gotoAndStop('moped'); } if (b == 3) { _root.VARbillboard = 'speeding'; gotoAndStop('speeding'); } if (b == 4) { _root.VARbillboard = 'drink'; gotoAndStop('drink'); } if (b == 5) { _root.VARbillboard = 'drugs'; gotoAndStop('drugs'); } } } movieClip 162 { frame 31 { _root.VARspeedoAngle = -20; } frame 42 { _root.dashboardMC.dashboardMovingMC.indicatorMC.indicator._rotation = 0; } frame 51 { _root.middleMirrorMC.stop(); _root.wingMirrorMC.stop(); _root.dashboardMC.stop(); _root.dashboardMC.dashboardMovingMC.gotoAndStop('stop'); _root.wipersMC.gotoAndStop(1); _root.extrarainMC.gotoAndStop(1); } frame 55 { _root.middleMirrorMC.stop(); _root.wingMirrorMC.stop(); _root.dashboardMC.stop(); _root.dashboardMC.dashboardMovingMC.gotoAndStop('stop'); _root.wipersMC.gotoAndStop(1); _root.extrarainMC.gotoAndStop(1); } frame 59 { _root.middleMirrorMC.stop(); _root.wingMirrorMC.stop(); _root.dashboardMC.stop(); _root.dashboardMC.dashboardMovingMC.gotoAndStop('stop'); _root.wipersMC.gotoAndStop(1); _root.extrarainMC.gotoAndStop(1); } frame 90 { if (_root.VARlevel == 1) { _root.levelInterimMessageMC.gotoAndPlay('level111'); _root.VARlevel = 111; _root.s01 = _root.totalscore; _root.s04 = _root.VARs0x; _root.VARs0x = ''; } if (_root.VARlevel == 2) { _root.levelInterimMessageMC.gotoAndPlay('level222'); _root.VARlevel = 222; _root.s02 = _root.totalscore - _root.s01; _root.s05 = _root.VARs0x; _root.VARs0x = ''; } if (_root.VARlevel == 3) { _root.levelInterimMessageMC.gotoAndPlay('level333'); _root.VARlevel = 333; _root.s03 = _root.totalscore - (_root.s01 + _root.s02); _root.s06 = _root.VARs0x + ',l' + _root.VARpowNumber; _root.VARs0x = ''; } _root.VARturnleft = 0; stop(); } } movieClip 163 { frame 1 { stop(); } frame 14 { gotoAndPlay('straight'); } frame 20 { stop(); } frame 31 { gotoAndPlay('left'); } } movieClip 255 { frame 1 { stop(); } } movieClip 258 { } movieClip 261 { } movieClip 295 { } movieClip 297 { } movieClip 298 { frame 1 { stop(); } instance of movieClip 295 { onClipEvent (press) { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'Wait until it is highlighted... Lose some power!!'; _parent._parent.bypassnow = 1; _parent._parent.bypasslate = 1; _root.identifier(); _root.VARs0x = _root.VARs0x + 'g-' + '0' + _root.VARidentifier + '0'; _parent.gotoAndStop('end'); } } instance of movieClip 297 { onClipEvent (load) { _parent._parent.starttime = getTimer(); } onClipEvent (press) { endtime = getTimer(); reactiontime = endtime - _parent._parent.starttime; score = _root.scoreWeightingZebra - Number(reactiontime); _root.totalscore += Number(score); _parent._parent.bypasslate = 1; var my_color = new Color(_root.messageMC); my_color.setRGB(65280); _root.messageMC.gotoAndPlay(3); _root.textmessage = 'Well done. You spotted the zebra crossing.'; _root.identifier(); _root.VARs0x = _root.VARs0x + 'g' + reactiontime + _root.VARidentifier + score; _parent.gotoAndStop('end'); } } } movieClip 415 { frame 1 { stop(); } frame 2 { prevFrame(); } frame 40 { if (bypassnow == 1) { play(); } else { overlayMC.gotoAndStop('now'); } } frame 77 { if (bypasslate == 1) { play(); } else { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'You missed the zebra crossing!'; endtime = getTimer(); reactiontime = endtime - starttime; _root.identifier(); _root.VARs0x = _root.VARs0x + 'g-' + reactiontime + _root.VARidentifier + '0'; } } frame 78 { bypassnow = 0; bypasslate = 0; } } movieClip 418 { } movieClip 420 { } movieClip 422 { } movieClip 423 { frame 1 { stop(); } instance of movieClip 420 { onClipEvent (press) { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'Wait until it is highlighted... Lose some power!!'; _parent._parent.bypassnow = 1; _parent._parent.bypasslate = 1; _root.identifier(); _root.VARs0x = _root.VARs0x + 'b-' + '0' + _root.VARidentifier + '0'; _parent.gotoAndStop('end'); } } instance of movieClip 422 { onClipEvent (load) { _parent._parent.starttime = getTimer(); } onClipEvent (press) { endtime = getTimer(); reactiontime = endtime - _parent._parent.starttime; score = _root.scoreWeighting40mphSign - Number(reactiontime); _root.totalscore += Number(score); var my_color = new Color(_root.messageMC); my_color.setRGB(65280); _root.messageMC.gotoAndPlay(3); _root.textmessage = 'Well done. The speed limit is 40mph.'; _parent._parent.overlay02MC.gotoAndStop('now'); _root.identifier(); _root.VARs0x = _root.VARs0x + 'b' + reactiontime + _root.VARidentifier + score; _parent.gotoAndStop('end'); } } } movieClip 426 { } movieClip 428 { } movieClip 429 { frame 1 { stop(); } instance of movieClip 428 { onClipEvent (load) { _parent._parent.starttime = getTimer(); } onClipEvent (press) { endtime = getTimer(); reactiontime = endtime - _parent._parent.starttime; score = _root.scoreWeighting40mphSign - Number(reactiontime); _root.totalscore += Number(score); var my_color = new Color(_root.messageMC); my_color.setRGB(65280); _root.messageMC.gotoAndPlay(3); _root.textmessage = 'Well done. You spotted the smaller 40mph sign.'; _parent._parent.overlay03MC.gotoAndStop('now'); _root.identifier(); _root.VARs0x = _root.VARs0x + 'b' + reactiontime + _root.VARidentifier + score; _parent.gotoAndStop('end'); } } } movieClip 430 { frame 1 { stop(); } instance of movieClip 428 { onClipEvent (load) { _parent._parent.starttime = getTimer(); } onClipEvent (press) { endtime = getTimer(); reactiontime = endtime - _parent._parent.starttime; score = _root.scoreWeighting40mphSign - Number(reactiontime); _root.totalscore += Number(score); _parent._parent.bypasslate = 1; var my_color = new Color(_root.messageMC); my_color.setRGB(65280); _root.messageMC.gotoAndPlay(3); _root.textmessage = 'Well done. You spotted the smaller 40mph sign.'; _root.identifier(); _root.VARs0x = _root.VARs0x + 'b' + reactiontime + _root.VARidentifier + score; _parent.gotoAndStop('end'); } } } movieClip 431 { frame 1 { stop(); _root.VARspeedoAngle = 45; } frame 2 { prevFrame(); } frame 10 { play(); } frame 30 { if (bypassnow == 1) { play(); } else { overlayMC.gotoAndStop('now'); } } frame 85 { if (bypasslate == 1) { play(); } else { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'You missed the 40mph signs!'; endtime = getTimer(); reactiontime = endtime - starttime; _root.identifier(); _root.VARs0x = _root.VARs0x + 'b-' + reactiontime + _root.VARidentifier + '0'; } } frame 86 { bypassnow = 0; bypasslate = 0; _root.dashboardMC.dashboardMovingMC.speedo.needle._rotation = 45; } } movieClip 434 { } movieClip 436 { } movieClip 437 { frame 1 { stop(); } instance of movieClip 420 { onClipEvent (press) { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'Wait until it is highlighted... Lose some power!!'; _parent._parent.bypassnow = 1; _parent._parent.bypasslate = 1; _root.identifier(); _root.VARs0x = _root.VARs0x + 'a-' + '0' + _root.VARidentifier + '0'; _parent.gotoAndStop('end'); } } instance of movieClip 436 { onClipEvent (load) { _parent._parent.starttime = getTimer(); } onClipEvent (press) { endtime = getTimer(); reactiontime = endtime - _parent._parent.starttime; score = _root.scoreWeighting30mphSign - Number(reactiontime); _root.totalscore += Number(score); _parent._parent.bypasslate = 1; var my_color = new Color(_root.messageMC); my_color.setRGB(65280); _root.messageMC.gotoAndPlay(3); _root.textmessage = 'Well done. The speed limit is 30mph.'; _root.identifier(); _root.VARs0x = _root.VARs0x + 'a' + reactiontime + _root.VARidentifier + score; _parent.gotoAndStop('end'); } } } movieClip 438 { frame 1 { stop(); _root.VARspeedoAngle = 30; } frame 2 { prevFrame(); } frame 25 { if (bypassnow == 1) { play(); } else { overlayMC.gotoAndStop('now'); } } frame 79 { if (bypasslate == 1) { play(); } else { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'You missed the 30mph sign!'; endtime = getTimer(); reactiontime = endtime - starttime; _root.identifier(); _root.VARs0x = _root.VARs0x + 'a-' + reactiontime + _root.VARidentifier + '0'; } } frame 80 { bypassnow = 0; bypasslate = 0; _root.dashboardMC.dashboardMovingMC.speedo.needle._rotation = 30; } } movieClip 441 { } movieClip 442 { } movieClip 444 { } movieClip 445 { frame 1 { stop(); } instance of movieClip 442 { onClipEvent (press) { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'Wait until it is highlighted... lose some power!!'; _parent._parent.bypassnow = 1; _parent._parent.bypasslate = 1; _root.identifier(); _root.VARs0x = _root.VARs0x + 'c-' + '0' + _root.VARidentifier + '0'; _parent.gotoAndStop('end'); } } instance of movieClip 444 { onClipEvent (load) { _parent._parent.starttime = getTimer(); } onClipEvent (press) { endtime = getTimer(); reactiontime = endtime - _parent._parent.starttime; score = _root.scoreWeightingSchoolSign - Number(reactiontime); _root.totalscore += Number(score); _parent._parent.bypasslate = 1; var my_color = new Color(_root.messageMC); my_color.setRGB(65280); _root.messageMC.gotoAndPlay(3); _root.textmessage = 'Well done. You spotted school sign.'; _root.identifier(); _root.VARs0x = _root.VARs0x + 'c' + reactiontime + _root.VARidentifier + score; _parent.gotoAndStop('end'); } } } movieClip 446 { frame 1 { stop(); } frame 2 { prevFrame(); } frame 25 { if (bypassnow == 1) { play(); } else { overlayMC.gotoAndStop('now'); } } frame 74 { if (bypasslate == 1) { play(); } else { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'You missed the school sign!'; endtime = getTimer(); reactiontime = endtime - starttime; _root.identifier(); _root.VARs0x = _root.VARs0x + 'c-' + reactiontime + _root.VARidentifier + '0'; } } frame 75 { bypassnow = 0; bypasslate = 0; } } movieClip 447 { frame 1 { stop(); } frame 2 { prevFrame(); } frame 21 { if (bypassnow == 1 or bypassnowR == 1) { play(); } else { trafficLightLeftOverlayMC.gotoAndStop('now'); trafficLightRightOverlayMC.gotoAndStop('now'); } } frame 87 { if (bypasslate == 1 and bypasslateR == 1) { play(); } else { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'You went through a red light!'; endtime = getTimer(); reactiontime = endtime - starttime; _root.identifier(); _root.VARs0x = _root.VARs0x + 'd-' + reactiontime + _root.VARidentifier + '0'; } } frame 88 { bypassnow = 0; bypasslate = 0; bypassnowR = 0; bypasslateR = 0; } } movieClip 450 { } movieClip 452 { } movieClip 454 { } movieClip 455 { frame 1 { stop(); } instance of movieClip 452 { onClipEvent (press) { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'Wait until it is highlighted... Lose some power!!'; _parent._parent.bypassnow = 1; _parent._parent.bypasslate = 1; _parent._parent.bypassnowR = 1; _parent._parent.bypasslateR = 1; _root.identifier(); _root.VARs0x = _root.VARs0x + 'f-' + '0' + _root.VARidentifier + '0'; _parent._parent.RightOverlayMC.gotoAndStop('end'); _parent.gotoAndStop('end'); } } instance of movieClip 454 { onClipEvent (load) { _parent._parent.starttime = getTimer(); } onClipEvent (press) { endtime = getTimer(); reactiontime = endtime - _parent._parent.starttime; score = _root.scoreWeightingStreetLights - Number(reactiontime); _root.totalscore += Number(score); _parent._parent.bypasslate = 1; var my_color = new Color(_root.messageMC); my_color.setRGB(65280); _root.messageMC.gotoAndPlay(3); _root.textmessage = 'Street lights with no other signage can mean a 30mph area.'; _root.identifier(); _root.VARs0x = _root.VARs0x + 'f' + reactiontime + _root.VARidentifier + score; _parent.gotoAndStop('end'); } } } movieClip 456 { frame 1 { stop(); } instance of movieClip 452 { onClipEvent (press) { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'Wait until it is highlighted... Lose some power!!'; _parent._parent.bypassnow = 1; _parent._parent.bypasslate = 1; _parent._parent.bypassnowR = 1; _parent._parent.bypasslateR = 1; _root.identifier(); _root.VARs0x = _root.VARs0x + 'f-' + '0' + _root.VARidentifier + '0'; _parent._parent.LeftOverlayMC.gotoAndStop('end'); _parent.gotoAndStop('end'); } } instance of movieClip 454 { onClipEvent (load) { _parent._parent.starttime = getTimer(); } onClipEvent (press) { endtime = getTimer(); reactiontime = endtime - _parent._parent.starttime; score = _root.scoreWeightingStreetLights - Number(reactiontime); _root.totalscore += Number(score); _parent._parent.bypasslateR = 1; var my_color = new Color(_root.messageMC); my_color.setRGB(65280); _root.messageMC.gotoAndPlay(3); _root.textmessage = 'Street lights with no other signage can mean a 30mph area.'; _root.identifier(); _root.VARs0x = _root.VARs0x + 'f' + reactiontime + _root.VARidentifier + score; _parent.gotoAndStop('end'); } } } movieClip 457 { frame 1 { stop(); } frame 2 { prevFrame(); } frame 27 { if (bypassnow == 1 or bypassnowR == 1) { play(); } else { LeftOverlayMC.gotoAndStop('now'); RightOverlayMC.gotoAndStop('now'); } } frame 87 { if (bypasslate == 1 and bypasslateR == 1) { play(); } else { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'You missed the street lights!'; endtime = getTimer(); reactiontime = endtime - starttime; _root.identifier(); _root.VARs0x = _root.VARs0x + 'f-' + reactiontime + _root.VARidentifier + '0'; } } frame 88 { bypassnow = 0; bypasslate = 0; bypassnowR = 0; bypasslateR = 0; } } movieClip 587 { frame 65 { stop(); } } movieClip 732 { frame 73 { stop(); } } movieClip 868 { frame 68 { stop(); } } movieClip 869 { frame 1 { stop(); } frame 2 { prevFrame(); } frame 10 { n = random(3); if (n == 0) { gotoAndPlay('car1'); } if (n == 1) { gotoAndPlay('car2'); } if (n == 2) { gotoAndPlay('car3'); } } frame 101 { gotoAndStop(1); } frame 201 { gotoAndStop(1); } frame 301 { gotoAndStop(1); } } movieClip 990 { frame 62 { stop(); } } movieClip 1139 { frame 75 { stop(); } } movieClip 1280 { frame 71 { stop(); } } movieClip 1281 { frame 1 { stop(); } frame 2 { prevFrame(); } frame 10 { n = random(3); if (n == 0) { gotoAndPlay('car1'); } if (n == 1) { gotoAndPlay('car2'); } if (n == 2) { gotoAndPlay('car3'); } } frame 101 { gotoAndStop(1); } frame 201 { gotoAndStop(1); } frame 301 { gotoAndStop(1); } } movieClip 1282 { frame 1 { stop(); } frame 3 { r = random(20); if (r == 0) { gotoAndPlay('horn1'); } else { if (r == 1) { gotoAndPlay('horn2'); } else { if (r == 2) { gotoAndPlay('horn3'); } else { gotoAndStop(1); } } } } frame 30 { gotoAndStop(1); } frame 57 { gotoAndStop(1); } frame 82 { gotoAndStop(1); } } movieClip 1286 { } movieClip 1287 { } movieClip 1288 { frame 58 { stop(); } } movieClip 1289 { } movieClip 1290 { } movieClip 1291 { } movieClip 1313 { frame 1 { stop(); } frame 2 { prevFrame(); } frame 43 { _root.dashboardMC.dashboardMovingMC.wipersleverMC.gotoAndPlay('start'); } frame 155 { stop(); } frame 195 { gotoAndPlay('wipers'); } } movieClip 1315 { } movieClip 1317 { } movieClip 1319 { } movieClip 1398 { } movieClip 1399 { } movieClip 1401 { } movieClip 1403 { } movieClip 1404 { frame 1 { stop(); } instance of movieClip 1399 { onClipEvent (press) { var my_color = new Color(_root.messageMC); my_color.setRGB(65280); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'Wait until it is highlighted... Lose some power!!'; _parent._parent.bypassnow = 1; _parent._parent.bypasslate = 1; _root.identifier(); _root.VARs0x = _root.VARs0x + 'e-' + '0' + _root.VARidentifier + '0'; _parent.gotoAndStop('end'); } } instance of movieClip 1403 { onClipEvent (load) { _parent._parent.starttime = getTimer(); } onClipEvent (press) { endtime = getTimer(); reactiontime = endtime - _parent._parent.starttime; score = _root.scoreWeightingMopedMirror - Number(reactiontime); _root.totalscore += Number(score); _parent._parent.bypasslate = 1; var my_color = new Color(_root.messageMC); my_color.setRGB(65280); _root.messageMC.gotoAndPlay(3); _root.textmessage = 'Well spotted! Always watch out for mopeds.'; _root.identifier(); _root.VARs0x = _root.VARs0x + 'e' + reactiontime + _root.VARidentifier + score; _parent._parent.gotoAndPlay('moped out'); _parent.gotoAndStop('sound'); } } } movieClip 1405 { frame 1 { stop(); } frame 2 { prevFrame(); } frame 10 { if (bypassnow == 1) { play(); } else { overlayMC.gotoAndStop('now'); } } frame 86 { if (bypasslate == 1) { play(); } else { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'You did not see the moped rider!'; endtime = getTimer(); reactiontime = endtime - starttime; _root.identifier(); _root.VARs0x = _root.VARs0x + 'e-' + reactiontime + _root.VARidentifier + '0'; } } frame 87 { bypassnow = 0; bypasslate = 0; } } movieClip 1410 { frame 1 { invisiwindowbg.useHandCursor = false; } } movieClip 1412 { } movieClip 1414 { } movieClip 1415 { } movieClip 1416 { instance needle of movieClip 1415 { onClipEvent (enterFrame) { rotStep = _root.VARspeedoAngle - this._rotation; this._rotation += rotStep / 15; } } } movieClip 1418 { } movieClip 1420 { } movieClip 1422 { } movieClip 1424 { } movieClip 1426 { } movieClip 1428 { } movieClip 1429 { frame 1 { q = random(4); if (q == 0) { gotoAndPlay('oil'); } if (q == 1) { gotoAndPlay('abs'); } if (q == 2) { gotoAndPlay('battery'); } if (q == 3) { gotoAndPlay('exclamation'); } } frame 12 { gotoAndPlay('oil'); } frame 21 { gotoAndPlay('abs'); } frame 32 { gotoAndPlay('battery'); } frame 42 { gotoAndPlay('exclamation'); } } movieClip 1431 { } movieClip 1433 { } movieClip 1434 { frame 1 { stop(); } instance of movieClip 1431 { onClipEvent (press) { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'Wait until it is highlighted... Lose some power!!'; _parent._parent.bypassnow = 1; _parent._parent.bypasslate = 1; _root.identifier(); _root.VARs0x = _root.VARs0x + 'h-' + '0' + _root.VARidentifier + '0'; _parent.gotoAndStop('end'); } } instance of movieClip 1433 { onClipEvent (load) { _parent._parent.starttime = getTimer(); } onClipEvent (press) { endtime = getTimer(); reactiontime = endtime - _parent._parent.starttime; score = _root.scoreWeightingDashIcons - Number(reactiontime); _root.totalscore += Number(score); _parent._parent.bypasslate = 1; var my_color = new Color(_root.messageMC); my_color.setRGB(65280); _root.messageMC.gotoAndPlay(3); _root.textmessage = 'Well done. You spotted the dashboard icon flashing.'; _root.identifier(); _root.VARs0x = _root.VARs0x + 'h' + reactiontime + _root.VARidentifier + score; _parent._parent.flashingIconsMC.gotoAndStop(2); _parent.gotoAndStop('end'); } } } movieClip 1435 { frame 1 { stop(); } frame 2 { prevFrame(); } frame 40 { if (bypassnow == 1) { play(); } else { overlayMC.gotoAndStop('now'); } } frame 81 { if (bypasslate == 1) { play(); } else { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'You missed the dashboard icon flashing!'; endtime = getTimer(); reactiontime = endtime - starttime; _root.identifier(); _root.VARs0x = _root.VARs0x + 'h-' + reactiontime + _root.VARidentifier + '0'; } } frame 82 { bypassnow = 0; bypasslate = 0; } } movieClip 1439 { } movieClip 1441 { } movieClip 1443 { } movieClip 1444 { frame 1 { stop(); } instance of movieClip 1441 { onClipEvent (press) { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'Wait until it is highlighted... Lose some power!!'; _parent._parent.bypassnow = 1; _parent._parent.bypasslate = 1; _root.identifier(); _root.VARs0x = _root.VARs0x + 'j-' + '0' + _root.VARidentifier + '0'; _parent.gotoAndStop('end'); } } instance of movieClip 1443 { onClipEvent (load) { _parent._parent.starttime = getTimer(); } onClipEvent (press) { endtime = getTimer(); reactiontime = endtime - _parent._parent.starttime; score = _root.scoreWeightingIndicator - Number(reactiontime); _root.totalscore += Number(score); _parent._parent.bypasslate = 1; _parent._parent.indicator._rotation = -15; var my_color = new Color(_root.messageMC); my_color.setRGB(65280); _root.messageMC.gotoAndPlay(3); _root.textmessage = 'Well done. You are indicating left'; _root.identifier(); _root.VARs0x = _root.VARs0x + 'j' + reactiontime + _root.VARidentifier + score; _parent.gotoAndStop('sound'); } } } movieClip 1445 { frame 1 { stop(); } frame 2 { prevFrame(); } frame 11 { if (bypassnow == 1) { play(); } else { overlayMC.gotoAndStop('now'); } } frame 84 { if (bypasslate == 1) { play(); } else { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'Too slow! You did not indicate left in time!'; endtime = getTimer(); reactiontime = endtime - starttime; _root.identifier(); _root.VARs0x = _root.VARs0x + 'j-' + reactiontime + _root.VARidentifier + '0'; } } frame 85 { bypassnow = 0; bypasslate = 0; } frame 86 { _root.VARturnleft = 1; _parent.gotoAndStop('left'); } } movieClip 1448 { } movieClip 1450 { } movieClip 1452 { } movieClip 1453 { frame 1 { stop(); } instance of movieClip 1450 { onClipEvent (press) { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'Wait until it is highlighted... Lose some power!!'; _parent._parent.bypassnow = 1; _parent._parent.bypasslate = 1; _root.identifier(); _root.VARs0x = _root.VARs0x + 'i-' + '0' + _root.VARidentifier + '0'; _parent.gotoAndStop('end'); } } instance of movieClip 1452 { onClipEvent (load) { _parent._parent.starttime = getTimer(); } onClipEvent (press) { endtime = getTimer(); reactiontime = endtime - _parent._parent.starttime; score = _root.scoreWeightingWipersLever - Number(reactiontime); _root.totalscore += Number(score); _parent._parent.bypasslate = 1; _parent._parent.wiperslever._rotation = 15; var my_color = new Color(_root.messageMC); my_color.setRGB(65280); _root.messageMC.gotoAndPlay(3); _root.textmessage = 'Well done. You put your wipers on.'; _root.identifier(); _root.VARs0x = _root.VARs0x + 'i' + reactiontime + _root.VARidentifier + score; _parent._parent.gotoAndStop('end'); _parent.gotoAndStop('end'); } } } movieClip 1454 { frame 1 { stop(); } frame 2 { prevFrame(); } frame 11 { if (bypassnow == 1) { play(); } else { overlayMC.gotoAndStop('now'); } } frame 128 { if (bypasslate == 1) { play(); } else { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'Too slow! You did not put your wipers on quickly enough!'; endtime = getTimer(); reactiontime = endtime - starttime; _root.identifier(); _root.VARs0x = _root.VARs0x + 'i-' + reactiontime + _root.VARidentifier + '0'; } } frame 129 { bypassnow = 0; bypasslate = 0; } frame 131 { _root.wipersMC.gotoAndPlay('wipers'); } } movieClip 1459 { frame 1 { invisiwindowbg.useHandCursor = false; } } movieClip 1460 { } // unknown tag 88 length 43 movieClip 1464 { } movieClip 1466 { } movieClip 1467 { frame 15 { stop(); } } movieClip 1468 { frame 15 { stop(); } } movieClip 1470 { } movieClip 1471 { frame 32 { stop(); } } movieClip 1474 { } movieClip 1475 { frame 65 { stop(); _root.play(); } } movieClip 1476 { frame 1 { stop(); _root.VARpow = 20000; _root.VARpowNumber = 4; } frame 2 { _root.VARpow = 15000; _root.VARpowNumber = 3; } frame 3 { _root.VARpow = 10000; _root.VARpowNumber = 2; } frame 4 { _root.VARpow = 5000; _root.VARpowNumber = 1; } frame 5 { _root.gotoAndStop('gameover'); _root.bganiMC.stop(); _root.bganiMC.bganiMovingMC.stop(); _root.dashboardMC.stop(); _root.dashboardMC.dashboardMovingMC.gotoAndStop('stop'); _root.middleMirrorMC.stop(); _root.wingMirrorMC.stop(); _root.VARpow = 0; _root.VARpowNumber = 0; } frame 7 { prevFrame(); } } movieClip 1479 { } movieClip 1480 { } movieClip 1482 { } movieClip 1483 { } movieClip 1485 { } movieClip 1486 { } movieClip 1488 { } movieClip 1489 { } movieClip 1491 { } movieClip 1492 { } movieClip 1493 { frame 1 { q = random(5); if (q == 0) { gotoAndStop('person1'); } if (q == 1) { gotoAndStop('person2'); } if (q == 2) { gotoAndStop('person3'); } if (q == 3) { gotoAndStop('person4'); } if (q == 4) { gotoAndStop('person5'); } } } movieClip 1494 { } movieClip 1496 { } movieClip 1499 { } movieClip 1501 { } button 1506 { on (press) { _parent._parent._parent.bypasslate = 1; var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'Do not answer your phone whilst driving!'; endtime = getTimer(); reactiontime = endtime - _root.starttimePhone; _root.identifier(); _root.VARs0x = _root.VARs0x + 'k-' + reactiontime + _root.VARidentifier + '0'; _parent._parent.gotoAndPlay('end'); } } button 1508 { on (press) { endtime = getTimer(); reactiontime = endtime - _root.starttimePhone; score = _root.scoreWeightingPhone - Number(reactiontime); _root.totalscore += Number(score); _parent._parent._parent.bypasslate = 1; var my_color = new Color(_root.messageMC); my_color.setRGB(65280); _root.messageMC.gotoAndPlay(3); _root.textmessage = 'Well done. You did not answer your phone.'; _root.identifier(); _root.VARs0x = _root.VARs0x + 'k' + reactiontime + _root.VARidentifier + score; _parent._parent.gotoAndPlay('end'); } } button 1509 { on (press) { endtime = getTimer(); reactiontime = endtime - _root.starttimePhone; score = _root.scoreWeightingPhone - Number(reactiontime); _root.totalscore += Number(score); _parent._parent._parent.bypasslate = 1; var my_color = new Color(_root.messageMC); my_color.setRGB(65280); _root.messageMC.gotoAndPlay(3); _root.textmessage = 'Well done. You did not answer your phone.'; _root.identifier(); _root.VARs0x = _root.VARs0x + 'k' + reactiontime + _root.VARidentifier + score; _parent._parent.gotoAndStop('end'); } } movieClip 1510 { frame 12 { stop(); } } movieClip 1511 { frame 1 { stop(); } instance of movieClip 1496 { onClipEvent (press) { var my_color = new Color(_root.messageMC); my_color.setRGB(16711680); _root.messageMC.gotoAndPlay(2); _root.textmessage = 'Wait until it is highlighted... Lose some power!!'; _parent._parent.bypassnow = 1; _parent._parent.bypasslate = 1; _root.identifier(); _root.VARs0x = _root.VARs0x + 'k-' + '0' + _root.VARidentifier + '0'; _parent.gotoAndStop('end'); } } instance of movieClip 1499 { onClipEvent (load) { _root.starttimePhone = getTimer(); } onClipEvent (press) { _parent.gotoAndStop('menu'); } } } movieClip 1512 { frame 1 { stop(); _root.VARphone = 0; } frame 2 { prevFrame(); } frame 10 { _root.VARphone = 1; } frame 25 { if (bypassnow == 1) { play(); } else { overlayMC.gotoAndStop('now'); } } frame 163 { if (bypasslate == 1) { play(); } else { var my_color = new Color(_root.messageMC); my_color.setRGB(65280); _root.messageMC.gotoAndPlay(3); _root.textmessage = 'Well done. Your phone went to answer phone'; endtime = getTimer(); reactiontime = endtime - _root.starttimePhone; _root.identifier(); _root.VARs0x = _root.VARs0x + 'k' + reactiontime + _root.VARidentifier + '0'; } } frame 164 { bypassnow = 0; bypasslate = 0; } } movieClip 1513 { frame 34 { _parent.gotoAndStop('home'); } } movieClip 1514 { frame 1 { stop(); } } movieClip 1515 { } movieClip 1516 { } movieClip 1517 { } movieClip 1518 { frame 1 { stop(); } frame 2 { prevFrame(); } } movieClip 1520 { } movieClip 1521 { frame 67 { stop(); } } movieClip 1523 { } movieClip 1525 { } button 1527 { on (release) { _parent._parent.play(); _root.VARspeedoAngle = 30; } } movieClip 1528 { frame 110 { stop(); } } movieClip 1549 { frame 1 { if (_root.VARlevel == 111) { r = random(9); } if (_root.VARlevel == 222) { r = random(10); } if (_root.VARlevel == 333) { r = random(10); } if (r == 0) { gotoAndStop('phone'); } if (r == 1) { gotoAndStop('moped'); } if (r == 2) { gotoAndStop('leftturn'); } if (r == 3) { gotoAndStop('40mph'); } if (r == 4) { gotoAndStop('streetlights'); } if (r == 5) { gotoAndStop('zebra'); } if (r == 6) { gotoAndStop('school'); } if (r == 7) { gotoAndStop('trafficlights'); } if (r == 8) { gotoAndStop('maintenance'); } if (r == 9) { gotoAndStop('wipers'); } } } button 1551 { on (release) { _parent._parent.play(); _root.VARspeedoAngle = 30; } } movieClip 1552 { frame 110 { stop(); } } movieClip 1554 { } button 1556 { on (release) { _parent._parent.play(); } } movieClip 1557 { frame 110 { stop(); } } movieClip 1558 { frame 1 { if (_root.VARlevel == 111) { stop(); } if (_root.VARlevel == 222) { gotoAndStop(2); } if (_root.VARlevel == 333) { gotoAndStop(3); } } } movieClip 1559 { } movieClip 1561 { } movieClip 1562 { frame 67 { stop(); } } movieClip 1564 { } movieClip 1565 { frame 67 { stop(); } } movieClip 1567 { } button 1569 { on (release) { _parent.play(); } } movieClip 1574 { } movieClip 1575 { frame 1 { if (_root.VARlevel == 111) { stop(); } if (_root.VARlevel == 222) { gotoAndStop(2); } if (_root.VARlevel == 333) { gotoAndStop(3); } } } movieClip 1576 { frame 1 { stop(); } frame 16 { stop(); } frame 21 { _root.VARlevel = 2; _root.bganiMC.gotoAndStop('straight'); } frame 25 { stop(); } frame 40 { stop(); } frame 44 { _root.VARlevel = 3; _root.bganiMC.gotoAndStop('straight'); } frame 49 { stop(); } frame 64 { stop(); } frame 82 { stop(); } frame 91 { _root.totalscore += _root.VARpow; _root.gotoAndPlay('gameover'); stop(); } } instance levelInterimMessageMC of movieClip 1576 { } movieClip 1578 { } // unknown tag 88 length 45 movieClip 1581 { } movieClip 1583 { frame 1 { stop(); } frame 2 { _root.dashboardMC.dashboardMovingMC.powerbarMC.nextFrame(); } frame 61 { gotoAndStop(1); } } movieClip 1585 { } movieClip 1586 { frame 11 { stop(); } } button 1590 { on (release) { play(); } } movieClip 1592 { } button 1595 { on (release) { _root.gotoAndPlay('restart'); gotoAndStop(1); } } button 1596 { on (release) { _root.dashboardMC.dashboardMovingMC.phoneMC.gotoAndPlay('end'); _root.gotoAndPlay('restart'); gotoAndStop(1); } } movieClip 1597 { frame 1 { stop(); } frame 10 { stop(); } } frame 54 { prevFrame(); } frame 55 { prevFrame(); } movieClip 1598 { frame 20 { stop(); } } frame 75 { stop(); _root.totalscore; if (_root.VARlevel == 1) { _root.s01 = _root.totalscore; _root.s04 = _root.VARs0x; _root.VARs0x = ''; } if (_root.VARlevel == 2) { _root.s02 = _root.totalscore - _root.s01; _root.s05 = _root.VARs0x; _root.VARs0x = ''; } if (_root.VARlevel == 3) { _root.s03 = _root.totalscore - (_root.s01 + _root.s02); _root.s06 = _root.VARs0x; _root.VARs0x = ''; } } movieClip 1602 { } button 1604 { on (release) { if (_root.totalscore <= 0) { zeroScoreMC.play(); } else { submitformMC.play(); } challengeformMC.gotoAndStop(1); } } button 1606 { on (release) { challengeformMC.play(); submitformMC.gotoAndStop(1); } } button 1608 { on (release) { gotoAndPlay('go'); } } movieClip 1615 { } movieClip 1616 { frame 1 { stop(); } } movieClip 1618 { } button 1621 { on (release) { n = length(email); i = 0; flag = 0; while (Number(n) >= 1) { n -= 1; i += 1; if (substring(email, i, 1) == '@') { flag = 1; } } addScore = 'addScore'; s01 = _root.s01; s02 = _root.s02; s03 = _root.s03; s04 = _root.s04; s05 = _root.s05; s06 = _root.s06; score = _root.totalscore; sessionDetails = _root.sessionDetails; sessionSecured = _root.sessionSecured; purpleUmbrella = _root.purpleUmbrella; if (length(name) >= 1 and flag == 1) { getURL(_root.absoluteURL + '/game/add-your-score', '_self', 'POST'); trace('s01 =' + s01); trace('s02 =' + s02); trace('s03 =' + s03); trace('s04 =' + s04); trace('s05 =' + s05); trace('s06 =' + s06); trace('VARs0x =' + _root.VARs0x); trace('score =' + score); trace('sessionDetails =' + sessionDetails); trace('sessionSecured =' + sessionSecured); trace('purpleUmbrella =' + purpleUmbrella); } if (length(name) >= 1) { namearrow.gotoAndStop('1'); } else { namearrow.play(); } if (flag == 1) { emailarrow.gotoAndStop('1'); } else { emailarrow.play(); } } } movieClip 1622 { frame 5 { stop(); details = Array(); i = 0; while (i < 20) { minNum = 100; maxNum = 999; rndNum1 = Math.ceil(Math.random() * (maxNum - minNum + 1)) + (minNum - 1); rndNum2 = Math.ceil(Math.random() * (maxNum - minNum + 1)) + (minNum - 1); rndNum3 = Math.ceil(Math.random() * (maxNum - minNum + 1)) + (minNum - 1); if (i < 10) { eScore = _root.totalscore * 2 * rndNum2; } else { eScore = _root.totalscore * 2 * rndNum3; } rndString = '' + rndNum1 + rndNum2 + rndNum3 + eScore; details[i] = rndString; _root.sessionDetails = details; ++i; } } } button 1626 { on (release) { _root.bottabs.privacyMC.play(); } } button 1627 { on (release) { _parent.gotoAndPlay('out'); } } movieClip 1631 { frame 1 { Text337.tabIndex = 20; Text336.tabIndex = 10; } frame 1 { invisiwindowbg.useHandCursor = false; name = ''; email = ''; } } movieClip 1632 { frame 1 { stop(); } frame 10 { stop(); } frame 11 { prevFrame(); } } movieClip 1638 { frame 1 { stop(); } frame 126 { gotoAndStop(1); _parent._parent.gotoAndStop(1); } } movieClip 1641 { } button 1643 { on (release) { n = length(friendsEmail); i = 0; flag = 0; while (Number(n) >= 1) { n -= 1; i += 1; if (substring(friendsEmail, i, 1) == '@') { flag = 1; } } flashSubmit = 'flashSubmit'; yourScore = _root.score; if (flag == 1) { loadVariables(_root.absoluteURL + '/game/challenge', '', 'POST'); sending.play(); } if (flag == 1) { friendemailarrow.gotoAndStop('1'); } else { friendemailarrow.play(); sending.gotoAndPlay('invalid'); } } } movieClip 1645 { frame 1 { Text336.tabIndex = 10; } frame 1 { invisiwindowbg.useHandCursor = false; friendsEmail = ''; } } movieClip 1646 { frame 1 { stop(); } frame 10 { stop(); } frame 11 { prevFrame(); } } movieClip 1649 { } movieClip 1650 { frame 1 { stop(); } } movieClip 1651 { }




http://swfchan.com/26/127165/info.shtml
Created: 25/2 -2019 07:32:58 Last modified: 25/2 -2019 07:32:58 Server time: 29/04 -2024 08:16:02