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

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

Four Second Firestorm.swf

This is the info page for
Flash #9176

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


ActionScript [AS1/AS2]
Combined Code
movieClip 2 { } movieClip 3 troub { instance of movieClip 2 { onClipEvent (enterFrame) { if (this.hitTest(_root.machine.head.bot)) { _root.machine.head.bot.play(); --_root.meta.gg._xscale; if (_root.meta.gg._xscale % 15 == 0) { trace('15er!'); _root.machine.head.fireasdf.play(); } _parent.removeMovieClip(); } } } frame 15 { this.removeMovieClip(); } } movieClip 5 { } movieClip 6 wafer { frame 1 { onEnterFrame = function () { if (_root.fightMode == true) { if (this.hitTest(_root.truck.shell)) { _root.truck.play(); _root.loseLife(); this.removeMovieClip(); } } }; } instance of movieClip 5 { } frame 65 { this.removeMovieClip(); } } movieClip 9 { } movieClip 10 { } movieClip 11 { } movieClip 12 { } movieClip 17 bowlingBall { frame 6 { this.removeMovieClip(); } } movieClip 21 you_arrow { } movieClip 35 { } movieClip 53 { } movieClip 61 { } movieClip 69 { } movieClip 79 { } movieClip 81 { frame 25 { stop(); _parent._parent.removeMovieClip(); } } movieClip 89 { } movieClip 90 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } } movieClip 92 { frame 1 { stop(); } } movieClip 93 obj_player_0 { frame 1 { stop(); } } movieClip 94 obj_player_3 { frame 1 { stop(); } } movieClip 95 obj_player_2 { frame 1 { stop(); } } movieClip 96 obj_player_1 { frame 1 { stop(); } } movieClip 98 { } movieClip 99 win_bala { frame 1 { this.onEnterFrame = function () { this._x += Math.sin(0.0174532925199433 * this._rotation) * 25; this._y -= Math.cos(0.0174532925199433 * this._rotation) * 25; if (this.hitTest(_root.g.base)) { _root.g.base.per(); } }; } } movieClip 101 Din4_star { } movieClip 104 { } movieClip 105 coin { instance of movieClip 104 { onClipEvent (load) { this.r1 = random(10); this.r2 = random(10); this.r3 = random(10); this.r4 = random(10); this._visible = false; _parent._x = 275; _parent._y = 200; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { _parent._x += this.r1; _parent._x -= this.r2; _parent._y += this.r3; _parent._y -= this.r4; } } onClipEvent (enterFrame) { if (this.hitTest(_root.g.rand)) { this.r3 = -r3; this.r4 = -r4; } if (this.hitTest(_root.g.rand2)) { this.r3 = -r3; this.r4 = -r4; } if (this.hitTest(_root.g.rand3)) { this.r1 = -r1; this.r2 = -r2; } if (this.hitTest(_root.g.rand4)) { this.r1 = -r1; this.r2 = -r2; } } } } movieClip 108 { } movieClip 109 Dep1_Enemy { frame 1 { stop(); } frame 2 { die = new Sound(); die.attachSound('Dep1_die'); die.start(); } frame 10 { removeMovieClip(this); } } movieClip 111 { } movieClip 112 Dep1_Bullet { } movieClip 114 { } movieClip 115 dic_food { } button 120 { on (release) { _parent.closePopup(_name); } } button 123 { on (press) { this.startDrag(); this.swapDepths(_parent.getNextHighestDepth()); } on (release, releaseOutside) { stopDrag(); } } movieClip 125 dic_popup1 { } movieClip 128 { } button 132 { on (release) { _parent.closePopup(_name); } } movieClip 133 dic_popup2 { } movieClip 137 { } movieClip 141 dic_popup3 { } movieClip 144 { } movieClip 145 { } movieClip 146 { frame 9 { stop(); } } movieClip 147 dic_popup4 { } movieClip 152 { } movieClip 153 dic_popup5 { } movieClip 156 { } movieClip 159 { } movieClip 161 { } movieClip 164 { } movieClip 166 { } movieClip 170 { } movieClip 172 { } movieClip 174 { } movieClip 176 { } movieClip 182 { } movieClip 183 Din2_Link { frame 1 { stop(); onEnterFrame = function () { this._y += _root.g.speed * _root.g.speed + 1; this._rotation += _root.g.rot; if (_root.cstatus == 1 and this.hitTest(_root.g.man.man)) { _root.gameOutcome(false); _root.g.nextFrame(); _root.g.win = false; } }; } } movieClip 185 { } movieClip 186 rakosmanRock2 { instance of movieClip 185 { onClipEvent (enterFrame) { this._y -= 16 + _root.speed; if (_root.cstatus == 1) { if (this.hitTest(_root.g.game.man.hit1) or this.hitTest(_root.g.game.man.hit2)) { _root.getBounds.game.stop(); _root.gameOutcome(false); } } if (this._y < -430) { removeMovieClip(_parent); } } } } movieClip 190 Din_BOOM { frame 1 { stop(); } } movieClip 194 { frame 1 { stop(); gotoAndStop(random(3) + 2); } } movieClip 195 circ { frame 10 { this.removeMovieClip(); } } movieClip 197 { } movieClip 198 transOut_2 { frame 1 { onEnterFrame = function () { this.swapDepths(_parent.getNextHighestDepth()); }; } frame 29 { _root.switchScreens(); this.removeMovieClip(); } } movieClip 199 transOut_1 { frame 1 { onEnterFrame = function () { this.swapDepths(_parent.getNextHighestDepth()); }; } frame 29 { _root.switchScreens(); this.removeMovieClip(); } } movieClip 200 { } movieClip 201 { frame 6 { stop(); } } movieClip 202 Transition_3 { frame 1 { trace('trans3 Loaded'); onEnterFrame = function () { this.swapDepths(_parent.getNextHighestDepth()); }; } frame 28 { _root.cstatus = 1; this.removeMovieClip(); } } movieClip 203 Transition_2 { frame 1 { trace('trans2 Loaded'); onEnterFrame = function () { this.swapDepths(_parent.getNextHighestDepth()); }; } frame 25 { _root.cstatus = 1; this.removeMovieClip(); } } movieClip 204 { } movieClip 205 Transition_1 { frame 1 { trace('trans1 Loaded'); onEnterFrame = function () { this.swapDepths(_parent.getNextHighestDepth()); }; } frame 39 { _root.cstatus = 1; this.removeMovieClip(); } } movieClip 211 { } movieClip 212 { } movieClip 213 { } movieClip 217 { } movieClip 219 { } movieClip 221 { } movieClip 222 { } movieClip 223 switcher { frame 50 { _root.initialBar(); this.removeMovieClip(); } } movieClip 227 { } movieClip 228 loadrules { frame 40 { this.removeMovieClip(); } } movieClip 232 { } movieClip 233 loadResponse { frame 40 { this.removeMovieClip(); } } movieClip 236 { } movieClip 240 { } movieClip 243 { } movieClip 245 { } movieClip 246 { } movieClip 250 { frame 1 { stop(); } frame 11 { stop(); } } movieClip 252 { frame 1 { stop(); } frame 11 { stop(); } } movieClip 254 { frame 1 { stop(); } frame 11 { stop(); } } movieClip 256 { } movieClip 257 { } movieClip 258 { frame 1 { stop(); } } movieClip 259 bar { } movieClip 261 { } movieClip 262 { instance of movieClip 261 { onClipEvent (load) { this.spin = random(10); } onClipEvent (enterFrame) { this._rotation += this.spin; } } } movieClip 263 circlecircle3 { frame 30 { this.removeMovieClip(); } } movieClip 265 { } movieClip 266 { frame 1 { gotoAndStop(random(3) + 2); } } movieClip 267 { } movieClip 268 circlecircle2 { frame 10 { this.removeMovieClip(); } } movieClip 269 circlecircle { frame 10 { this.removeMovieClip(); } } movieClip 271 { } movieClip 272 fireasdf { frame 1 { stop(); } frame 35 { _root.coverScreen.play(); } } movieClip 278 { frame 6 { stop(); } } movieClip 285 { frame 11 { stop(); } } movieClip 286 mog1_bloke1 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 288 { } movieClip 290 { } movieClip 295 { } movieClip 296 { } movieClip 298 { } movieClip 303 { } movieClip 304 player { } movieClip 306 { } movieClip 308 ducka { } movieClip 312 Meteor { } movieClip 315 { } movieClip 316 fond { } movieClip 317 rakosmanRock1 { instance of movieClip 185 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._y -= 16 + _root.speed; if (this.hitTest(_root.g.game.man.hit1) or this.hitTest(_root.g.game.man.hit2)) { _root.g.game.stop(); _root.gameOutcome(false); } if (this._y < -430) { removeMovieClip(_parent); } } } } } movieClip 320 rob1_background { } movieClip 325 { } movieClip 332 Nug1_baloon { frame 1 { stop(); } frame 1 { stop(); } frame 6 { ++_parent.Nug1_bc; trace(_parent.Nug1_bc); } frame 7 { stop(); removeMovieClip(this); } } movieClip 337 BoundingBox { } movieClip 339 BrdrShdw { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'shadowColor'); } } movieClip 341 BrdrFace { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'buttonColor'); } } movieClip 342 SimpleButtonDown { } movieClip 344 BrdrBlk { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'borderColor'); } } movieClip 346 BrdrHilght { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'highlightColor'); } } movieClip 347 SimpleButtonIn { } movieClip 348 SimpleButtonUp { } movieClip 349 Defaults { #initclip Object.registerClass('Defaults', mx.skins.halo.Defaults); #endinitclip } movieClip 350 UIObjectExtensions { #initclip Object.registerClass('UIObjectExtensions', mx.core.ext.UIObjectExtensions); #endinitclip } movieClip 351 UIObject { #initclip Object.registerClass('UIObject', mx.core.UIObject); #endinitclip frame 1 { stop(); } } button 354 { on (keyPress '<Tab>') { this.tabHandler(); } } movieClip 355 { #initclip Object.registerClass('FocusManager', mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, 'focusManager', mx.managers.DepthManager.highestDepth--); } #endinitclip frame 1 { } } movieClip 356 FocusRect { #initclip Object.registerClass('FocusRect', mx.skins.halo.FocusRect); #endinitclip } movieClip 357 FocusManager { #initclip Object.registerClass('FocusManager', mx.managers.FocusManager); #endinitclip frame 1 { stop(); } } movieClip 358 UIComponentExtensions { #initclip Object.registerClass('UIComponentExtensions', mx.core.ext.UIComponentExtensions); #endinitclip } movieClip 359 UIComponent { #initclip Object.registerClass('UIComponent', mx.core.UIComponent); #endinitclip frame 1 { stop(); } } movieClip 360 SimpleButton { #initclip Object.registerClass('SimpleButton', mx.controls.SimpleButton); #endinitclip frame 1 { stop(); } } movieClip 363 Border { #initclip Object.registerClass('Border', mx.skins.Border); #endinitclip frame 1 { stop(); } } movieClip 364 RectBorder { #initclip mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder)); Object.registerClass('RectBorder', mx.skins.halo.RectBorder); #endinitclip frame 1 { stop(); } } movieClip 365 TextInput { #initclip Object.registerClass('TextInput', mx.controls.TextInput); #endinitclip frame 1 { stop(); } } movieClip 370 StepDownArrowDisabled { } movieClip 372 StepThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 373 StepDownArrowDown { } movieClip 374 StepDownArrowOver { } movieClip 375 StepDownArrowUp { } movieClip 377 StepUpArrowDisabled { } movieClip 378 StepUpArrowDown { } movieClip 379 StepUpArrowOver { } movieClip 380 StepUpArrowUp { } movieClip 382 StepTrack { } movieClip 383 NumericStepperAssets { } movieClip 384 NumericStepper { #initclip Object.registerClass('NumericStepper', mx.controls.NumericStepper); #endinitclip frame 1 { stop(); } instance of movieClip 360 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 365 TextInput { onClipEvent (initialize) { editable = true; password = false; text = ''; maxChars = null; restrict = 'null'; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } frame 1 { function goto(num) { if (num == 1 || num == 2 || num == 3) { gotoAndPlay(2228); } if (num == 6) { gotoAndPlay(2414); } if (num == 4) { gotoAndPlay(5210); } if (num == 5) { gotoAndPlay(2600); } if (num == 7) { gotoAndPlay(5212); } if (num == 8) { gotoAndPlay(719); } if (num == 9) { gotoAndPlay(2892); } } stop(); var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); _root.menu = myMenu; _root.globalMode = 'original'; } frame 1 { if (System.capabilities.version.substr(4, 1) < 9) { stop(); yet._visible = true; } else { play(); yet._visible = false; } } movieClip 406 { } movieClip 409 { } button 417 { on (release) { getURL('http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash', ''); } } movieClip 418 { } movieClip 421 { } movieClip 423 { } button 427 { on (release) { getURL('http://www.armorgames.com/', '_blank'); } } movieClip 433 { frame 100 { stop(); } } instance of movieClip 433 { onClipEvent (enterFrame) { loaded = _root.getBytesLoaded(); total = _root.getBytesTotal(); framesLoaded = Math.ceil((loaded / total) * 100); gotoAndStop(framesLoaded); status.text = framesLoaded + ' % completed'; if (framesLoaded >= 100 && System.capabilities.version.substr(4, 1) >= 9) { _root.nextFrame(); } } } movieClip 437 { } frame 2 { stop(); } frame 2 { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function counter() { ++subTotal; if (subTotal == subTime) { subTotal = 0; subTime = rand(3, 14); bowlingBall(); } } function bowlingBall() { bb = attachMovie('bowlingBall', 'bb' + this.getNextHighestDepth(), this.getNextHighestDepth()); bb._x = rand(0, 550); bb._y = -bb._height / 2; bb._xscale = rand(50, 100); bb._yscale = bb._xscale; bb.stop(); bb.dead = false; bb.speed = 1; bb.onEnterFrame = function () { if (!this.dead) { this._y += this.speed; this.speed += 2; if (this._y + this._height / 2 > 400) { this.play(); this.dead = true; combo += 1; } if (this.hitTest(carrot)) { this.play(); this.dead = true; combo = 0; } } }; } function movement() { if (Key.isDown(37)) { carrot._x -= carrotSpeed; carrot._xscale = oldXScale; carrot.play(); } else { if (Key.isDown(39)) { carrot._x += carrotSpeed; carrot._xscale = -oldXScale; carrot.play(); } else { carrot.gotoAndStop(1); } } if (carrot._x + carrot._width / 2 < 0) { carrot._x = 550 + carrot._width / 2; } if (carrot._x - carrot._width / 2 > 550) { carrot._x = -carrot._width / 2; } } function scoreKeep() { if (combo <= 0) { combo = 0; } if (combo > record) { record = combo; } } subTotal = 0; subTime = rand(3, 14); combo = 0; record = 0; carrotSpeed = 10; oldXScale = carrot._xscale; carrot.stop(); bowlingBall(); onEnterFrame = function () { movement(); scoreKeep(); counter(); }; stop(); } frame 2 { stop(); } button 450 { on (release) { ab20_09 = new LoadVars(); ab20_09.z = myName; ab20_09.x = ab20.encodeNum(record); ab20_09.c = 447; ab20_09.v = 'EXPFCN'; ab20_09.sendAndLoad('http://armorbot.com/s_b', ab20_09, 'POST'); getURL('http://www.armorbot.com/mytable/?id=447', '_blank'); view._x = thisButton._x; view._y = thisButton._y; thisButton._x = 1500; } } button 452 { on (release) { getURL('http://www.armorbot.com/mytable/?id=447', '_blank'); } } movieClip 455 { } movieClip 457 { } movieClip 458 { } movieClip 8174 __Packages.ab20 { #initclip if (!_global.ab20) { var v1 = function () {}; _global.ab20 = v1; var v2 = v1.prototype; v1.fr = function (str, find, replace, limit) { var v2 = str; var v3; var v4; var v9; if (typeof find !== 'string') { if (replace === undefined) { replace = ['']; } else { if (typeof replace === 'string') { replace = [replace]; } } } else { find = [find]; replace = [replace]; } v9 = find.length; var v1 = 0; var v5 = 0; while (v1 < v9) { v4 = v2.indexOf(find[v1]); while (v4 !== -1) { if (limit !== undefined && v5 >= limit) { break; } v3 = new Array(v2.substring(0, v4), v2.substr(v4, find[v1].length), v2.substr(v4 + find[v1].length)); v3[1] = (replace[v1] === undefined) ? '' : replace[v1]; v2 = v3[0] + v3[1] + v3[2]; ++v5; } v1++; v5 = 0; } return v2; }; v1.encodeNum = function (num) { var v11 = getTimer(); var v6 = ['aZ', 'Zy', 'Zx']; var v7 = ['zH', 'jY', 'uH']; var v4 = ['Ah', 'Xh', 'hO']; var v5 = ['Ub', 'Bu', 'Cb']; var v8 = ['Qc', 'Pc', 'Pe']; var v9 = ['Ei', 'Ie', 'Ef']; var v3 = ['Fk', 'kG', 'Kg']; var v13 = ['Jl', 'Lm', 'Mn']; var v12 = ['No', 'Np', 'Qp']; var v2 = ['Rs', 'St', 'Sw']; var v14 = random(3); num = String(num); num = ab20.fr(num, '9', v6[random(3)], 1); num = ab20.fr(num, '9', v6[random(3)], 1); num = ab20.fr(num, '9', v6[random(3)], 1); num = ab20.fr(num, '9', v6[random(3)], 1); num = ab20.fr(num, '9', v6[random(3)], 1); num = ab20.fr(num, '9', v6[random(3)], 1); num = ab20.fr(num, '8', v7[random(3)], 1); num = ab20.fr(num, '8', v7[random(3)], 1); num = ab20.fr(num, '8', v7[random(3)], 1); num = ab20.fr(num, '8', v7[random(3)], 1); num = ab20.fr(num, '8', v7[random(3)], 1); num = ab20.fr(num, '7', v4[random(3)], 1); num = ab20.fr(num, '7', v4[random(3)], 1); num = ab20.fr(num, '7', v4[random(3)], 1); num = ab20.fr(num, '7', v4[random(3)], 1); num = ab20.fr(num, '7', v4[random(3)], 1); num = ab20.fr(num, '7', v4[random(3)], 1); num = ab20.fr(num, '7', v4[random(3)], 1); num = ab20.fr(num, '7', v4[random(3)], 1); num = ab20.fr(num, '6', v5[random(3)], 1); num = ab20.fr(num, '6', v5[random(3)], 1); num = ab20.fr(num, '6', v5[random(3)], 1); num = ab20.fr(num, '6', v5[random(3)], 1); num = ab20.fr(num, '6', v5[random(3)], 1); num = ab20.fr(num, '6', v5[random(3)], 1); if (v14 == 1) { num = ab20.fr(num, '5', v8[0]); num = ab20.fr(num, '4', v9[random(3)]); num = ab20.fr(num, '3', v3[random(3)], 1); num = ab20.fr(num, '3', v3[random(3)], 1); num = ab20.fr(num, '3', v3[random(3)], 1); num = ab20.fr(num, '3', v3[random(3)], 1); num = ab20.fr(num, '3', v3[random(3)], 1); num = ab20.fr(num, '3', v3[random(3)], 1); num = ab20.fr(num, '3', v3[random(3)], 1); num = ab20.fr(num, '3', v3[random(3)], 1); num = ab20.fr(num, '2', v13[random(3)]); num = ab20.fr(num, '1', v12[random(3)]); num = ab20.fr(num, '0', v2[random(3)], 1); num = ab20.fr(num, '0', v2[random(3)], 1); num = ab20.fr(num, '0', v2[random(3)], 1); num = ab20.fr(num, '0', v2[random(3)], 1); num = ab20.fr(num, '0', v2[random(3)], 1); num = ab20.fr(num, '0', v2[random(3)], 1); num = ab20.fr(num, '0', v2[random(3)], 1); num = ab20.fr(num, '0', v2[random(3)], 1); num = ab20.fr(num, '0', v2[random(3)], 1); var v10 = getTimer() - v11; num = num + 'Dd' + v10; return num; } num = ab20.fr(num, '5', v8[random(3)]); num = ab20.fr(num, '4', v9[random(3)]); num = ab20.fr(num, '3', v3[random(3)], 1); num = ab20.fr(num, '3', v3[random(3)], 1); num = ab20.fr(num, '3', v3[random(3)], 1); num = ab20.fr(num, '3', v3[random(3)], 1); num = ab20.fr(num, '3', v3[random(3)], 1); num = ab20.fr(num, '3', v3[random(3)], 1); num = ab20.fr(num, '3', v3[random(3)], 1); num = ab20.fr(num, '3', v3[random(3)], 1); num = ab20.fr(num, '2', v13[random(3)]); num = ab20.fr(num, '1', v12[random(3)]); num = ab20.fr(num, '0', v2[random(3)], 1); num = ab20.fr(num, '0', v2[random(3)], 1); num = ab20.fr(num, '0', v2[random(3)], 1); num = ab20.fr(num, '0', v2[random(3)], 1); num = ab20.fr(num, '0', v2[random(3)], 1); num = ab20.fr(num, '0', v2[random(3)], 1); num = ab20.fr(num, '0', v2[random(3)], 1); num = ab20.fr(num, '0', v2[random(3)], 1); num = ab20.fr(num, '0', v2[random(3)], 1); var v10 = getTimer() - v11; num = num + 'Dd' + v10; return num; }; v1.encodeStr8bytes = function (str) { var v1 = 0; var v4 = str.length; var v3 = '%'; var v2 = ['%', '$', '#', '@']; while (v1 < v4) { v3 += str.charCodeAt(v1) + v2[random(v2.length)]; ++v1; } return v3; }; v1.decodeStr8bytes = function (str) { str = 'PIE' + str + 'PIE'; str = ab20.fr(str, '%', 'D'); str = ab20.fr(str, '$', 'D'); str = ab20.fr(str, '#', 'D'); str = ab20.fr(str, '@', 'D'); str = ab20.fr(str, 'PIED', ''); str = ab20.fr(str, 'DPIE', ''); var v3 = str.split('D'); var v4 = ''; var v1 = 0; var v5 = v3.length; while (v1 < v5) { v4 += String(String.fromCharCode(v3[v1])); ++v1; } return v4; }; v1.decodeNum = function (str) { var v2 = ['aZ', 'Zy', 'Zx', 'zH', 'jY', 'uH', 'Ah', 'Xh', 'hO', 'Ub', 'Bu', 'Cb', 'Qc', 'Pc', 'Pe', 'Ei', 'Ie', 'Ef', 'Fk', 'kG', 'Kg', 'Jl', 'Lm', 'Mn', 'No', 'Np', 'Qp', 'Rs', 'St', 'Sw']; str = String(str); str = str.split('Dd'); str = str[0]; str = ab20.fr(str, v2[0], '9'); str = ab20.fr(str, v2[1], '9'); str = ab20.fr(str, v2[2], '9'); str = ab20.fr(str, v2[3], '8'); str = ab20.fr(str, v2[4], '8'); str = ab20.fr(str, v2[5], '8'); str = ab20.fr(str, v2[6], '7'); str = ab20.fr(str, v2[7], '7'); str = ab20.fr(str, v2[8], '7'); str = ab20.fr(str, v2[9], '6'); str = ab20.fr(str, v2[10], '6'); str = ab20.fr(str, v2[11], '6'); str = ab20.fr(str, v2[12], '5'); str = ab20.fr(str, v2[13], '5'); str = ab20.fr(str, v2[14], '5'); str = ab20.fr(str, v2[15], '4'); str = ab20.fr(str, v2[16], '4'); str = ab20.fr(str, v2[17], '4'); str = ab20.fr(str, v2[18], '3'); str = ab20.fr(str, v2[19], '3'); str = ab20.fr(str, v2[20], '3'); str = ab20.fr(str, v2[21], '2'); str = ab20.fr(str, v2[22], '2'); str = ab20.fr(str, v2[23], '2'); str = ab20.fr(str, v2[24], '1'); str = ab20.fr(str, v2[25], '1'); str = ab20.fr(str, v2[26], '1'); str = ab20.fr(str, v2[27], '0'); str = ab20.fr(str, v2[28], '0'); str = ab20.fr(str, v2[29], '0'); var v3 = Number(str); return v3; }; ASSetPropFlags(_global.ab20.prototype, null, 1); } #endinitclip } movieClip 393 __Packages.mx.events.EventDispatcher { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.events) { _global.mx.events = new Object(); } if (!_global.mx.events.EventDispatcher) { var v1 = function () {}; mx.events.EventDispatcher = v1; var v2 = v1.prototype; v1._removeEventListener = function (queue, event, handler) { if (queue != undefined) { var v4 = queue.length; var v1; v1 = 0; while (v1 < v4) { var v2 = queue[v1]; if (v2 == handler) { queue.splice(v1, 1); return undefined; } ++v1; } } }; v1.initialize = function (object) { if (mx.events.EventDispatcher._fEventDispatcher == undefined) { mx.events.EventDispatcher._fEventDispatcher = new mx.events.EventDispatcher(); } object.addEventListener = mx.events.EventDispatcher._fEventDispatcher.addEventListener; object.removeEventListener = mx.events.EventDispatcher._fEventDispatcher.removeEventListener; object.dispatchEvent = mx.events.EventDispatcher._fEventDispatcher.dispatchEvent; object.dispatchQueue = mx.events.EventDispatcher._fEventDispatcher.dispatchQueue; }; v2.dispatchQueue = function (queueObj, eventObj) { var v7 = '__q_' + eventObj.type; var v4 = queueObj[v7]; if (v4 != undefined) { var v5; for (v5 in v4) { var v1 = v4[v5]; var v3 = typeof v1; if (v3 == 'object' || v3 == 'movieclip') { if (v1.handleEvent != undefined) { v1.handleEvent(eventObj); } if (v1[eventObj.type] != undefined) { if (mx.events.EventDispatcher.exceptions[eventObj.type] == undefined) { v1[eventObj.type](eventObj); } } } else { v1.apply(queueObj, [eventObj]); } } } }; v2.dispatchEvent = function (eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + 'Handler'](eventObj); this.dispatchQueue(this, eventObj); }; v2.addEventListener = function (event, handler) { var v3 = '__q_' + event; if (this[v3] == undefined) { this[v3] = new Array(); } _global.ASSetPropFlags(this, v3, 1); mx.events.EventDispatcher._removeEventListener(this[v3], event, handler); this[v3].push(handler); }; v2.removeEventListener = function (event, handler) { var v2 = '__q_' + event; mx.events.EventDispatcher._removeEventListener(this[v2], event, handler); }; v1._fEventDispatcher = undefined; v1.exceptions = {'move': 1, 'draw': 1, 'load': 1}; ASSetPropFlags(mx.events.EventDispatcher.prototype, null, 1); } #endinitclip } movieClip 8175 __Packages.mx.transitions.TransitionManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.transitions) { _global.mx.transitions = new Object(); } if (!_global.mx.transitions.TransitionManager) { var v1 = function (content) { this.__set__content(content); this._transitions = {}; }; mx.transitions.TransitionManager = v1; var v2 = v1.prototype; v2.__set__content = function (c) { this.removeEventListener('allTransitionsInDone', this._content); this.removeEventListener('allTransitionsOutDone', this._content); this._content = c; this.saveContentAppearance(); this.addEventListener('allTransitionsInDone', this._content); this.addEventListener('allTransitionsOutDone', this._content); return this.__get__content(); }; v2.__get__content = function () { return this._content; }; v2.__get__transitionsList = function () { return this._transitions; }; v2.__get__numTransitions = function () { var v2 = 0; for (var v3 in this._transitions) { ++v2; } return v2; }; v2.__get__numInTransitions = function () { var v3 = 0; var v2 = this._transitions; for (var v4 in v2) { if (!v2[v4].direction) { ++v3; } } return v3; }; v2.__get__numOutTransitions = function () { var v3 = 0; var v2 = this._transitions; for (var v4 in v2) { if (v2[v4].direction) { ++v3; } } return v3; }; v2.__get__contentAppearance = function () { return this._contentAppearance; }; v1.start = function (content, transParams) { if (content.__transitionManager == undefined) { content.__transitionManager = new mx.transitions.TransitionManager(content); } if (transParams.direction == 1) { content.__transitionManager._triggerEvent = 'hide'; return content.__transitionManager.startTransition(transParams); } content.__transitionManager._triggerEvent = 'reveal'; return content.__transitionManager.startTransition(transParams); }; v2.startTransition = function (transParams) { this.removeTransition(this.findTransition(transParams)); var v3 = transParams.type; var v2 = new v3(this._content, transParams, this); this.addTransition(v2); v2.start(); return v2; }; v2.addTransition = function (trans) { trans.ID = ++mx.transitions.TransitionManager.IDCount; this._transitions[trans.ID] = trans; return trans; }; v2.removeTransition = function (trans) { if (this._transitions[trans.ID] == undefined) { return false; } trans.cleanUp(); return delete this._transitions[trans.ID]; }; v2.findTransition = function (transParams) { var v2; for (var v4 in this._transitions) { v2 = this._transitions[v4]; if (v2.type == transParams.type) { return v2; } } return undefined; }; v2.removeAllTransitions = function () { for (var v2 in this._transitions) { this._transitions[v2].cleanUp(); this.removeTransition(this._transitions[v2]); } }; v2.saveContentAppearance = function () { var v2 = this._content; if (this._contentAppearance == undefined) { this._contentAppearance = {}; var v3 = this._contentAppearance; for (var v4 in this._visualPropList) { v3[v4] = v2[v4]; } v3.colorTransform = (new Color(v2)).getTransform(); } this._innerBounds = v2.getBounds(targetPath(v2)); this._outerBounds = v2.getBounds(targetPath(v2._parent)); this._width = v2._width; this._height = v2._height; }; v2.restoreContentAppearance = function () { var v2 = this._content; var v3 = this._contentAppearance; for (var v4 in this._visualPropList) { v2[v4] = v3[v4]; } (new Color(v2)).setTransform(v3.colorTransform); }; v2.transitionInDone = function (e) { this.removeTransition(e.target); if (this.__get__numInTransitions() == 0) { var v2; v2 = this._content._visible; if (this._triggerEvent == 'hide' || this._triggerEvent == 'hideChild') { this._content._visible = false; } if (v2) { this.dispatchEvent({'type': 'allTransitionsInDone', 'target': this}); } } }; v2.transitionOutDone = function (e) { this.removeTransition(e.target); if (this.__get__numOutTransitions() == 0) { this.restoreContentAppearance(); var v2; v2 = this._content._visible; if (v2 && (this._triggerEvent == 'hide' || this._triggerEvent == 'hideChild')) { this._content._visible = false; } updateAfterEvent(); if (v2) { this.dispatchEvent({'type': 'allTransitionsOutDone', 'target': this}); } } }; v2.toString = function () { return '[TransitionManager]'; }; v1.version = '1.1.0.52'; v1.IDCount = 0; v2.type = mx.transitions.TransitionManager; v2.className = 'TransitionManager'; v2._visualPropList = {'_x': null, '_y': null, '_xscale': null, '_yscale': null, '_alpha': null, '_rotation': null}; v1.__mixinFED = mx.events.EventDispatcher.initialize(mx.transitions.TransitionManager.prototype); v2.addProperty('content', v2.__get__content, v2.__set__content); v2.addProperty('contentAppearance', v2.__get__contentAppearance, function () {}); v2.addProperty('numInTransitions', v2.__get__numInTransitions, function () {}); v2.addProperty('numOutTransitions', v2.__get__numOutTransitions, function () {}); v2.addProperty('numTransitions', v2.__get__numTransitions, function () {}); v2.addProperty('transitionsList', v2.__get__transitionsList, function () {}); ASSetPropFlags(mx.transitions.TransitionManager.prototype, null, 1); } #endinitclip } movieClip 8176 __Packages.mx.transitions.Transition { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.transitions) { _global.mx.transitions = new Object(); } if (!_global.mx.transitions.Transition) { var v1 = function (content, transParams, manager) { if (!arguments.length) { return undefined; } this.init(content, transParams, manager); }; mx.transitions.Transition = v1; var v2 = v1.prototype; v2.__set__manager = function (mgr) { if (this._manager != undefined) { this.removeEventListener('transitionInDone', this._manager); this.removeEventListener('transitionOutDone', this._manager); this.removeEventListener('transitionProgress', this._manager); } this._manager = mgr; this.addEventListener('transitionInDone', this._manager); this.addEventListener('transitionOutDone', this._manager); this.addEventListener('transitionProgress', this._manager); return this.__get__manager(); }; v2.__get__manager = function () { return this._manager; }; v2.__set__content = function (c) { if (typeof c == 'movieclip') { this._content = c; this._twn.obj = c; } return this.__get__content(); }; v2.__get__content = function () { return this._content; }; v2.__set__direction = function (direction) { this._direction = direction ? 1 : 0; return this.__get__direction(); }; v2.__get__direction = function () { return this._direction; }; v2.__set__duration = function (d) { if (d) { this._duration = d; this._twn.duration = d; } return this.__get__duration(); }; v2.__get__duration = function () { return this._duration; }; v2.__set__easing = function (e) { if (typeof e == 'string') { e = eval(e); } else { if (e == undefined) { e = this._noEase; } } this._easing = e; this._twn.easing = e; return this.__get__easing(); }; v2.__get__easing = function () { return this._easing; }; v2.__set__progress = function (p) { if (this._progress == p) { return undefined; } this._progress = p; if (this._direction) { this._render(1 - p); } else { this._render(p); } this.dispatchEvent({'type': 'transitionProgress', 'target': this, 'progress': p}); return this.__get__progress(); }; v2.__get__progress = function () { return this._progress; }; v2.init = function (content, transParams, manager) { this.__set__content(content); this.__set__direction(transParams.direction); this.__set__duration(transParams.duration); this.__set__easing(transParams.easing); this.__set__manager(manager); this._innerBounds = (this.__get__manager())._innerBounds; this._outerBounds = (this.__get__manager())._outerBounds; this._width = (this.__get__manager())._width; this._height = (this.__get__manager())._height; this._resetTween(); }; v2.toString = function () { return '[Transition ' + this.className + ']'; }; v2.start = function () { (this.__get__content())._visible = true; this._twn.start(); }; v2.stop = function () { this._twn.fforward(); this._twn.stop(); }; v2.cleanUp = function () { this.removeEventListener('transitionInDone', this._manager); this.removeEventListener('transitionOutDone', this._manager); this.removeEventListener('transitionProgress', this._manager); this.stop(); }; v2.getNextHighestDepthMC = function (mc) { var v4 = mc.getNextHighestDepth(); if (v4 != undefined) { return v4; } else { v4 = -1; var v3; var v1; for (var v5 in mc) { v1 = mc[v5]; if (typeof v1 == 'movieclip' && v1._parent == mc) { v3 = v1.getDepth(); if (v3 > v4) { v4 = v3; } } } return v4 + 1; } }; v2.drawBox = function (mc, x, y, w, h) { mc.moveTo(x, y); mc.lineTo(x + w, y); mc.lineTo(x + w, y + h); mc.lineTo(x, y + h); mc.lineTo(x, y); }; v2.drawCircle = function (mc, x, y, r) { mc.moveTo(x + r, y); mc.curveTo(r + x, 0.414213562373095 * r + y, Math.SQRT1_2 * r + x, Math.SQRT1_2 * r + y); mc.curveTo(0.414213562373095 * r + x, r + y, x, r + y); mc.curveTo(-0.414213562373095 * r + x, r + y, -Math.SQRT1_2 * r + x, Math.SQRT1_2 * r + y); mc.curveTo(-r + x, 0.414213562373095 * r + y, -r + x, y); mc.curveTo(-r + x, -0.414213562373095 * r + y, -Math.SQRT1_2 * r + x, -Math.SQRT1_2 * r + y); mc.curveTo(-0.414213562373095 * r + x, -r + y, x, -r + y); mc.curveTo(0.414213562373095 * r + x, -r + y, Math.SQRT1_2 * r + x, -Math.SQRT1_2 * r + y); mc.curveTo(r + x, -0.414213562373095 * r + y, r + x, y); }; v2._render = function (p) {}; v2._resetTween = function () { this._twn.stop(); this._twn.removeListener(this); this._twn = new mx.transitions.Tween(this, null, this.__get__easing(), 0, 1, this.__get__duration(), true); this._twn.stop(); this._twn.prop = 'progress'; this._twn.addListener(this); }; v2._noEase = function (t, b, c, d) { return c * t / d + b; }; v2.onMotionFinished = function (src) { if (this.__get__direction()) { this.dispatchEvent({'type': 'transitionOutDone', 'target': this}); } else { this.dispatchEvent({'type': 'transitionInDone', 'target': this}); } }; v1.version = '1.1.0.52'; v1.IN = 0; v1.OUT = 1; v2.type = mx.transitions.Transition; v2.className = 'Transition'; v2._direction = 0; v2._duration = 2; v1.__mixinFED = mx.events.EventDispatcher.initialize(mx.transitions.Transition.prototype); v2.addProperty('content', v2.__get__content, v2.__set__content); v2.addProperty('direction', v2.__get__direction, v2.__set__direction); v2.addProperty('duration', v2.__get__duration, v2.__set__duration); v2.addProperty('easing', v2.__get__easing, v2.__set__easing); v2.addProperty('manager', v2.__get__manager, v2.__set__manager); v2.addProperty('progress', v2.__get__progress, v2.__set__progress); ASSetPropFlags(mx.transitions.Transition.prototype, null, 1); } #endinitclip } movieClip 8177 __Packages.mx.transitions.OnEnterFrameBeacon { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.transitions) { _global.mx.transitions = new Object(); } if (!_global.mx.transitions.OnEnterFrameBeacon) { var v1 = function () {}; mx.transitions.OnEnterFrameBeacon = v1; var v2 = v1.prototype; v1.init = function () { var v4 = _global.MovieClip; if (!_root.__OnEnterFrameBeacon) { mx.transitions.BroadcasterMX.initialize(v4); var v3 = _root.createEmptyMovieClip('__OnEnterFrameBeacon', 9876); v3.onEnterFrame = function () { _global.MovieClip.broadcastMessage('onEnterFrame'); }; } }; v1.version = '1.1.0.52'; ASSetPropFlags(mx.transitions.OnEnterFrameBeacon.prototype, null, 1); } #endinitclip } movieClip 8178 __Packages.mx.transitions.BroadcasterMX { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.transitions) { _global.mx.transitions = new Object(); } if (!_global.mx.transitions.BroadcasterMX) { var v1 = function () {}; mx.transitions.BroadcasterMX = v1; var v2 = v1.prototype; v1.initialize = function (o, dontCreateArray) { if (o.broadcastMessage != undefined) { delete o.broadcastMessage; } o.addListener = mx.transitions.BroadcasterMX.prototype.addListener; o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener; if (!dontCreateArray) { o._listeners = new Array(); } }; v2.addListener = function (o) { this.removeListener(o); if (this.broadcastMessage == undefined) { this.broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage; } return this._listeners.push(o); }; v2.removeListener = function (o) { var v2 = this._listeners; var v3 = v2.length; while (v3--) { if (v2[v3] == o) { v2.splice(v3, 1); if (!v2.length) { this.broadcastMessage = undefined; } return true; } } return false; }; v2.broadcastMessage = function () { var v5 = String(arguments.shift()); var v4 = this._listeners.concat(); var v6 = v4.length; var v3 = 0; while (v3 < v6) { v4[v3][v5].apply(v4[v3], arguments); ++v3; } }; v1.version = '1.1.0.52'; ASSetPropFlags(mx.transitions.BroadcasterMX.prototype, null, 1); } #endinitclip } movieClip 8179 __Packages.mx.transitions.Tween { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.transitions) { _global.mx.transitions = new Object(); } if (!_global.mx.transitions.Tween) { var v1 = function (obj, prop, func, begin, finish, duration, useSeconds) { mx.transitions.OnEnterFrameBeacon.init(); if (!arguments.length) { return undefined; } this.obj = obj; this.prop = prop; this.begin = begin; this.__set__position(begin); this.__set__duration(duration); this.useSeconds = useSeconds; if (func) { this.func = func; } this.__set__finish(finish); this._listeners = []; this.addListener(this); this.start(); }; mx.transitions.Tween = v1; var v2 = v1.prototype; v2.__set__time = function (t) { this.prevTime = this._time; if (t > this.__get__duration()) { if (this.looping) { this.rewind(t - this._duration); this.update(); this.broadcastMessage('onMotionLooped', this); } else { if (this.useSeconds) { this._time = this._duration; this.update(); } this.stop(); this.broadcastMessage('onMotionFinished', this); } } else { if (t < 0) { this.rewind(); this.update(); } else { this._time = t; this.update(); } } return this.__get__time(); }; v2.__get__time = function () { return this._time; }; v2.__set__duration = function (d) { this._duration = (d == null || d <= 0) ? _global.Infinity : d; return this.__get__duration(); }; v2.__get__duration = function () { return this._duration; }; v2.__set__FPS = function (fps) { var v2 = this.isPlaying; this.stopEnterFrame(); this._fps = fps; if (v2) { this.startEnterFrame(); } return this.__get__FPS(); }; v2.__get__FPS = function () { return this._fps; }; v2.__set__position = function (p) { this.setPosition(p); return this.__get__position(); }; v2.setPosition = function (p) { this.prevPos = this._pos; this._pos = p; this.obj[this.prop] = this._pos; this.broadcastMessage('onMotionChanged', this, this._pos); updateAfterEvent(); }; v2.__get__position = function () { return this.getPosition(); }; v2.getPosition = function (t) { if (t == undefined) { t = this._time; } return this.func(t, this.begin, this.change, this._duration); }; v2.__set__finish = function (f) { this.change = f - this.begin; return this.__get__finish(); }; v2.__get__finish = function () { return this.begin + this.change; }; v2.continueTo = function (finish, duration) { this.begin = this.position; this.__set__finish(finish); if (duration != undefined) { this.__set__duration(duration); } this.start(); }; v2.yoyo = function () { this.continueTo(this.begin, this.__get__time()); }; v2.startEnterFrame = function () { if (this._fps == undefined) { _global.MovieClip.addListener(this); } else { this._intervalID = setInterval(this, 'onEnterFrame', 1000 / this._fps); } this.isPlaying = true; }; v2.stopEnterFrame = function () { if (this._fps == undefined) { _global.MovieClip.removeListener(this); } else { clearInterval(this._intervalID); } this.isPlaying = false; }; v2.start = function () { this.rewind(); this.startEnterFrame(); this.broadcastMessage('onMotionStarted', this); }; v2.stop = function () { this.stopEnterFrame(); this.broadcastMessage('onMotionStopped', this); }; v2.resume = function () { this.fixTime(); this.startEnterFrame(); this.broadcastMessage('onMotionResumed', this); }; v2.rewind = function (t) { this._time = (t == undefined) ? 0 : t; this.fixTime(); this.update(); }; v2.fforward = function () { this.__set__time(this._duration); this.fixTime(); }; v2.nextFrame = function () { if (this.useSeconds) { this.__set__time((getTimer() - this._startTime) / 1000); } else { this.__set__time(this._time + 1); } }; v2.onEnterFrame = function () { this.nextFrame(); }; v2.prevFrame = function () { if (!this.useSeconds) { this.__set__time(this._time - 1); } }; v2.toString = function () { return '[Tween]'; }; v2.fixTime = function () { if (this.useSeconds) { this._startTime = getTimer() - this._time * 1000; } }; v2.update = function () { this.__set__position(this.getPosition(this._time)); }; v1.version = '1.1.0.52'; v1.__initBeacon = mx.transitions.OnEnterFrameBeacon.init(); v1.__initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true); v2.func = function (t, b, c, d) { return c * t / d + b; }; v2.addProperty('FPS', v2.__get__FPS, v2.__set__FPS); v2.addProperty('duration', v2.__get__duration, v2.__set__duration); v2.addProperty('finish', v2.__get__finish, v2.__set__finish); v2.addProperty('position', v2.__get__position, v2.__set__position); v2.addProperty('time', v2.__get__time, v2.__set__time); ASSetPropFlags(mx.transitions.Tween.prototype, null, 1); } #endinitclip } movieClip 8180 __Packages.mx.transitions.easing.Elastic { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.transitions) { _global.mx.transitions = new Object(); } if (!_global.mx.transitions.easing) { _global.mx.transitions.easing = new Object(); } if (!_global.mx.transitions.easing.Elastic) { var v1 = function () {}; mx.transitions.easing.Elastic = v1; var v2 = v1.prototype; v1.easeIn = function (t, b, c, d, a, p) { if (t == 0) { return b; } t /= d; if (t == 1) { return b + c; } if (!p) { p = d * 0.3; } if (!a || a < Math.abs(c)) { a = c; var v7 = p / 4; t -= 1; return -(a * Math.pow(2, 10 * t) * Math.sin((t * d - v7) * 6.283185307179586 / p)) + b; } v7 = (p / 6.283185307179586) * Math.asin(c / a); t -= 1; return -(a * Math.pow(2, 10 * t) * Math.sin((t * d - v7) * 6.283185307179586 / p)) + b; }; v1.easeOut = function (t, b, c, d, a, p) { if (t == 0) { return b; } t /= d; if (t == 1) { return b + c; } if (!p) { p = d * 0.3; } if (!a || a < Math.abs(c)) { a = c; var v7 = p / 4; return a * Math.pow(2, -10 * t) * Math.sin((t * d - v7) * 6.283185307179586 / p) + c + b; } v7 = (p / 6.283185307179586) * Math.asin(c / a); return a * Math.pow(2, -10 * t) * Math.sin((t * d - v7) * 6.283185307179586 / p) + c + b; }; v1.easeInOut = function (t, b, c, d, a, p) { if (t == 0) { return b; } t /= d / 2; if (t == 2) { return b + c; } if (!p) { p = d * 0.45; } if (!a || a < Math.abs(c)) { a = c; var v7 = p / 4; } else { var v7 = (p / 6.283185307179586) * Math.asin(c / a); } if (t < 1) { t -= 1; return -0.5 * (a * Math.pow(2, 10 * t) * Math.sin((t * d - v7) * 6.283185307179586 / p)) + b; } t -= 1; return a * Math.pow(2, -10 * t) * Math.sin((t * d - v7) * 6.283185307179586 / p) * 0.5 + c + b; }; v1.version = '1.1.0.52'; ASSetPropFlags(mx.transitions.easing.Elastic.prototype, null, 1); } #endinitclip } movieClip 8181 __Packages.mx.transitions.Zoom { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.transitions) { _global.mx.transitions = new Object(); } if (!_global.mx.transitions.Zoom) { var v1 = function (content, transParams, manager) { super(); this.init(content, transParams, manager); }; mx.transitions.Zoom = v1; mx.transitions.Zoom extends mx.transitions.Transition; var v2 = v1.prototype; v2.init = function (content, transParams, manager) { super.init(content, transParams, manager); this._xscaleFinal = ((this.__get__manager()).__get__contentAppearance())._xscale; this._yscaleFinal = ((this.__get__manager()).__get__contentAppearance())._yscale; }; v2._render = function (p) { if (p < 0) { p = 0; } this._content._xscale = p * this._xscaleFinal; this._content._yscale = p * this._yscaleFinal; }; v1.version = '1.1.0.52'; v2.type = mx.transitions.Zoom; v2.className = 'Zoom'; ASSetPropFlags(mx.transitions.Zoom.prototype, null, 1); } #endinitclip } movieClip 8182 __Packages.Vector { #initclip if (!_global.Vector) { var v1 = function (i, j) { this.x = i; this.y = j; }; _global.Vector = v1; var v2 = v1.prototype; v2.norm = function () { var v2 = this.vLength(); this.x /= v2; this.y /= v2; }; v1.add = function (v, v2) { return new Vector(v2.x + v.x, v2.y + v.y); }; v1.subtract = function (v, v2) { return new Vector(v.x - v2.x, v.y - v2.y); }; v1.dot = function (v, v2) { return v2.x * v.x + v2.y * v.y; }; v1.angle = function (v, v2) { return Math.acos(Vector.dot(v, v2) / v2.vLength() * v.vLength()) / 0.0174532925199433; }; v1.angle2 = function (v, v2) { var v1 = Vector.angle(v, v2); if (Vector.comp(v.rotateNew(v1), v2) < 0.0001) { return v1; } else { return -v1; } }; v1.comp = function (v, v2) { return Math.abs(v.x / v.vLength() - v2.x / v2.vLength()) + Math.abs(v.y / v.vLength() - v2.y / v2.vLength()); }; v2.vLength = function () { return Math.sqrt(this.x * this.x + this.y * this.y); }; v2.perpendicular = function () { return new Vector(-this.y, this.x); }; v2.scale = function (val) { this.x *= val; this.y *= val; }; v2.rotate = function (degrees) { degrees *= 0.0174532925199433; var v3 = Math.sin(degrees); var v2 = Math.cos(degrees); var v5 = this.x * v2 - this.y * v3; var v4 = this.x * v3 + this.y * v2; this.x = v5; this.y = v4; }; v2.rotateNew = function (degrees) { degrees *= 0.0174532925199433; var v3 = Math.sin(degrees); var v2 = Math.cos(degrees); var v5 = this.x * v2 - this.y * v3; var v4 = this.x * v3 + this.y * v2; return new Vector(v5, v4); }; v2.reflect = function (normal) { var v2 = new Vector(normal.x, normal.y); v2.norm(); v2.scale(2 * Vector.dot(this, v2)); return Vector.subtract(this, v2); }; v2.display = function (point, scale, tgt) { tgt.lineStyle(3, 16777215, 100); tgt.moveTo(point.x, point.y); tgt.lineTo(point.x + this.x * scale, point.y + this.y * scale); var v5 = new Vector(-this.x, -this.y); v5.norm(); v5.scale(0.5); v5.rotate(-45); tgt.lineTo(point.x + this.x * scale + v5.x * scale, point.y + this.y * scale + v5.y * scale); tgt.moveTo(point.x + this.x * scale, point.y + this.y * scale); v5.rotate(90); tgt.lineTo(point.x + this.x * scale + v5.x * scale, point.y + this.y * scale + v5.y * scale); tgt.lineStyle(2, 0, 100); tgt.moveTo(point.x, point.y); tgt.lineTo(point.x + this.x * scale, point.y + this.y * scale); var v6 = new Vector(-this.x, -this.y); v6.norm(); v6.scale(0.5); v6.rotate(-45); tgt.lineTo(point.x + this.x * scale + v6.x * scale, point.y + this.y * scale + v6.y * scale); tgt.moveTo(point.x + this.x * scale, point.y + this.y * scale); v6.rotate(90); tgt.lineTo(point.x + this.x * scale + v6.x * scale, point.y + this.y * scale + v6.y * scale); }; ASSetPropFlags(_global.Vector.prototype, null, 1); } #endinitclip } movieClip 333 __Packages.mx.core.UIObject { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.UIObject) { var v1 = function () { super(); this.constructObject(); }; mx.core.UIObject = v1; var v2 = new MovieClip(); mx.core.UIObject.prototype = v2; v2.__get__width = function () { return this._width; }; v2.__get__height = function () { return this._height; }; v2.__get__left = function () { return this._x; }; v2.__get__x = function () { return this._x; }; v2.__get__top = function () { return this._y; }; v2.__get__y = function () { return this._y; }; v2.__get__right = function () { return this._parent.width - (this._x + this.__get__width()); }; v2.__get__bottom = function () { return this._parent.height - (this._y + this.__get__height()); }; v2.getMinHeight = function (Void) { return this._minHeight; }; v2.setMinHeight = function (h) { this._minHeight = h; }; v2.__get__minHeight = function () { return this.getMinHeight(); }; v2.__set__minHeight = function (h) { this.setMinHeight(h); return this.__get__minHeight(); }; v2.getMinWidth = function (Void) { return this._minWidth; }; v2.setMinWidth = function (w) { this._minWidth = w; }; v2.__get__minWidth = function () { return this.getMinWidth(); }; v2.__set__minWidth = function (w) { this.setMinWidth(w); return this.__get__minWidth(); }; v2.setVisible = function (x, noEvent) { if (x != this._visible) { this._visible = x; if (noEvent != true) { this.dispatchEvent({'type': x ? 'reveal' : 'hide'}); } } }; v2.__get__visible = function () { return this._visible; }; v2.__set__visible = function (x) { this.setVisible(x, false); return this.__get__visible(); }; v2.__get__scaleX = function () { return this._xscale; }; v2.__set__scaleX = function (x) { this._xscale = x; return this.__get__scaleX(); }; v2.__get__scaleY = function () { return this._yscale; }; v2.__set__scaleY = function (y) { this._yscale = y; return this.__get__scaleY(); }; v2.doLater = function (obj, fn) { if (this.methodTable == undefined) { this.methodTable = new Array(); } this.methodTable.push({'obj': obj, 'fn': fn}); this.onEnterFrame = this.doLaterDispatcher; }; v2.doLaterDispatcher = function (Void) { delete this.onEnterFrame; if (this.invalidateFlag) { this.redraw(); } var v3 = this.methodTable; this.methodTable = new Array(); if (v3.length > 0) { var v2; v2 = v3.shift(); while (v2 != undefined) { v2.obj[v2.fn](); } } }; v2.cancelAllDoLaters = function (Void) { delete this.onEnterFrame; this.methodTable = new Array(); }; v2.invalidate = function (Void) { this.invalidateFlag = true; this.onEnterFrame = this.doLaterDispatcher; }; v2.invalidateStyle = function (Void) { this.invalidate(); }; v2.redraw = function (bAlways) { if (this.invalidateFlag || bAlways) { this.invalidateFlag = false; var v2; for (v2 in this.tfList) { this.tfList[v2].draw(); } this.draw(); this.dispatchEvent({'type': 'draw'}); } }; v2.draw = function (Void) {}; v2.move = function (x, y, noEvent) { var v3 = this._x; var v2 = this._y; this._x = x; this._y = y; if (noEvent != true) { this.dispatchEvent({'type': 'move', 'oldX': v3, 'oldY': v2}); } }; v2.setSize = function (w, h, noEvent) { var v2 = this.__width; var v3 = this.__height; this.__width = w; this.__height = h; this.size(); if (noEvent != true) { this.dispatchEvent({'type': 'resize', 'oldWidth': v2, 'oldHeight': v3}); } }; v2.size = function (Void) { this._width = this.__width; this._height = this.__height; }; v2.drawRect = function (x1, y1, x2, y2) { this.moveTo(x1, y1); this.lineTo(x2, y1); this.lineTo(x2, y2); this.lineTo(x1, y2); this.lineTo(x1, y1); }; v2.createLabel = function (name, depth, text) { this.createTextField(name, depth, 0, 0, 0, 0); var v2 = this[name]; v2._color = mx.core.UIObject.textColorList; v2._visible = false; v2.__text = text; if (this.tfList == undefined) { this.tfList = new Object(); } this.tfList[name] = v2; v2.invalidateStyle(); this.invalidate(); v2.styleName = this; return v2; }; v2.createObject = function (linkageName, id, depth, initobj) { return this.attachMovie(linkageName, id, depth, initobj); }; v2.createClassObject = function (className, id, depth, initobj) { var v3 = className.symbolName == undefined; if (v3) { Object.registerClass(className.symbolOwner.symbolName, className); } var v4 = this.createObject(className.symbolOwner.symbolName, id, depth, initobj); if (v3) { Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner); } return v4; }; v2.createEmptyObject = function (id, depth) { return this.createClassObject(mx.core.UIObject, id, depth); }; v2.destroyObject = function (id) { var v2 = this[id]; if (v2.getDepth() < 0) { var v4 = this.buildDepthTable(); var v5 = this.findNextAvailableDepth(0, v4, 'up'); var v3 = v5; v2.swapDepths(v3); } v2.removeMovieClip(); delete this[id]; }; v2.getSkinIDName = function (tag) { return this.idNames[tag]; }; v2.setSkin = function (tag, linkageName, initObj) { if (_global.skinRegistry[linkageName] == undefined) { mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement); } return this.createObject(linkageName, this.getSkinIDName(tag), tag, initObj); }; v2.createSkin = function (tag) { var v2 = this.getSkinIDName(tag); this.createEmptyObject(v2, tag); return this[v2]; }; v2.createChildren = function (Void) {}; v2._createChildren = function (Void) { this.createChildren(); this.childrenCreated = true; }; v2.constructObject = function (Void) { if (this._name == undefined) { return undefined; } this.init(); this._createChildren(); this.createAccessibilityImplementation(); this._endInit(); if (this.validateNow) { this.redraw(true); } else { this.invalidate(); } }; v2.initFromClipParameters = function (Void) { var v4 = false; var v2; for (v2 in this.clipParameters) { if (this.hasOwnProperty(v2)) { v4 = true; this['def_' + v2] = this[v2]; delete this[v2]; } } if (v4) { for (v2 in this.clipParameters) { var v3 = this['def_' + v2]; if (v3 != undefined) { this[v2] = v3; } } } }; v2.init = function (Void) { this.__width = this._width; this.__height = this._height; if (this.initProperties == undefined) { this.initFromClipParameters(); } else { this.initProperties(); } if (_global.cascadingStyles == true) { this.stylecache = new Object(); } }; v2.getClassStyleDeclaration = function (Void) { var v4 = this; var v3 = this.className; while (v3 != undefined) { if (this.ignoreClassStyleDeclaration[v3] == undefined) { if (_global.styles[v3] != undefined) { return _global.styles[v3]; } } v4 = v4.__proto__; v3 = v4.className; } }; v2.setColor = function (color) {}; v2.__getTextFormat = function (tf, bAll) { var v8 = this.stylecache.tf; if (v8 != undefined) { var v3; for (v3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v3]) { if (tf[v3] == undefined) { tf[v3] = v8[v3]; } } } return false; } var v6 = false; for (v3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v3]) { if (tf[v3] == undefined) { var v5 = this._tf[v3]; if (v5 != undefined) { tf[v3] = v5; } else { if (v3 == 'font' && this.fontFamily != undefined) { tf[v3] = this.fontFamily; } else { if (v3 == 'size' && this.fontSize != undefined) { tf[v3] = this.fontSize; } else { if (v3 == 'color' && this.color != undefined) { tf[v3] = this.color; } else { if (v3 == 'leftMargin' && this.marginLeft != undefined) { tf[v3] = this.marginLeft; } else { if (v3 == 'rightMargin' && this.marginRight != undefined) { tf[v3] = this.marginRight; } else { if (v3 == 'italic' && this.fontStyle != undefined) { tf[v3] = this.fontStyle == v3; } else { if (v3 == 'bold' && this.fontWeight != undefined) { tf[v3] = this.fontWeight == v3; } else { if (v3 == 'align' && this.textAlign != undefined) { tf[v3] = this.textAlign; } else { if (v3 == 'indent' && this.textIndent != undefined) { tf[v3] = this.textIndent; } else { if (v3 == 'underline' && this.textDecoration != undefined) { tf[v3] = this.textDecoration == v3; } else { if (v3 == 'embedFonts' && this.embedFonts != undefined) { tf[v3] = this.embedFonts; } else { v6 = true; } } } } } } } } } } } } } } } if (v6) { var v9 = this.styleName; if (v9 != undefined) { if (typeof v9 != 'string') { v6 = v9.__getTextFormat(tf, true, this); } else { if (_global.styles[v9] != undefined) { v6 = _global.styles[v9].__getTextFormat(tf, true, this); } } } } if (v6) { var v10 = this.getClassStyleDeclaration(); if (v10 != undefined) { v6 = v10.__getTextFormat(tf, true, this); } } if (v6) { if (_global.cascadingStyles) { if (this._parent != undefined) { v6 = this._parent.__getTextFormat(tf, false); } } } if (v6) { v6 = _global.style.__getTextFormat(tf, true, this); } return v6; }; v2._getTextFormat = function (Void) { var v2 = this.stylecache.tf; if (v2 != undefined) { return v2; } v2 = new TextFormat(); this.__getTextFormat(v2, true); this.stylecache.tf = v2; if (this.enabled == false) { var v3 = this.getStyle('disabledColor'); v2.color = v3; } return v2; }; v2.getStyleName = function (Void) { var v2 = this.styleName; if (v2 != undefined) { if (typeof v2 != 'string') { return v2.getStyleName(); } else { return v2; } } if (this._parent != undefined) { return this._parent.getStyleName(); } else { return undefined; } }; v2.getStyle = function (styleProp) { var v3; ++_global.getStyleCounter; if (this[styleProp] != undefined) { return this[styleProp]; } var v6 = this.styleName; if (v6 != undefined) { if (typeof v6 != 'string') { v3 = v6.getStyle(styleProp); } else { var v7 = _global.styles[v6]; v3 = v7.getStyle(styleProp); } } if (v3 != undefined) { return v3; } v7 = this.getClassStyleDeclaration(); if (v7 != undefined) { v3 = v7[styleProp]; } if (v3 != undefined) { return v3; } if (_global.cascadingStyles) { if (mx.styles.StyleManager.isInheritingStyle(styleProp) || mx.styles.StyleManager.isColorStyle(styleProp)) { var v5 = this.stylecache; if (v5 != undefined) { if (v5[styleProp] != undefined) { return v5[styleProp]; } } if (this._parent != undefined) { v3 = this._parent.getStyle(styleProp); } else { v3 = _global.style[styleProp]; } if (v5 != undefined) { v5[styleProp] = v3; } return v3; } } if (v3 == undefined) { v3 = _global.style[styleProp]; } return v3; }; v1.mergeClipParameters = function (o, p) { for (var v3 in p) { o[v3] = p[v3]; } return true; }; v1.symbolName = 'UIObject'; v1.symbolOwner = mx.core.UIObject; v1.version = '2.0.2.126'; v1.textColorList = {'color': 1, 'disabledColor': 1}; v2.invalidateFlag = false; v2.lineWidth = 1; v2.lineColor = 0; v2.tabEnabled = false; v2.clipParameters = {'visible': 1, 'minHeight': 1, 'minWidth': 1, 'maxHeight': 1, 'maxWidth': 1, 'preferredHeight': 1, 'preferredWidth': 1}; v2.addProperty('bottom', v2.__get__bottom, function () {}); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('left', v2.__get__left, function () {}); v2.addProperty('minHeight', v2.__get__minHeight, v2.__set__minHeight); v2.addProperty('minWidth', v2.__get__minWidth, v2.__set__minWidth); v2.addProperty('right', v2.__get__right, function () {}); v2.addProperty('scaleX', v2.__get__scaleX, v2.__set__scaleX); v2.addProperty('scaleY', v2.__get__scaleY, v2.__set__scaleY); v2.addProperty('top', v2.__get__top, function () {}); v2.addProperty('visible', v2.__get__visible, v2.__set__visible); v2.addProperty('width', v2.__get__width, function () {}); v2.addProperty('x', v2.__get__x, function () {}); v2.addProperty('y', v2.__get__y, function () {}); ASSetPropFlags(mx.core.UIObject.prototype, null, 1); } #endinitclip } movieClip 334 __Packages.mx.core.UIComponent { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.UIComponent) { var v1 = function () { super(); }; mx.core.UIComponent = v1; var v2 = new mx.core.UIObject(); mx.core.UIComponent.prototype = v2; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.setVisible = function (x, noEvent) { super.setVisible(x, noEvent); }; v2.enabledChanged = function (id, oldValue, newValue) { this.setEnabled(newValue); this.invalidate(); delete this.stylecache.tf; return newValue; }; v2.setEnabled = function (enabled) { this.invalidate(); }; v2.getFocus = function () { var selFocus = Selection.getFocus(); return (selFocus === null) ? null : eval(selFocus); }; v2.setFocus = function () { Selection.setFocus(this); }; v2.getFocusManager = function () { var v2 = this; while (v2 != undefined) { if (v2.focusManager != undefined) { return v2.focusManager; } v2 = v2._parent; } return undefined; }; v2.onKillFocus = function (newFocus) { this.removeEventListener('keyDown', this); this.removeEventListener('keyUp', this); this.dispatchEvent({'type': 'focusOut'}); this.drawFocus(false); }; v2.onSetFocus = function (oldFocus) { this.addEventListener('keyDown', this); this.addEventListener('keyUp', this); this.dispatchEvent({'type': 'focusIn'}); if ((this.getFocusManager()).bDrawFocus != false) { this.drawFocus(true); } }; v2.findFocusInChildren = function (o) { if (o.focusTextField != undefined) { return o.focusTextField; } if (o.tabEnabled == true) { return o; } return undefined; }; v2.findFocusFromObject = function (o) { if (o.tabEnabled != true) { if (o._parent == undefined) { return undefined; } if (o._parent.tabEnabled == true) { o = o._parent; return o; } if (o._parent.tabChildren) { o = this.findFocusInChildren(o._parent); return o; } o = this.findFocusFromObject(o._parent); } return o; }; v2.pressFocus = function () { var v3 = this.findFocusFromObject(this); var v2 = this.getFocus(); if (v3 != v2) { v2.drawFocus(false); if ((this.getFocusManager()).bDrawFocus != false) { v3.drawFocus(true); } } }; v2.releaseFocus = function () { var v2 = this.findFocusFromObject(this); if (v2 != this.getFocus()) { v2.setFocus(); } }; v2.isParent = function (o) { while (o != undefined) { if (o == this) { return true; } o = o._parent; } return false; }; v2.size = function () {}; v2.init = function () { super.init(); this._xscale = 100; this._yscale = 100; this._focusrect = _global.useFocusRect == false; this.watch('enabled', this.enabledChanged); if (this.enabled == false) { this.setEnabled(false); } }; v2.dispatchValueChangedEvent = function (value) { this.dispatchEvent({'type': 'valueChanged', 'value': value}); }; v1.symbolName = 'UIComponent'; v1.symbolOwner = mx.core.UIComponent; v1.version = '2.0.2.126'; v1.kStretch = 5000; v2.focusEnabled = true; v2.tabEnabled = true; v2.origBorderStyles = {'themeColor': 16711680}; v2.clipParameters = {}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.core.UIComponent.prototype, null, 1); } #endinitclip } movieClip 335 __Packages.mx.controls.NumericStepper { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.NumericStepper) { var v1 = function () { super(); }; mx.controls.NumericStepper = v1; var v2 = new mx.core.UIComponent(); mx.controls.NumericStepper.prototype = v2; v2.init = function () { super.init(); this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; this._visible = false; this.tabEnabled = false; this.tabChildren = true; }; v2.setVisible = function (x, noEvent) { super.setVisible(x, noEvent); if (this.initializing) { this.__visible = x; } }; v2.layoutControl = function () { this.nextButton_mc._x = this.__width - this.nextButton_mc.__width; this.nextButton_mc._y = 0; this.prevButton_mc._x = this.__width - this.prevButton_mc.__width; this.prevButton_mc._y = this.__height - this.prevButton_mc.__height; this.inputField.setSize(this.__width - this.nextButton_mc.__width, this.__height); this.StepTrack_mc._width = Math.max(this.nextButton_mc.__width, this.prevButton_mc.__width); this.StepTrack_mc._x = this.__width - this.StepTrack_mc._width; this.StepTrack_mc._height = this.__height - (this.nextButton_mc._height + this.prevButton_mc._height); this.StepTrack_mc._y = this.nextButton_mc.__height; }; v2.createChildren = function () { super.createChildren(); this.addAsset('nextButton_mc', this.skinIDUpArrow); this.addAsset('prevButton_mc', this.skinIDDownArrow); this.addAsset('inputField', this.skinIDInput); this.focusTextField = this.inputField.label; this.createObject('StepTrack', 'StepTrack_mc', 2); this.size(); }; v2.draw = function () { this.prevButton_mc.enabled = this.enabled; this.nextButton_mc.enabled = this.enabled; this.inputField.enabled = this.enabled; this.size(); this.initializing = false; this.__set__visible(this.__visible); }; v2.size = function () { var v2 = this.calcMinHeight(); var v3 = this.calcMinWidth(); if (this.__height < v2) { this.setSize(this.__width, v2); } if (this.__width < v3) { this.setSize(v3, this.__height); } this.layoutControl(); }; v2.calcMinHeight = function () { return 22; }; v2.calcMinWidth = function () { return 40; }; v2.addAsset = function (id, skinID) { var v2 = new Object(); v2.styleName = this; if (skinID == 10) { v2.falseUpSkin = this.upArrowUp; v2.falseOverSkin = this.upArrowOver; v2.falseDownSkin = this.upArrowDown; v2.falseDisabledSkin = this.upArrowDisabled; this.createClassObject(mx.controls.SimpleButton, id, skinID, v2); var v5 = this.nextButton_mc; v5.tabEnabled = false; v5.styleName = this; v5._x = this.__width - v5.__width; v5._y = 0; v5.owner = this; v5.autoRepeat = true; v5.clickHandler = function () { Selection.setSelection(0, 0); }; v5.buttonDownHandler = function () { this.owner.buttonPress(this); }; } else { if (skinID == 11) { v2.falseUpSkin = this.downArrowUp; v2.falseOverSkin = this.downArrowOver; v2.falseDownSkin = this.downArrowDown; v2.falseDisabledSkin = this.downArrowDisabled; this.createClassObject(mx.controls.SimpleButton, id, skinID, v2); var v3 = this.prevButton_mc; v3.tabEnabled = false; v3.styleName = this; v3._x = this.__width - v3.__width; v3._y = this.__height - v3.__height; v3.owner = this; v3.autoRepeat = true; v3.clickHandler = function () { Selection.setSelection(0, 0); }; v3.buttonDownHandler = function () { this.owner.buttonPress(this); }; } else { if (skinID == 9) { this.createClassObject(mx.controls.TextInput, id, skinID); var v4 = this.inputField; v4.styleName = this; v4.setSize(this.__width - this.nextButton_mc.__width, this.__height); v4.restrict = '0-9\\-\\.\\,'; v4.maxChars = this.__maxChars; v4.text = this.value; v4.onSetFocus = function () { this._parent.onSetFocus(); }; v4.onKillFocus = function () { this._parent.onKillFocus(); }; v4.drawFocus = function (b) { this._parent.drawFocus(b); }; v4.onKeyDown = function () { this._parent.onFieldKeyDown(); }; } } } }; v2.setFocus = function () { Selection.setFocus(this.inputField); }; v2.onKillFocus = function () { mx.managers.SystemManager.form.focusManager.defaultPushButtonEnabled = true; super.onKillFocus(); Key.removeListener(this.inputField); if (Number(this.inputField.text) != this.__get__value()) { var v3 = this.checkValidValue(Number(this.inputField.text)); this.inputField.text = v3; this.__set__value(v3); this.dispatchEvent({'type': 'change'}); } }; v2.onSetFocus = function () { super.onSetFocus(); Key.addListener(this.inputField); mx.managers.SystemManager.form.focusManager.defaultPushButtonEnabled = false; }; v2.onFieldKeyDown = function () { var v2 = this.__get__value(); switch (Key.getCode()) { case 40: var v3 = this.__get__value() - this.__get__stepSize(); this.__set__value(v3); if (v2 != this.__get__value()) { this.dispatchEvent({'type': 'change'}); } break; case 38: var v3 = this.__get__stepSize() + this.__get__value(); this.__set__value(v3); if (v2 != this.__get__value()) { this.dispatchEvent({'type': 'change'}); } break; case 36: this.inputField.text = this.minimum; this.__set__value(this.minimum); if (v2 != this.__get__value()) { this.dispatchEvent({'type': 'change'}); } break; case 35: this.inputField.text = this.maximum; this.__set__value(this.maximum); if (v2 != this.__get__value()) { this.dispatchEvent({'type': 'change'}); } break; case 13: this.__set__value(Number(this.inputField.text)); if (v2 == this.__get__value()) break; this.dispatchEvent({'type': 'change'}); } }; v2.__get__nextValue = function () { if (this.checkRange(this.__get__value() + this.__get__stepSize())) { this.__nextValue = this.__get__value() + this.__get__stepSize(); return this.__nextValue; } }; v2.__get__previousValue = function () { if (this.checkRange(this.__value - this.__get__stepSize())) { this.__previousValue = this.__get__value() - this.__get__stepSize(); return this.__previousValue; } }; v2.__set__maxChars = function (num) { this.__maxChars = num; this.inputField.maxChars = this.__maxChars; return this.__get__maxChars(); }; v2.__get__maxChars = function () { return this.__maxChars; }; v2.__get__value = function () { return this.__value; }; v2.__set__value = function (v) { var v2 = this.checkValidValue(v); if (v2 == this.__value) { return undefined; } this.__value = v2; this.inputField.text = this.__value; return this.__get__value(); }; v2.__get__minimum = function () { return this.__minimum; }; v2.__set__minimum = function (v) { this.__minimum = v; return this.__get__minimum(); }; v2.__get__maximum = function () { return this.__maximum; }; v2.__set__maximum = function (v) { this.__maximum = v; return this.__get__maximum(); }; v2.__get__stepSize = function () { return this.__stepSize; }; v2.__set__stepSize = function (v) { this.__stepSize = v; return this.__get__stepSize(); }; v2.onFocus = function () {}; v2.buttonPress = function (button) { var v2 = this.__get__value(); if (button._name == 'nextButton_mc') { this.value += this.stepSize; } else { this.value -= this.stepSize; } if (v2 != this.__get__value()) { this.dispatchEvent({'type': 'change'}); Selection.setSelection(0, 0); } }; v2.checkRange = function (v) { return v >= this.__get__minimum() and v <= this.__get__maximum(); }; v2.checkValidValue = function (val) { var v7 = val / this.__get__stepSize(); var v9 = Math.floor(v7); var v2 = this.__get__stepSize(); var v6 = this.__get__minimum(); var v5 = this.__get__maximum(); if (val > v6 and val < v5) { if (v7 - v9 == 0) { return val; } else { var v8 = Math.floor(val / v2); var v4 = v8 * v2; if (val - v4 >= v2 / 2 && v5 >= v4 + v2 && v6 <= v4 - v2 || val + v2 == v5 && v5 - v4 - v2 > 1.0e-014) { v4 += v2; } return v4; } } else { if (val >= v5) { return v5; } else { return v6; } } }; v2.onLabelChanged = function (o) { var v2 = this.checkValidValue(Number(o.__get__text())); o.__set__text(v2); this.__set__value(v2); }; v2.__get__tabIndex = function () { return this.inputField.tabIndex; }; v2.__set__tabIndex = function (w) { this.inputField.tabIndex = w; return this.__get__tabIndex(); }; v1.symbolName = 'NumericStepper'; v1.symbolOwner = mx.controls.NumericStepper; v1.version = '2.0.2.126'; v2.className = 'NumericStepper'; v2.upArrowUp = 'StepUpArrowUp'; v2.upArrowDown = 'StepUpArrowDown'; v2.upArrowOver = 'StepUpArrowOver'; v2.upArrowDisabled = 'StepUpArrowDisabled'; v2.downArrowUp = 'StepDownArrowUp'; v2.downArrowDown = 'StepDownArrowDown'; v2.downArrowOver = 'StepDownArrowOver'; v2.downArrowDisabled = 'StepDownArrowDisabled'; v2.skinIDUpArrow = 10; v2.skinIDDownArrow = 11; v2.skinIDInput = 9; v2.initializing = true; v2.__visible = true; v2.__minimum = 0; v2.__maximum = 10; v2.__stepSize = 1; v2.__value = 0; v2.__nextValue = 0; v2.__previousValue = 0; v2.clipParameters = {'minimum': 1, 'maximum': 1, 'stepSize': 1, 'value': 1, 'maxChars': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.NumericStepper.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters); v2.addProperty('maxChars', v2.__get__maxChars, v2.__set__maxChars); v2.addProperty('maximum', v2.__get__maximum, v2.__set__maximum); v2.addProperty('minimum', v2.__get__minimum, v2.__set__minimum); v2.addProperty('nextValue', v2.__get__nextValue, function () {}); v2.addProperty('previousValue', v2.__get__previousValue, function () {}); v2.addProperty('stepSize', v2.__get__stepSize, v2.__set__stepSize); v2.addProperty('tabIndex', v2.__get__tabIndex, v2.__set__tabIndex); v2.addProperty('value', v2.__get__value, v2.__set__value); ASSetPropFlags(mx.controls.NumericStepper.prototype, null, 1); } #endinitclip } movieClip 385 __Packages.mx.skins.SkinElement { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.SkinElement) { var v1 = function () { super(); }; mx.skins.SkinElement = v1; var v2 = new MovieClip(); mx.skins.SkinElement.prototype = v2; v1.registerElement = function (name, className) { Object.registerClass(name, (className == undefined) ? mx.skins.SkinElement : className); _global.skinRegistry[name] = true; }; v2.__set__visible = function (visible) { this._visible = visible; }; v2.move = function (x, y) { this._x = x; this._y = y; }; v2.setSize = function (w, h) { this._width = w; this._height = h; }; ASSetPropFlags(mx.skins.SkinElement.prototype, null, 1); } #endinitclip } movieClip 386 __Packages.mx.styles.CSSTextStyles { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSTextStyles) { var v1 = function () {}; mx.styles.CSSTextStyles = v1; var v2 = v1.prototype; v1.addTextStyles = function (o, bColor) { o.addProperty('textAlign', function () { return this._tf.align; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.align = x; }); o.addProperty('fontWeight', function () { return (this._tf.bold != undefined) ? (this._tf.bold ? 'bold' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.bold = x == 'bold'; }); if (bColor) { o.addProperty('color', function () { return this._tf.color; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.color = x; }); } o.addProperty('fontFamily', function () { return this._tf.font; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.font = x; }); o.addProperty('textIndent', function () { return this._tf.indent; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.indent = x; }); o.addProperty('fontStyle', function () { return (this._tf.italic != undefined) ? (this._tf.italic ? 'italic' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.italic = x == 'italic'; }); o.addProperty('marginLeft', function () { return this._tf.leftMargin; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.leftMargin = x; }); o.addProperty('marginRight', function () { return this._tf.rightMargin; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.rightMargin = x; }); o.addProperty('fontSize', function () { return this._tf.size; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.size = x; }); o.addProperty('textDecoration', function () { return (this._tf.underline != undefined) ? (this._tf.underline ? 'underline' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.underline = x == 'underline'; }); o.addProperty('embedFonts', function () { return this._tf.embedFonts; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.embedFonts = x; }); }; ASSetPropFlags(mx.styles.CSSTextStyles.prototype, null, 1); } #endinitclip } movieClip 387 __Packages.mx.styles.StyleManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.StyleManager) { var v1 = function () {}; mx.styles.StyleManager = v1; var v2 = v1.prototype; v1.registerInheritingStyle = function (styleName) { mx.styles.StyleManager.inheritingStyles[styleName] = true; }; v1.isInheritingStyle = function (styleName) { return mx.styles.StyleManager.inheritingStyles[styleName] == true; }; v1.registerColorStyle = function (styleName) { mx.styles.StyleManager.colorStyles[styleName] = true; }; v1.isColorStyle = function (styleName) { return mx.styles.StyleManager.colorStyles[styleName] == true; }; v1.registerColorName = function (colorName, colorValue) { mx.styles.StyleManager.colorNames[colorName] = colorValue; }; v1.isColorName = function (colorName) { return mx.styles.StyleManager.colorNames[colorName] != undefined; }; v1.getColorName = function (colorName) { return mx.styles.StyleManager.colorNames[colorName]; }; v1.inheritingStyles = {'color': true, 'direction': true, 'fontFamily': true, 'fontSize': true, 'fontStyle': true, 'fontWeight': true, 'textAlign': true, 'textIndent': true}; v1.colorStyles = {'barColor': true, 'trackColor': true, 'borderColor': true, 'buttonColor': true, 'color': true, 'dateHeaderColor': true, 'dateRollOverColor': true, 'disabledColor': true, 'fillColor': true, 'highlightColor': true, 'scrollTrackColor': true, 'selectedDateColor': true, 'shadowColor': true, 'strokeColor': true, 'symbolBackgroundColor': true, 'symbolBackgroundDisabledColor': true, 'symbolBackgroundPressedColor': true, 'symbolColor': true, 'symbolDisabledColor': true, 'themeColor': true, 'todayIndicatorColor': true, 'shadowCapColor': true, 'borderCapColor': true, 'focusColor': true}; v1.colorNames = {'black': 0, 'white': 16777215, 'red': 16711680, 'green': 65280, 'blue': 255, 'magenta': 16711935, 'yellow': 16776960, 'cyan': 65535, 'haloGreen': 8453965, 'haloBlue': 2881013, 'haloOrange': 16761344}; v1.TextFormatStyleProps = {'font': true, 'size': true, 'color': true, 'leftMargin': false, 'rightMargin': false, 'italic': true, 'bold': true, 'align': true, 'indent': true, 'underline': false, 'embedFonts': false}; v1.TextStyleMap = {'textAlign': true, 'fontWeight': true, 'color': true, 'fontFamily': true, 'textIndent': true, 'fontStyle': true, 'lineHeight': true, 'marginLeft': true, 'marginRight': true, 'fontSize': true, 'textDecoration': true, 'embedFonts': true}; ASSetPropFlags(mx.styles.StyleManager.prototype, null, 1); } #endinitclip } movieClip 388 __Packages.mx.styles.CSSStyleDeclaration { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSStyleDeclaration) { var v1 = function () {}; mx.styles.CSSStyleDeclaration = v1; var v2 = v1.prototype; v2.__getTextFormat = function (tf, bAll) { var v5 = false; if (this._tf != undefined) { var v2; for (v2 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v2]) { if (tf[v2] == undefined) { var v3 = this._tf[v2]; if (v3 != undefined) { tf[v2] = v3; } else { v5 = true; } } } } return v5; } v5 = true; return v5; }; v2.getStyle = function (styleProp) { var v2 = this[styleProp]; var v3 = mx.styles.StyleManager.getColorName(v2); return (v3 == undefined) ? v2 : v3; }; v1.classConstruct = function () { mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true); return true; }; v1.classConstructed = mx.styles.CSSStyleDeclaration.classConstruct(); v1.CSSTextStylesDependency = mx.styles.CSSTextStyles; ASSetPropFlags(mx.styles.CSSStyleDeclaration.prototype, null, 1); } #endinitclip } movieClip 389 __Packages.mx.controls.SimpleButton { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.SimpleButton) { var v1 = function () { super(); }; mx.controls.SimpleButton = v1; var v2 = new mx.core.UIComponent(); mx.controls.SimpleButton.prototype = v2; v2.init = function (Void) { super.init(); if (this.preset == undefined) { this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; } this.useHandCursor = false; }; v2.createChildren = function (Void) { if (this.preset != undefined) { var v2 = this[this.idNames[this.preset]]; this[this.refNames[this.preset]] = v2; this.skinName = v2; if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } this.initializing = false; } else { if (this.__state == true) { this.setStateVar(true); } else { if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } } } }; v2.setIcon = function (tag, linkageName) { return this.setSkin(tag + 8, linkageName); }; v2.changeIcon = function (tag, linkageName) { this.linkLength = linkageName.length; var v2 = this.stateNames[tag] + 'Icon'; this[v2] = linkageName; this[this.idNames[tag + 8]] = v2; this.setStateVar(this.getState()); }; v2.changeSkin = function (tag, linkageName) { var v2 = this.stateNames[tag] + 'Skin'; this[v2] = linkageName; this[this.idNames[tag]] = v2; this.setStateVar(this.getState()); }; v2.viewIcon = function (varName) { var v4 = varName + 'Icon'; var v3 = this[v4]; if (typeof v3 == 'string') { var v5 = v3; if (this.__emphasized) { if (this[v3 + 'Emphasized'].length > 0) { v3 += 'Emphasized'; } } if (this[v3].length == 0) { return undefined; } v3 = this.setIcon(this.tagMap[v5], this[v3]); if (v3 == undefined && _global.isLivePreview) { v3 = this.setIcon(0, 'ButtonIcon'); } this[v4] = v3; } this.iconName._visible = false; this.iconName = v3; this.iconName._visible = true; }; v2.removeIcons = function () { var v3 = 0; while (v3 < 2) { var v2 = 8; while (v2 < 16) { this.destroyObject(this.idNames[v2]); this[this.stateNames[v2 - 8] + 'Icon'] = ''; ++v2; } ++v3; } this.refresh(); }; v2.setSkin = function (tag, linkageName, initobj) { if (initobj == undefined) { var v3 = super.setSkin(tag, linkageName, {'styleName': this}); this.calcSize(tag, v3); return v3; } var v3 = super.setSkin(tag, linkageName, initobj); this.calcSize(tag, v3); return v3; }; v2.calcSize = function (Void) { this.__width = this._width; this.__height = this._height; }; v2.viewSkin = function (varName, initObj) { var v3 = varName + 'Skin'; var v2 = this[v3]; if (typeof v2 == 'string') { var v4 = v2; if (this.__emphasized) { if (this[v2 + 'Emphasized'].length > 0) { v2 += 'Emphasized'; } } if (this[v2].length == 0) { return undefined; } v2 = this.setSkin(this.tagMap[v4], this[v2], (initObj != undefined) ? initObj : {'styleName': this}); this[v3] = v2; } this.skinName._visible = false; this.skinName = v2; this.skinName._visible = true; }; v2.showEmphasized = function (e) { if (e && !this.__emphatic) { if (mx.controls.SimpleButton.emphasizedStyleDeclaration != undefined) { this.__emphaticStyleName = this.styleName; this.styleName = mx.controls.SimpleButton.emphasizedStyleDeclaration; } this.__emphatic = true; } else { if (this.__emphatic) { this.styleName = this.__emphaticStyleName; } this.__emphatic = false; } }; v2.refresh = function (Void) { var v2 = this.getState(); if (this.enabled == false) { this.viewIcon('disabled'); this.viewSkin('disabled'); } else { this.viewSkin(this.phase); this.viewIcon(this.phase); } this.setView(this.phase == 'down'); this.iconName.enabled = this.enabled; }; v2.setView = function (offset) { if (this.iconName == undefined) { return undefined; } var v2 = offset ? this.btnOffset : 0; this.iconName._x = (this.__width - this.iconName._width) / 2 + v2; this.iconName._y = (this.__height - this.iconName._height) / 2 + v2; }; v2.setStateVar = function (state) { if (state) { if (this.trueOverSkin.length == 0) { this.rolloverSkin = this.tus; } else { this.rolloverSkin = this.trs; } if (this.trueOverIcon.length == 0) { this.rolloverIcon = this.tui; } else { this.rolloverIcon = this.tri; } this.upSkin = this.tus; this.downSkin = this.tds; this.disabledSkin = this.dts; this.upIcon = this.tui; this.downIcon = this.tdi; this.disabledIcon = this.dti; } else { if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } else { this.rolloverSkin = this.frs; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } else { this.rolloverIcon = this.fri; } this.upSkin = this.fus; this.downSkin = this.fds; this.disabledSkin = this.dfs; this.upIcon = this.fui; this.downIcon = this.fdi; this.disabledIcon = this.dfi; } this.__state = state; }; v2.setState = function (state) { if (state != this.__state) { this.setStateVar(state); this.invalidate(); } }; v2.size = function (Void) { this.refresh(); }; v2.draw = function (Void) { if (this.initializing) { this.initializing = false; this.skinName.visible = true; this.iconName.visible = true; } this.size(); }; v2.getState = function (Void) { return this.__state; }; v2.setToggle = function (val) { this.__toggle = val; if (this.__toggle == false) { this.setState(false); } }; v2.getToggle = function (Void) { return this.__toggle; }; v2.__set__toggle = function (val) { this.setToggle(val); return this.__get__toggle(); }; v2.__get__toggle = function () { return this.getToggle(); }; v2.__set__value = function (val) { this.setSelected(val); return this.__get__value(); }; v2.__get__value = function () { return this.getSelected(); }; v2.__set__selected = function (val) { this.setSelected(val); return this.__get__selected(); }; v2.__get__selected = function () { return this.getSelected(); }; v2.setSelected = function (val) { if (this.__toggle) { this.setState(val); } else { this.setState(this.initializing ? val : this.__state); } }; v2.getSelected = function () { return this.__state; }; v2.setEnabled = function (val) { if (this.enabled != val) { super.setEnabled(val); this.invalidate(); } }; v2.onPress = function (Void) { this.pressFocus(); this.phase = 'down'; this.refresh(); this.dispatchEvent({'type': 'buttonDown'}); if (this.autoRepeat) { this.interval = setInterval(this, 'onPressDelay', this.getStyle('repeatDelay')); } }; v2.onPressDelay = function (Void) { this.dispatchEvent({'type': 'buttonDown'}); if (this.autoRepeat) { clearInterval(this.interval); this.interval = setInterval(this, 'onPressRepeat', this.getStyle('repeatInterval')); } }; v2.onPressRepeat = function (Void) { this.dispatchEvent({'type': 'buttonDown'}); updateAfterEvent(); }; v2.onRelease = function (Void) { this.releaseFocus(); this.phase = 'rollover'; if (this.interval != undefined) { clearInterval(this.interval); delete this.interval; } if (this.getToggle()) { this.setState(!this.getState()); } else { this.refresh(); } this.dispatchEvent({'type': 'click'}); }; v2.onDragOut = function (Void) { this.phase = 'up'; this.refresh(); this.dispatchEvent({'type': 'buttonDragOut'}); }; v2.onDragOver = function (Void) { if (this.phase != 'up') { this.onPress(); return undefined; } else { this.phase = 'down'; this.refresh(); } }; v2.onReleaseOutside = function (Void) { this.releaseFocus(); this.phase = 'up'; if (this.interval != undefined) { clearInterval(this.interval); delete this.interval; } }; v2.onRollOver = function (Void) { this.phase = 'rollover'; this.refresh(); }; v2.onRollOut = function (Void) { this.phase = 'up'; this.refresh(); }; v2.getLabel = function (Void) { return this.fui.text; }; v2.setLabel = function (val) { if (typeof this.fui == 'string') { this.createLabel('fui', 8, val); this.fui.styleName = this; } else { this.fui.text = val; } var v4 = this.fui._getTextFormat(); var v2 = v4.getTextExtent2(val); this.fui._width = v2.width + 5; this.fui._height = v2.height + 5; this.iconName = this.fui; this.setView(this.__state); }; v2.__get__emphasized = function () { return this.__emphasized; }; v2.__set__emphasized = function (val) { this.__emphasized = val; var v2 = 0; while (v2 < 8) { this[this.idNames[v2]] = this.stateNames[v2] + 'Skin'; if (typeof this[this.idNames[v2 + 8]] == 'movieclip') { this[this.idNames[v2 + 8]] = this.stateNames[v2] + 'Icon'; } ++v2; } this.showEmphasized(this.__emphasized); this.setStateVar(this.__state); this.invalidateStyle(); return this.__get__emphasized(); }; v2.keyDown = function (e) { if (e.code == 32) { this.onPress(); } }; v2.keyUp = function (e) { if (e.code == 32) { this.onRelease(); } }; v2.onKillFocus = function (newFocus) { super.onKillFocus(); if (this.phase != 'up') { this.phase = 'up'; this.refresh(); } }; v1.symbolName = 'SimpleButton'; v1.symbolOwner = mx.controls.SimpleButton; v1.version = '2.0.2.126'; v2.className = 'SimpleButton'; v2.style3dInset = 4; v2.btnOffset = 1; v2.__toggle = false; v2.__state = false; v2.__emphasized = false; v2.__emphatic = false; v1.falseUp = 0; v1.falseDown = 1; v1.falseOver = 2; v1.falseDisabled = 3; v1.trueUp = 4; v1.trueDown = 5; v1.trueOver = 6; v1.trueDisabled = 7; v2.falseUpSkin = 'SimpleButtonUp'; v2.falseDownSkin = 'SimpleButtonIn'; v2.falseOverSkin = ''; v2.falseDisabledSkin = 'SimpleButtonUp'; v2.trueUpSkin = 'SimpleButtonIn'; v2.trueDownSkin = ''; v2.trueOverSkin = ''; v2.trueDisabledSkin = 'SimpleButtonIn'; v2.falseUpIcon = ''; v2.falseDownIcon = ''; v2.falseOverIcon = ''; v2.falseDisabledIcon = ''; v2.trueUpIcon = ''; v2.trueDownIcon = ''; v2.trueOverIcon = ''; v2.trueDisabledIcon = ''; v2.phase = 'up'; v2.fui = 'falseUpIcon'; v2.fus = 'falseUpSkin'; v2.fdi = 'falseDownIcon'; v2.fds = 'falseDownSkin'; v2.frs = 'falseOverSkin'; v2.fri = 'falseOverIcon'; v2.dfi = 'falseDisabledIcon'; v2.dfs = 'falseDisabledSkin'; v2.tui = 'trueUpIcon'; v2.tus = 'trueUpSkin'; v2.tdi = 'trueDownIcon'; v2.tds = 'trueDownSkin'; v2.trs = 'trueOverSkin'; v2.tri = 'trueOverIcon'; v2.dts = 'trueDisabledSkin'; v2.dti = 'trueDisabledIcon'; v2.rolloverSkin = mx.controls.SimpleButton.prototype.frs; v2.rolloverIcon = mx.controls.SimpleButton.prototype.fri; v2.upSkin = mx.controls.SimpleButton.prototype.fus; v2.downSkin = mx.controls.SimpleButton.prototype.fds; v2.disabledSkin = mx.controls.SimpleButton.prototype.dfs; v2.upIcon = mx.controls.SimpleButton.prototype.fui; v2.downIcon = mx.controls.SimpleButton.prototype.fdi; v2.disabledIcon = mx.controls.SimpleButton.prototype.dfi; v2.initializing = true; v2.idNames = ['fus', 'fds', 'frs', 'dfs', 'tus', 'tds', 'trs', 'dts', 'fui', 'fdi', 'fri', 'dfi', 'tui', 'tdi', 'tri', 'dti']; v2.stateNames = ['falseUp', 'falseDown', 'falseOver', 'falseDisabled', 'trueUp', 'trueDown', 'trueOver', 'trueDisabled']; v2.refNames = ['upSkin', 'downSkin', 'rolloverSkin', 'disabledSkin']; v2.tagMap = {'falseUpSkin': 0, 'falseDownSkin': 1, 'falseOverSkin': 2, 'falseDisabledSkin': 3, 'trueUpSkin': 4, 'trueDownSkin': 5, 'trueOverSkin': 6, 'trueDisabledSkin': 7, 'falseUpIcon': 0, 'falseDownIcon': 1, 'falseOverIcon': 2, 'falseDisabledIcon': 3, 'trueUpIcon': 4, 'trueDownIcon': 5, 'trueOverIcon': 6, 'trueDisabledIcon': 7}; v2.addProperty('emphasized', v2.__get__emphasized, v2.__set__emphasized); v2.addProperty('selected', v2.__get__selected, v2.__set__selected); v2.addProperty('toggle', v2.__get__toggle, v2.__set__toggle); v2.addProperty('value', v2.__get__value, v2.__set__value); ASSetPropFlags(mx.controls.SimpleButton.prototype, null, 1); } #endinitclip } movieClip 390 __Packages.mx.skins.Border { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.Border) { var v1 = function () { super(); }; mx.skins.Border = v1; var v2 = new mx.core.UIObject(); mx.skins.Border.prototype = v2; v2.init = function (Void) { super.init(); }; v1.symbolName = 'Border'; v1.symbolOwner = mx.skins.Border; v2.className = 'Border'; v2.tagBorder = 0; v2.idNames = new Array('border_mc'); ASSetPropFlags(mx.skins.Border.prototype, null, 1); } #endinitclip } movieClip 391 __Packages.mx.skins.RectBorder { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.RectBorder) { var v1 = function () { super(); }; mx.skins.RectBorder = v1; var v2 = new mx.skins.Border(); mx.skins.RectBorder.prototype = v2; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.init = function (Void) { super.init(); }; v2.draw = function (Void) { this.size(); }; v2.getBorderMetrics = function (Void) { var v2 = this.offset; if (this.__borderMetrics == undefined) { this.__borderMetrics = {'left': v2, 'top': v2, 'right': v2, 'bottom': v2}; return this.__borderMetrics; } this.__borderMetrics.left = v2; this.__borderMetrics.top = v2; this.__borderMetrics.right = v2; this.__borderMetrics.bottom = v2; return this.__borderMetrics; }; v2.__get__borderMetrics = function () { return this.getBorderMetrics(); }; v2.drawBorder = function (Void) {}; v2.size = function (Void) { this.drawBorder(); }; v2.setColor = function (Void) { this.drawBorder(); }; v1.symbolName = 'RectBorder'; v1.symbolOwner = mx.skins.RectBorder; v1.version = '2.0.2.126'; v2.className = 'RectBorder'; v2.borderStyleName = 'borderStyle'; v2.borderColorName = 'borderColor'; v2.shadowColorName = 'shadowColor'; v2.highlightColorName = 'highlightColor'; v2.buttonColorName = 'buttonColor'; v2.backgroundColorName = 'backgroundColor'; v2.addProperty('borderMetrics', v2.__get__borderMetrics, function () {}); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.skins.RectBorder.prototype, null, 1); } #endinitclip } movieClip 392 __Packages.mx.controls.TextInput { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.TextInput) { var v1 = function () { super(); }; mx.controls.TextInput = v1; var v2 = new mx.core.UIComponent(); mx.controls.TextInput.prototype = v2; v2.addEventListener = function (event, handler) { if (event == 'enter') { this.addEnterEvents(); } super.addEventListener(event, handler); }; v2.enterOnKeyDown = function () { if (Key.getAscii() == 13) { this.owner.dispatchEvent({'type': 'enter'}); } }; v2.addEnterEvents = function () { if (this.enterListener == undefined) { this.enterListener = new Object(); this.enterListener.owner = this; this.enterListener.onKeyDown = this.enterOnKeyDown; } }; v2.init = function (Void) { super.init(); this.label.styleName = this; this.tabChildren = true; this.tabEnabled = false; this.focusTextField = this.label; this._color = mx.core.UIObject.textColorList; this.label.onSetFocus = function () { this._parent.onSetFocus(); }; this.label.onKillFocus = function (n) { this._parent.onKillFocus(n); }; this.label.drawFocus = function (b) { this._parent.drawFocus(b); }; this.label.onChanged = this.onLabelChanged; }; v2.setFocus = function () { Selection.setFocus(this.label); }; v2.onLabelChanged = function (Void) { this._parent.dispatchEvent({'type': 'change'}); this._parent.dispatchValueChangedEvent(this.__get__text()); }; v2.createChildren = function (Void) { super.createChildren(); if (this.border_mc == undefined) { this.createClassObject(_global.styles.rectBorderClass, 'border_mc', 0, {'styleName': this}); } this.border_mc.swapDepths(this.label); this.label.autoSize = 'none'; }; v2.__get__html = function () { return this.getHtml(); }; v2.__set__html = function (value) { this.setHtml(value); return this.__get__html(); }; v2.getHtml = function () { return this.label.html; }; v2.setHtml = function (value) { if (value != this.label.html) { this.label.html = value; } }; v2.__get__text = function () { return this.getText(); }; v2.__set__text = function (t) { this.setText(t); return this.__get__text(); }; v2.getText = function () { if (this.initializing) { return this.initText; } if (this.label.html == true) { return this.label.htmlText; } return this.label.text; }; v2.setText = function (t) { if (this.initializing) { this.initText = t; } else { var v2 = this.label; if (v2.html == true) { v2.htmlText = t; } else { v2.text = t; } } this.dispatchValueChangedEvent(t); }; v2.size = function (Void) { this.border_mc.setSize(this.__get__width(), this.__get__height()); var v2 = this.border_mc.__get__borderMetrics(); var v6 = v2.left + v2.right; var v3 = v2.top + v2.bottom; var v5 = v2.left; var v4 = v2.top; this.tfx = v5; this.tfy = v4; this.tfw = this.__get__width() - v6; this.tfh = this.__get__height() - v3; this.label.move(this.tfx, this.tfy); this.label.setSize(this.tfw, this.tfh + 1); }; v2.setEnabled = function (enable) { this.label.type = (this.__editable == true || enable == false) ? 'input' : 'dynamic'; this.label.selectable = enable; var v2 = this.getStyle(enable ? 'color' : 'disabledColor'); if (v2 == undefined) { v2 = enable ? 0 : 8947848; } this.setColor(v2); }; v2.setColor = function (col) { this.label.textColor = col; }; v2.onKillFocus = function (newFocus) { if (this.enterListener != undefined) { Key.removeListener(this.enterListener); } if (this.bind != undefined) { this.updateModel(this.__get__text()); } super.onKillFocus(newFocus); }; v2.onSetFocus = function (oldFocus) { var f = Selection.getFocus(); var o = eval(f); if (o != this.label) { Selection.setFocus(this.label); return undefined; } if (this.enterListener != undefined) { Key.addListener(this.enterListener); } super.onSetFocus(oldFocus); }; v2.draw = function (Void) { var v2 = this.label; var v4 = this.getText(); if (this.initializing) { this.initializing = false; delete this.initText; } var v3 = this._getTextFormat(); v2.embedFonts = v3.embedFonts == true; if (v3 != undefined) { v2.setTextFormat(v3); v2.setNewTextFormat(v3); } v2.multiline = false; v2.wordWrap = false; if (v2.html == true) { v2.setTextFormat(v3); v2.htmlText = v4; } else { v2.text = v4; } v2.type = (this.__editable == true || this.enabled == false) ? 'input' : 'dynamic'; this.size(); }; v2.setEditable = function (s) { this.__editable = s; this.label.type = s ? 'input' : 'dynamic'; }; v2.__get__maxChars = function () { return this.label.maxChars; }; v2.__set__maxChars = function (w) { this.label.maxChars = w; return this.__get__maxChars(); }; v2.__get__length = function () { return this.label.length; }; v2.__get__restrict = function () { return this.label.restrict; }; v2.__set__restrict = function (w) { this.label.restrict = (w == '') ? null : w; return this.__get__restrict(); }; v2.__get__hPosition = function () { return this.label.hscroll; }; v2.__set__hPosition = function (w) { this.label.hscroll = w; return this.__get__hPosition(); }; v2.__get__maxHPosition = function () { return this.label.maxhscroll; }; v2.__get__editable = function () { return this.__editable; }; v2.__set__editable = function (w) { this.setEditable(w); return this.__get__editable(); }; v2.__get__password = function () { return this.label.password; }; v2.__set__password = function (w) { this.label.password = w; return this.__get__password(); }; v2.__get__tabIndex = function () { return this.label.tabIndex; }; v2.__set__tabIndex = function (w) { this.label.tabIndex = w; return this.__get__tabIndex(); }; v2.__set___accProps = function (val) { this.label._accProps = val; return this.__get___accProps(); }; v2.__get___accProps = function () { return this.label._accProps; }; v1.symbolName = 'TextInput'; v1.symbolOwner = mx.controls.TextInput; v1.version = '2.0.2.126'; v2.className = 'TextInput'; v2.initializing = true; v2.clipParameters = {'text': 1, 'editable': 1, 'password': 1, 'maxChars': 1, 'restrict': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters); v2._maxWidth = mx.core.UIComponent.kStretch; v2.__editable = true; v2.initText = ''; v2.addProperty('_accProps', v2.__get___accProps, v2.__set___accProps); v2.addProperty('editable', v2.__get__editable, v2.__set__editable); v2.addProperty('hPosition', v2.__get__hPosition, v2.__set__hPosition); v2.addProperty('html', v2.__get__html, v2.__set__html); v2.addProperty('length', v2.__get__length, function () {}); v2.addProperty('maxChars', v2.__get__maxChars, v2.__set__maxChars); v2.addProperty('maxHPosition', v2.__get__maxHPosition, function () {}); v2.addProperty('password', v2.__get__password, v2.__set__password); v2.addProperty('restrict', v2.__get__restrict, v2.__set__restrict); v2.addProperty('tabIndex', v2.__get__tabIndex, v2.__set__tabIndex); v2.addProperty('text', v2.__get__text, v2.__set__text); ASSetPropFlags(mx.controls.TextInput.prototype, null, 1); } #endinitclip } movieClip 394 __Packages.mx.managers.SystemManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.SystemManager) { var v1 = function () {}; mx.managers.SystemManager = v1; var v2 = v1.prototype; v1.init = function (Void) { if (mx.managers.SystemManager._initialized == false) { mx.managers.SystemManager._initialized = true; mx.events.EventDispatcher.initialize(mx.managers.SystemManager); Mouse.addListener(mx.managers.SystemManager); Stage.addListener(mx.managers.SystemManager); mx.managers.SystemManager._xAddEventListener = mx.managers.SystemManager.addEventListener; mx.managers.SystemManager.addEventListener = mx.managers.SystemManager.__addEventListener; mx.managers.SystemManager._xRemoveEventListener = mx.managers.SystemManager.removeEventListener; mx.managers.SystemManager.removeEventListener = mx.managers.SystemManager.__removeEventListener; } }; v1.addFocusManager = function (f) { mx.managers.SystemManager.form = f; f.focusManager.activate(); }; v1.removeFocusManager = function (f) {}; v1.onMouseDown = function (Void) { var v1 = mx.managers.SystemManager.form; v1.focusManager._onMouseDown(); }; v1.onResize = function (Void) { var v7 = Stage.width; var v6 = Stage.height; var v9 = _global.origWidth; var v8 = _global.origHeight; var v3 = Stage.align; var v5 = (v9 - v7) / 2; var v4 = (v8 - v6) / 2; if (v3 == 'T') { v4 = 0; } else { if (v3 == 'B') { v4 = v8 - v6; } else { if (v3 == 'L') { v5 = 0; } else { if (v3 == 'R') { v5 = v9 - v7; } else { if (v3 == 'LT') { v4 = 0; v5 = 0; } else { if (v3 == 'TR') { v4 = 0; v5 = v9 - v7; } else { if (v3 == 'LB') { v4 = v8 - v6; v5 = 0; } else { if (v3 == 'RB') { v4 = v8 - v6; v5 = v9 - v7; } } } } } } } } if (mx.managers.SystemManager.__screen == undefined) { mx.managers.SystemManager.__screen = new Object(); } mx.managers.SystemManager.__screen.x = v5; mx.managers.SystemManager.__screen.y = v4; mx.managers.SystemManager.__screen.width = v7; mx.managers.SystemManager.__screen.height = v6; _root.focusManager.relocate(); mx.managers.SystemManager.dispatchEvent({'type': 'resize'}); }; v1.__get__screen = function () { mx.managers.SystemManager.init(); if (mx.managers.SystemManager.__screen == undefined) { mx.managers.SystemManager.onResize(); } return mx.managers.SystemManager.__screen; }; v1._initialized = false; v1.idleFrames = 0; v1.isMouseDown = false; v1.forms = new Array(); v1.addProperty('screen', v1.__get__screen, function () {}); ASSetPropFlags(mx.managers.SystemManager.prototype, null, 1); } #endinitclip } movieClip 395 __Packages.mx.events.UIEventDispatcher { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.events) { _global.mx.events = new Object(); } if (!_global.mx.events.UIEventDispatcher) { var v1 = function () { super(); }; mx.events.UIEventDispatcher = v1; var v2 = new mx.events.EventDispatcher(); mx.events.UIEventDispatcher.prototype = v2; v1.addKeyEvents = function (obj) { if (obj.keyHandler == undefined) { obj.keyHandler = new Object(); var v1 = obj.keyHandler; v1.owner = obj; v1.onKeyDown = mx.events.UIEventDispatcher._fEventDispatcher.onKeyDown; v1.onKeyUp = mx.events.UIEventDispatcher._fEventDispatcher.onKeyUp; } Key.addListener(obj.keyHandler); }; v1.removeKeyEvents = function (obj) { Key.removeListener(obj.keyHandler); }; v1.addLoadEvents = function (obj) { if (obj.onLoad == undefined) { obj.onLoad = mx.events.UIEventDispatcher._fEventDispatcher.onLoad; obj.onUnload = mx.events.UIEventDispatcher._fEventDispatcher.onUnload; if (obj.getBytesTotal() == obj.getBytesLoaded()) { obj.doLater(obj, 'onLoad'); } } }; v1.removeLoadEvents = function (obj) { delete obj.onLoad; delete obj.onUnload; }; v1.initialize = function (obj) { if (mx.events.UIEventDispatcher._fEventDispatcher == undefined) { mx.events.UIEventDispatcher._fEventDispatcher = new mx.events.UIEventDispatcher(); } obj.addEventListener = mx.events.UIEventDispatcher._fEventDispatcher.__addEventListener; obj.__origAddEventListener = mx.events.UIEventDispatcher._fEventDispatcher.addEventListener; obj.removeEventListener = mx.events.UIEventDispatcher._fEventDispatcher.removeEventListener; obj.dispatchEvent = mx.events.UIEventDispatcher._fEventDispatcher.dispatchEvent; obj.dispatchQueue = mx.events.UIEventDispatcher._fEventDispatcher.dispatchQueue; }; v2.dispatchEvent = function (eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + 'Handler'](eventObj); this.dispatchQueue(mx.events.EventDispatcher, eventObj); this.dispatchQueue(this, eventObj); }; v2.onKeyDown = function (Void) { this.owner.dispatchEvent({'type': 'keyDown', 'code': Key.getCode(), 'ascii': Key.getAscii(), 'shiftKey': Key.isDown(16), 'ctrlKey': Key.isDown(17)}); }; v2.onKeyUp = function (Void) { this.owner.dispatchEvent({'type': 'keyUp', 'code': Key.getCode(), 'ascii': Key.getAscii(), 'shiftKey': Key.isDown(16), 'ctrlKey': Key.isDown(17)}); }; v2.onLoad = function (Void) { if (this.__sentLoadEvent != true) { this.dispatchEvent({'type': 'load'}); } this.__sentLoadEvent = true; }; v2.onUnload = function (Void) { this.dispatchEvent({'type': 'unload'}); }; v2.__addEventListener = function (event, handler) { this.__origAddEventListener(event, handler); var v3 = mx.events.UIEventDispatcher.lowLevelEvents; for (var v5 in v3) { if (mx.events.UIEventDispatcher[v5][event] != undefined) { var v2 = v3[v5][0]; mx.events.UIEventDispatcher[v2](this); } } }; v2.removeEventListener = function (event, handler) { var v6 = '__q_' + event; mx.events.EventDispatcher._removeEventListener(this[v6], event, handler); if (this[v6].length == 0) { var v2 = mx.events.UIEventDispatcher.lowLevelEvents; for (var v5 in v2) { if (mx.events.UIEventDispatcher[v5][event] != undefined) { var v3 = v2[v5][1]; mx.events.UIEventDispatcher[v2[v5][1]](this); } } } }; v1.keyEvents = {'keyDown': 1, 'keyUp': 1}; v1.loadEvents = {'load': 1, 'unload': 1}; v1.lowLevelEvents = {'keyEvents': ['addKeyEvents', 'removeKeyEvents'], 'loadEvents': ['addLoadEvents', 'removeLoadEvents']}; v1._fEventDispatcher = undefined; ASSetPropFlags(mx.events.UIEventDispatcher.prototype, null, 1); } #endinitclip } movieClip 396 __Packages.mx.skins.ColoredSkinElement { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.ColoredSkinElement) { var v1 = function () {}; mx.skins.ColoredSkinElement = v1; var v2 = v1.prototype; v2.setColor = function (c) { if (c != undefined) { var v2 = new Color(this); v2.setRGB(c); } }; v2.draw = function (Void) { this.setColor(this.getStyle(this._color)); this.onEnterFrame = undefined; }; v2.invalidateStyle = function (Void) { this.onEnterFrame = this.draw; }; v1.setColorStyle = function (p, colorStyle) { if (p._color == undefined) { p._color = colorStyle; } p.setColor = mx.skins.ColoredSkinElement.mixins.setColor; p.invalidateStyle = mx.skins.ColoredSkinElement.mixins.invalidateStyle; p.draw = mx.skins.ColoredSkinElement.mixins.draw; p.setColor(p.getStyle(colorStyle)); }; v1.mixins = new mx.skins.ColoredSkinElement(); ASSetPropFlags(mx.skins.ColoredSkinElement.prototype, null, 1); } #endinitclip } movieClip 397 __Packages.mx.core.ext.UIObjectExtensions { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ext) { _global.mx.core.ext = new Object(); } if (!_global.mx.core.ext.UIObjectExtensions) { var v1 = function () {}; mx.core.ext.UIObjectExtensions = v1; var v2 = v1.prototype; v1.addGeometry = function (tf, ui) { tf.addProperty('width', ui.__get__width, null); tf.addProperty('height', ui.__get__height, null); tf.addProperty('left', ui.__get__left, null); tf.addProperty('x', ui.__get__x, null); tf.addProperty('top', ui.__get__top, null); tf.addProperty('y', ui.__get__y, null); tf.addProperty('right', ui.__get__right, null); tf.addProperty('bottom', ui.__get__bottom, null); tf.addProperty('visible', ui.__get__visible, ui.__set__visible); }; v1.Extensions = function () { if (mx.core.ext.UIObjectExtensions.bExtended == true) { return true; } mx.core.ext.UIObjectExtensions.bExtended = true; var v6 = mx.core.UIObject.prototype; var v9 = mx.skins.SkinElement.prototype; mx.core.ext.UIObjectExtensions.addGeometry(v9, v6); mx.events.UIEventDispatcher.initialize(v6); var v13 = mx.skins.ColoredSkinElement; mx.styles.CSSTextStyles.addTextStyles(v6); var v5 = MovieClip.prototype; v5.getTopLevel = v6.getTopLevel; v5.createLabel = v6.createLabel; v5.createObject = v6.createObject; v5.createClassObject = v6.createClassObject; v5.createEmptyObject = v6.createEmptyObject; v5.destroyObject = v6.destroyObject; _global.ASSetPropFlags(v5, 'getTopLevel', 1); _global.ASSetPropFlags(v5, 'createLabel', 1); _global.ASSetPropFlags(v5, 'createObject', 1); _global.ASSetPropFlags(v5, 'createClassObject', 1); _global.ASSetPropFlags(v5, 'createEmptyObject', 1); _global.ASSetPropFlags(v5, 'destroyObject', 1); v5.__getTextFormat = v6.__getTextFormat; v5._getTextFormat = v6._getTextFormat; v5.getStyleName = v6.getStyleName; v5.getStyle = v6.getStyle; _global.ASSetPropFlags(v5, '__getTextFormat', 1); _global.ASSetPropFlags(v5, '_getTextFormat', 1); _global.ASSetPropFlags(v5, 'getStyleName', 1); _global.ASSetPropFlags(v5, 'getStyle', 1); var v7 = TextField.prototype; mx.core.ext.UIObjectExtensions.addGeometry(v7, v6); v7.addProperty('enabled', function () { return this.__enabled; }, function (x) { this.__enabled = x; this.invalidateStyle(); }); v7.move = v9.move; v7.setSize = v9.setSize; v7.invalidateStyle = function () { this.invalidateFlag = true; }; v7.draw = function () { if (this.invalidateFlag) { this.invalidateFlag = false; var v2 = this._getTextFormat(); this.setTextFormat(v2); this.setNewTextFormat(v2); this.embedFonts = v2.embedFonts == true; if (this.__text != undefined) { if (this.text == '') { this.text = this.__text; } delete this.__text; } this._visible = true; } }; v7.setColor = function (color) { this.textColor = color; }; v7.getStyle = v5.getStyle; v7.__getTextFormat = v6.__getTextFormat; v7.setValue = function (v) { this.text = v; }; v7.getValue = function () { return this.text; }; v7.addProperty('value', function () { return this.getValue(); }, function (v) { this.setValue(v); }); v7._getTextFormat = function () { var v2 = this.stylecache.tf; if (v2 != undefined) { return v2; } v2 = new TextFormat(); this.__getTextFormat(v2); this.stylecache.tf = v2; if (this.__enabled == false) { if (this.enabledColor == undefined) { var v4 = this.getTextFormat(); this.enabledColor = v4.color; } var v3 = this.getStyle('disabledColor'); v2.color = v3; return v2; } if (this.enabledColor != undefined) { if (v2.color == undefined) { v2.color = this.enabledColor; } } return v2; }; v7.getPreferredWidth = function () { this.draw(); return this.textWidth + 4; }; v7.getPreferredHeight = function () { this.draw(); return this.textHeight + 4; }; TextFormat.prototype.getTextExtent2 = function (s) { var v3 = _root._getTextExtent; if (v3 == undefined) { _root.createTextField('_getTextExtent', -2, 0, 0, 1000, 100); v3 = _root._getTextExtent; v3._visible = false; } _root._getTextExtent.text = s; var v4 = this.align; this.align = 'left'; _root._getTextExtent.setTextFormat(this); this.align = v4; return {'width': v3.textWidth, 'height': v3.textHeight}; }; if (_global.style == undefined) { _global.style = new mx.styles.CSSStyleDeclaration(); _global.cascadingStyles = true; _global.styles = new Object(); _global.skinRegistry = new Object(); if (_global._origWidth == undefined) { _global.origWidth = Stage.width; _global.origHeight = Stage.height; } } var v4 = _root; while (v4._parent != undefined) { v4 = v4._parent; } v4.addProperty('width', function () { return Stage.width; }, null); v4.addProperty('height', function () { return Stage.height; }, null); _global.ASSetPropFlags(v4, 'width', 1); _global.ASSetPropFlags(v4, 'height', 1); return true; }; v1.bExtended = false; v1.UIObjectExtended = mx.core.ext.UIObjectExtensions.Extensions(); v1.UIObjectDependency = mx.core.UIObject; v1.SkinElementDependency = mx.skins.SkinElement; v1.CSSTextStylesDependency = mx.styles.CSSTextStyles; v1.UIEventDispatcherDependency = mx.events.UIEventDispatcher; ASSetPropFlags(mx.core.ext.UIObjectExtensions.prototype, null, 1); } #endinitclip } movieClip 398 __Packages.mx.skins.halo.Defaults { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.Defaults) { var v1 = function () {}; mx.skins.halo.Defaults = v1; var v2 = v1.prototype; v1.setThemeDefaults = function () { var v2 = _global.style; v2.themeColor = 8453965; v2.disabledColor = 8684164; v2.modalTransparency = 0; v2.filled = true; v2.stroked = true; v2.strokeWidth = 1; v2.strokeColor = 0; v2.fillColor = 16777215; v2.repeatInterval = 35; v2.repeatDelay = 500; v2.fontFamily = '_sans'; v2.fontSize = 12; v2.selectionColor = 13500353; v2.rollOverColor = 14942166; v2.useRollOver = true; v2.backgroundDisabledColor = 14540253; v2.selectionDisabledColor = 14540253; v2.selectionDuration = 200; v2.openDuration = 250; v2.borderStyle = 'inset'; v2.color = 734012; v2.textSelectedColor = 24371; v2.textRollOverColor = 2831164; v2.textDisabledColor = 16777215; v2.vGridLines = true; v2.hGridLines = false; v2.vGridLineColor = 6710886; v2.hGridLineColor = 6710886; v2.headerColor = 15395562; v2.indentation = 17; v2.folderOpenIcon = 'TreeFolderOpen'; v2.folderClosedIcon = 'TreeFolderClosed'; v2.defaultLeafIcon = 'TreeNodeIcon'; v2.disclosureOpenIcon = 'TreeDisclosureOpen'; v2.disclosureClosedIcon = 'TreeDisclosureClosed'; v2.popupDuration = 150; v2.todayColor = 6710886; _global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.ScrollSelectList; v2.backgroundColor = 16777215; v2.borderColor = 13290186; v2.borderStyle = 'inset'; _global.styles.ComboBox = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.ComboBox; v2.borderStyle = 'inset'; _global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.NumericStepper; v2.textAlign = 'center'; _global.styles.RectBorder = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.RectBorder; v2.borderColor = 14015965; v2.buttonColor = 7305079; v2.shadowColor = 15658734; v2.highlightColor = 12897484; v2.shadowCapColor = 14015965; v2.borderCapColor = 9542041; var v4 = new Object(); v4.borderColor = 16711680; v4.buttonColor = 16711680; v4.shadowColor = 16711680; v4.highlightColor = 16711680; v4.shadowCapColor = 16711680; v4.borderCapColor = 16711680; mx.core.UIComponent.prototype.origBorderStyles = v4; var v3; _global.styles.TextInput = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.TextInput; v3.backgroundColor = 16777215; v3.borderStyle = 'inset'; _global.styles.TextArea = _global.styles.TextInput; _global.styles.Window = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Window; v3.borderStyle = 'default'; _global.styles.windowStyles = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.windowStyles; v3.fontWeight = 'bold'; _global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.dataGridStyles; v3.fontWeight = 'bold'; _global.styles.Alert = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Alert; v3.borderStyle = 'alert'; _global.styles.ScrollView = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.ScrollView; v3.borderStyle = 'inset'; _global.styles.View = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.View; v3.borderStyle = 'none'; _global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.ProgressBar; v3.color = 11187123; v3.fontWeight = 'bold'; _global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.AccordionHeader; v3.fontWeight = 'bold'; v3.fontSize = '11'; _global.styles.Accordion = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Accordion; v3.borderStyle = 'solid'; v3.backgroundColor = 16777215; v3.borderColor = 9081738; v3.headerHeight = 22; v3.marginBottom = -1; v3.marginTop = -1; v3.marginRight = -1; v3.marginLeft = -1; v3.verticalGap = -1; _global.styles.DateChooser = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.DateChooser; v3.borderColor = 9542041; v3.headerColor = 16777215; _global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.CalendarLayout; v3.fontSize = 10; v3.textAlign = 'right'; v3.color = 2831164; _global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.WeekDayStyle; v3.fontWeight = 'bold'; v3.fontSize = 11; v3.textAlign = 'center'; v3.color = 2831164; _global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.TodayStyle; v3.color = 16777215; _global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.HeaderDateText; v3.fontSize = 12; v3.fontWeight = 'bold'; v3.textAlign = 'center'; }; v2.drawRoundRect = function (x, y, w, h, r, c, alpha, rot, gradient, ratios) { if (typeof r == 'object') { var v18 = r.br; var v16 = r.bl; var v15 = r.tl; var v10 = r.tr; } else { var v10 = r; var v15 = v10; var v16 = v15; var v18 = v16; } if (typeof c == 'object') { if (typeof alpha != 'object') { var v9 = [alpha, alpha]; } else { var v9 = alpha; } if (ratios == undefined) { ratios = [0, 255]; } var v14 = h * 0.7; if (typeof rot != 'object') { var v11 = {'matrixType': 'box', 'x': -v14, 'y': v14, 'w': w * 2, 'h': h * 4, 'r': rot * 0.0174532925199433}; } else { var v11 = rot; } if (gradient == 'radial') { this.beginGradientFill('radial', c, v9, ratios, v11); } else { this.beginGradientFill('linear', c, v9, ratios, v11); } } else { if (c != undefined) { this.beginFill(c, alpha); } } r = v18; var v13 = r - r * Math.SQRT1_2; var v12 = r - r * 0.414213562373095; this.moveTo(x + w, y + h - r); this.lineTo(x + w, y + h - r); this.curveTo(x + w, y + h - v12, x + w - v13, y + h - v13); this.curveTo(x + w - v12, y + h, x + w - r, y + h); r = v16; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x + r, y + h); this.curveTo(x + v12, y + h, x + v13, y + h - v13); this.curveTo(x, y + h - v12, x, y + h - r); r = v15; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x, y + r); this.curveTo(x, y + v12, x + v13, y + v13); this.curveTo(x + v12, y, x + r, y); r = v10; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x + w - r, y); this.curveTo(x + w - v12, y, x + w - v13, y + v13); this.curveTo(x + w, y + v12, x + w, y + r); this.lineTo(x + w, y + h - r); if (c != undefined) { this.endFill(); } }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); mx.skins.halo.Defaults.setThemeDefaults(); mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return true; }; v1.classConstructed = mx.skins.halo.Defaults.classConstruct(); v1.CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; v1.UIObjectDependency = mx.core.UIObject; ASSetPropFlags(mx.skins.halo.Defaults.prototype, null, 1); } #endinitclip } movieClip 399 __Packages.mx.managers.DepthManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.DepthManager) { var v1 = function () { MovieClip.prototype.createClassChildAtDepth = this.createClassChildAtDepth; MovieClip.prototype.createChildAtDepth = this.createChildAtDepth; MovieClip.prototype.setDepthTo = this.setDepthTo; MovieClip.prototype.setDepthAbove = this.setDepthAbove; MovieClip.prototype.setDepthBelow = this.setDepthBelow; MovieClip.prototype.findNextAvailableDepth = this.findNextAvailableDepth; MovieClip.prototype.shuffleDepths = this.shuffleDepths; MovieClip.prototype.getDepthByFlag = this.getDepthByFlag; MovieClip.prototype.buildDepthTable = this.buildDepthTable; _global.ASSetPropFlags(MovieClip.prototype, 'createClassChildAtDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'createChildAtDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthTo', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthAbove', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthBelow', 1); _global.ASSetPropFlags(MovieClip.prototype, 'findNextAvailableDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'shuffleDepths', 1); _global.ASSetPropFlags(MovieClip.prototype, 'getDepthByFlag', 1); _global.ASSetPropFlags(MovieClip.prototype, 'buildDepthTable', 1); }; mx.managers.DepthManager = v1; var v2 = v1.prototype; v1.sortFunction = function (a, b) { if (a.getDepth() > b.getDepth()) { return 1; } return -1; }; v1.test = function (depth) { if (depth == mx.managers.DepthManager.reservedDepth) { return false; } else { return true; } }; v1.createClassObjectAtDepth = function (className, depthSpace, initObj) { var v1; switch (depthSpace) { case mx.managers.DepthManager.kCursor: v1 = mx.managers.DepthManager.holder.createClassChildAtDepth(className, mx.managers.DepthManager.kTopmost, initObj); return v1; case mx.managers.DepthManager.kTooltip: v1 = mx.managers.DepthManager.holder.createClassChildAtDepth(className, mx.managers.DepthManager.kTop, initObj); return v1; } return v1; }; v1.createObjectAtDepth = function (linkageName, depthSpace, initObj) { var v1; switch (depthSpace) { case mx.managers.DepthManager.kCursor: v1 = mx.managers.DepthManager.holder.createChildAtDepth(linkageName, mx.managers.DepthManager.kTopmost, initObj); return v1; case mx.managers.DepthManager.kTooltip: v1 = mx.managers.DepthManager.holder.createChildAtDepth(linkageName, mx.managers.DepthManager.kTop, initObj); return v1; } return v1; }; v2.createClassChildAtDepth = function (className, depthFlag, initObj) { if (this._childCounter == undefined) { this._childCounter = 0; } var v3 = this.buildDepthTable(); var v2 = this.getDepthByFlag(depthFlag, v3); var v6 = 'down'; if (depthFlag == mx.managers.DepthManager.kBottom) { v6 = 'up'; } var v5; if (v3[v2] != undefined) { v5 = v2; v2 = this.findNextAvailableDepth(v2, v3, v6); } var v4 = this.createClassObject(className, 'depthChild' + this._childCounter++, v2, initObj); if (v5 != undefined) { v3[v2] = v4; this.shuffleDepths(v4, v5, v3, v6); } if (depthFlag == mx.managers.DepthManager.kTopmost) { v4._topmost = true; } return v4; }; v2.createChildAtDepth = function (linkageName, depthFlag, initObj) { if (this._childCounter == undefined) { this._childCounter = 0; } var v3 = this.buildDepthTable(); var v2 = this.getDepthByFlag(depthFlag, v3); var v6 = 'down'; if (depthFlag == mx.managers.DepthManager.kBottom) { v6 = 'up'; } var v5; if (v3[v2] != undefined) { v5 = v2; v2 = this.findNextAvailableDepth(v2, v3, v6); } var v4 = this.createObject(linkageName, 'depthChild' + this._childCounter++, v2, initObj); if (v5 != undefined) { v3[v2] = v4; this.shuffleDepths(v4, v5, v3, v6); } if (depthFlag == mx.managers.DepthManager.kTopmost) { v4._topmost = true; } return v4; }; v2.setDepthTo = function (depthFlag) { var v2 = this._parent.buildDepthTable(); var v3 = this._parent.getDepthByFlag(depthFlag, v2); if (v2[v3] != undefined) { this.shuffleDepths(this, v3, v2, undefined); } else { this.swapDepths(v3); } if (depthFlag == mx.managers.DepthManager.kTopmost) { this._topmost = true; } else { delete this._topmost; } }; v2.setDepthAbove = function (targetInstance) { if (targetInstance._parent != this._parent) { return undefined; } var v2 = targetInstance.getDepth() + 1; var v3 = this._parent.buildDepthTable(); if (v3[v2] != undefined && this.getDepth() < v2) { v2 -= 1; } if (v2 > mx.managers.DepthManager.highestDepth) { v2 = mx.managers.DepthManager.highestDepth; } if (v2 == mx.managers.DepthManager.highestDepth) { this._parent.shuffleDepths(this, v2, v3, 'down'); } else { if (v3[v2] != undefined) { this._parent.shuffleDepths(this, v2, v3, undefined); } else { this.swapDepths(v2); } } }; v2.setDepthBelow = function (targetInstance) { if (targetInstance._parent != this._parent) { return undefined; } var v6 = targetInstance.getDepth() - 1; var v3 = this._parent.buildDepthTable(); if (v3[v6] != undefined && this.getDepth() > v6) { v6 += 1; } var v4 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; var v5; for (v5 in v3) { var v2 = v3[v5]; if (v2._parent != undefined) { v4 = Math.min(v4, v2.getDepth()); } } if (v6 < v4) { v6 = v4; } if (v6 == v4) { this._parent.shuffleDepths(this, v6, v3, 'up'); } else { if (v3[v6] != undefined) { this._parent.shuffleDepths(this, v6, v3, undefined); } else { this.swapDepths(v6); } } }; v2.findNextAvailableDepth = function (targetDepth, depthTable, direction) { var v5 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; if (targetDepth < v5) { targetDepth = v5; } if (depthTable[targetDepth] == undefined) { return targetDepth; } var v2 = targetDepth; var v1 = targetDepth; if (direction == 'down') { while (depthTable[v1] != undefined) { --v1; } return v1; } while (depthTable[v2] != undefined) { ++v2; } return v2; }; v2.shuffleDepths = function (subject, targetDepth, depthTable, direction) { var v9 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; var v8 = v9; var v5; for (v5 in depthTable) { var v7 = depthTable[v5]; if (v7._parent != undefined) { v9 = Math.min(v9, v7.getDepth()); } } if (direction == undefined) { if (subject.getDepth() > targetDepth) { direction = 'up'; } else { direction = 'down'; } } var v1 = new Array(); for (v5 in depthTable) { v7 = depthTable[v5]; if (v7._parent != undefined) { v1.push(v7); } } v1.sort(mx.managers.DepthManager.sortFunction); if (direction == 'up') { var v3; var v11; while (v1.length > 0) { v3 = v1.pop(); if (v3 == subject) { break; } } while (v1.length > 0) { v11 = subject.getDepth(); v3 = v1.pop(); var v4 = v3.getDepth(); if (v11 > v4 + 1) { if (v4 >= 0) { subject.swapDepths(v4 + 1); } else { if (v11 > v8 && v4 < v8) { subject.swapDepths(v8); } } } subject.swapDepths(v3); if (v4 == targetDepth) { break; } } } else { if (direction == 'down') { var v3; while (v1.length > 0) { v3 = v1.shift(); if (v3 == subject) { break; } } while (v1.length > 0) { var v11 = v3.getDepth(); v3 = v1.shift(); var v4 = v3.getDepth(); if (v11 < v4 - 1 && v4 > 0) { subject.swapDepths(v4 - 1); } subject.swapDepths(v3); if (v4 == targetDepth) { break; } } } } }; v2.getDepthByFlag = function (depthFlag, depthTable) { var v2 = 0; if (depthFlag == mx.managers.DepthManager.kTop || depthFlag == mx.managers.DepthManager.kNotopmost) { var v5 = 0; var v7 = false; var v8; for (v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { if (!v9._topmost) { v2 = Math.max(v2, v9.getDepth()); } else { if (!v7) { v5 = v9.getDepth(); v7 = true; } else { v5 = Math.min(v5, v9.getDepth()); } } } } } v2 += 20; if (v7) { if (v2 >= v5) { v2 = v5 - 1; } } } else { if (depthFlag == mx.managers.DepthManager.kBottom) { for (var v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { v2 = Math.min(v2, v9.getDepth()); } } } v2 -= 20; } else { if (depthFlag == mx.managers.DepthManager.kTopmost) { for (var v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { v2 = Math.max(v2, v9.getDepth()); } } } v2 += 100; } } } if (v2 >= mx.managers.DepthManager.highestDepth) { v2 = mx.managers.DepthManager.highestDepth; } var v6 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; for (v9 in depthTable) { var v4 = depthTable[v9]; if (v4._parent != undefined) { v6 = Math.min(v6, v4.getDepth()); } } if (v2 <= v6) { v2 = v6; } return v2; }; v2.buildDepthTable = function (Void) { var v5 = new Array(); var v4; for (v4 in this) { var v2 = this[v4]; var v3 = typeof v2; if (v3 == 'movieclip' || v3 == 'object' && v2.__getTextFormat != undefined) { if (v2._parent == this) { v5[v2.getDepth()] = v2; } } } return v5; }; v1.reservedDepth = 1048575; v1.highestDepth = 1048574; v1.lowestDepth = -16383; v1.numberOfAuthortimeLayers = 383; v1.kCursor = 101; v1.kTooltip = 102; v1.kTop = 201; v1.kBottom = 202; v1.kTopmost = 203; v1.kNotopmost = 204; v1.holder = _root.createEmptyMovieClip('reserved', mx.managers.DepthManager.reservedDepth); v1.__depthManager = new mx.managers.DepthManager(); ASSetPropFlags(mx.managers.DepthManager.prototype, null, 1); } #endinitclip } movieClip 400 __Packages.mx.managers.FocusManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.FocusManager) { var v1 = function () { super(); }; mx.managers.FocusManager = v1; var v2 = new mx.core.UIComponent(); mx.managers.FocusManager.prototype = v2; v2.__get__defaultPushButton = function () { return this.__defaultPushButton; }; v2.__set__defaultPushButton = function (x) { if (x != this.__defaultPushButton) { this.__defaultPushButton.__set__emphasized(false); this.__defaultPushButton = x; this.defPushButton = x; x.__set__emphasized(true); } return this.__get__defaultPushButton(); }; v2.getMaxTabIndex = function (o) { var v3 = 0; var v6; for (v6 in o) { var v2 = o[v6]; if (v2._parent == o) { if (v2.tabIndex != undefined) { if (v2.tabIndex > v3) { v3 = v2.tabIndex; } } if (v2.tabChildren == true) { var v4 = this.getMaxTabIndex(v2); if (v4 > v3) { v3 = v4; } } } } return v3; }; v2.getNextTabIndex = function (Void) { return this.getMaxTabIndex(this.form) + 1; }; v2.__get__nextTabIndex = function () { return this.getNextTabIndex(); }; v2.relocate = function (Void) { var v2 = mx.managers.SystemManager.__get__screen(); this.move(v2.x - 1, v2.y - 1); }; v2.init = function (Void) { super.init(); this.tabEnabled = false; this._height = 1; this._width = 1; this._y = -1; this._x = -1; this._alpha = 0; this._parent.focusManager = this; this._parent.tabChildren = true; this._parent.tabEnabled = false; this.form = this._parent; this._parent.addEventListener('hide', this); this._parent.addEventListener('reveal', this); mx.managers.SystemManager.init(); mx.managers.SystemManager.addFocusManager(this.form); this.tabCapture.tabIndex = 0; this.watch('enabled', this.enabledChanged); Selection.addListener(this); this.lastMouse = new Object(); _global.ASSetPropFlags(this._parent, 'focusManager', 1); _global.ASSetPropFlags(this._parent, 'tabChildren', 1); _global.ASSetPropFlags(this._parent, 'tabEnabled', 1); }; v2.enabledChanged = function (id, oldValue, newValue) { this._visible = newValue; return newValue; }; v2.activate = function (Void) { Key.addListener(this); this._visible = true; this.activated = this._visible; if (this.lastFocus != undefined) { this.bNeedFocus = true; if (!mx.managers.SystemManager.isMouseDown) { this.doLater(this, 'restoreFocus'); } } }; v2.deactivate = function (Void) { Key.removeListener(this); this._visible = false; this.activated = this._visible; var v2 = this.getSelectionFocus(); var v3 = this.getActualFocus(v2); if (this.isOurFocus(v3)) { this.lastSelFocus = v2; this.lastFocus = v3; } this.cancelAllDoLaters(); }; v2.isOurFocus = function (o) { if (o.focusManager == this) { return true; } while (o != undefined) { if (o.focusManager != undefined) { return false; } if (o._parent == this._parent) { return true; } o = o._parent; } return false; }; v2.onSetFocus = function (o, n) { if (n == null) { if (this.activated) { this.bNeedFocus = true; } } else { var v2 = this.getFocus(); if (this.isOurFocus(v2)) { this.bNeedFocus = false; this.lastFocus = v2; this.lastSelFocus = n; } } }; v2.restoreFocus = function (Void) { var v2 = this.lastSelFocus.hscroll; if (v2 != undefined) { var v5 = this.lastSelFocus.scroll; var v4 = this.lastSelFocus.background; } this.lastFocus.setFocus(); var v3 = Selection; Selection.setSelection(v3.lastBeginIndex, v3.lastEndIndex); if (v2 != undefined) { this.lastSelFocus.scroll = v5; this.lastSelFocus.hscroll = v2; this.lastSelFocus.background = v4; } }; v2.onUnload = function (Void) { mx.managers.SystemManager.removeFocusManager(this.form); }; v2.setFocus = function (o) { if (o == null) { Selection.setFocus(null); } else { if (o.setFocus == undefined) { Selection.setFocus(o); } else { o.setFocus(); } } }; v2.getActualFocus = function (o) { var v1 = o._parent; while (v1 != undefined) { if (v1.focusTextField != undefined) { while (v1.focusTextField != undefined) { o = v1; v1 = v1._parent; if (v1 == undefined) { return undefined; } if (v1.focusTextField == undefined) { return o; } } } if (v1.tabEnabled != true) { return o; } o = v1; v1 = o._parent; } return undefined; }; v2.getSelectionFocus = function () { var m = Selection.getFocus(); var o = eval(m); return o; }; v2.getFocus = function (Void) { var v2 = this.getSelectionFocus(); return this.getActualFocus(v2); }; v2.walkTree = function (p, index, groupName, dir, lookup, firstChild) { var v5 = true; var v11; for (v11 in p) { var v2 = p[v11]; if (v2._parent == p && v2.enabled != false && v2._visible != false && (v2.tabEnabled == true || v2.tabEnabled != false && (v2.onPress != undefined || v2.onRelease != undefined || v2.onReleaseOutside != undefined || v2.onDragOut != undefined || v2.onDragOver != undefined || v2.onRollOver != undefined || v2.onRollOut != undefined || v2 instanceof TextField))) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; if (v2 != this._lastTarget) { if ((v2.groupName != undefined || groupName != undefined) && v2.groupName == groupName) { continue; } if (v2 instanceof TextField && v2.selectable == false) { continue; } if (v5 || v2.groupName != undefined && v2.groupName == this._firstNode.groupName && v2.selected == true) { if (firstChild) { this._firstNode = v2; firstChild = false; } } if (this._nextIsNext == true) { if (v2.groupName != undefined && v2.groupName == this._nextNode.groupName && v2.selected == true || this._nextNode == undefined && (v2.groupName == undefined || v2.groupName != undefined && v2.groupName != groupName)) { this._nextNode = v2; } } if (v2.groupName == undefined || groupName != v2.groupName) { if (this._lastx.groupName != undefined && v2.groupName == this._lastx.groupName && this._lastx.selected == true) { } else { this._lastx = v2; } } } else { this._prevNode = this._lastx; this._needPrev = false; this._nextIsNext = true; } if (v2.tabIndex != undefined) { if (v2.tabIndex == index) { if (this._foundList[v2._name] == undefined) { if (this._needPrev) { this._prevObj = v2; this._needPrev = false; } this._nextObj = v2; } } if (dir && v2.tabIndex > index) { if (this._nextObj == undefined || this._nextObj.tabIndex > v2.tabIndex && (v2.groupName == undefined || this._nextObj.groupName == undefined || v2.groupName != this._nextObj.groupName) || this._nextObj.groupName != undefined && this._nextObj.groupName == v2.groupName && this._nextObj.selected != true && (v2.selected == true || this._nextObj.tabIndex > v2.tabIndex)) { this._nextObj = v2; } } else { if (!dir && v2.tabIndex < index) { if (this._prevObj == undefined || this._prevObj.tabIndex < v2.tabIndex && (v2.groupName == undefined || this._prevObj.groupName == undefined || v2.groupName != this._prevObj.groupName) || this._prevObj.groupName != undefined && this._prevObj.groupName == v2.groupName && this._prevObj.selected != true && (v2.selected == true || this._prevObj.tabIndex < v2.tabIndex)) { this._prevObj = v2; } } } if (this._firstObj == undefined || v2.tabIndex < this._firstObj.tabIndex && (v2.groupName == undefined || this._firstObj.groupName == undefined || v2.groupName != this._firstObj.groupName) || this._firstObj.groupName != undefined && this._firstObj.groupName == v2.groupName && this._firstObj.selected != true && (v2.selected == true || v2.tabIndex < this._firstObj.tabIndex)) { this._firstObj = v2; } if (this._lastObj == undefined || v2.tabIndex > this._lastObj.tabIndex && (v2.groupName == undefined || this._lastObj.groupName == undefined || v2.groupName != this._lastObj.groupName) || this._lastObj.groupName != undefined && this._lastObj.groupName == v2.groupName && this._lastObj.selected != true && (v2.selected == true || v2.tabIndex > this._lastObj.tabIndex)) { this._lastObj = v2; } } if (v2.tabChildren) { this.getTabCandidateFromChildren(v2, index, groupName, dir, v5 && firstChild); } v5 = false; } else { if (v2._parent == p && v2.tabChildren == true && v2._visible != false) { if (v2 == this._lastTarget) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; if (this._prevNode == undefined) { var v3 = this._lastx; var v7 = false; while (v3 != undefined) { if (v3 == v2) { v7 = true; break; } v3 = v3._parent; } if (v7 == false) { this._prevNode = this._lastx; } } this._needPrev = false; if (this._nextNode == undefined) { this._nextIsNext = true; } } else { if (!(v2.focusManager != undefined && v2.focusManager._parent == v2)) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; this.getTabCandidateFromChildren(v2, index, groupName, dir, v5 && firstChild); } } v5 = false; } } } this._lastNode = this._lastx; if (lookup) { if (p._parent != undefined) { if (p != this._parent) { if (this._prevNode == undefined && dir) { this._needPrev = true; } else { if (this._nextNode == undefined && !dir) { this._nextIsNext = false; } } this._lastTarget = this._lastTarget._parent; this.getTabCandidate(p._parent, index, groupName, dir, true); } } } }; v2.getTabCandidate = function (o, index, groupName, dir, firstChild) { var v2; var v3 = true; if (o == this._parent) { v2 = o; v3 = false; } else { v2 = o._parent; if (v2 == undefined) { v2 = o; v3 = false; } } this.walkTree(v2, index, groupName, dir, v3, firstChild); }; v2.getTabCandidateFromChildren = function (o, index, groupName, dir, firstChild) { this.walkTree(o, index, groupName, dir, false, firstChild); }; v2.getFocusManagerFromObject = function (o) { while (o != undefined) { if (o.focusManager != undefined) { return o.focusManager; } o = o._parent; } return undefined; }; v2.tabHandler = function (Void) { this.bDrawFocus = true; var v5 = this.getSelectionFocus(); var v4 = this.getActualFocus(v5); if (v4 != v5) { v5 = v4; } if (this.getFocusManagerFromObject(v5) != this) { v5 == undefined; } if (v5 == undefined) { v5 = this.form; } else { if (v5.tabIndex != undefined) { if (this._foundList != undefined || this._foundList.tabIndex != v5.tabIndex) { this._foundList = new Object(); this._foundList.tabIndex = v5.tabIndex; } this._foundList[v5._name] = v5; } } var v3 = Key.isDown(16) != true; this._searchKey = getTimer(); this._needPrev = true; this._nextIsNext = false; this._lastx = undefined; this._firstNode = undefined; this._lastNode = undefined; this._nextNode = undefined; this._prevNode = undefined; this._firstObj = undefined; this._lastObj = undefined; this._nextObj = undefined; this._prevObj = undefined; this._lastTarget = v5; var v6 = v5; this.getTabCandidate(v6, (v5.tabIndex == undefined) ? 0 : v5.tabIndex, v5.groupName, v3, true); var v2; if (v3) { if (this._nextObj != undefined) { v2 = this._nextObj; } else { v2 = this._firstObj; } } else { if (this._prevObj != undefined) { v2 = this._prevObj; } else { v2 = this._lastObj; } } if (v2.tabIndex != v5.tabIndex) { this._foundList = new Object(); this._foundList.tabIndex = v2.tabIndex; this._foundList[v2._name] = v2; } else { if (this._foundList == undefined) { this._foundList = new Object(); this._foundList.tabIndex = v2.tabIndex; } this._foundList[v2._name] = v2; } if (v2 == undefined) { if (v3 == false) { if (this._nextNode != undefined) { v2 = this._nextNode; } else { v2 = this._firstNode; } } else { if (this._prevNode == undefined || v5 == this.form) { v2 = this._lastNode; } else { v2 = this._prevNode; } } } if (v2 == undefined) { return undefined; } this.lastTabFocus = v2; this.setFocus(v2); if (v2.emphasized != undefined) { if (this.defPushButton != undefined) { v5 = this.defPushButton; this.defPushButton = v2; v5.emphasized = false; v2.emphasized = true; } } else { if (this.defPushButton != undefined && this.defPushButton != this.__defaultPushButton) { v5 = this.defPushButton; this.defPushButton = this.__defaultPushButton; v5.emphasized = false; this.__defaultPushButton.__set__emphasized(true); } } }; v2.onKeyDown = function (Void) { mx.managers.SystemManager.idleFrames = 0; if (this.defaultPushButtonEnabled) { if (Key.getCode() == 13) { if (this.__get__defaultPushButton() != undefined) { this.doLater(this, 'sendDefaultPushButtonEvent'); } } } }; v2.sendDefaultPushButtonEvent = function (Void) { this.defPushButton.dispatchEvent({'type': 'click'}); }; v2.getMousedComponentFromChildren = function (x, y, o) { for (var v7 in o) { var v2 = o[v7]; if (v2._visible && v2.enabled && v2._parent == o && v2._searchKey != this._searchKey) { v2._searchKey = this._searchKey; if (v2.hitTest(x, y, true)) { if (v2.onPress != undefined || v2.onRelease != undefined) { return v2; } var v3 = this.getMousedComponentFromChildren(x, y, v2); if (v3 != undefined) { return v3; } return v2; } } } return undefined; }; v2.mouseActivate = function (Void) { if (!this.bNeedFocus) { return undefined; } this._searchKey = getTimer(); var v2 = this.getMousedComponentFromChildren(this.lastMouse.x, this.lastMouse.y, this.form); if (v2 instanceof mx.core.UIComponent) { return undefined; } v2 = this.findFocusFromObject(v2); if (v2 == this.lastFocus) { return undefined; } if (v2 == undefined) { this.doLater(this, 'restoreFocus'); return undefined; } var v3 = v2.hscroll; if (v3 != undefined) { var v6 = v2.scroll; var v5 = v2.background; } this.setFocus(v2); var v4 = Selection; Selection.setSelection(v4.lastBeginIndex, v4.lastEndIndex); if (v3 != undefined) { v2.scroll = v6; v2.hscroll = v3; v2.background = v5; } }; v2._onMouseDown = function (Void) { this.bDrawFocus = false; if (this.lastFocus != undefined) { this.lastFocus.drawFocus(false); } mx.managers.SystemManager.idleFrames = 0; var v3 = Selection; v3.lastBeginIndex = Selection.getBeginIndex(); v3.lastEndIndex = Selection.getEndIndex(); this.lastMouse.x = _root._xmouse; this.lastMouse.y = _root._ymouse; _root.localToGlobal(this.lastMouse); }; v2.onMouseUp = function (Void) { if (this._visible) { this.doLater(this, 'mouseActivate'); } }; v2.handleEvent = function (e) { if (e.type == 'reveal') { mx.managers.SystemManager.activate(this.form); } else { mx.managers.SystemManager.deactivate(this.form); } }; v1.enableFocusManagement = function () { if (!mx.managers.FocusManager.initialized) { mx.managers.FocusManager.initialized = true; Object.registerClass('FocusManager', mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, 'focusManager', mx.managers.DepthManager.highestDepth--); } } }; v1.symbolName = 'FocusManager'; v1.symbolOwner = mx.managers.FocusManager; v1.version = '2.0.2.126'; v2.className = 'FocusManager'; v2.bNeedFocus = false; v2.bDrawFocus = false; v2.defaultPushButtonEnabled = true; v2.activated = true; v1.initialized = false; v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; v2.addProperty('defaultPushButton', v2.__get__defaultPushButton, v2.__set__defaultPushButton); v2.addProperty('nextTabIndex', v2.__get__nextTabIndex, function () {}); ASSetPropFlags(mx.managers.FocusManager.prototype, null, 1); } #endinitclip } movieClip 401 __Packages.mx.skins.halo.FocusRect { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.FocusRect) { var v1 = function () { super(); this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; }; mx.skins.halo.FocusRect = v1; var v2 = new mx.skins.SkinElement(); mx.skins.halo.FocusRect.prototype = v2; v2.draw = function (o) { o.adjustFocusRect(); }; v2.setSize = function (w, h, r, a, rectCol) { this._yscale = 100; this._xscale = 100; this.clear(); if (typeof r == 'object') { r.br = r.br > 2 ? r.br - 2 : 0; r.bl = r.bl > 2 ? r.bl - 2 : 0; r.tr = r.tr > 2 ? r.tr - 2 : 0; r.tl = r.tl > 2 ? r.tl - 2 : 0; this.beginFill(rectCol, a * 0.3); this.drawRoundRect(0, 0, w, h, r); this.drawRoundRect(2, 2, w - 4, h - 4, r); this.endFill(); r.br = r.br > 1 ? r.br + 1 : 0; r.bl = r.bl > 1 ? r.bl + 1 : 0; r.tr = r.tr > 1 ? r.tr + 1 : 0; r.tl = r.tl > 1 ? r.tl + 1 : 0; this.beginFill(rectCol, a * 0.3); this.drawRoundRect(1, 1, w - 2, h - 2, r); r.br = r.br > 1 ? r.br - 1 : 0; r.bl = r.bl > 1 ? r.bl - 1 : 0; r.tr = r.tr > 1 ? r.tr - 1 : 0; r.tl = r.tl > 1 ? r.tl - 1 : 0; this.drawRoundRect(2, 2, w - 4, h - 4, r); this.endFill(); } else { var v5; if (r != 0) { v5 = r - 2; } else { v5 = 0; } this.beginFill(rectCol, a * 0.3); this.drawRoundRect(0, 0, w, h, r); this.drawRoundRect(2, 2, w - 4, h - 4, v5); this.endFill(); this.beginFill(rectCol, a * 0.3); if (r != 0) { v5 = r - 2; r -= 1; } else { v5 = 0; r = 0; } this.drawRoundRect(1, 1, w - 2, h - 2, r); this.drawRoundRect(2, 2, w - 4, h - 4, v5); this.endFill(); } }; v2.handleEvent = function (e) { if (e.type == 'unload') { this._visible = true; } else { if (e.type == 'resize') { e.target.adjustFocusRect(); } else { if (e.type == 'move') { e.target.adjustFocusRect(); } } } }; v1.classConstruct = function () { mx.core.UIComponent.prototype.drawFocus = function (focused) { var v2 = this._parent.focus_mc; if (!focused) { v2._visible = false; this.removeEventListener('unload', v2); this.removeEventListener('move', v2); this.removeEventListener('resize', v2); } else { if (v2 == undefined) { v2 = this._parent.createChildAtDepth('FocusRect', mx.managers.DepthManager.kTop); v2.tabEnabled = false; this._parent.focus_mc = v2; } else { v2._visible = true; } v2.draw(this); if (v2.getDepth() < this.getDepth()) { v2.setDepthAbove(this); } this.addEventListener('unload', v2); this.addEventListener('move', v2); this.addEventListener('resize', v2); } }; mx.core.UIComponent.prototype.adjustFocusRect = function () { var v2 = this.getStyle('themeColor'); if (v2 == undefined) { v2 = 8453965; } var v3 = this._parent.focus_mc; v3.setSize(this.width + 4, this.height + 4, 0, 100, v2); v3.move(this.x - 2, this.y - 2); }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect; mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return true; }; v1.classConstructed = mx.skins.halo.FocusRect.classConstruct(); v1.DefaultsDependency = mx.skins.halo.Defaults; v1.UIComponentDependency = mx.core.UIComponent; ASSetPropFlags(mx.skins.halo.FocusRect.prototype, null, 1); } #endinitclip } movieClip 402 __Packages.mx.managers.OverlappedWindows { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.OverlappedWindows) { var v1 = function () {}; mx.managers.OverlappedWindows = v1; var v2 = v1.prototype; v1.checkIdle = function (Void) { if (mx.managers.SystemManager.idleFrames > 10) { mx.managers.SystemManager.dispatchEvent({'type': 'idle'}); } else { ++mx.managers.SystemManager.idleFrames; } }; v1.__addEventListener = function (e, o, l) { if (e == 'idle') { if (mx.managers.SystemManager.interval == undefined) { mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100); } } mx.managers.SystemManager._xAddEventListener(e, o, l); }; v1.__removeEventListener = function (e, o, l) { if (e == 'idle') { if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) { clearInterval(mx.managers.SystemManager.interval); } } else { mx.managers.SystemManager._xRemoveEventListener(e, o, l); } }; v1.onMouseDown = function (Void) { mx.managers.SystemManager.idleFrames = 0; mx.managers.SystemManager.isMouseDown = true; var v5 = _root; var v3; var v8 = _root._xmouse; var v7 = _root._ymouse; if (mx.managers.SystemManager.form.modalWindow == undefined) { if (mx.managers.SystemManager.forms.length > 1) { var v6 = mx.managers.SystemManager.forms.length; var v4; v4 = 0; while (v4 < v6) { var v2 = mx.managers.SystemManager.forms[v4]; if (v2._visible) { if (v2.hitTest(v8, v7)) { if (v3 == undefined) { v3 = v2.getDepth(); v5 = v2; } else { if (v3 < v2.getDepth()) { v3 = v2.getDepth(); v5 = v2; } } } } ++v4; } if (v5 != mx.managers.SystemManager.form) { mx.managers.SystemManager.activate(v5); } } } var v9 = mx.managers.SystemManager.form; v9.focusManager._onMouseDown(); }; v1.onMouseMove = function (Void) { mx.managers.SystemManager.idleFrames = 0; }; v1.onMouseUp = function (Void) { mx.managers.SystemManager.isMouseDown = false; mx.managers.SystemManager.idleFrames = 0; }; v1.activate = function (f) { if (mx.managers.SystemManager.form != undefined) { if (mx.managers.SystemManager.form != f && mx.managers.SystemManager.forms.length > 1) { var v1 = mx.managers.SystemManager.form; v1.focusManager.deactivate(); } } mx.managers.SystemManager.form = f; f.focusManager.activate(); }; v1.deactivate = function (f) { if (mx.managers.SystemManager.form != undefined) { if (mx.managers.SystemManager.form == f && mx.managers.SystemManager.forms.length > 1) { var v5 = mx.managers.SystemManager.form; v5.focusManager.deactivate(); var v3 = mx.managers.SystemManager.forms.length; var v1; var v2; v1 = 0; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1] == f) { v1 += 1; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1]._visible == true) { v2 = mx.managers.SystemManager.forms[v1]; } ++v1; } mx.managers.SystemManager.form = v2; break; } else { if (mx.managers.SystemManager.forms[v1]._visible == true) { v2 = mx.managers.SystemManager.forms[v1]; } } ++v1; } v5 = mx.managers.SystemManager.form; v5.focusManager.activate(); } } }; v1.addFocusManager = function (f) { mx.managers.SystemManager.forms.push(f); mx.managers.SystemManager.activate(f); }; v1.removeFocusManager = function (f) { var v3 = mx.managers.SystemManager.forms.length; var v1; v1 = 0; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1] == f) { if (mx.managers.SystemManager.form == f) { mx.managers.SystemManager.deactivate(f); } mx.managers.SystemManager.forms.splice(v1, 1); return undefined; } ++v1; } }; v1.enableOverlappedWindows = function () { if (!mx.managers.OverlappedWindows.initialized) { mx.managers.OverlappedWindows.initialized = true; mx.managers.SystemManager.checkIdle = mx.managers.OverlappedWindows.checkIdle; mx.managers.SystemManager.__addEventListener = mx.managers.OverlappedWindows.__addEventListener; mx.managers.SystemManager.__removeEventListener = mx.managers.OverlappedWindows.__removeEventListener; mx.managers.SystemManager.onMouseDown = mx.managers.OverlappedWindows.onMouseDown; mx.managers.SystemManager.onMouseMove = mx.managers.OverlappedWindows.onMouseMove; mx.managers.SystemManager.onMouseUp = mx.managers.OverlappedWindows.onMouseUp; mx.managers.SystemManager.activate = mx.managers.OverlappedWindows.activate; mx.managers.SystemManager.deactivate = mx.managers.OverlappedWindows.deactivate; mx.managers.SystemManager.addFocusManager = mx.managers.OverlappedWindows.addFocusManager; mx.managers.SystemManager.removeFocusManager = mx.managers.OverlappedWindows.removeFocusManager; } }; v1.initialized = false; v1.SystemManagerDependency = mx.managers.SystemManager; ASSetPropFlags(mx.managers.OverlappedWindows.prototype, null, 1); } #endinitclip } movieClip 403 __Packages.mx.styles.CSSSetStyle { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSSetStyle) { var v1 = function () {}; mx.styles.CSSSetStyle = v1; var v2 = v1.prototype; v2._setStyle = function (styleProp, newValue) { this[styleProp] = newValue; if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) { if (styleProp == 'color') { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } } _level0.changeTextStyleInChildren(styleProp); return undefined; } if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } if (styleProp == 'themeColor') { var v7 = mx.styles.StyleManager.colorNames.haloBlue; var v6 = mx.styles.StyleManager.colorNames.haloGreen; var v8 = mx.styles.StyleManager.colorNames.haloOrange; var v4 = {}; v4[v7] = 12188666; v4[v6] = 13500353; v4[v8] = 16766319; var v5 = {}; v5[v7] = 13958653; v5[v6] = 14942166; v5[v8] = 16772787; var v9 = v4[newValue]; var v10 = v5[newValue]; if (v9 == undefined) { v9 = newValue; } if (v10 == undefined) { v10 = newValue; } this.setStyle('selectionColor', v9); this.setStyle('rollOverColor', v10); } _level0.changeColorStyleInChildren(this.styleName, styleProp, newValue); } else { if (styleProp == 'backgroundColor' && isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } _level0.notifyStyleChangeInChildren(this.styleName, styleProp, newValue); } }; v2.changeTextStyleInChildren = function (styleProp) { var v4 = getTimer(); var v5; for (v5 in this) { var v2 = this[v5]; if (v2._parent == this) { if (v2.searchKey != v4) { if (v2.stylecache != undefined) { delete v2.stylecache.tf; delete v2.stylecache[styleProp]; } v2.invalidateStyle(styleProp); v2.changeTextStyleInChildren(styleProp); v2.searchKey = v4; } } } }; v2.changeColorStyleInChildren = function (sheetName, colorStyle, newValue) { var v6 = getTimer(); var v7; for (v7 in this) { var v2 = this[v7]; if (v2._parent == this) { if (v2.searchKey != v6) { if (v2.getStyleName() == sheetName || sheetName == undefined || sheetName == '_global') { if (v2.stylecache != undefined) { delete v2.stylecache[colorStyle]; } if (typeof v2._color == 'string') { if (v2._color == colorStyle) { var v4 = v2.getStyle(colorStyle); if (colorStyle == 'color') { if (this.stylecache.tf.color != undefined) { this.stylecache.tf.color = v4; } } v2.setColor(v4); } } else { if (v2._color[colorStyle] != undefined) { if (typeof v2 != 'movieclip') { v2._parent.invalidateStyle(); } else { v2.invalidateStyle(colorStyle); } } } } v2.changeColorStyleInChildren(sheetName, colorStyle, newValue); v2.searchKey = v6; } } } }; v2.notifyStyleChangeInChildren = function (sheetName, styleProp, newValue) { var v5 = getTimer(); var v6; for (v6 in this) { var v2 = this[v6]; if (v2._parent == this) { if (v2.searchKey != v5) { if (v2.styleName == sheetName || v2.styleName != undefined && typeof v2.styleName == 'movieclip' || sheetName == undefined) { if (v2.stylecache != undefined) { delete v2.stylecache[styleProp]; delete v2.stylecache.tf; } delete v2.enabledColor; v2.invalidateStyle(styleProp); } v2.notifyStyleChangeInChildren(sheetName, styleProp, newValue); v2.searchKey = v5; } } } }; v2.setStyle = function (styleProp, newValue) { if (this.stylecache != undefined) { delete this.stylecache[styleProp]; delete this.stylecache.tf; } this[styleProp] = newValue; if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } if (styleProp == 'themeColor') { var v10 = mx.styles.StyleManager.colorNames.haloBlue; var v9 = mx.styles.StyleManager.colorNames.haloGreen; var v11 = mx.styles.StyleManager.colorNames.haloOrange; var v6 = {}; v6[v10] = 12188666; v6[v9] = 13500353; v6[v11] = 16766319; var v7 = {}; v7[v10] = 13958653; v7[v9] = 14942166; v7[v11] = 16772787; var v12 = v6[newValue]; var v13 = v7[newValue]; if (v12 == undefined) { v12 = newValue; } if (v13 == undefined) { v13 = newValue; } this.setStyle('selectionColor', v12); this.setStyle('rollOverColor', v13); } if (typeof this._color == 'string') { if (this._color == styleProp) { if (styleProp == 'color') { if (this.stylecache.tf.color != undefined) { this.stylecache.tf.color = newValue; } } this.setColor(newValue); } } else { if (this._color[styleProp] != undefined) { this.invalidateStyle(styleProp); } } this.changeColorStyleInChildren(undefined, styleProp, newValue); } else { if (styleProp == 'backgroundColor' && isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } this.invalidateStyle(styleProp); } if (mx.styles.StyleManager.isInheritingStyle(styleProp) || styleProp == 'styleName') { var v8; var v5 = newValue; if (styleProp == 'styleName') { v8 = (typeof newValue == 'string') ? _global.styles[newValue] : v5; v5 = v8.themeColor; if (v5 != undefined) { v8.selectionColor = v5; v8.rollOverColor = v8.selectionColor; } } this.notifyStyleChangeInChildren(undefined, styleProp, newValue); } }; v1.enableRunTimeCSS = function () {}; v1.classConstruct = function () { var v2 = MovieClip.prototype; var v3 = mx.styles.CSSSetStyle.prototype; mx.styles.CSSStyleDeclaration.prototype.setStyle = v3._setStyle; v2.changeTextStyleInChildren = v3.changeTextStyleInChildren; v2.changeColorStyleInChildren = v3.changeColorStyleInChildren; v2.notifyStyleChangeInChildren = v3.notifyStyleChangeInChildren; v2.setStyle = v3.setStyle; _global.ASSetPropFlags(v2, 'changeTextStyleInChildren', 1); _global.ASSetPropFlags(v2, 'changeColorStyleInChildren', 1); _global.ASSetPropFlags(v2, 'notifyStyleChangeInChildren', 1); _global.ASSetPropFlags(v2, 'setStyle', 1); var v4 = TextField.prototype; v4.setStyle = v2.setStyle; v4.changeTextStyleInChildren = v3.changeTextStyleInChildren; return true; }; v1.classConstructed = mx.styles.CSSSetStyle.classConstruct(); v1.CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; ASSetPropFlags(mx.styles.CSSSetStyle.prototype, null, 1); } #endinitclip } movieClip 404 __Packages.mx.core.ext.UIComponentExtensions { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ext) { _global.mx.core.ext = new Object(); } if (!_global.mx.core.ext.UIComponentExtensions) { var v1 = function () {}; mx.core.ext.UIComponentExtensions = v1; var v2 = v1.prototype; v1.Extensions = function () { if (mx.core.ext.UIComponentExtensions.bExtended == true) { return true; } mx.core.ext.UIComponentExtensions.bExtended = true; TextField.prototype.setFocus = function () { Selection.setFocus(this); }; TextField.prototype.onSetFocus = function (oldFocus) { if (this.tabEnabled != false) { if ((this.getFocusManager()).bDrawFocus) { this.drawFocus(true); } } }; TextField.prototype.onKillFocus = function (oldFocus) { if (this.tabEnabled != false) { this.drawFocus(false); } }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager; mx.managers.OverlappedWindows.enableOverlappedWindows(); mx.styles.CSSSetStyle.enableRunTimeCSS(); mx.managers.FocusManager.enableFocusManagement(); }; v1.bExtended = false; v1.UIComponentExtended = mx.core.ext.UIComponentExtensions.Extensions(); v1.UIComponentDependency = mx.core.UIComponent; v1.FocusManagerDependency = mx.managers.FocusManager; v1.OverlappedWindowsDependency = mx.managers.OverlappedWindows; ASSetPropFlags(mx.core.ext.UIComponentExtensions.prototype, null, 1); } #endinitclip } movieClip 405 __Packages.mx.skins.halo.RectBorder { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.RectBorder) { var v1 = function () { super(); }; mx.skins.halo.RectBorder = v1; var v2 = new mx.skins.RectBorder(); mx.skins.halo.RectBorder.prototype = v2; v2.init = function (Void) { this.borderWidths.default = 3; super.init(); }; v2.getBorderMetrics = function (Void) { if (this.offset == undefined) { var v3 = this.getStyle(this.borderStyleName); this.offset = this.borderWidths[v3]; } if (this.getStyle(this.borderStyleName) == 'default' || this.getStyle(this.borderStyleName) == 'alert') { this.__borderMetrics = {'left': 3, 'top': 1, 'right': 3, 'bottom': 3}; return this.__borderMetrics; } return super.getBorderMetrics(); }; v2.drawBorder = function (Void) { var v6 = _global.styles[this.className]; if (v6 == undefined) { v6 = _global.styles.RectBorder; } var v5 = this.getStyle(this.borderStyleName); var v7 = this.getStyle(this.borderColorName); if (v7 == undefined) { v7 = v6[this.borderColorName]; } var v8 = this.getStyle(this.backgroundColorName); if (v8 == undefined) { v8 = v6[this.backgroundColorName]; } var v16 = this.getStyle('backgroundImage'); if (v5 != 'none') { var v14 = this.getStyle(this.shadowColorName); if (v14 == undefined) { v14 = v6[this.shadowColorName]; } var v13 = this.getStyle(this.highlightColorName); if (v13 == undefined) { v13 = v6[this.highlightColorName]; } var v12 = this.getStyle(this.buttonColorName); if (v12 == undefined) { v12 = v6[this.buttonColorName]; } var v11 = this.getStyle(this.borderCapColorName); if (v11 == undefined) { v11 = v6[this.borderCapColorName]; } var v10 = this.getStyle(this.shadowCapColorName); if (v10 == undefined) { v10 = v6[this.shadowCapColorName]; } } this.offset = this.borderWidths[v5]; var v9 = this.offset; var v3 = this.__get__width(); var v4 = this.__get__height(); this.clear(); this._color = undefined; if (v5 == 'none') { } else { if (v5 == 'inset') { this._color = this.colorList; this.draw3dBorder(v11, v12, v7, v13, v14, v10); } else { if (v5 == 'outset') { this._color = this.colorList; this.draw3dBorder(v11, v7, v12, v14, v13, v10); } else { if (v5 == 'alert') { var v15 = this.getStyle('themeColor'); this.drawRoundRect(0, 5, v3, v4 - 5, 5, 6184542, 10); this.drawRoundRect(1, 4, v3 - 2, v4 - 5, 4, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, 3, v15, 50); this.drawRoundRect(3, 1, v3 - 6, v4 - 4, 2, 16777215, 100); } else { if (v5 == 'default') { this.drawRoundRect(0, 5, v3, v4 - 5, {'tl': 5, 'tr': 5, 'br': 0, 'bl': 0}, 6184542, 10); this.drawRoundRect(1, 4, v3 - 2, v4 - 5, {'tl': 4, 'tr': 4, 'br': 0, 'bl': 0}, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, {'tl': 3, 'tr': 3, 'br': 0, 'bl': 0}, [12897484, 11844796], 100, 0, 'radial'); this.drawRoundRect(3, 1, v3 - 6, v4 - 4, {'tl': 2, 'tr': 2, 'br': 0, 'bl': 0}, 16777215, 100); } else { if (v5 == 'dropDown') { this.drawRoundRect(0, 0, v3 + 1, v4, {'tl': 4, 'tr': 0, 'br': 0, 'bl': 4}, [13290186, 7895160], 100, -10, 'linear'); this.drawRoundRect(1, 1, v3 - 1, v4 - 2, {'tl': 3, 'tr': 0, 'br': 0, 'bl': 3}, 16777215, 100); } else { if (v5 == 'menuBorder') { var v15 = this.getStyle('themeColor'); this.drawRoundRect(4, 4, v3 - 2, v4 - 3, 0, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(4, 4, v3 - 1, v4 - 2, 0, 6184542, 10); this.drawRoundRect(0, 0, v3 + 1, v4, 0, [0, 14342874], 100, 250, 'linear'); this.drawRoundRect(0, 0, v3 + 1, v4, 0, v15, 50); this.drawRoundRect(2, 2, v3 - 3, v4 - 4, 0, 16777215, 100); } else { if (v5 == 'comboNonEdit') { } else { this.beginFill(v7); this.drawRect(0, 0, v3, v4); this.drawRect(1, 1, v3 - 1, v4 - 1); this.endFill(); this._color = this.borderColorName; } } } } } } } } if (v8 != undefined) { this.beginFill(v8); this.drawRect(v9, v9, this.__get__width() - v9, this.__get__height() - v9); this.endFill(); } }; v2.draw3dBorder = function (c1, c2, c3, c4, c5, c6) { var v3 = this.__get__width(); var v2 = this.__get__height(); this.beginFill(c1); this.drawRect(0, 0, v3, v2); this.drawRect(1, 0, v3 - 1, v2); this.endFill(); this.beginFill(c2); this.drawRect(1, 0, v3 - 1, 1); this.endFill(); this.beginFill(c3); this.drawRect(1, v2 - 1, v3 - 1, v2); this.endFill(); this.beginFill(c4); this.drawRect(1, 1, v3 - 1, 2); this.endFill(); this.beginFill(c5); this.drawRect(1, v2 - 2, v3 - 1, v2 - 1); this.endFill(); this.beginFill(c6); this.drawRect(1, 2, v3 - 1, v2 - 2); this.drawRect(2, 2, v3 - 2, v2 - 2); this.endFill(); }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); _global.styles.rectBorderClass = mx.skins.halo.RectBorder; _global.skinRegistry.RectBorder = true; return true; }; v1.symbolName = 'RectBorder'; v1.symbolOwner = mx.skins.halo.RectBorder; v1.version = '2.0.2.126'; v2.borderCapColorName = 'borderCapColor'; v2.shadowCapColorName = 'shadowCapColor'; v2.colorList = {'highlightColor': 0, 'borderColor': 0, 'buttonColor': 0, 'shadowColor': 0, 'borderCapColor': 0, 'shadowCapColor': 0}; v2.borderWidths = {'none': 0, 'solid': 1, 'inset': 2, 'outset': 2, 'alert': 3, 'dropDown': 2, 'menuBorder': 2, 'comboNonEdit': 2}; v1.classConstructed = mx.skins.halo.RectBorder.classConstruct(); v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; ASSetPropFlags(mx.skins.halo.RectBorder.prototype, null, 1); } #endinitclip } frame 3 { stop(); chooser = 1; } movieClip 462 { } movieClip 465 { } movieClip 466 { } movieClip 469 { } movieClip 472 { } movieClip 473 { } movieClip 477 { } movieClip 479 { } movieClip 481 { } movieClip 485 { } movieClip 486 { } movieClip 488 { } movieClip 490 { } movieClip 491 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 492 { } movieClip 493 { } movieClip 496 { } movieClip 497 { } movieClip 498 { } movieClip 501 { } movieClip 502 game1 { frame 1 { _root.rules = 'To the exit!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance mx71_ball of movieClip 498 { onClipEvent (load) { xvel = 0; yvel = 0; hit = false; startx = 21.2; starty = 18.8; done = false; fakehit = false; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { yvel += 0.5; _x = _x + xvel; _y = _y + yvel; if (Key.isDown(37)) { xvel -= 1; } if (Key.isDown(39)) { xvel += 1; } if (Key.isDown(38)) { yvel -= 1; } if (Key.isDown(40)) { yvel += 1; } for (i in this.mx71_perim) { p = {'x': mx71_perim[i]._x, 'y': mx71_perim[i]._y}; mx71_perim.localToGlobal(p); if (_root.g.mx71_ground.mx71_touchgr1.hitTest(p.x, p.y, true)) { hit = true; } if (_root.g.mx71_ground.mx71_touchgr1.mx71_exit.hitTest(p.x, p.y, true)) { done = true; } if (_root.g.mx71_ground.mx71_touchgr2.hitTest(p.x, p.y, true)) { hit = true; } if (_root.g.mx71_ground.mx71_touchgr2.mx71_exit2.hitTest(p.x, p.y, true)) { done = true; } if (_root.g.mx71_ground.mx71_touchgr3.hitTest(p.x, p.y, true)) { hit = true; } if (_root.g.mx71_ground.mx71_touchgr3.mx71_exit3.hitTest(p.x, p.y, true)) { done = true; } if (_root.g.mx71_ground.mx71_touchgr4.hitTest(p.x, p.y, true)) { hit = true; } if (_root.g.mx71_ground.mx71_touchgr4.mx71_exit4.hitTest(p.x, p.y, true)) { done = true; } if (_root.g.mx71_ground.mx71_touchgr5.hitTest(p.x, p.y, true)) { hit = true; } if (_root.g.mx71_ground.mx71_touchgr5.mx71_exit5.hitTest(p.x, p.y, true)) { done = true; } if (_root.g.mx71_ground.mx71_touchgr6.hitTest(p.x, p.y, true)) { hit = true; } if (_root.g.mx71_ground.mx71_touchgr6.mx71_exit6.hitTest(p.x, p.y, true)) { done = true; } if (_root.g.mx71_ground._currentframe == 3) { yvel -= 0.05; } if (_root.g.mx71_ground._currentframe == 4) { startx = 10; starty = 329; } if (_root.g.mx71_ground.mx71_fakewall.hitTest(p.x, p.y, true)) { fakehit = true; } if (done == true) { _root.gameOutcome(true); this._x = startx; this._y = starty; xvel = 0; yvel = 0; hit = false; done = false; } if (hit == true) { _root.gameOutcome(false); this._x = startx; this._y = starty; xvel = 0; yvel = 0; hit = false; } if (fakehit == true) { this._x = startx; this._y = starty; xvel = 0; yvel = 0; fakehit = false; } updateAfterEvent(); } } } } } movieClip 505 { } movieClip 507 { } movieClip 508 { frame 35 { stop(); } } movieClip 510 { } movieClip 511 { } movieClip 512 { } movieClip 513 { } movieClip 514 { } movieClip 516 { } movieClip 519 { } movieClip 520 { frame 1 { stop(); } frame 26 { stop(); } } movieClip 521 { } movieClip 523 { } movieClip 525 { } movieClip 527 { instance mx73_wheel1 of movieClip 523 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._rotation = _rotation + 12.5; if (_root.mx73_wallmove.mx73_walls.hitTest(p.x, p.y, true)) { this._rotation = 0; } } } } instance mx73_wheel2 of movieClip 525 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._rotation = _rotation + 12.5; if (_root.mx73_wallmove.mx73_walls.hitTest(p.x, p.y, true)) { this._rotation = 0; } } } } } movieClip 528 { frame 70 { gotoAndPlay(2); } } movieClip 530 { } movieClip 532 { } movieClip 534 { } movieClip 537 { } movieClip 538 game2 { frame 1 { _root.rules = 'Land safely!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance mx73_ammobox of movieClip 521 { onClipEvent (load) { mxvel = 0; myvel = 0; mhit = false; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { myvel += 0.026; _x = _x + mxvel; _y = _y + myvel; if (Key.isDown(37)) { mxvel -= 1; } if (Key.isDown(39)) { mxvel += 1; } if (Key.isDown(40)) { _root.g.mx73_ammobox.mx73_parachute.gotoAndPlay(2); myvel += 1; } for (i in this.mx73_perim) { p = {'x': mx73_perim[i]._x, 'y': mx73_perim[i]._y}; mx73_perim.localToGlobal(p); if (_root.g.mx73_wallmove.mx73_walls.hitTest(p.x, p.y, true)) { mhit = true; _root.g.mx73_wallmove.stop(); _root.g.mx73_wallmove.mx73_wall.mx73_wheel1._rotation = 0; _root.g.mx73_wallmove.mx73_wall.mx73_wheel2._rotation = 0; } if (_root.g.mx73_bwalls.hitTest(p.x, p.y, true)) { mbhit = true; } if (mhit == true) { _root.gameOutcome(true); mxvel = 0; myvel = 0; mhit = false; } if (mbhit == true) { mxvel = 0; myvel = 0; _root.gameOutcome(false); mbhit = false; } for (i2 in this.mx73_perim2) { p2 = {'x': mx73_perim2[i2]._x, 'y': mx73_perim2[i2]._y}; mx73_perim2.localToGlobal(p2); if (_root.g.mx73_swall1.hitTest(p2.x, p2.y, true)) { this._x = _x + 1; mxvel = 0; } } for (i3 in this.mx73_perim3) { p3 = {'x': mx73_perim3[i3]._x, 'y': mx73_perim3[i3]._y}; mx73_perim3.localToGlobal(p3); if (_root.g.mx73_swall2.hitTest(p3.x, p3.y, true)) { this._x = _x - 1; mxvel = 0; } } updateAfterEvent(); } } } } } movieClip 541 { } movieClip 544 { } movieClip 546 { } movieClip 548 { } movieClip 549 { } movieClip 551 { } movieClip 552 game3 { frame 1 { _root.rules = 'Hit the Targets!'; _root.beatClock = true; } instance of movieClip 544 { onClipEvent (load) { gravity = 0; xmov = 0; rotmov = 0; count = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (rotmov >= 0) { rotmov -= 0.5; } if (rotmov <= 0) { rotmov += 0.5; } ++gravity; if (xmov >= 0) { xmov -= 0.5; } if (xmov <= 0) { xmov += 0.5; } this._y += gravity; this._x += xmov; this._rotation += rotmov; if (Key.isDown(38)) { gravity -= 2; } if (Key.isDown(37)) { xmov -= 1.5; rotmov -= 2; } if (Key.isDown(39)) { xmov += 1.5; rotmov += 2; } if (hitTest(_parent.wall) or hitTest(_parent.walla) or hitTest(_parent.wallb) or hitTest(_parent.wallc)) { this._x = 145.1; this._y = 91; gravity = 0; rotmov = 0; xmov = 0; } if (hitTest(_parent.targa)) { loadMovie('', '_parent.targa'); ++count; } if (hitTest(_parent.targb)) { loadMovie('', '_parent.targb'); ++count; } if (hitTest(_parent.targc)) { loadMovie('', '_parent.targc'); ++count; } if (count == 3) { _root.gameOutcome(true); } } } } instance targa of movieClip 551 { onClipEvent (load) { this._x = Math.random() * Stage.width; this._y = Math.random() * Stage.height; } onClipEvent (enterFrame) { if (hitTest(_parent.wall) or hitTest(_parent.walla) or hitTest(_parent.wallb) or hitTest(_parent.wallc)) { this._x = Math.random() * Stage.width; this._y = Math.random() * Stage.height; } } } instance targb of movieClip 551 { onClipEvent (load) { this._x = Math.random() * Stage.width; this._y = Math.random() * Stage.height; } onClipEvent (enterFrame) { if (hitTest(_parent.wall) or hitTest(_parent.walla) or hitTest(_parent.wallb) or hitTest(_parent.wallc)) { this._x = Math.random() * Stage.width; this._y = Math.random() * Stage.height; } } } instance targc of movieClip 551 { onClipEvent (load) { this._x = Math.random() * Stage.width; this._y = Math.random() * Stage.height; } onClipEvent (enterFrame) { if (hitTest(_parent.wall) or hitTest(_parent.walla) or hitTest(_parent.wallb) or hitTest(_parent.wallc)) { this._x = Math.random() * Stage.width; this._y = Math.random() * Stage.height; } } } } movieClip 558 { } movieClip 560 { } movieClip 562 { } movieClip 564 { } movieClip 566 { } movieClip 568 { } movieClip 570 { } movieClip 571 { instance of movieClip 568 { onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.ball)) { _root.gameOutcome(true); _parent.ball._x = 2000; _parent.ball._y = 2000; } } } } movieClip 573 { } movieClip 576 { } movieClip 579 { } movieClip 580 game4 { frame 1 { Button.prototype.tabEnabled = false; _root.rules = 'Aim For Water'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance of movieClip 558 { onClipEvent (load) { this._x = 130; } } instance pointer of movieClip 560 { onClipEvent (load) { this._x = 230; decrease = true; scan = true; } onClipEvent (enterFrame) { if (scan == true) { if (decrease == true) { this._x -= 10; } else { if (decrease == false) { this._x += 10; } } if (this._x == 30) { decrease = false; } else { if (this._x == 230) { decrease = true; } } } if (Key.isDown(32)) { scan = false; } power = (this._x - 30) / 10; } } instance ball of movieClip 562 { onClipEvent (load) { launched = false; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(32)) { launched = true; } } if (launched == false) { this._rotation = _parent.canon._rotation; this._x = _parent.canon._x; this._y = _parent.canon._y; vx = _parent.pointer.power * Math.cos(0.0174532925199433 * _rotation); vy = _parent.pointer.power * Math.sin(0.0174532925199433 * _rotation); } else { if (launched == true) { if (this.hitTest(_parent.canon)) { this._x += vx; this._y += vy; } else { this._x += vx; this._y += vy; vy += 1; } } } if (_x > Stage.width || _x < 0 || _y < 0 || _y > Stage.height) { launched = false; _parent.pointer.scan = true; } if (this.hitTest(_parent.ground)) { launched = false; _parent.pointer.scan = true; } } } instance canon of movieClip 564 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(38)) { _rotation = _rotation - 5; } else { if (Key.isDown(40)) { _rotation = _rotation + 5; } } } } } instance ground of movieClip 566 { onClipEvent (enterFrame) { if (this.hitTest(_parent.ball)) { _parent.ball.gotoAndStop(2); _parent.pointer.scan = true; } } } instance of movieClip 571 { onClipEvent (load) { this._x = random(116) + 300; } } } movieClip 583 { } movieClip 586 { } movieClip 587 { } movieClip 588 { } button 590 { on (rollOver) { gotoAndPlay('good1'); } } button 591 { on (rollOver, release) { gotoAndPlay('lose1'); } } movieClip 594 { } button 596 { on (rollOver) { gotoAndPlay('cheat1'); } } button 601 { on (rollOver) { gotoAndPlay('good2'); } } button 602 { on (rollOver, release) { gotoAndPlay('lose2'); } } button 603 { on (rollOver) { gotoAndPlay('cheat2'); } } button 610 { on (rollOver) { gotoAndPlay('good3'); } } button 611 { on (rollOver, release) { gotoAndPlay('lose3'); } } button 612 { on (rollOver) { gotoAndPlay('cheat3'); } } button 616 { on (rollOver) { gotoAndPlay('win'); } } button 617 { on (rollOver) { gotoAndPlay('cheat4'); } } movieClip 642 { } movieClip 645 { } movieClip 646 { frame 1 { stop(); } frame 11 { stop(); } frame 21 { stop(); } frame 31 { stop(); } frame 32 { _root.gameOutcome(true); } frame 44 { stop(); } frame 45 { _root.gameOutcome(false); } frame 54 { stop(); } frame 55 { _root.gameOutcome(false); } frame 68 { stop(); } frame 69 { _root.gameOutcome(false); } frame 80 { stop(); } frame 81 { _root.gameOutcome(false); } frame 94 { stop(); } frame 95 { _root.gameOutcome(false); } frame 108 { stop(); } frame 109 { _root.gameOutcome(false); } frame 122 { stop(); } frame 123 { _root.gameOutcome(false); } frame 136 { stop(); } } movieClip 649 { } movieClip 650 game5 { frame 1 { _root.rules = 'Hop those Rocks!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } } movieClip 655 { } movieClip 656 { } movieClip 677 { } movieClip 692 { frame 1 { stop(); activekey = up; } frame 13 { stop(); right = true; up = false; } frame 25 { stop(); left = true; right = false; } frame 38 { stop(); down = true; left = false; } frame 39 { up = true; down = true; left = true; right = true; } frame 57 { _root.gameOutcome(true); } frame 75 { stop(); } frame 76 { prevFrame(); } frame 77 { _root.gameOutcome(false); up = true; down = true; left = true; right = true; } frame 88 { stop(); } frame 89 { prevFrame(); } } movieClip 695 { } movieClip 696 game6 { frame 1 { _root.rules = 'It\'s Morphin\' Time!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance of movieClip 692 { onClipEvent (load) { up = true; right = false; left = false; down = false; keyAct = false; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(38) && keyAct == false) { keyAct = true; if (up == false) { gotoAndPlay('lose'); } if (up == true) { play(); } } if (Key.isDown(39) && keyAct == false) { keyAct = true; if (right == false) { gotoAndPlay('lose'); } if (right == true) { play(); } } if (Key.isDown(37) && keyAct == false) { keyAct = true; if (left == false) { gotoAndPlay('lose'); } if (left == true) { play(); } } if (Key.isDown(40) && keyAct == false) { keyAct = true; if (down == false) { gotoAndPlay('lose'); } if (down == true) { play(); } } if (!Key.isDown(38) && !Key.isDown(40) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(32)) { keyAct = false; } } } } } movieClip 699 { } movieClip 701 { } movieClip 703 { } movieClip 706 { } movieClip 707 game7 { frame 1 { _root.rules = 'Keep the ball up!'; _root.beatClock = false; } instance of movieClip 699 { onClipEvent (enterFrame) { if (_parent.ball._y + _parent.ball.staticHeight / 2 < 0) { aTarget = 100; _x = _parent.ball._x; } else { aTarget = 0; } _alpha = _alpha - (_alpha - aTarget) / 5; } } instance of movieClip 701 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { xTarget = rand(0, 550); yTarget = rand(0, 400); rTarget = rand(0, 180); speed = rand(10, 50); timer = rand(1, 3) * 32; } reset(); } onClipEvent (enterFrame) { _x = _x - (_x - xTarget) / speed; _y = _y - (_y - yTarget) / speed; _rotation = _rotation - (_rotation - rTarget) / speed; --timer; if (timer <= 0) { reset(); } } } instance of movieClip 701 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { xTarget = rand(0, 550); yTarget = rand(0, 400); rTarget = rand(0, 180); speed = rand(10, 50); timer = rand(1, 3) * 32; } reset(); } onClipEvent (enterFrame) { _x = _x - (_x - xTarget) / speed; _y = _y - (_y - yTarget) / speed; _rotation = _rotation - (_rotation - rTarget) / speed; --timer; if (timer <= 0) { reset(); } } } instance ball of movieClip 703 { onClipEvent (load) { gravity = 2; drag = 0.98; bounce = 0.8; xSpeed = 0; ySpeed = 0; staticWidth = _width; staticHeight = _height; dragTimer = 0; _x = Math.random() * (550 - _width / 2 - _width / 2) + _width / 2; } onClipEvent (press) { if (_root.cstatus == 1 && dragTimer <= 0) { dragging = true; startDrag(this, false); } } onClipEvent (release, releaseOutside) { dragging = false; dragTimer = 0; stopDrag(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (!dragging) { if (_x + staticWidth / 2 > 550) { _x = 550 - staticWidth / 2; xSpeed = -xSpeed * bounce; } if (_x - staticWidth / 2 < 0) { _x = +(staticWidth / 2); xSpeed = -xSpeed * bounce; } if (_y + staticHeight / 2 > 400) { _y = 400 - staticHeight / 2; ySpeed = -ySpeed * bounce; _root.gameOutcome(false); } _x = _x + xSpeed; _y = _y + ySpeed; xSpeed *= drag; ySpeed = ySpeed * drag + gravity; _rotation = _rotation + xSpeed; } else { xSpeed = _x - oldX; ySpeed = _y - oldY; oldX = _x; oldY = _y; ++dragTimer; if (dragTimer >= 16) { dragging = false; stopDrag(); } } } } } } movieClip 710 { } movieClip 713 { } movieClip 714 game8 { frame 1 { _root.rules = 'Pop the Balloons'; _root.beatClock = true; } frame 1 { Nug1_bc = 0; onEnterFrame = function () { if (_root.cstatus == 1) { if (this.Nug1_bc >= 4) { trace('win'); _root.gameOutcome(true); } } }; } instance Nug1_baloon of movieClip 332 Nug1_baloon { onClipEvent (load) { this._x = random(550); this._y = Math.random() + 400; nug1_speed = Math.random() * 10 + 5; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._y -= nug1_speed; } } onClipEvent (press) { if (_root.cstatus == 1) { this.play(); } } } instance Nug1_baloon of movieClip 332 Nug1_baloon { onClipEvent (load) { this._x = random(550); this._y = Math.random() + 400; nug1_speed = Math.random() * 10 + 5; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._y -= nug1_speed; } } onClipEvent (press) { if (_root.cstatus == 1) { this.play(); } } } instance Nug1_baloon of movieClip 332 Nug1_baloon { onClipEvent (load) { this._x = random(550); this._y = Math.random() + 400; nug1_speed = Math.random() * 10 + 5; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._y -= nug1_speed; } } onClipEvent (press) { if (_root.cstatus == 1) { this.play(); } } } instance Nug1_baloon of movieClip 332 Nug1_baloon { onClipEvent (load) { this._x = random(550); this._y = Math.random() + 400; nug1_speed = Math.random() * 10 + 5; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._y -= nug1_speed; } } onClipEvent (press) { if (_root.cstatus == 1) { this.play(); } } } } movieClip 717 { } movieClip 719 { instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } instance of movieClip 717 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } } movieClip 723 { } movieClip 724 { frame 16 { gotoAndStop(16); } } movieClip 725 { frame 70 { gotoAndPlay(1); } frame 71 { _root.g.rob1_background.attachMovie('wohoo', 'wohoo1', 0); } } movieClip 733 { } movieClip 736 { } movieClip 737 game9 { frame 1 { _root.rules = 'Get Smashed'; _root.beatClock = true; onEnterFrame = function () { if (_root.g.character.hitTest(_root.g.smasher)) { _root.gameOutcome(true); _root.g.character.gotoAndStop('smashed'); } }; } instance character of movieClip 725 { onClipEvent (load) { xvar = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += xvar; xvar -= 0.3; } if (Key.isDown(37)) { xvar -= 0.5; } if (Key.isDown(39)) { xvar += 0.5; } } } } movieClip 745 { } movieClip 747 { } movieClip 750 { } movieClip 751 game10 { frame 1 { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } colour = rand(1, 5); correctBlock = rand(1, 100); switch (colour) { case 1: _root.rules = 'Find Red!'; break; case 2: _root.rules = 'Find Blue!'; break; case 3: _root.rules = 'Find Green!'; break; case 4: _root.rules = 'Find Orange!'; break; case 5: _root.rules = 'Find Pink!'; break; case 6: _root.rules = 'Find Yellow!'; } _root.beatClock = true; i = 2; while (i <= 100) { duplicateMovieClip(b1, 'b' + i, this.getNextHighestDepth()); if (i < 11) { this['b' + i]._x = (i - 1) * 55; this['b' + i]._y = 0; } else { if (i < 21) { this['b' + i]._x = (i - 1 - 10) * 55; this['b' + i]._y = 40; } else { if (i < 31) { this['b' + i]._x = (i - 1 - 20) * 55; this['b' + i]._y = 80; } else { if (i < 41) { this['b' + i]._x = (i - 1 - 30) * 55; this['b' + i]._y = 120; } else { if (i < 51) { this['b' + i]._x = (i - 1 - 40) * 55; this['b' + i]._y = 160; } else { if (i < 61) { this['b' + i]._x = (i - 1 - 50) * 55; this['b' + i]._y = 200; } else { if (i < 71) { this['b' + i]._x = (i - 1 - 60) * 55; this['b' + i]._y = 240; } else { if (i < 81) { this['b' + i]._x = (i - 1 - 70) * 55; this['b' + i]._y = 280; } else { if (i < 91) { this['b' + i]._x = (i - 1 - 80) * 55; this['b' + i]._y = 320; } else { if (i < 101) { this['b' + i]._x = (i - 1 - 90) * 55; this['b' + i]._y = 360; } } } } } } } } } } ++i; } i = 1; while (i <= 100) { this['b' + i].gotoAndStop(rand(1, 6)); while (this['b' + i]._currentframe == colour) { this['b' + i].gotoAndStop(rand(1, 6)); } ++i; } this['b' + correctBlock].gotoAndStop(colour); mouse.swapDepths(this.getNextHighestDepth()); onEnterFrame = function () { if (_root.cstatus == 1) { mouse._x = _root._xmouse; mouse._y = _root._ymouse; } }; onMouseDown = function () { if (_root.cstatus == 1) { if (this['b' + correctBlock].hitTest(_root._xmouse, _root._ymouse)) { _root.gameOutcome(true); } else { _root.gameOutcome(false); } } }; } instance b1 of movieClip 745 { onClipEvent (rollOver) { } } } movieClip 754 { } movieClip 756 { } movieClip 758 { frame 1 { stop(); } instance of movieClip 754 { onClipEvent (enterFrame) { if (_parent._parent.Char.hit.hitTest(this)) { _parent._parent.Char.dead = true; _parent._parent.Char.gotoAndStop('death'); } } } instance of movieClip 754 { onClipEvent (enterFrame) { if (_parent._parent.Char.hit.hitTest(this)) { _parent._parent.Char.dead = true; _parent._parent.Char.gotoAndStop('death'); } } } instance of movieClip 756 { onClipEvent (enterFrame) { if (_parent._parent.Char.hit.hitTest(this)) { _parent._parent.Char.dead = true; _parent._parent.Char.gotoAndStop('death'); } } } } button 762 { on (press) { if (_root.g.gameready == true) { if (Char.rdy == true) { Char.rdy = false; Char.jumping = true; } } } } button 763 { on (press) { if (_root.g.gameready == true) { if (Char.rdy == true) { Char.rdy = false; Char.ducking = true; } } } } movieClip 767 { frame 1 { stop(); } } movieClip 773 { } movieClip 775 { } movieClip 777 { } movieClip 778 { frame 14 { gotoAndPlay(1); } } movieClip 779 { frame 11 { _root.gameOutcome(false); } frame 12 { stop(); } } movieClip 780 { frame 1 { stop(); rdy = true; } } movieClip 784 { } movieClip 785 game11 { frame 1 { _root.rules = 'Dont hit the objects!'; _root.beatClock = false; onEnterFrame = function () { if (_root.cstatus == 1) { gameready = true; } }; } instance bg of movieClip 758 { onClipEvent (enterFrame) { if (_root.g.gameready == true) { _x = _x - 7; } } } instance Char of movieClip 780 { onClipEvent (load) { jumping = false; jump = 30; duck = false; timer = 0; _y = 330; dead = false; num = random(2) + 1; } onClipEvent (enterFrame) { if (_root.g.gameready == true) { _parent.bg.gotoAndStop(num); if (dead == false) { if (duck == false) { if (jump > 20) { gotoAndStop('static'); } } jump += 1; if (jumping == true) { jumping = false; gotoAndStop('jump'); jump = -20; } if (jump <= 20) { _y = _y + jump; } else { _y = 330; } if (ducking == true) { ducking = false; duck = true; gotoAndStop('duck'); } if (duck == true) { timer += 1; } if (timer == 30) { duck = false; timer = 0; gotoAndStop('static'); } } } } } instance of movieClip 784 { onClipEvent (enterFrame) { if (_root.g.gameready == true) { _x = _x + 1; } } } } movieClip 788 { } movieClip 792 { } movieClip 794 { } movieClip 795 { } movieClip 798 { frame 1 { _visible = false; } } movieClip 799 { } movieClip 803 { } movieClip 808 { } movieClip 811 { instance spray of movieClip 808 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { _alpha = _alpha - (_alpha - aTarget) / 3; } } } movieClip 814 { } movieClip 817 { } movieClip 818 game12 { frame 1 { _root.rules = 'Kill 4 flies!'; _root.beatClock = true; kills = 0; onEnterFrame = function () { if (kills >= 4) { _root.gameOutcome(true); } }; } instance of movieClip 795 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } gotoAndStop(rand(1, 3)); } } instance of movieClip 799 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { rTarget = rand(-180, 180); speed = rand(5, 6) * _root.speed; timer = Math.random() * 32; } _rotation = rand(-180, 180); _x = rand(0, 550); _y = rand(0, 400); reset(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (!dead) { _rotation = _rotation - (_rotation - rTarget) / 10; _x = _x + Math.cos(_rotation * Math.PI / 180) * speed; _y = _y + Math.sin(_rotation * Math.PI / 180) * speed; } else { _y = _y + 30; } if (_x + _width / 2 < 0) { _x = 550 + _width / 2; } if (_x - _width / 2 > 550) { _x = -(_width / 2); } if (_y + _height / 2 < 0) { _y = 400 + _height / 2; } if (_y - _height / 2 > 400 && !dead) { _y = -(_height / 2); } --timer; if (timer <= 0) { reset(); } if (hit.hitTest(_parent.spraycan.hit) && Key.isDown(32)) { if (!dead) { ++_parent.kills; } dead = true; } if (hit.hitTest(_parent.spraycan)) { rTarget = -180; } } } } instance of movieClip 799 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { rTarget = rand(-180, 180); speed = rand(5, 6) * _root.speed; timer = Math.random() * 32; } _rotation = rand(-180, 180); _x = rand(0, 550); _y = rand(0, 400); reset(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (!dead) { _rotation = _rotation - (_rotation - rTarget) / 10; _x = _x + Math.cos(_rotation * Math.PI / 180) * speed; _y = _y + Math.sin(_rotation * Math.PI / 180) * speed; } else { _y = _y + 30; } if (_x + _width / 2 < 0) { _x = 550 + _width / 2; } if (_x - _width / 2 > 550) { _x = -(_width / 2); } if (_y + _height / 2 < 0) { _y = 400 + _height / 2; } if (_y - _height / 2 > 400 && !dead) { _y = -(_height / 2); } --timer; if (timer <= 0) { reset(); } if (hit.hitTest(_parent.spraycan.hit) && Key.isDown(32)) { if (!dead) { ++_parent.kills; } dead = true; } if (hit.hitTest(_parent.spraycan)) { rTarget = -180; } } } } instance of movieClip 799 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { rTarget = rand(-180, 180); speed = rand(5, 6) * _root.speed; timer = Math.random() * 32; } _rotation = rand(-180, 180); _x = rand(0, 550); _y = rand(0, 400); reset(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (!dead) { _rotation = _rotation - (_rotation - rTarget) / 10; _x = _x + Math.cos(_rotation * Math.PI / 180) * speed; _y = _y + Math.sin(_rotation * Math.PI / 180) * speed; } else { _y = _y + 30; } if (_x + _width / 2 < 0) { _x = 550 + _width / 2; } if (_x - _width / 2 > 550) { _x = -(_width / 2); } if (_y + _height / 2 < 0) { _y = 400 + _height / 2; } if (_y - _height / 2 > 400 && !dead) { _y = -(_height / 2); } --timer; if (timer <= 0) { reset(); } if (hit.hitTest(_parent.spraycan.hit) && Key.isDown(32)) { if (!dead) { ++_parent.kills; } dead = true; } if (hit.hitTest(_parent.spraycan)) { rTarget = -180; } } } } instance of movieClip 799 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { rTarget = rand(-180, 180); speed = rand(5, 6) * _root.speed; timer = Math.random() * 32; } _rotation = rand(-180, 180); _x = rand(0, 550); _y = rand(0, 400); reset(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (!dead) { _rotation = _rotation - (_rotation - rTarget) / 10; _x = _x + Math.cos(_rotation * Math.PI / 180) * speed; _y = _y + Math.sin(_rotation * Math.PI / 180) * speed; } else { _y = _y + 30; } if (_x + _width / 2 < 0) { _x = 550 + _width / 2; } if (_x - _width / 2 > 550) { _x = -(_width / 2); } if (_y + _height / 2 < 0) { _y = 400 + _height / 2; } if (_y - _height / 2 > 400 && !dead) { _y = -(_height / 2); } --timer; if (timer <= 0) { reset(); } if (hit.hitTest(_parent.spraycan.hit) && Key.isDown(32)) { if (!dead) { ++_parent.kills; } dead = true; } if (hit.hitTest(_parent.spraycan)) { rTarget = -180; } } } } instance of movieClip 799 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { rTarget = rand(-180, 180); speed = rand(5, 6) * _root.speed; timer = Math.random() * 32; } _rotation = rand(-180, 180); _x = rand(0, 550); _y = rand(0, 400); reset(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (!dead) { _rotation = _rotation - (_rotation - rTarget) / 10; _x = _x + Math.cos(_rotation * Math.PI / 180) * speed; _y = _y + Math.sin(_rotation * Math.PI / 180) * speed; } else { _y = _y + 30; } if (_x + _width / 2 < 0) { _x = 550 + _width / 2; } if (_x - _width / 2 > 550) { _x = -(_width / 2); } if (_y + _height / 2 < 0) { _y = 400 + _height / 2; } if (_y - _height / 2 > 400 && !dead) { _y = -(_height / 2); } --timer; if (timer <= 0) { reset(); } if (hit.hitTest(_parent.spraycan.hit) && Key.isDown(32)) { if (!dead) { ++_parent.kills; } dead = true; } if (hit.hitTest(_parent.spraycan)) { rTarget = -180; } } } } instance of movieClip 799 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { rTarget = rand(-180, 180); speed = rand(5, 6) * _root.speed; timer = Math.random() * 32; } _rotation = rand(-180, 180); _x = rand(0, 550); _y = rand(0, 400); reset(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (!dead) { _rotation = _rotation - (_rotation - rTarget) / 10; _x = _x + Math.cos(_rotation * Math.PI / 180) * speed; _y = _y + Math.sin(_rotation * Math.PI / 180) * speed; } else { _y = _y + 30; } if (_x + _width / 2 < 0) { _x = 550 + _width / 2; } if (_x - _width / 2 > 550) { _x = -(_width / 2); } if (_y + _height / 2 < 0) { _y = 400 + _height / 2; } if (_y - _height / 2 > 400 && !dead) { _y = -(_height / 2); } --timer; if (timer <= 0) { reset(); } if (hit.hitTest(_parent.spraycan.hit) && Key.isDown(32)) { if (!dead) { ++_parent.kills; } dead = true; } if (hit.hitTest(_parent.spraycan)) { rTarget = -180; } } } } instance of movieClip 799 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { rTarget = rand(-180, 180); speed = rand(5, 6) * _root.speed; timer = Math.random() * 32; } _rotation = rand(-180, 180); _x = rand(0, 550); _y = rand(0, 400); reset(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (!dead) { _rotation = _rotation - (_rotation - rTarget) / 10; _x = _x + Math.cos(_rotation * Math.PI / 180) * speed; _y = _y + Math.sin(_rotation * Math.PI / 180) * speed; } else { _y = _y + 30; } if (_x + _width / 2 < 0) { _x = 550 + _width / 2; } if (_x - _width / 2 > 550) { _x = -(_width / 2); } if (_y + _height / 2 < 0) { _y = 400 + _height / 2; } if (_y - _height / 2 > 400 && !dead) { _y = -(_height / 2); } --timer; if (timer <= 0) { reset(); } if (hit.hitTest(_parent.spraycan.hit) && Key.isDown(32)) { if (!dead) { ++_parent.kills; } dead = true; } if (hit.hitTest(_parent.spraycan)) { rTarget = -180; } } } } instance spraycan of movieClip 811 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { rTarget = rand(-20, 40); timer = 16; } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { _rotation = _rotation - (_rotation - rTarget) / 10; --timer; if (timer <= 0) { reset(); } if (Key.isDown(32)) { spray.aTarget = 100; } else { spray.aTarget = 0; } if (Key.isDown(37)) { _x = _x - 15 * _root.speed; } else { if (Key.isDown(39)) { _x = _x + 15 * _root.speed; } } if (Key.isDown(38)) { _y = _y - 15 * _root.speed; } else { if (Key.isDown(40)) { _y = _y + 15 * _root.speed; } } if (_x + _width / 2 < 0) { _x = 550 + _width / 2; } if (_x - _width / 2 > 550) { _x = -(_width / 2); } if (_y + _height / 2 < 0) { _y = 400 + _height / 2; } if (_y - _height / 2 > 400 && !dead) { _y = -(_height / 2); } } } } } movieClip 827 { frame 6 { stop(); } } movieClip 829 { frame 6 { stop(); } } movieClip 837 { frame 16 { stop(); } } movieClip 838 { frame 1 { stop(); } frame 9 { stop(); _root.gameOutcome(true); } } movieClip 841 { } movieClip 842 game13 { frame 1 { _root.rules = 'Free the Gargoyle!'; _root.beatClock = true; } instance of movieClip 838 { onClipEvent (release) { this.nextFrame(); } onClipEvent (enterFrame) { if (this._currentframe == 30) { _root.gameOutcome(true); } } } } movieClip 845 { frame 1 { stop(); } } movieClip 847 { } movieClip 856 { } movieClip 868 { } movieClip 869 { frame 1 { stop(); } } movieClip 871 { } movieClip 874 { } movieClip 875 game14 { frame 1 { _root.rules = 'Get the Jewel!'; _root.beatClock = true; } instance of movieClip 869 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(39)) { this._x += 8; gotoAndStop(2); } } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(38)) { gotoAndStop(3); } if (_x > 524) { _x = 524; } if (this.hitTest(_parent.diamond)) { _y = 240; trace('blah'); _root.gameOutcome(true); } } } onClipEvent (keyUp) { gotoAndStop(1); } } } movieClip 877 { } movieClip 881 { } movieClip 882 { } movieClip 883 { } movieClip 884 { instance of movieClip 881 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.bollywog) && _root.cstatus == 1) { _root.gameOutcome(false); } } } } movieClip 887 { } movieClip 889 { } movieClip 890 { } movieClip 892 { } movieClip 895 { } movieClip 896 game15 { frame 1 { _root.rules = 'Catch all!'; _root.beatClock = false; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance mx73_ground of movieClip 877 { onClipEvent (load) { this._visible = false; } } instance mx72_ball0 of movieClip 884 { onClipEvent (load) { yvel = 0; hit = false; this._x = gamma; gamma = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { while (gamma > 80) { gamma = Math.floor(Math.random() * 365); } if (hit != true) { yvel += 0.2; } _y = _y + yvel; for (i in this.mx72_perim) { p = {'x': mx72_perim[i]._x, 'y': mx72_perim[i]._y}; mx72_perim.localToGlobal(p); if (_root.g.mx72_catcher.hitTest(p.x, p.y, true)) { hit = true; } if (_root.g.mx72_ground.hitTest(p.x, p.y, true)) { rhit = true; _root.gameOutcome(false); } if (hit == true) { yvel = 0; this._x = _root.g.mx72_catcher._x; this._y = _root.g.mx72_catcher._y; } if (rhit == true) { yvel = 0; this._y = 361; } updateAfterEvent(); } } } } instance mx72_ball1 of movieClip 884 { onClipEvent (load) { yvel = 0; hit = false; this._x = gamma; gamma = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { while (gamma > 80) { gamma = Math.floor(Math.random() * 365); } if (hit != true) { yvel += 0.2; } _y = _y + yvel; for (i in this.mx72_perim) { p = {'x': mx72_perim[i]._x, 'y': mx72_perim[i]._y}; mx72_perim.localToGlobal(p); if (_root.g.mx72_catcher.hitTest(p.x, p.y, true)) { hit = true; } if (_root.g.mx72_ground.hitTest(p.x, p.y, true)) { rhit = true; gameOutcome(false); } if (hit == true) { yvel = 0; this._x = _root.g.mx72_catcher._x; this._y = _root.g.mx72_catcher._y; } if (rhit == true) { yvel = 0; this._y = 361; } updateAfterEvent(); } } } } instance mx72_ball1z of movieClip 884 { onClipEvent (load) { yvel = 0; hit = false; this._x = gamma; gamma = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { while (gamma > 80) { gamma = Math.floor(Math.random() * 365); } if (hit != true) { yvel += 0.2; } _y = _y + yvel; for (i in this.mx72_perim) { p = {'x': mx72_perim[i]._x, 'y': mx72_perim[i]._y}; mx72_perim.localToGlobal(p); if (_root.g.mx72_catcher.hitTest(p.x, p.y, true)) { hit = true; } if (_root.g.mx72_ground.hitTest(p.x, p.y, true)) { rhit = true; gameOutcome(false); } if (hit == true) { yvel = 0; this._x = _root.g.mx72_catcher._x; this._y = _root.g.mx72_catcher._y; } if (rhit == true) { yvel = 0; this._y = 361; } updateAfterEvent(); } } } } instance mx72_ball7 of movieClip 884 { onClipEvent (load) { yvel = 0; hit = false; this._x = gamma; gamma = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { while (gamma > 80) { gamma = Math.floor(Math.random() * 365); } if (hit != true) { yvel += 0.2; } _y = _y + yvel; for (i in this.mx72_perim) { p = {'x': mx72_perim[i]._x, 'y': mx72_perim[i]._y}; mx72_perim.localToGlobal(p); if (_root.g.mx72_catcher.hitTest(p.x, p.y, true)) { hit = true; } if (_root.g.mx72_ground.hitTest(p.x, p.y, true)) { rhit = true; _root.gameOutcome(false); } if (hit == true) { yvel = 0; this._x = _root.g.mx72_catcher._x; this._y = _root.g.mx72_catcher._y; } if (rhit == true) { yvel = 0; this._y = 361; } updateAfterEvent(); } } } } instance mx72_ball6 of movieClip 884 { onClipEvent (load) { yvel = 0; hit = false; this._x = gamma; gamma = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { while (gamma > 80) { gamma = Math.floor(Math.random() * 365); } if (hit != true) { yvel += 0.2; } _y = _y + yvel; for (i in this.mx72_perim) { p = {'x': mx72_perim[i]._x, 'y': mx72_perim[i]._y}; mx72_perim.localToGlobal(p); if (_root.g.mx72_catcher.hitTest(p.x, p.y, true)) { hit = true; } if (_root.g.mx72_ground.hitTest(p.x, p.y, true)) { rhit = true; _root.gameOutcome(false); } if (hit == true) { yvel = 0; this._x = _root.g.mx72_catcher._x; this._y = _root.g.mx72_catcher._y; } if (rhit == true) { yvel = 0; this._y = 361; } updateAfterEvent(); } } } } instance mx72_ball5 of movieClip 884 { onClipEvent (load) { yvel = 0; hit = false; this._x = gamma; gamma = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { while (gamma > 80) { gamma = Math.floor(Math.random() * 365); } if (hit != true) { yvel += 0.2; } _y = _y + yvel; for (i in this.mx72_perim) { p = {'x': mx72_perim[i]._x, 'y': mx72_perim[i]._y}; mx72_perim.localToGlobal(p); if (_root.g.mx72_catcher.hitTest(p.x, p.y, true)) { hit = true; } if (_root.g.mx72_ground.hitTest(p.x, p.y, true)) { rhit = true; _root.gameOutcome(false); } if (hit == true) { yvel = 0; this._x = _root.g.mx72_catcher._x; this._y = _root.g.mx72_catcher._y; } if (rhit == true) { yvel = 0; this._y = 361; } updateAfterEvent(); } } } } instance mx72_ball10 of movieClip 884 { onClipEvent (load) { yvel = 0; hit = false; this._x = gamma; gamma = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { while (gamma > 80) { gamma = Math.floor(Math.random() * 365); } if (hit != true) { yvel += 0.2; } _y = _y + yvel; for (i in this.mx72_perim) { p = {'x': mx72_perim[i]._x, 'y': mx72_perim[i]._y}; mx72_perim.localToGlobal(p); if (_root.g.mx72_catcher.hitTest(p.x, p.y, true)) { hit = true; } if (_root.g.mx72_ground.hitTest(p.x, p.y, true)) { rhit = true; _root.gameOutcome(false); } if (hit == true) { yvel = 0; this._x = _root.g.mx72_catcher._x; this._y = _root.g.mx72_catcher._y; } if (rhit == true) { yvel = 0; this._y = 361; } updateAfterEvent(); } } } } instance mx72_ball9 of movieClip 884 { onClipEvent (load) { yvel = 0; hit = false; this._x = gamma; gamma = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { while (gamma > 80) { gamma = Math.floor(Math.random() * 365); } if (hit != true) { yvel += 0.2; } _y = _y + yvel; for (i in this.mx72_perim) { p = {'x': mx72_perim[i]._x, 'y': mx72_perim[i]._y}; mx72_perim.localToGlobal(p); if (_root.g.mx72_catcher.hitTest(p.x, p.y, true)) { hit = true; } if (_root.g.mx72_ground.hitTest(p.x, p.y, true)) { rhit = true; _root.gameOutcome(false); } if (hit == true) { yvel = 0; this._x = _root.g.mx72_catcher._x; this._y = _root.g.mx72_catcher._y; } if (rhit == true) { yvel = 0; this._y = 361; } updateAfterEvent(); } } } } instance mx72_ball8 of movieClip 884 { onClipEvent (load) { yvel = 0; hit = false; this._x = gamma; gamma = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { while (gamma > 80) { gamma = Math.floor(Math.random() * 365); } if (hit != true) { yvel += 0.2; } _y = _y + yvel; for (i in this.mx72_perim) { p = {'x': mx72_perim[i]._x, 'y': mx72_perim[i]._y}; mx72_perim.localToGlobal(p); if (_root.g.mx72_catcher.hitTest(p.x, p.y, true)) { hit = true; } if (_root.g.mx72_ground.hitTest(p.x, p.y, true)) { rhit = true; _root.gameOutcome(false); } if (hit == true) { yvel = 0; this._x = _root.g.mx72_catcher._x; this._y = _root.g.mx72_catcher._y; } if (rhit == true) { yvel = 0; this._y = 361; } updateAfterEvent(); } } } } instance mx72_ball4 of movieClip 884 { onClipEvent (load) { yvel = 0; hit = false; this._x = gamma; gamma = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { while (gamma > 80) { gamma = Math.floor(Math.random() * 365); } if (hit != true) { yvel += 0.2; } _y = _y + yvel; for (i in this.mx72_perim) { p = {'x': mx72_perim[i]._x, 'y': mx72_perim[i]._y}; mx72_perim.localToGlobal(p); if (_root.g.mx72_catcher.hitTest(p.x, p.y, true)) { hit = true; } if (_root.g.mx72_ground.hitTest(p.x, p.y, true)) { rhit = true; _root.gameOutcome(false); } if (hit == true) { yvel = 0; this._x = _root.g.mx72_catcher._x; this._y = _root.g.mx72_catcher._y; } if (rhit == true) { yvel = 0; this._y = 361; } updateAfterEvent(); } } } } instance mx72_ball3 of movieClip 884 { onClipEvent (load) { yvel = 0; hit = false; this._x = gamma; gamma = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { while (gamma > 80) { gamma = Math.floor(Math.random() * 365); } if (hit != true) { yvel += 0.2; } _y = _y + yvel; for (i in this.mx72_perim) { p = {'x': mx72_perim[i]._x, 'y': mx72_perim[i]._y}; mx72_perim.localToGlobal(p); if (_root.g.mx72_catcher.hitTest(p.x, p.y, true)) { hit = true; } if (_root.g.mx72_ground.hitTest(p.x, p.y, true)) { rhit = true; _root.gameOutcome(false); } if (hit == true) { yvel = 0; this._x = _root.g.mx72_catcher._x; this._y = _root.g.mx72_catcher._y; } if (rhit == true) { yvel = 0; this._y = 361; } updateAfterEvent(); } } } } instance mx72_ball2 of movieClip 884 { onClipEvent (load) { yvel = 0; hit = false; this._x = gamma; gamma = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { while (gamma > 80) { gamma = Math.floor(Math.random() * 365); } if (hit != true) { yvel += 0.2; } _y = _y + yvel; for (i in this.mx72_perim) { p = {'x': mx72_perim[i]._x, 'y': mx72_perim[i]._y}; mx72_perim.localToGlobal(p); if (_root.g.mx72_catcher.hitTest(p.x, p.y, true)) { hit = true; } if (_root.g.mx72_ground.hitTest(p.x, p.y, true)) { rhit = true; _root.gameOutcome(false); } if (hit == true) { yvel = 0; this._x = _root.g.mx72_catcher._x; this._y = _root.g.mx72_catcher._y; } if (rhit == true) { yvel = 0; this._y = 361; } updateAfterEvent(); } } } } instance mx72_catcher of movieClip 890 { onClipEvent (enterFrame) { this._x = _root._xmouse; } } } movieClip 900 { frame 1 { stop(); } } movieClip 906 { frame 19 { stop(); } } movieClip 907 { frame 13 { gotoAndPlay(4); } } movieClip 909 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); _root.gameOutcome(true); } } movieClip 913 { frame 1 { stop(); } frame 10 { ++_parent.Nug1_hc; trace(_parent.Nug1_hc); _parent.Nug1_katsup.nextFrame(); } } movieClip 916 { } movieClip 917 game16 { frame 1 { _root.rules = 'Knock the Catsup out'; _root.beatClock = true; Nug1_hc = 0; onEnterFrame = function () { if (_root.cstatus == 1) { if (Nug1_hc == 4) { _root.gameOutcome(true); trace('win'); } } }; } instance Nug1_finger of movieClip 900 { onClipEvent (load) { keyAct = false; } onClipEvent (enterFrame) { if (_root.cstatus == 1 && Key.isDown(32) && keyAct == false) { keyAct = true; this.play(); _parent.Nug1_hand.play(); } if (!Key.isDown(32)) { keyAct = false; } } } } movieClip 920 { } movieClip 925 { } movieClip 927 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 930 { } movieClip 931 game17 { frame 1 { _root.rules = 'Push Play'; _root.beatClock = true; } instance Nug4_hand of movieClip 927 { onClipEvent (enterFrame) { if (Key.isDown(39)) { this._x += 7; } if (Key.isDown(37)) { this._x -= 7; } if (Key.isDown(38)) { this._y -= 7; } if (Key.isDown(40)) { this._y += 7; } if (Key.isDown(32)) { nextFrame(); } if (_root.cstatus == 1) { if (this._currentframe == 2) { if (this.Nug4_tip.hitTest(_parent.Nug4_playbtn)) { trace('win'); _root.gameOutcome(true); } } } } onClipEvent (keyUp) { gotoAndStop(1); } } } movieClip 933 { } movieClip 936 { } movieClip 940 { frame 1 { stop(); } frame 2 { ++_parent.Nug4_nc; trace(_parent.Nug4_nc); } frame 3 { stop(); } } movieClip 943 { frame 1 { stop(); } frame 2 { ++_parent.Nug4_nc; trace(_parent.Nug4_nc); } frame 3 { stop(); } } movieClip 945 { } movieClip 948 { } movieClip 950 { } movieClip 952 { } movieClip 954 { } movieClip 956 { } movieClip 957 { } movieClip 958 { frame 1 { stop(); onEnterFrame = function () { if (Key.isDown(32)) { this.play(); } if (!Key.isDown(32) and Key.isDown(37)) { this._x -= 7; } if (!Key.isDown(32) and Key.isDown(39)) { this._x += 7; } if (!Key.isDown(32) and Key.isDown(38)) { this._y -= 7; } if (!Key.isDown(32) and Key.isDown(40)) { this._y += 7; } }; } instance of movieClip 957 { onClipEvent (load) { i = 0; } onClipEvent (enterFrame) { ++i; if (i >= 7) { i = 0; } if (this.hitTest(_parent._parent._parent['Nug1_nail' + i]['Nug1_ghost' + i])) { trace('hit'); _parent._parent._parent['Nug1_nail' + i].play(); } } } } movieClip 959 { instance of movieClip 958 { onClipEvent (enterFrame) { if (this._y >= 200) { this._y = 200; } if (this._y <= -100) { this._y = -100; } if (this._x <= -300) { this._x = -300; } if (this._x >= 300) { this._x = 300; } } } } movieClip 962 { } movieClip 963 game18 { frame 1 { Nug4_nc = 0; } frame 1 { _root.rules = 'Hammer down the nails'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { if (Nug4_nc == 2) { _root.gameOutcome(true); trace('win'); } } }; } } movieClip 977 { } movieClip 995 { frame 1 { leftkey = true; leftready = false; } frame 55 { leftdecision = random(3); if (leftdecision == 1) { gotoAndPlay('oksign'); ++_parent.num; } if (leftdecision == 0) { gotoAndPlay('nosign'); } if (leftdecision == 2) { gotoAndPlay('warmup'); } } frame 56 { leftready = true; leftok = true; oksigns += 1; } frame 64 { stop(); } frame 65 { leftready = true; leftok = false; } frame 73 { stop(); } frame 74 { _parent.oksigns -= 1; } frame 75 { leftkey = false; --_parent.num; } frame 83 { stop(); } frame 84 { _root.gameOutcome(false); } frame 85 { leftkey = false; } frame 93 { stop(); } frame 94 { _root.gameOutcome(false); } frame 95 { leftkey = false; } frame 103 { stop(); } } movieClip 1015 { frame 1 { rightkey = true; rightready = false; } frame 55 { rightdecision = random(2); if (leftdecision == 1) { gotoAndPlay('oksign'); ++_parent.num; } if (leftdecision == 0) { gotoAndPlay('nosign'); } if (rightdecision == 2) { gotoAndPlay('warmup'); } } frame 56 { rightready = true; rightok = true; oksigns += 1; } frame 56 { ++_parent.num; } frame 64 { stop(); } frame 65 { rightready = true; rightok = false; } frame 73 { stop(); } frame 74 { oksigns -= 1; } frame 75 { leftkey = false; --_parent.num; } frame 83 { stop(); } frame 84 { _root.gameOutcome(false); } frame 85 { leftkey = false; } frame 93 { stop(); } frame 94 { _root.gameOutcome(false); } frame 95 { leftkey = false; } frame 103 { stop(); } } movieClip 1017 { } movieClip 1019 { } movieClip 1020 { } movieClip 1022 { } movieClip 1024 { } movieClip 1025 { frame 1 { stop(); } frame 8 { gotoAndPlay(1); } frame 16 { stop(); } } movieClip 1028 { } movieClip 1029 game19 { frame 1 { var num = 0; _root.rules = 'Be Patient'; leftDown = false; upDown = false; rightDown = false; downDown = false; spaceDown = false; onEnterFrame = function () { if (!Key.isDown(37)) { leftDown = false; } if (!Key.isDown(39)) { rightDown = false; } if (!Key.isDown(38)) { upDown = false; } if (!Key.isDown(40)) { downDown = false; } if (!Key.isDown(32)) { spaceDown = false; } trace(num); if (num <= 0) { _root.beatClock = false; trace('OKAY' + num); } if (num > 0) { _root.beatClock = true; trace('UP' + num); } }; } instance of movieClip 995 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(37) && _root.g.leftDown == false) { _root.g.leftDown = true; _root.g.fighter.gotoAndPlay('leftpunch'); if (leftkey == true) { if (leftready == false) { gotoAndPlay('fallover'); } if (leftready == true) { if (leftok == true) { gotoAndPlay('oksignhit'); } if (leftok == false) { gotoAndPlay('nosignhit'); } } } } } } } instance of movieClip 1015 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(39) && _root.g.rightDown == false) { _root.g.rightDown = true; _root.g.fighter.gotoAndPlay('rightpunch'); if (rightkey == true) { if (rightready == false) { gotoAndPlay('fallover'); } if (rightready == true) { if (rightok == true) { gotoAndPlay('oksignhit'); } if (rightok == false) { gotoAndPlay('nosignhit'); } } } } } } } } movieClip 1032 { } movieClip 1036 { frame 1 { stop(); } } movieClip 1045 game20 { frame 1 { _root.rules = 'Pick Best Value'; _root.beatClock = true; bad = true; v1 = Math.floor(Math.random() * 100) / 100; while (bad) { v2 = Math.floor(Math.random() * 100) / 100; if (v2 != v1) { bad = false; } } bad = true; while (bad) { v3 = Math.floor(Math.random() * 100) / 100; if (v3 != v1 && v3 != v2) { bad = false; } } if (v1 < v2 && v1 < v3) { right = 1; } if (v2 < v1 && v2 < v3) { right = 2; } if (v3 < v2 && v3 < v1) { right = 3; } p1 = '$ ' + v1; p2 = '$ ' + v2 * 10; p3 = '$ ' + v3 * 100; which = 1; pressing = false; onEnterFrame = function () { if (_root.cstatus == 1) { if (Key.isDown(37)) { if (which > 1) { if (!pressing) { pressing = true; --which; this.select._x -= 175; } } } if (Key.isDown(39)) { if (which < 3) { if (!pressing) { pressing = true; ++which; this.select._x += 175; } } } if (!Key.isDown(39) && !Key.isDown(37)) { pressing = false; } if (Key.isDown(32)) { if (which == right) { select.gotoAndStop(2); _root.gameOutcome(true); } else { select.gotoAndStop(3); _root.gameOutcome(false); } } } }; } } movieClip 1049 { } movieClip 1051 { } movieClip 1054 { } movieClip 1065 { frame 1 { stop(); onEnterFrame = function () { if (Key.isDown(38) && _root.g.upDown == false) { _root.g.upDown = true; play(); } if (Key.isDown(40) && _root.g.downDown == false) { _root.g.downDown = true; gotoAndPlay(23); } }; } frame 22 { gotoAndStop(1); } } movieClip 1070 { } movieClip 1072 { } movieClip 1074 { } movieClip 1075 { frame 128 { _root.gameOutcome(true); } } movieClip 1076 game21 { frame 1 { stop(); onEnterFrame = function () { if (_root.cstatus == 1) { play(); onEnterFrame = function () {}; } }; _root.rules = 'Avoid!'; _root.beatClock = false; } frame 2 { stop(); leftDown = false; upDown = false; rightDown = false; downDown = false; spaceDown = false; onEnterFrame = function () { if (!Key.isDown(37)) { leftDown = false; } if (!Key.isDown(39)) { rightDown = false; } if (!Key.isDown(38)) { upDown = false; } if (!Key.isDown(40)) { downDown = false; } if (!Key.isDown(32)) { spaceDown = false; } }; } instance of movieClip 1065 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (this.hitTest(_root.g.allrocks.rock2)) { _x = _x - (15 + _root.speed * 5); } if (this.hitTest(_root.g.boulder)) { _root.gameOutcome(false); } if (this.hitTest(_root.g.allrocks.rock1)) { _x = _x - (15 + _root.speed * 5); } } } } } movieClip 1082 { } movieClip 1085 { } movieClip 1088 { } movieClip 1090 { } movieClip 1091 { } movieClip 1102 { } movieClip 1106 { } movieClip 1113 { } movieClip 1128 { } movieClip 1129 { frame 1 { stop(); } frame 2 { onEnterFrame = function () { if (_root.cstatus == 1) { play(); } else { stop(); } }; } frame 28 { _root.gameOutcome(false); } frame 45 { stop(); } } movieClip 1130 game26 { frame 1 { _root.rules = 'DON\'T TOUCH'; _root.beatClock = false; onEnterFrame = function () { if (_root.cstatus == 1) { if (Key.isDown(37) || Key.isDown(39) || Key.isDown(40) || Key.isDown(38) || Key.isDown(32)) { stuff.play(); } } }; } } movieClip 1137 { frame 1 { stop(); } } movieClip 1138 { } movieClip 1171 { frame 26 { gotoAndPlay(1); } frame 35 { stop(); } } movieClip 1174 { } movieClip 1175 game31 { frame 1 { _root.rules = 'Keep Him Bouncing!'; _root.beatClock = false; grav = 15; bounce = 0; living = true; spasm = 0; Mouse.hide(); onEnterFrame = function () { if (_root.cstatus == 1) { spring.spring.startDrag(true, 0, 0, 550, 0); dude.onEnterFrame = function () { if (living) { this._y += grav; this._x += spasm; this._y -= bounce; if (this._x >= 550 or this._x < 0) { spasm *= -1; } if (bounce <= 0) { bounce = bounce; } else { bounce -= 5; } bounce; if (this.hitTest(spring)) { bounce += Math.random() * 40; spasm += Math.random() * 10 - 5; spring.spring.play(); } if (this._y >= 300) { living = false; this.gotoAndPlay(30); _root.gameOutcome(false); } } }; } }; } } movieClip 1181 { frame 1 { stop(); } } movieClip 1182 { frame 1 { stop(); } } movieClip 1189 { } movieClip 1190 game32 { frame 1 { _root.rules = 'Count the Stars'; _root.beatClock = true; starNum = 10; q = random(starNum) + 1; i = random(3); stars = 0; while (stars < q) { attachMovie('Din4_star', 'star' + stars, this.getNextHighestDepth()); star = this['star' + stars]; star._x = Math.random() * 500 + 25; star._y = Math.random() * 200 + 30; star._rotation = Math.random() * 360; star._yscale = Math.random() * 50 + 50; star._xscale = star._yscale; ++stars; } if (i == 0) { tex1 = q; tex2 = random(10) + 1; while (tex2 == q) { tex2 = random(10) + 1; } tex3 = random(10) + 1; while (tex3 == q or tex3 == tex2) { tex3 = random(10) + 1; } } if (i == 1) { tex2 = q; tex1 = random(10) + 1; while (tex1 == q) { tex1 = random(10) + 1; } tex3 = random(10) + 1; while (tex3 == q or tex3 == tex1) { tex3 = random(10) + 1; } } if (i == 2) { tex3 = q; tex1 = random(10) + 1; while (tex1 == q) { tex1 = random(10) + 1; } tex2 = random(10) + 1; while (tex2 == q or tex2 == tex1) { tex2 = random(10) + 1; } } onEnterFrame = function () { if (_root.cstatus == 1) { if (Key.isDown(37)) { box.prevFrame(); } if (Key.isDown(39)) { box.nextFrame(); } if (Key.isDown(32)) { if (box._currentframe > 0 and box._currentframe < 4) { if (i == 0) { box.box.gotoAndStop(3); _root.gameOutcome(true); } else { box.box.gotoAndStop(2); _root.gameOutcome(false); } } if (box._currentframe > 3 and box._currentframe < 7) { if (i == 1) { box.box.gotoAndStop(3); _root.gameOutcome(true); } else { box.box.gotoAndStop(2); _root.gameOutcome(false); } } if (box._currentframe == 7) { if (i == 2) { box.box.gotoAndStop(3); _root.gameOutcome(true); } else { box.box.gotoAndStop(2); _root.gameOutcome(false); } } } } }; } } movieClip 1193 { } movieClip 1196 { } movieClip 1197 { } movieClip 1205 { frame 4 { gotoAndPlay(1); } frame 67 { stop(); } } movieClip 1208 { } movieClip 1209 game33 { frame 1 { function addBomb() { if (_root.cstatus == 1) { ++q; explosives.attachMovie('Din_BOOM', 'boom' + q, q); boom = explosives['boom' + q]; boom.gotoAndStop(random(3) + 1); boom._x = Math.random() * 30 - 15; boom.captureX = boom._x; boom.onEnterFrame = function () { this.ease += 0.5; this._x += this.captureX / aspect; this._yscale = 100 + this._y / 3; this._xscale = this._yscale; this._y += ease; if (this.hitTest(car)) { car.gotoAndPlay(8); this.removeMovieClip(); clearInterval(makeBOOM); _root.gameOutcome(false); } }; } } _root.rules = 'Don\'t A Splode!!'; _root.beatClock = false; carSpeed = 15; ease = 10; q = 0; aspect = 2.5; started = false; onEnterFrame = function () { if (_root.cstatus == 1) { started = true; if (Key.isDown(37) and car._x > 95) { car._x -= carSpeed; } if (Key.isDown(39) and car._x < 480) { car._x += carSpeed; } } }; makeBOOM = setInterval(addBomb, 2000); } } movieClip 1211 { } movieClip 1214 { } movieClip 1218 { frame 50 { _parent.doIt = false; } frame 53 { if (_parent.edn) { stop(); } } frame 69 { _parent.doIt = true; } } movieClip 1226 { frame 8 { gotoAndPlay(1); } } movieClip 1229 { } movieClip 1230 game34 { frame 1 { _root.rules = 'Stay Alive!!'; _root.beatClock = false; movement = 10; doIt = true; edn = false; onEnterFrame = function () { if (_root.cstatus == 1) { shrimp._x > 0 ? '' : shrimp._x; shrimp._x < 550 ? '' : shrimp._x; if (shrimp.hitTest(fork)) { edn = true; shrimp.gotoAndStop(12); _root.gameOutcome(false); } if (doIt) { Math.abs(fork._x - shrimp._x) > 5 ? fork._x; } } }; } } movieClip 1233 { } movieClip 1237 { } movieClip 1238 { } movieClip 1249 { frame 1 { stop(); } frame 11 { this.removeMovieClip(); } } movieClip 1252 { } movieClip 1255 { } movieClip 1256 game35 { frame 1 { _root.rules = 'Eat 4 muffins!'; _root.beatClock = true; muffinsEaten = 0; onEnterFrame = function () { if (muffinsEaten >= 4) { _root.gameOutcome(true); } }; timer = 0; } instance of movieClip 1238 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { if (_root.cstatus == 1) { rTarget = rand(-180, -110); timer = 16; ++i; _parent.muffin1.duplicateMovieClip('muffin' + i, _parent.getNextHighestDepth()); _parent['muffin' + i]._x = top._x + _x + Math.cos(top._rotation * Math.PI / 180) * 135; _parent['muffin' + i]._y = top._y + _y + Math.sin(top._rotation * Math.PI / 180) * 135; _parent['muffin' + i]._rotation = top._rotation; speed = rand(5, 10); _parent['muffin' + i].xSpeed = Math.cos(top._rotation * Math.PI / 180) * speed; _parent['muffin' + i].ySpeed = Math.sin(top._rotation * Math.PI / 180) * speed; _parent['muffin' + i].onEnterFrame = function () { if (_root.cstatus == 1) { this._x += this.xSpeed; this._y += this.ySpeed; if (this._x < -30 || this._y < -30 || this._x > 580 || this._y > 430) { this.removeMovieClip(); } } }; } } i = 1; top._rotation = rand(-175, -120); reset(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (!timer) { reset(); } top._rotation -= (top._rotation - rTarget) / 10; --timer; if (timer <= 0) { reset(); } } } } instance muffin1 of movieClip 1249 { onClipEvent (press) { play(); ++_parent.muffinsEaten; } } } movieClip 1260 { } button 1265 { on (release) { gotoAndStop('lose'); } } button 1269 { on (release) { gotoAndStop('lose'); } } button 1273 { on (release) { gotoAndStop('win'); } } movieClip 1278 { } movieClip 1282 { } movieClip 1284 { frame 1 { gotoAndStop(random(4)); stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); _root.gameOutcome(true); } frame 5 { stop(); _root.gameOutcome(false); } } movieClip 1287 { } movieClip 1288 game36 { frame 1 { _root.rules = 'Be a Dumbass'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } } movieClip 1290 { } movieClip 1292 { } movieClip 1294 { } movieClip 1296 { } movieClip 1298 { } movieClip 1300 { } movieClip 1302 { } movieClip 1304 { } movieClip 1306 { } movieClip 1308 { } movieClip 1310 { } movieClip 1312 { } movieClip 1314 { } movieClip 1316 { } movieClip 1318 { } movieClip 1319 { frame 1 { stop(); } frame 21 { stop(); } } movieClip 1324 { frame 1 { stop(); } } movieClip 1326 { } movieClip 1327 game37 { frame 1 { _root.blu1_crosshair.swapDepths(1000); } frame 1 { _root.rules = 'Shoot 6 cows!'; var cowshit = 0; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { if (cowshit >= 6) { _root.gameOutcome(true); } } Mouse.hide(); blu1_crosshair._x = _root._xmouse; blu1_crosshair._y = _root._ymouse; }; } instance of movieClip 1319 { onClipEvent (release) { if (_root.cstatus == 1) { play(); ++_root.g.cowshit; } } } instance of movieClip 1319 { onClipEvent (release) { if (_root.cstatus == 1) { play(); ++_root.g.cowshit; } } } instance of movieClip 1319 { onClipEvent (release) { if (_root.cstatus == 1) { play(); ++_root.g.cowshit; } } } instance of movieClip 1319 { onClipEvent (release) { if (_root.cstatus == 1) { play(); ++_root.g.cowshit; } } } instance of movieClip 1319 { onClipEvent (release) { if (_root.cstatus == 1) { play(); ++_root.g.cowshit; } } } instance of movieClip 1319 { onClipEvent (release) { if (_root.cstatus == 1) { play(); ++_root.g.cowshit; } } } instance shotgun_mc of movieClip 1324 { onClipEvent (enterFrame) { _x = _root._xmouse; } } instance blu1_crosshair of movieClip 1326 { onClipEvent (enterFrame) { _x = _root._xmouse; _y = _root._ymouse; Mouse.hide(); } onClipEvent (mouseDown) { _root.shotgun_mc.play(); } } } movieClip 1332 { } movieClip 1339 { } movieClip 1340 { } movieClip 1341 { } movieClip 1344 { } movieClip 1346 { } movieClip 1348 { } movieClip 1350 { } movieClip 1351 { frame 15 { stop(); } } movieClip 1352 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1355 { } movieClip 1357 { } movieClip 1359 { } movieClip 1360 { frame 15 { stop(); } } movieClip 1361 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1364 { } movieClip 1366 { } movieClip 1368 { } movieClip 1369 { frame 15 { stop(); } } movieClip 1370 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1373 { } movieClip 1375 { } movieClip 1376 { frame 15 { stop(); } } movieClip 1377 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1378 { instance of movieClip 1352 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.head1.head2.teeth)) { this.gotoAndStop(2); } } } instance of movieClip 1361 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.head1.head2.teeth)) { this.gotoAndStop(2); } } } instance of movieClip 1370 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.head1.head2.teeth)) { this.gotoAndStop(2); } } } instance of movieClip 1377 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.head1.head2.teeth)) { this.gotoAndStop(2); if (_root.cstatus == 1) { _root.gameOutcome(true); } } } } } movieClip 1381 { } movieClip 1382 game38 { frame 1 { _root.rules = 'Eat the cloud!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance head1 of movieClip 1341 { } instance of movieClip 1378 { onClipEvent (load) { speed = 7; stop(); } onClipEvent (enterFrame) { _x = _x + Key.isDown(39) * speed; _x = _x - Key.isDown(37) * speed; _y = _y + Key.isDown(40) * speed; _y = _y - Key.isDown(38) * speed; } onClipEvent (enterFrame) { if (this.hitTest(_root.g.head1.head2.teeth)) { this.gotoAndStop(2); } } } } movieClip 1385 { } movieClip 1388 { } movieClip 1389 { frame 1 { stop(); } frame 9 { stop(); } frame 22 { gotoAndStop(1); } } movieClip 1392 { } movieClip 1394 { } movieClip 1395 { frame 1 { stop(); } frame 9 { stop(); _parent.done = true; ++_parent.step; _parent.arrow.gotoAndStop('up'); trace(_parent.done); trace(_parent.step); } frame 10 { _parent.eclair1.gotoAndPlay('up'); } frame 17 { stop(); _parent.done = true; ++_parent.step; _parent.arrow.gotoAndStop('right'); trace(_parent.done); trace(_parent.step); } frame 18 { _parent.eclair1.gotoAndPlay('right'); } frame 30 { stop(); _parent.done = true; ++_parent.step; _parent.arrow.gotoAndStop('left'); trace(_parent.done); trace(_parent.step); } frame 39 { _parent.done = true; ++_parent.step; trace(_parent.done); trace(_parent.step); } } movieClip 1397 { } movieClip 1407 { } movieClip 1408 { frame 1 { stop(); } } movieClip 1411 { } movieClip 1413 game39 { frame 1 { stop(); _root.rules = 'Eat!'; _root.beatClock = true; step = 1; done = true; onEnterFrame = function () { if (Key.isDown(40) && done == true) { if (step == 1 || step == 5) { arm.gotoAndPlay('down'); done = false; trace(done); } } if (Key.isDown(38) && done == true) { if (step == 2 || step == 6) { arm.gotoAndPlay('up'); done = false; trace(done); } } if (Key.isDown(39) && done == true) { if (step == 3 || step == 7) { arm.gotoAndPlay('right'); done = false; trace(done); } } if (Key.isDown(37) && done == true) { if (step == 4) { arm.gotoAndPlay('left'); done = false; trace(done); _root.gameOutcome(true); } } if (step == 4) { eclair2._visible = false; } if (step == 8) { eclair1._visible = false; _root.gameOutcome(true); trace('win'); _root.nextFrame(); } }; } } movieClip 1416 { } movieClip 1419 { } movieClip 1425 { frame 1 { stop(); } frame 1 { } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); _root.gameOutcome(true); } } movieClip 1428 { } movieClip 1429 { frame 1 { stop(); } instance blade of movieClip 1428 { onClipEvent (enterFrame) { if (this.hitTest(_root.potato.hit)) { _root.potato.play(); } } } } movieClip 1432 { } movieClip 1433 game40 { frame 1 { _root.rules = 'Peel up and down!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { if (peeler.blade.hitTest(potato.hit)) { potato.nextFrame(); } } }; } instance peeler of movieClip 1429 { onClipEvent (load) { Mouse.hide(); startDrag(this, true); } } } movieClip 1438 { } movieClip 1439 { frame 1 { stop(); } } movieClip 1441 { } movieClip 1446 { } movieClip 1447 game41 { frame 1 { _root.rules = 'Feed Blobo'; _root.beatClock = true; curvex = 245; curvey = 250; xTarget = curvex; yTarget = curvey; xSpeed = 0; ySpeed = 0; Speed = 10; idisp = 0; Stop = 1.2; colorarr = new Array(10027008, 16750848, 16776960, 65280, 255, 7568383, 12401085); color2 = colorarr[random(6)]; onEnterFrame = function () { createEmptyMovieClip('line1', 10); with (line1) { lineStyle(25, color2, 100); moveTo(-10, 242); beginFill(color2, 75); curveTo(curvex, curvey, 560, 242); lineStyle(5, 26112, 100); lineTo(560, 400); lineTo(-10, 400); lineTo(-10, 242); } if (_root.cstatus == 1) { if (line1.hitTest(ball)) { xSpeed += ball.xspeed; ySpeed += ball.yspeed; } curvey += ySpeed; xSpeed += (xTarget - curvex) / Speed; ySpeed += (yTarget - curvey) / Speed; xSpeed /= Stop; ySpeed /= Stop; if (ball.yspeed < 0) { curvex = ball._x; } } if (i < 0) { i = 0; idisp = 0; _root.gameOutcome(true); } idisp = i + 1; }; i = 0; while (i < 5) { duplicateMovieClip('coin', 'coin' + i, getNextHighestDepth()); ++i; } transrans.swapDepths(getNextHighestDepth()); } instance ball of movieClip 1439 { onClipEvent (load) { r = _width / 2; xspeed = 0; yspeed = 0; gravity = 1; array = new Array(360); facing = _xscale; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (yspeed >= 20) { yspeed = 20; } if (yspeed <= -20) { yspeed = -20; } i = 0; while (i < 360) { x = _x + r * Math.cos((i / 180) * Math.PI); y = _y - r * Math.sin((i / 180) * Math.PI); if (!_parent.line1.hitTest(x, y, true)) { array[i] = 0; } else { array[i] = 1; } 0; i += 5; } strt = 0; end = 0; i = 0; while (i < 360) { if (!(!last and array[i])) { } else { strt = i; } 0; if (!(last and !array[i])) { } else { end = i; } 0; last = array[i]; i += 5; } if (strt <= end) { angle = (strt + end) / 2; } else { angle = (strt + end) / 2 + 180; } angle; yspeed += gravity; speed = Math.sqrt(xspeed * xspeed + yspeed * yspeed); if (strt != end) { xspeed = -speed * Math.sin(((angle + 90) / 180) * Math.PI) + 1; yspeed = -speed * Math.cos(((angle + 90) / 180) * Math.PI); } _y = _y + yspeed; _x = _x + xspeed; if (this._x <= 0) { xspeed = 5; } else { if (this._x >= 550) { xspeed = -5; } } if (Key.isDown(37)) { --xspeed; _xscale = -facing; } if (Key.isDown(39)) { ++xspeed; _xscale = facing; } _rotation = _rotation + xspeed; } } } instance coin of movieClip 1441 { onClipEvent (load) { this._x = random(Stage.width); this._y = random(Stage.height / 2) + 30; _rotation = random(360); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (this.hitTest(this._parent.ball)) { _parent.i -= 1; _x = -100; _y = -100; removeMovieClip(this); } } } } } movieClip 1449 { } movieClip 1452 { } movieClip 1454 { } movieClip 1455 { instance of movieClip 1452 { onClipEvent (enterFrame) { this._rotation += 10; } } } movieClip 1456 { instance of movieClip 1452 { onClipEvent (enterFrame) { this._rotation += 10; } } } movieClip 1459 { } movieClip 1460 game42 { frame 1 { _root.rules = 'To teh Portal!'; _root.beatClock = true; oldx = 10; xnumber = 10; oldy = 200; ynumber = 200; startx = xnumber; starty = ynumber; angle = _rotation; dir = 1; i = 1; size = 2; color2 = 16777215; spd = 8; onEnterFrame = function () { if (_root.cstatus == 1) { (new Color(ball)).setRGB(color2); if (xnumber > Stage.width) { xnumber = Stage.width; _root.gameOutcome(false); } if (xnumber < 0) { xnumber = 0; _root.gameOutcome(false); } if (ynumber < 0) { ynumber = 0; _root.gameOutcome(false); } if (ynumber > Stage.height) { ynumber = Stage.height; _root.gameOutcome(false); } ++timer; if (dir == 1) { ball._x = xnumber + spd; ball._y = ynumber; } else { if (dir == 2) { ball._x = xnumber - spd; ball._y = ynumber; } else { if (dir == 3) { ball._x = xnumber; ball._y = ynumber - spd; } else { if (dir == 4) { ball._x = xnumber; ball._y = ynumber + spd; } } } } if (Key.isDown(39)) { dir = 1; angle = 0; angle = (angle / 180) * Math.PI; } else { if (Key.isDown(37)) { dir = 2; angle = 180; angle = (angle / 180) * Math.PI; } else { if (Key.isDown(38)) { dir = 3; angle = 270; angle = (angle / 180) * Math.PI; } else { if (Key.isDown(40)) { dir = 4; angle = 90; angle = (angle / 180) * Math.PI; } } } } oldx = xnumber; oldy = ynumber; by_x = spd * Math.cos(angle); by_y = spd * Math.sin(angle); xnumber += by_x; ynumber += by_y; with ('line' + i) { lineStyle(size, color2); moveTo(oldx, oldy); lineTo(xnumber, ynumber); } } }; createEmptyMovieClip('bg', this.getNextHighestDepth()); with ('bg') { moveTo(0, 0); beginFill(0, 100); lineTo(550, 0); lineTo(550, 400); lineTo(0, 400); lineTo(0, 0); } stars = 0; while (stars < 500) { this.createEmptyMovieClip('star' + stars, this.getNextHighestDepth()); with (_root.g['star' + stars]) { lineStyle(2, 16777215, 100); lineTo(0.2, 0); _alpha = random(100) + 10; _x = random(Stage.width); _y = random(Stage.height); _rotation = random(360); _height = random(5) - 2; _width = _height; } ++stars; } } instance of movieClip 1449 { onClipEvent (enterFrame) { if (this.hitTest(_parent.ball.hitter)) { _parent.oldx = _parent.xnumber; _parent.oldy = _parent.ynumber; _parent.color2 = 12401085; } } } instance of movieClip 1449 { onClipEvent (enterFrame) { if (this.hitTest(_parent.ball.hitter)) { _parent.oldx = _parent.xnumber; _parent.oldy = _parent.ynumber; _parent.color2 = 7568383; } } } instance of movieClip 1449 { onClipEvent (enterFrame) { if (this.hitTest(_parent.ball.hitter)) { _parent.oldx = _parent.xnumber; _parent.oldy = _parent.ynumber; _parent.color2 = 255; } } } instance of movieClip 1449 { onClipEvent (enterFrame) { if (this.hitTest(_parent.ball.hitter)) { _parent.oldx = _parent.xnumber; _parent.oldy = _parent.ynumber; _parent.color2 = 65280; } } } instance of movieClip 1449 { onClipEvent (enterFrame) { if (this.hitTest(_parent.ball.hitter)) { _parent.oldx = _parent.xnumber; _parent.oldy = _parent.ynumber; _parent.color2 = 16776960; } } } instance of movieClip 1449 { onClipEvent (enterFrame) { if (this.hitTest(_parent.ball.hitter)) { _parent.oldx = _parent.xnumber; _parent.oldy = _parent.ynumber; _parent.color2 = 16750848; } } } instance of movieClip 1449 { onClipEvent (enterFrame) { if (this.hitTest(_parent.ball.hitter)) { _parent.oldx = _parent.xnumber; _parent.oldy = _parent.ynumber; _parent.color2 = 10027008; } } } instance portal of movieClip 1456 { onClipEvent (load) { this._x = 500; this._y = random(Stage.height); colorarr = new Array(10027008, 16750848, 16776960, 65280, 255, 7568383, 12401085); color2 = colorarr[random(6)]; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { (new Color(this)).setRGB(color2); if (color2 == _parent.color2) { if (this.hitter.hitTest(_parent.ball.hitter)) { _root.gameOutcome(true); _parent.Outcome = 'Win'; } } else { _parent.Outcome = 'Lose'; } } } } } movieClip 1465 { } movieClip 1467 { } movieClip 1470 { } movieClip 1472 { } movieClip 1473 { } movieClip 1475 { } movieClip 1476 { } movieClip 1477 { instance caveSpawn1 of movieClip 1475 { onClipEvent (load) { q = 1; e = 1000; } onClipEvent (enterFrame) { _root.g.game.attachMovie('rakosmanRock1', 'rock' + q, q); rock = _root.g.game['rock' + q]; rock._x = _root.g.game.spawner.caveSpawn1._x + 275; rock._y = _root.g.game.spawner.caveSpawn1._y + 500; _root.g.game.attachMovie('rakosmanRock2', 'rock2' + e, e); rock2 = _root.g.game['rock2' + e]; rock2._x = _root.g.game.spawner.caveSpawn2._x + 275; rock2._y = _root.g.game.spawner.caveSpawn2._y + 500; ++q; ++e; } } } movieClip 1479 { frame 1 { stop(); } frame 2 { stop(); } instance man of movieClip 1473 { onClipEvent (enterFrame) { this._y += 1; if (Key.isDown(39)) { this._x += 5 + _root.speed / 2; } else { if (Key.isDown(37)) { this._x -= 5 + _root.speed / 2; } else { this._x += 0; } } } } instance spawner of movieClip 1477 { onClipEvent (load) { mult = 20 + (_root.speed - 1) * 2; } onClipEvent (enterFrame) { distance = this._parent._parent.game.spawner.caveSpawn2._x - this._parent._parent.game.spawner.caveSpawn1._x; this.caveSpawn2._x += Math.round(Math.random() * mult - mult / 2); this.caveSpawn1._x += Math.round(Math.random() * mult - mult / 2); if (distance <= 120 + 5 * _root.speed) { this.caveSpawn1._x -= mult / 2; } if (distance >= 200 + 5 * _root.speed) { this.caveSpawn1._x += mult / 2; } if (this.caveSpawn1._x <= -275) { this.caveSpawn1._x += mult / 2; this.caveSpawn2._x += mult / 2; } if (this.caveSpawn2._x >= 275) { this.caveSpawn1._x -= mult / 2; this.caveSpawn2._x -= mult / 2; } } } } movieClip 1482 { } movieClip 1483 game43 { frame 1 { _root.rules = 'Avoid The Walls'; _root.beatClock = false; onEnterFrame = function () { if (_root.cstatus == 1) { this.game.gotoAndStop(2); } }; } } movieClip 1488 { } movieClip 1489 { instance cannonRef of movieClip 1488 { onClipEvent (enterFrame) { this._x = this._parent._parent.cannon._x - 200 + (250 - _parent._x); if (this.hitTest(this._parent.hitter)) { this._parent._parent.cannon.hit = true; } else { this._parent._parent.cannon.hit = false; } } } } movieClip 1497 { } movieClip 1498 { } movieClip 1512 { frame 1 { hit = false; } frame 1 { stop(); } frame 18 { if (hit == true) { this._parent.mirror._visible = false; } } frame 25 { stop(); if (this.hit == true) { _root.gameOutcome(true); } else { _root.gameOutcome(false); } } } movieClip 1513 { } movieClip 1514 { instance mirror of movieClip 1489 { onClipEvent (load) { this._x = Math.random() * 350 + 130; } } instance cannon of movieClip 1512 { onClipEvent (load) { firing = false; this._x = Math.random() * 480; } onClipEvent (enterFrame) { if (firing == false) { if (Key.isDown(37)) { this._x -= 10; } if (Key.isDown(39)) { this._x += 10; } if (Key.isDown(32)) { this.play(); firing = true; } } } } instance of movieClip 1513 { onClipEvent (enterFrame) { if (this._parent.hit == true) { this._visible = true; } else { this._visible = false; } } } } movieClip 1517 { } movieClip 1518 game45 { frame 1 { _root.rules = 'Break The Mirror'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { this.game.gotoAndStop(2); } }; } } movieClip 1522 { } movieClip 1525 { } movieClip 1527 { } movieClip 1543 { } movieClip 1549 { } movieClip 1550 { } movieClip 1554 { } movieClip 1556 { } movieClip 1558 { } button 1559 { on (release) { if (question == 1) { if (que1 == 'The number above [O] and [P] on a keyboard:') { if (this.a1 == 0) { this.question = 2; trace('right'); } else { _root.gameOutcome(false); trace('wrong'); } } if (que1 == '1 x 1 = ?:') { if (this.a1 == 1) { this.question = 2; trace('right'); } else { _root.gameOutcome(false); trace('wrong'); } } if (que1 == 'jmtb0(?):') { if (this.a1 == 2) { this.question = 2; trace('right'); } else { _root.gameOutcome(false); trace('wrong'); } } if (que1 == 'The number of FourSecondF(...) games:') { if (this.a1 == 3) { this.question = 2; trace('right'); } else { _root.gameOutcome(false); trace('wrong'); } } if (que1 == 'The number of legs on a cat:') { if (this.a1 == 4) { this.question = 2; trace('right'); } else { _root.gameOutcome(false); trace('wrong'); } } } if (question == 2) { if (que2 == 'The number above [O] and [P] on a keyboard:') { if (this.a1 == 0) { trace('right'); this.question = 3; } else { _root.gameOutcome(false); trace('wrong'); } } if (que2 == '1 x 1 = ?:') { if (this.a1 == 1) { trace('right'); this.question = 3; } else { _root.gameOutcome(false); trace('wrong'); } } if (que2 == 'jmtb0(?):') { if (this.a1 == 2) { trace('right'); this.question = 3; } else { _root.gameOutcome(false); trace('wrong'); } } if (que2 == 'The number of FourSecondF(...) games:') { if (this.a1 == 3) { trace('right'); this.question = 3; } else { _root.gameOutcome(false); trace('wrong'); } } if (que2 == 'The number of legs on a cat:') { if (this.a1 == 4) { trace('right'); this.question = 3; } else { _root.gameOutcome(false); trace('wrong'); } } } if (question == 3) { if (que3 == 'The number above [O] and [P] on a keyboard:') { if (this.a1 == 0) { trace('right'); _root.gameOutcome(true); } else { _root.gameOutcome(false); trace('wrong'); } } if (que3 == '1 x 1 = ?:') { if (this.a1 == 1) { trace('right'); _root.gameOutcome(true); } else { _root.gameOutcome(false); trace('wrong'); } } if (que3 == 'jmtb0(?):') { if (this.a1 == 2) { trace('right'); _root.gameOutcome(true); } else { _root.gameOutcome(false); trace('wrong'); } } if (que3 == 'The number of FourSecondF(...) games:') { if (this.a1 == 3) { trace('right'); _root.gameOutcome(true); } else { _root.gameOutcome(false); trace('wrong'); } } if (que3 == 'The number of legs on a cat:') { if (this.a1 == 4) { trace('right'); _root.gameOutcome(true); } else { _root.gameOutcome(false); trace('wrong'); } } } } } movieClip 1564 { } movieClip 1566 { } movieClip 1567 game46 { frame 1 { question = 1; Qarray = ['The number above [O] and [P] on a keyboard:', '1 x 1 = ?:', 'jmtb0(?):', 'The number of FourSecondF(...) games:', 'The number of legs on a cat:']; Aarray = []; _root.rules = 'Answer Correctly'; _root.beatClock = true; Array; q = random(Qarray.length); que1 = Qarray[q]; ans1 = q; q1 = que1; e = random(Qarray.length); que2 = Qarray[e]; ans2 = e; q2 = que2; i = random(Qarray.length); que3 = Qarray[i]; ans3 = i; q3 = que3; Aarray = Aarray.toString(); while (ans2 == ans1) { o = random(Qarray.length); que2 = Qarray[o]; ans2 = o; q2 = que2; } while (ans3 == ans1 or ans3 == ans2) { u = random(Qarray.length); que3 = Qarray[u]; ans3 = u; q3 = que3; } Aarray = [ans1, ans2, ans3]; rev1 = Math.round(Math.random()); rev2 = Math.round(Math.random()); if (rev1 == 1) { Aarray.reverse(); } num1 = Aarray.shift(); if (rev2 == 1) { Aarray.reverse(); } num2 = Aarray.shift(); num3 = Aarray.shift(); this.a1 = num1; this.a2 = num2; this.a3 = num3; onEnterFrame = function () { if (_root.cstatus == 1) { this.box._visible = false; } if (question == 1) { questions = que1; } else { if (question == 2) { questions = que2; } else { if (question == 3) { questions = que3; } } } }; } instance of movieClip 1550 { onClipEvent (load) { num = Math.floor(Math.random() * 5) + 1; if (num == 6) { num = 5; } this.gotoAndStop(num); } } instance of movieClip 1550 { onClipEvent (load) { num = Math.floor(Math.random() * 5) + 1; if (num == 6) { num = 5; } this.gotoAndStop(num); } } instance of movieClip 1550 { onClipEvent (load) { num = Math.floor(Math.random() * 5) + 1; if (num == 6) { num = 5; } this.gotoAndStop(num); } } instance of movieClip 1550 { onClipEvent (load) { num = Math.floor(Math.random() * 5) + 1; if (num == 6) { num = 5; } this.gotoAndStop(num); } } instance of movieClip 1550 { onClipEvent (load) { num = Math.floor(Math.random() * 5) + 1; if (num == 6) { num = 5; } this.gotoAndStop(num); } } instance arrow of movieClip 1564 { onClipEvent (load) { Mouse.hide(); startDrag(this, true); } } } movieClip 1570 { } movieClip 1573 { } movieClip 1575 { } movieClip 1579 { } movieClip 1580 game47 { frame 1 { _root.rules = 'Fill The Barrel!'; _root.beatClock = true; var munkyz = 0; onEnterFrame = function () { if (_root.cstatus == 1) { mun1.onPress = function () { this.pressed = true; this.startDrag(''); }; mun1.onRelease = function () { this.pressed = false; this.stopDrag(); }; mun2.onPress = function () { this.pressed = true; this.startDrag(''); }; mun2.onRelease = function () { this.pressed = false; this.stopDrag(); }; mun3.onPress = function () { this.pressed = true; this.startDrag(''); }; mun3.onRelease = function () { this.pressed = false; this.stopDrag(); }; mun4.onPress = function () { this.pressed = true; this.startDrag(''); }; mun4.onRelease = function () { this.pressed = false; this.stopDrag(); }; mun5.onPress = function () { this.pressed = true; this.startDrag(''); }; mun5.onRelease = function () { this.pressed = false; this.stopDrag(); }; if (munkyz >= 2) { _root.gameOutcome(true); } } }; } instance barrelBox of movieClip 1573 { onClipEvent (load) { this._visible = false; } } instance mun1 of movieClip 1575 { onClipEvent (load) { pressed = false; rot = Math.random() * 30 + 10; speed = Math.random() * 5 + 5; dest = Math.random() * 50 + 290; going = true; hitted = false; } onClipEvent (enterFrame) { if (!pressed and this.hitTest(_parent.barrelBox) and hitted) { ++_parent.munkyz; this._y = 1000; this._x = 1000; going = false; } if (going) { if (this._y < dest and !pressed) { this._rotation += rot; this._y += speed; ++speed; } else { speed = 0; hitted = true; } } } } instance mun5 of movieClip 1575 { onClipEvent (load) { pressed = false; rot = Math.random() * 30 + 10; speed = Math.random() * 5 + 5; dest = Math.random() * 50 + 290; going = true; hitted = false; } onClipEvent (enterFrame) { if (!pressed and this.hitTest(_parent.barrelBox) and hitted) { ++_parent.munkyz; this._y = 1000; this._x = 1000; going = false; } if (going) { if (this._y < dest and !pressed) { this._rotation += rot; this._y += speed; ++speed; } else { speed = 0; hitted = true; } } } } } movieClip 1587 { } movieClip 1588 { instance man of movieClip 1587 { onClipEvent (load) { this.startDrag(true, 0, 0, 550, 0); track1 = this._x; track2 = this._x; } onClipEvent (enterFrame) { track1 = this._x; if (track1 - track2 < 0) { this._xscale = -200; } else { this._xscale = 200; } -200; track2 = this._x; } } } movieClip 1591 { } movieClip 1594 game48 { frame 1 { function DINOBJECTS() { if (_root.cstatus == 1) { started = true; ++q; obj = attachMovie('Din2_Link', 'obj' + q, this.getNextHighestDepth()); obj.gotoAndStop(random(9) + 1); obj._x = Math.random() * 550; obj._y = -10; obj.rot = Math.random() * 50; obj.useHandCursor = false; } } _root.rules = 'Don\'t Get Hit!'; _root.beatClock = false; q = 0; speed = 5; win = true; started = false; stop(); onEnterFrame = function () { if (_root.cstatus == 0 && started == true && win == true) { clearInterval(qq); gotoAndStop(3); } }; qq = setInterval(DINOBJECTS, 750); } frame 2 { stop(); clearInterval(qq); } frame 3 { clearInterval(qq); } } movieClip 1597 { } movieClip 1602 { } movieClip 1604 { frame 1 { var scale = random(50) + 30; var rotate = random(100) + 200; eval(_target)._x = _parent.firex + random(10) - 6; eval(_target)._yscale = scale; } } movieClip 1605 { frame 1 { var i = 1; var max = 5; var firex = fire._x; } frame 10 { if (i <= max) { duplicateMovieClip('fire', 'fire' + i, i); ++i; } } frame 19 { if (i <= max) { duplicateMovieClip('fire', 'fire' + i, i); ++i; } gotoAndPlay(2); } } movieClip 1607 { frame 1 { stop(); onEnterFrame = function () { if (_root.cstatus == 1) { play(); } else { stop(); } }; } frame 39 { stop(); _root.gameOutcome(false); } } movieClip 1609 { } movieClip 1611 { } movieClip 1614 { } movieClip 1616 { } movieClip 1620 { } movieClip 1621 game49 { frame 1 { stop(); } frame 1 { _root.rules = 'Stay Awake!'; _root.beatClock = false; onEnterFrame = function () { if (_root.cstatus == 1) { if (Key.isDown(32)) { face1.face2.gotoAndPlay(face1.face2._currentframe - 3); } } }; } } movieClip 1624 { } movieClip 1626 { } button 1631 { on (rollOut) { _parent.gotoAndPlay('robothit'); play(); } } button 1644 { on (rollOut) { _parent.gotoAndPlay('robotdie'); play(); } } movieClip 1647 { } movieClip 1651 { frame 1 { stop(); } frame 13 { stop(); } frame 25 { stop(); } frame 26 { _root.gameOutcome(true); } frame 39 { stop(); } } movieClip 1653 { } movieClip 1655 { frame 20 { gotoAndPlay(1); } frame 40 { gotoAndPlay(1); } frame 70 { stop(); } } movieClip 1656 { } movieClip 1659 { } movieClip 1660 game50 { frame 1 { _root.rules = 'Slash the Killer Robot'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } } movieClip 1663 { } movieClip 1664 { } movieClip 1665 { frame 1 { stop(); } } movieClip 1668 { } movieClip 1669 { frame 1 { stop(); } frame 2 { stop(); } instance colzonepiemonkey of movieClip 1668 { onClipEvent (enterFrame) { if (this.hitTest(_root.red)) { _root.gameOutcome(true); _root.ass1.nextFrame(); _root.ass2.nextFrame(); _root.ass3.nextFrame(); _root.ass4.nextFrame(); _root.ass5.nextFrame(); _root.ass6.nextFrame(); _root.ass7.nextFrame(); _root.ass8.nextFrame(); _root.ass9.nextFrame(); _root.ass10.nextFrame(); } } } } movieClip 1688 { } movieClip 1689 { frame 1 { stop(); } } movieClip 1695 { } movieClip 1699 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 1701 { frame 1 { stop(); } } movieClip 1703 { frame 1 { stop(); } } movieClip 1704 game51 { frame 1 { stop(); _root.rules = 'Get The Cargo'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance ass9 of movieClip 1665 { onClipEvent (enterFrame) { if (_root.red._x > _x) { _x = _x + 1; } } onClipEvent (enterFrame) { if (_root.red._x < _x) { _x = _x - 1; } } onClipEvent (enterFrame) { if (_root.red._y > _y) { _y = _y + 1; } } onClipEvent (enterFrame) { if (_root.red._y < _y) { _y = _y - 1; } if (this._y > 400) { this._y = 400; } if (this._y < 0) { this._y = 0; } if (this._x > 550) { this._x = 550; } if (this._x < 0) { this._x = 0; } } } instance ass1 of movieClip 1665 { onClipEvent (enterFrame) { if (_root.red._x > _x) { _x = _x + 1; } } onClipEvent (enterFrame) { if (_root.red._x < _x) { _x = _x - 1; } } onClipEvent (enterFrame) { if (_root.red._y > _y) { _y = _y + 1; } } onClipEvent (enterFrame) { if (_root.red._y < _y) { _y = _y - 1; } if (this._y > 400) { this._y = 400; } if (this._y < 0) { this._y = 0; } if (this._x > 550) { this._x = 550; } if (this._x < 0) { this._x = 0; } } } instance ass10 of movieClip 1665 { onClipEvent (enterFrame) { if (_root.red._x > _x) { _x = _x + 1; } } onClipEvent (enterFrame) { if (_root.red._x < _x) { _x = _x - 1; } } onClipEvent (enterFrame) { if (_root.red._y > _y) { _y = _y + 1; } } onClipEvent (enterFrame) { if (_root.red._y < _y) { _y = _y - 1; } if (this._y > 400) { this._y = 400; } if (this._y < 0) { this._y = 0; } if (this._x > 550) { this._x = 550; } if (this._x < 0) { this._x = 0; } } } instance red of movieClip 1699 { onClipEvent (load) { speed = 10; } onClipEvent (enterFrame) { if (Key.isDown(38)) { _y = _y - speed; _root.g.red.gotoAndPlay(1); } else { _root.g.roll.stop(); } if (Key.isDown(40)) { _y = _y + speed; _root.g.red.gotoAndPlay(2); } else { _root.g.roll.stop(); } if (Key.isDown(37)) { _x = _x - speed; _root.g.red.gotoAndPlay(3); } else { _root.g.red.stop(); } if (Key.isDown(39)) { _x = _x + speed; _root.g.red.gotoAndPlay(4); } else { _root.g.red.stop(); } if (this._y > 400) { this._y = 400; } if (this._y < 0) { this._y = 0; } if (this._x > 550) { this._x = 550; } if (this._x < 0) { this._x = 0; } if (this.hitTest(_root.g.reed)) { _root.g.teleporter.nextFrame(); _root.g.reed.nextFrame(); _root.g.deesound.play(); } } onClipEvent (enterFrame) { if (this.hitTest(_root.g.ass1)) { _root.gameOutcome(false); _root.g.ass1.nextFrame(); _root.g.ass2.nextFrame(); _root.g.ass3.nextFrame(); _root.g.ass4.nextFrame(); _root.g.ass5.nextFrame(); _root.g.ass6.nextFrame(); _root.g.ass7.nextFrame(); _root.g.ass8.nextFrame(); _root.g.ass9.nextFrame(); _root.g.ass10.nextFrame(); _root.g.expsound.play(); this.speed = 0; } } onClipEvent (enterFrame) { if (this.hitTest(_root.g.ass2)) { _root.gameOutcome(false); _root.g.ass1.nextFrame(); _root.g.ass2.nextFrame(); _root.g.ass3.nextFrame(); _root.g.ass4.nextFrame(); _root.g.ass5.nextFrame(); _root.g.ass6.nextFrame(); _root.g.ass7.nextFrame(); _root.g.ass8.nextFrame(); _root.g.ass9.nextFrame(); _root.g.ass10.nextFrame(); _root.g.expsound.play(); this.speed = 0; } } onClipEvent (enterFrame) { if (this.hitTest(_root.g.ass3)) { _root.gameOutcome(false); _root.g.ass1.nextFrame(); _root.g.ass2.nextFrame(); _root.g.ass3.nextFrame(); _root.g.ass4.nextFrame(); _root.g.ass5.nextFrame(); _root.g.ass6.nextFrame(); _root.g.ass7.nextFrame(); _root.g.ass8.nextFrame(); _root.g.ass9.nextFrame(); _root.g.ass10.nextFrame(); _root.g.expsound.play(); this.speed = 0; } } onClipEvent (enterFrame) { if (this.hitTest(_root.g.ass4)) { _root.gameOutcome(false); _root.g.ass1.nextFrame(); _root.g.ass2.nextFrame(); _root.g.ass3.nextFrame(); _root.g.ass4.nextFrame(); _root.g.ass5.nextFrame(); _root.g.ass6.nextFrame(); _root.g.ass7.nextFrame(); _root.g.ass8.nextFrame(); _root.g.ass9.nextFrame(); _root.g.ass10.nextFrame(); _root.g.expsound.play(); this.speed = 0; } } onClipEvent (enterFrame) { if (this.hitTest(_root.g.ass5)) { _root.gameOutcome(false); _root.g.ass1.nextFrame(); _root.g.ass2.nextFrame(); _root.g.ass3.nextFrame(); _root.g.ass4.nextFrame(); _root.g.ass5.nextFrame(); _root.g.ass6.nextFrame(); _root.g.ass7.nextFrame(); _root.g.ass8.nextFrame(); _root.g.ass9.nextFrame(); _root.g.ass10.nextFrame(); _root.g.expsound.play(); this.speed = 0; } } onClipEvent (enterFrame) { if (this.hitTest(_root.g.ass6)) { _root.gameOutcome(false); _root.g.ass1.nextFrame(); _root.g.ass2.nextFrame(); _root.g.ass3.nextFrame(); _root.g.ass4.nextFrame(); _root.g.ass5.nextFrame(); _root.g.ass6.nextFrame(); _root.g.ass7.nextFrame(); _root.g.ass8.nextFrame(); _root.g.ass9.nextFrame(); _root.g.ass10.nextFrame(); _root.g.expsound.play(); this.speed = 0; } } onClipEvent (enterFrame) { if (this.hitTest(_root.g.ass7)) { _root.gameOutcome(false); _root.g.ass1.nextFrame(); _root.g.ass2.nextFrame(); _root.g.ass3.nextFrame(); _root.g.ass4.nextFrame(); _root.g.ass5.nextFrame(); _root.g.ass6.nextFrame(); _root.g.ass7.nextFrame(); _root.g.ass8.nextFrame(); _root.g.ass9.nextFrame(); _root.g.ass10.nextFrame(); _root.g.expsound.play(); this.speed = 0; } } onClipEvent (enterFrame) { if (this.hitTest(_root.g.ass8)) { _root.gameOutcome(false); _root.g.ass1.nextFrame(); _root.g.ass2.nextFrame(); _root.g.ass3.nextFrame(); _root.g.ass4.nextFrame(); _root.g.ass5.nextFrame(); _root.g.ass6.nextFrame(); _root.g.ass7.nextFrame(); _root.g.ass8.nextFrame(); _root.g.ass9.nextFrame(); _root.g.ass10.nextFrame(); _root.g.expsound.play(); this.speed = 0; } } onClipEvent (enterFrame) { if (this.hitTest(_root.g.ass9)) { _root.gameOutcome(false); _root.g.ass1.nextFrame(); _root.g.ass2.nextFrame(); _root.g.ass3.nextFrame(); _root.g.ass4.nextFrame(); _root.g.ass5.nextFrame(); _root.g.ass6.nextFrame(); _root.g.ass7.nextFrame(); _root.g.ass8.nextFrame(); _root.g.ass9.nextFrame(); _root.g.ass10.nextFrame(); _root.g.expsound.play(); _root.g.expsound.play(); this.speed = 0; } } onClipEvent (enterFrame) { if (this.hitTest(_root.g.ass10)) { _root.gameOutcome(false); _root.g.ass1.nextFrame(); _root.g.ass2.nextFrame(); _root.g.ass3.nextFrame(); _root.g.ass4.nextFrame(); _root.g.ass5.nextFrame(); _root.g.ass6.nextFrame(); _root.g.ass7.nextFrame(); _root.g.ass8.nextFrame(); _root.g.ass9.nextFrame(); _root.g.ass10.nextFrame(); _root.g.expsound.play(); this.speed = 0; } } } } movieClip 1710 { } movieClip 1711 { frame 1 { center._alpha = 0; } } movieClip 1713 { } movieClip 1715 { } movieClip 1717 { } movieClip 1719 { } movieClip 1721 { } movieClip 1724 { } movieClip 1727 { } movieClip 1728 game52 { frame 1 { origy = center._y; _root.rules = 'Hit the Target!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { dist = origy - _ymouse; if (!arow.shot) { center._y = origy + dist; } bow._x = spot2._x; bow._y = spot2._y; createEmptyMovieClip('line', 1); with (line) { lineStyle(2, 16699794); moveTo(spot1._x, spot1._y); curveTo(thing._x, 225, thing._x, thing._y); curveTo(thing._x, 175, spot2._x, spot2._y); } } }; } instance target of movieClip 1711 { onClipEvent (load) { this._y = random(Stage.height); down = true; up = false; spd = 3; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (this._y < 50) { this._y = 50; up = false; down = true; } if (this._y > 350) { this._y = 350; down = false; up = true; } if (up) { this._y -= spd; _parent.center._y -= spd; } else { if (down) { this._y += spd; _parent.center._y += spd; } } } } } instance arow of movieClip 1717 { onClipEvent (load) { shot = false; hit = true; _parent.bullseye._visible = false; stop(); } onClipEvent (enterFrame) { _parent.thing._visible = false; _parent.place._visible = _parent.thing._visible; _parent.center._visible = _parent.thing._visible; if (_root.cstatus == 1) { if (this.hitter.hitTest(_parent.target)) { if (this.hitter.hitTest(_parent.target.center)) { _parent.bullseye._visible = true; } _root.gameOutcome(true); gotoAndStop('hit'); hit = true; if (_parent.target.up) { this._y -= _parent.target.spd; } else { if (_parent.target.down) { this._y += _parent.target.spd; } } } else { hit = false; } if (!hit) { if (this._x < -10) { _root.gameOutcome(false); } spd = xspeed; if (this._x > _parent.center._x) { Xd = _parent.center._x - _x; Yd = _parent.center._y - _y; } radAngle = Math.atan2(Yd, Xd); if (!shot) { this._x = _parent.thing._x; this._y = _parent.thing._y; } else { if (_rotation > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * _rotation); _x = _x - spd * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y - spd * Math.cos(0.0174532925199433 * _rotation); _x = _x + spd * Math.sin(0.0174532925199433 * _rotation); } } } } } } instance thing of movieClip 1710 { onClipEvent (load) { drag = false; orginx = 0; curvex = this._x; xTarget = curvex; xSpeed = 5; Speed = 5; Stop = 1.2; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (drag) { if (curvex <= _parent.place._x) { curvex = _parent.place._x; } else { if (curvex >= _parent.place._x + 100) { curvex = _parent.place._x + 100; } else { curvex = _parent._xmouse; } } } else { curvex += xSpeed; xSpeed += (xTarget - curvex) / Speed; xSpeed /= Stop; } if (!_parent.arow.shot) { with (_parent.arow) { _rotation = int(radAngle * 360 / 6.283185307179586 + 90); } _parent.arow.xspeed = (this._x - _parent.place._x) / 3; } else { with (_parent.arow) { if (!_parent.arow.hitTest(_parent.target)) { _rotation -= 0.5; } } } this._x = curvex; } } onClipEvent (mouseDown) { if (_root.cstatus == 1) { drag = true; } } onClipEvent (mouseUp) { if (_root.cstatus == 1) { if (drag && curvex > _parent.place._x) { _parent.arow.shot = true; } drag = false; } } } } movieClip 1731 { } movieClip 1733 { } movieClip 1735 { } movieClip 1742 { frame 20 { gotoAndPlay(1); } frame 27 { gotoAndPlay('toosoon'); } frame 34 { gotoAndPlay('toolate'); } frame 41 { stop(); _root.gameOutcome(true); } } button 1745 { on (rollOver) { gotoAndPlay('ropecut'); } } movieClip 1747 { } movieClip 1749 { } movieClip 1751 { } movieClip 1753 { } movieClip 1754 { frame 60 { gotoAndPlay(1); } frame 77 { this._parent.chkStuff(); } frame 98 { stop(); } } movieClip 1757 { } movieClip 1758 { frame 1 { function chkStuff() { burglar.theend = true; if (burglar.virtx >= leftlimit && burglar.virtx <= rightlimit) { burglar.gotoAndPlay('justright'); } if (burglar.virtx < leftlimit) { burglar.gotoAndPlay('toosoon'); } if (burglar.virtx > rightlimit) { burglar.gotoAndPlay('toolate'); } } leftlimit = 190; rightlimit = 360; speed = 6; burglar.onEnterFrame = function () { this.offset = 35; if (!this.theend) { this._x += speed; } this.virtx = this._x + this.offset; }; } } movieClip 1761 { } movieClip 1762 game53 { frame 1 { MovieClip.prototype.tabEnabled = false; Button.prototype.tabEnabled = false; } frame 1 { _root.rules = 'Stop the burglar'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } } movieClip 1765 { } movieClip 1767 { } movieClip 1769 { } movieClip 1770 { } movieClip 1773 { } movieClip 1775 { } movieClip 1780 { } movieClip 1782 { } movieClip 1788 { } movieClip 1792 { } movieClip 1793 { instance of movieClip 1792 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 1792 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 1792 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 1792 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 1792 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 1792 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 1792 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 1792 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 1792 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 1792 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 1792 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 1792 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 1792 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 1792 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 1792 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 1792 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 1792 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 1792 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 1792 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 1792 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } } movieClip 1794 { } movieClip 1889 { frame 43 { gotoAndPlay(1); } frame 52 { stop(); _root.gameOutcome(false); } } movieClip 1891 { } movieClip 1894 { } movieClip 1895 game54 { frame 1 { _root.rules = 'Don\'t Get Hacked!'; _root.beatClock = false; } instance of movieClip 1765 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 32)); } } instance of movieClip 1765 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 32)); } } instance of movieClip 1765 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 32)); } } instance of movieClip 1765 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 32)); } } instance of movieClip 1765 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 32)); } } instance of movieClip 1765 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 32)); } } instance of movieClip 1765 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 32)); } } instance of movieClip 1765 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 32)); } } instance of movieClip 1765 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 32)); } } instance of movieClip 1765 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 32)); } } instance of movieClip 1773 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 14)); } } instance of movieClip 1773 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 14)); } } instance of movieClip 1773 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 14)); } } instance of movieClip 1773 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 14)); } } instance of movieClip 1775 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_root.g.kid.wheel.hitTest(this) && _root.g.kid._currentframe <= 43) { _root.g.kid.gotoAndPlay(44); _root.g.kid.runspeed = 4; _root.g.blood._visible = true; } } } } instance kid of movieClip 1889 { onClipEvent (load) { runspeed = 4; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (this._currentframe <= 43) { runspeed += 1; } _x = _x + runspeed; } } onClipEvent (keyUp) { if (_root.cstatus == 1) { if (Key.getCode() == 37 && this._currentframe <= 43) { runspeed -= 8; } } } } instance blood of movieClip 1793 { onClipEvent (load) { _visible = false; } } instance of movieClip 1891 { onClipEvent (enterFrame) { if (_root.g.kid.wheel.hitTest(this)) { _root.g.kid.runspeed = 7; } } } } movieClip 1899 { } movieClip 1902 { } movieClip 1904 { } movieClip 1906 { } movieClip 1908 { } movieClip 1910 { } movieClip 1912 { } movieClip 1915 { } movieClip 1918 { } movieClip 1919 game55 { frame 1 { _root.rules = 'Saw the log!'; _root.beatClock = true; } instance of movieClip 1904 { onClipEvent (load) { xSpeed = 0; ySpeed = 0; measure = 0; cut = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (measure > -40 && measure < 45) { if (Key.isDown(37)) { xSpeed -= 0.5; ySpeed += 0.5; _y = _y + 0.4; } else { if (Key.isDown(39)) { xSpeed += 0.5; ySpeed -= 0.5; _y = _y + 0.4; } } _x = _x + xSpeed; _y = _y + ySpeed; measure += xSpeed; if (xSpeed > 0) { cut += xSpeed; } else { cut -= xSpeed; } } else { _root.gameOutcome(false); } if (cut >= 120) { _parent.log1.onEnterFrame = function () { this._rotation -= 2.5; this._y += 10; }; _parent.log2.onEnterFrame = function () { this._rotation += 2.5; this._y += 10; }; _root.gameOutcome(true); } } } } } movieClip 1927 { } movieClip 1929 { } movieClip 1930 { } movieClip 1931 { } movieClip 1932 { } movieClip 1934 { } movieClip 1935 { frame 1 { stop(); } frame 2 { _parent.arrow1 = 'up'; } frame 3 { _parent.arrow1 = 'down'; } frame 4 { _parent.arrow1 = 'left'; } frame 5 { _parent.arrow1 = 'right'; } frame 6 { _parent.arrow1 = 'spacebar'; } } movieClip 1936 { frame 1 { stop(); } frame 2 { _parent.arrow2 = 'up'; } frame 3 { _parent.arrow2 = 'down'; } frame 4 { _parent.arrow2 = 'left'; } frame 5 { _parent.arrow2 = 'right'; } frame 6 { _parent.arrow2 = 'spacebar'; } } movieClip 1937 { frame 1 { stop(); } frame 2 { _parent.arrow3 = 'up'; } frame 3 { _parent.arrow3 = 'down'; } frame 4 { _parent.arrow3 = 'left'; } frame 5 { _parent.arrow3 = 'right'; } frame 6 { _parent.arrow3 = 'spacebar'; } } movieClip 1938 { frame 1 { stop(); } frame 2 { _parent.arrow4 = 'up'; } frame 3 { _parent.arrow4 = 'down'; } frame 4 { _parent.arrow4 = 'left'; } frame 5 { _parent.arrow4 = 'right'; } frame 6 { _parent.arrow4 = 'spacebar'; } } movieClip 1939 { frame 1 { stop(); } frame 2 { _parent.arrow5 = 'up'; } frame 3 { _parent.arrow5 = 'down'; } frame 4 { _parent.arrow5 = 'left'; } frame 5 { _parent.arrow5 = 'right'; } frame 6 { _parent.arrow5 = 'spacebar'; } } movieClip 1941 { } movieClip 1942 { frame 1 { stop(); } } movieClip 1943 { } movieClip 1945 { } movieClip 1975 { frame 48 { stop(); } } movieClip 1977 { } movieClip 1978 { frame 1 { function func(m) { m.gotoAndStop(random(5) + 2); } function script1() { mx.transitions.TransitionManager.start(mcCombo1, {'type': mx.transitions.Zoom, 'direction': 0, 'duration': 1, 'easing': mx.transitions.easing.Elastic.easeOut}); mcCombo1._alpha = 100; luk1_bellSound.start(0, 1); } function script2() { mx.transitions.TransitionManager.start(mcCombo2, {'type': mx.transitions.Zoom, 'direction': 0, 'duration': 1, 'easing': mx.transitions.easing.Elastic.easeOut}); mcCombo2._alpha = 100; luk1_bellSound.start(0, 1); } function script3() { mx.transitions.TransitionManager.start(mcCombo3, {'type': mx.transitions.Zoom, 'direction': 0, 'duration': 1, 'easing': mx.transitions.easing.Elastic.easeOut}); mcCombo3._alpha = 100; luk1_bellSound.start(0, 1); } function script4() { mx.transitions.TransitionManager.start(mcCombo4, {'type': mx.transitions.Zoom, 'direction': 0, 'duration': 1, 'easing': mx.transitions.easing.Elastic.easeOut}); mcCombo4._alpha = 100; luk1_bellSound.start(0, 1); } function script5() { mx.transitions.TransitionManager.start(mcCombo5, {'type': mx.transitions.Zoom, 'direction': 0, 'duration': 1, 'easing': mx.transitions.easing.Elastic.easeOut}); mcCombo5._alpha = 100; luk1_bellSound.start(0, 1); } function script6() { nextFrame(); } function mcQmark1_animate() { mx.transitions.TransitionManager.start(mcQmark1, {'type': mx.transitions.Zoom, 'direction': 0, 'duration': 1, 'easing': mx.transitions.easing.Elastic.easeOut}); } function mcQmark2_animate() { mx.transitions.TransitionManager.start(mcQmark2, {'type': mx.transitions.Zoom, 'direction': 0, 'duration': 1, 'easing': mx.transitions.easing.Elastic.easeOut}); } function mcQmark3_animate() { mx.transitions.TransitionManager.start(mcQmark3, {'type': mx.transitions.Zoom, 'direction': 0, 'duration': 1, 'easing': mx.transitions.easing.Elastic.easeOut}); } function mcQmark4_animate() { mx.transitions.TransitionManager.start(mcQmark4, {'type': mx.transitions.Zoom, 'direction': 0, 'duration': 1, 'easing': mx.transitions.easing.Elastic.easeOut}); } function mcQmark5_animate() { mx.transitions.TransitionManager.start(mcQmark5, {'type': mx.transitions.Zoom, 'direction': 0, 'duration': 1, 'easing': mx.transitions.easing.Elastic.easeOut}); } function luk1_lose() { if (SequenceGeneratorOutcome == false) { gotoAndStop(8); } } stop(); SequenceGeneratorOutcome = false; luk1_bellSound = new Sound(); luk1_bellSound.attachSound('luk1_sndBell'); luk1_loseSound = new Sound(); luk1_loseSound.attachSound('luk1_sndLose'); luk1_guessSound = new Sound(); luk1_guessSound.attachSound('luk1_sndGuess'); var b = new Array(mcCombo1, mcCombo2, mcCombo3, mcCombo4, mcCombo5); var i = 0; while (i < b.length) { func(b[i]); ++i; } mcCombo1._alpha = 0; mcCombo2._alpha = 0; mcCombo3._alpha = 0; mcCombo4._alpha = 0; mcCombo5._alpha = 0; setTimeout(script1, 0); setTimeout(script2, 300); setTimeout(script3, 600); setTimeout(script4, 900); setTimeout(script5, 1200); setTimeout(script6, 2300); setTimeout(luk1_lose, 4000); } frame 2 { stop(); mcQmark1_animate(); mcQmark2_animate(); mcQmark3_animate(); mcQmark4_animate(); mcQmark5_animate(); } instance of movieClip 1943 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(37) && _root.g.leftDown == false) { _root.g.leftDown = true; if (_root.g.combo.arrow1 == 'left') { _root.g.combo.nextFrame(); } else { _root.g.combo.gotoAndStop(8); } } if (Key.isDown(39) && _root.g.rightDown == false) { _root.g.rightDown = true; if (_root.g.combo.arrow1 == 'right') { _root.g.combo.nextFrame(); } else { _root.g.combo.gotoAndStop(8); } } if (Key.isDown(40) && _root.g.downDown == false) { _root.g.downDown = true; if (_root.g.combo.arrow1 == 'down') { _root.g.combo.nextFrame(); } else { _root.g.combo.gotoAndStop(8); } } if (Key.isDown(38) && _root.g.upDown == false) { _root.g.upDown = true; if (_root.g.combo.arrow1 == 'up') { _root.g.combo.nextFrame(); } else { _root.g.combo.gotoAndStop(8); } } if (Key.isDown(32) && _root.g.spaceDown == false) { _root.g.spaceDown = true; if (_root.g.combo.arrow1 == 'spacebar') { _root.g.combo.nextFrame(); } else { _root.g.combo.gotoAndStop(8); } } } } } frame 3 { mcQmark1_animate(); luk1_guessSound.start(0, 1); } instance of movieClip 1943 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(37) && _root.g.leftDown == false) { _root.g.leftDown = true; if (_root.g.combo.arrow2 == 'left') { _root.g.combo.nextFrame(); } else { _root.g.combo.gotoAndStop(8); } } if (Key.isDown(39) && _root.g.rightDown == false) { _root.g.rightDown = true; if (_root.g.combo.arrow2 == 'right') { _root.g.combo.nextFrame(); } else { _root.g.combo.gotoAndStop(8); } } if (Key.isDown(40) && _root.g.downDown == false) { _root.g.downDown = true; if (_root.g.combo.arrow2 == 'down') { _root.g.combo.nextFrame(); } else { _root.g.combo.gotoAndStop(8); } } if (Key.isDown(38) && _root.g.upDown == false) { _root.g.upDown = true; if (_root.g.combo.arrow2 == 'up') { _root.g.combo.nextFrame(); } else { _root.g.combo.gotoAndStop(8); } } if (Key.isDown(32) && _root.g.spaceDown == false) { _root.g.spaceDown = true; if (_root.g.combo.arrow2 == 'spacebar') { _root.g.combo.nextFrame(); } else { _root.g.combo.gotoAndStop(8); } } } } } frame 4 { mcQmark2_animate(); luk1_guessSound.start(0, 1); } instance of movieClip 1943 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(37) && _root.g.leftDown == false) { _root.g.leftDown = true; if (_root.g.combo.arrow3 == 'left') { _root.g.combo.nextFrame(); } else { _root.g.combo.gotoAndStop(8); } } if (Key.isDown(39) && _root.g.rightDown == false) { _root.g.rightDown = true; if (_root.g.combo.arrow3 == 'right') { _root.g.combo.nextFrame(); } else { _root.g.combo.gotoAndStop(8); } } if (Key.isDown(40) && _root.g.downDown == false) { _root.g.downDown = true; if (_root.g.combo.arrow3 == 'down') { _root.g.combo.nextFrame(); } else { _root.g.combo.gotoAndStop(8); } } if (Key.isDown(38) && _root.g.upDown == false) { _root.g.upDown = true; if (_root.g.combo.arrow3 == 'up') { _root.g.combo.nextFrame(); } else { _root.g.combo.gotoAndStop(8); } } if (Key.isDown(32) && _root.g.spaceDown == false) { _root.g.spaceDown = true; if (_root.g.combo.arrow3 == 'spacebar') { _root.g.combo.nextFrame(); } else { _root.g.combo.gotoAndStop(8); } } } } } frame 5 { mcQmark3_animate(); luk1_guessSound.start(0, 1); } instance of movieClip 1943 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(37) && _root.g.leftDown == false) { _root.g.leftDown = true; if (_root.g.combo.arrow4 == 'left') { _root.g.combo.nextFrame(); } else { _root.g.combo.gotoAndStop(8); } } if (Key.isDown(39) && _root.g.rightDown == false) { _root.g.rightDown = true; if (_root.g.combo.arrow4 == 'right') { _root.g.combo.nextFrame(); } else { _root.g.combo.gotoAndStop(8); } } if (Key.isDown(40) && _root.g.downDown == false) { _root.g.downDown = true; if (_root.g.combo.arrow4 == 'down') { _root.g.combo.nextFrame(); } else { _root.g.combo.gotoAndStop(8); } } if (Key.isDown(38) && _root.g.upDown == false) { _root.g.upDown = true; if (_root.g.combo.arrow4 == 'up') { _root.g.combo.nextFrame(); } else { _root.g.combo.gotoAndStop(8); } } if (Key.isDown(32) && _root.g.spaceDown == false) { _root.g.spaceDown = true; if (_root.g.combo.arrow4 == 'spacebar') { _root.g.combo.nextFrame(); } else { _root.g.combo.gotoAndStop(8); } } } } } frame 6 { mcQmark4_animate(); luk1_guessSound.start(0, 1); } instance of movieClip 1943 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(37) && _root.g.leftDown == false) { _root.g.leftDown = true; if (_root.g.combo.arrow5 == 'left') { _root.g.combo.gotoAndStop(7); } else { _root.g.combo.gotoAndStop(8); } } if (Key.isDown(39) && _root.g.rightDown == false) { _root.g.rightDown = true; if (_root.g.combo.arrow5 == 'right') { _root.g.combo.gotoAndStop(7); } else { _root.g.combo.gotoAndStop(8); } } if (Key.isDown(40) && _root.g.downDown == false) { _root.g.downDown = true; if (_root.g.combo.arrow5 == 'down') { _root.g.combo.gotoAndStop(7); } else { _root.g.combo.gotoAndStop(8); } } if (Key.isDown(38) && _root.g.upDown == false) { _root.g.upDown = true; if (_root.g.combo.arrow5 == 'up') { _root.g.combo.gotoAndStop(7); } else { _root.g.combo.gotoAndStop(8); } } if (Key.isDown(32) && _root.g.spaceDown == false) { _root.g.spaceDown = true; if (_root.g.combo.arrow5 == 'spacebar') { _root.g.combo.gotoAndStop(7); } else { _root.g.combo.gotoAndStop(8); } } } } } frame 7 { stop(); mcQmark5_animate(); luk1_guessSound.start(0, 1); SequenceGeneratorOutcome = true; _root.gameOutcome(true); } frame 8 { stop(); luk1_loseSound.start(0, 1); _root.gameOutcome(false); } } movieClip 1981 { } movieClip 1982 game56 { frame 1 { _root.rules = 'Do the sequence!'; _root.beatClock = true; } frame 1 { leftDown = false; upDown = false; rightDown = false; downDown = false; spaceDown = false; onEnterFrame = function () { if (!Key.isDown(37)) { leftDown = false; } if (!Key.isDown(39)) { rightDown = false; } if (!Key.isDown(38)) { upDown = false; } if (!Key.isDown(40)) { downDown = false; } if (!Key.isDown(32)) { spaceDown = false; } }; } } movieClip 1990 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 1996 { frame 1 { stop(); } frame 6 { stop(); } } movieClip 1997 { } movieClip 2000 { } movieClip 2001 game57 { frame 1 { _root.rules = 'Snag the Fly'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { if (_root.g.tongue._currentframe == 1) { _root.g.tongue._rotation += 3; } if (Key.isDown(32)) { _root.g.tongue.gotoAndPlay(2); } } }; } instance tongue of movieClip 1990 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (this.hitTest(_root.g.fly)) { _root.g.fly.zefly.gotoAndPlay(2); _root.gameOutcome(true); } } } } } movieClip 2007 { frame 40 { gotoAndPlay(1); } frame 41 { stop(); } frame 42 { stop(); } } movieClip 2010 { } movieClip 2011 { } movieClip 2012 { } movieClip 2023 { } movieClip 2026 { } movieClip 2029 { } movieClip 2031 { } movieClip 2039 { } movieClip 2040 { frame 1 { stop(); } } movieClip 2053 { } movieClip 2056 { } movieClip 2057 game58 { frame 1 { _root.rules = 'Get to the exit!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { if (_root.g.player.hitTest(_root.g.ground.spikes)) { _root.gameOutcome(false); _root.g.bg.gotoAndStop(41); } if (_root.g.player.hitTest(_root.g.exit)) { _root.gameOutcome(true); _root.g.bg.gotoAndStop(42); _root.g.player.gotoAndStop(4); } } }; } instance player of movieClip 2040 { onClipEvent (load) { grav = 0; speed = 9; jumpHeight = 15; scale = _xscale; slowfall = 0.8; gotoAndStop(3); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { ++grav; _y = _y + grav; while (_root.g.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (Key.isDown(39)) { _x = _x + speed; _xscale = scale; if (_root.g.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (Key.isDown(37)) { _x = _x - speed; _xscale = -scale; if (_root.g.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } } if ((Key.isDown(38) || Key.isDown(32)) && _root.g.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(2); } if (_root.g.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.g.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true)) { _x = _x - speed; } if (_root.g.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.g.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true)) { _x = _x + speed; } if (_root.g.ground.hitTest(_x, _y - _height, true)) { grav = 2; } } } onClipEvent (keyUp) { gotoAndStop(3); } } } movieClip 2068 { } movieClip 2071 { } movieClip 2080 { } movieClip 2087 { } movieClip 2097 { frame 2 { _root.gameOutcome(false); } frame 9 { stop(); } } movieClip 2098 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 2102 { } movieClip 2103 { frame 128 { stop(); } } movieClip 2106 { } movieClip 2107 game59 { frame 1 { _root.rules = 'Avoid the salt'; _root.beatClock = false; } instance Nug5_snail of movieClip 2098 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (this._parent.Nug5_shaker._currentframe == 120) { if (this.hitTest(this._parent.Nug5_shaker.Nug_salt)) { this.gotoAndPlay('dead'); trace('poop'); } } if (_currentframe == 1 or _currentframe == 2) { if (Key.isDown(39)) { gotoAndStop(2); this._x += 7; if (this._x > 525) { this._x = 525; } this._xscale = -100; } else { if (Key.isDown(37)) { if (_currentframe == 1 or _currentframe == 2) { gotoAndStop(2); this._x -= 7; this._xscale = 100; if (this._x < 25) { this._x = 25; } } } else { if (!Key.isDown(39) and !Key.isDown(39)) { gotoAndStop(1); } } } } } } onClipEvent (keyUp) { if (_currentframe == 1 or _currentframe == 2) { gotoAndStop(1); } } } instance Nug5_shaker of movieClip 2103 { onClipEvent (load) { delay = 3; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_parent.Nug5_snail._x > this._x) { this._x += delay; } if (_parent.Nug5_snail._x < this._x) { this._x -= delay; } } } } } movieClip 2111 { } movieClip 2113 { } movieClip 2115 { } movieClip 2116 { } movieClip 2117 { } movieClip 2119 { } movieClip 2121 { frame 1 { stop(); } frame 20 { gotoAndStop(1); } } movieClip 2123 { } movieClip 2124 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 2127 { } movieClip 2128 game60 { frame 1 { _root.rules = 'Don\'t Shoot The Emo!'; _root.beatClock = false; stop(); spaceDown = false; onEnterFrame = function () { if (!Key.isDown(32)) { spaceDown = false; } }; } instance of movieClip 2121 { onClipEvent (enterFrame) { if (Key.isDown(37)) { this._x = _x - 10; } } onClipEvent (enterFrame) { if (Key.isDown(39)) { this._x = _x + 10; } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(32) && _root.g.spaceDown == false) { _root.g.spaceDown = true; play(); if (this._x > 200.7 && this._x < 349.6) { _parent.white.play(); _root.gameOutcome(false); } } } } } } movieClip 2131 { } movieClip 2136 { } movieClip 2138 { } movieClip 2139 { } movieClip 2144 { frame 45 { stop(); } } movieClip 2147 { } movieClip 2148 { instance of movieClip 2147 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 2147 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 2147 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 2147 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 2147 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 2147 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 2147 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 2147 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 2147 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 2147 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 2147 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 2147 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 2147 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 2147 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 2147 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 2147 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 2147 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 2147 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 2147 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } instance of movieClip 2147 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 20)); } } } movieClip 2151 { } movieClip 2152 { frame 1 { stop(); } instance of movieClip 2151 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 15)); } } instance of movieClip 2151 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 15)); } } instance of movieClip 2151 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 15)); } } instance of movieClip 2151 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 15)); } } instance of movieClip 2151 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 15)); } } instance of movieClip 2151 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 15)); } } instance of movieClip 2151 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 15)); } } instance of movieClip 2151 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 15)); } } instance of movieClip 2151 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 15)); } } } movieClip 2155 { } movieClip 2156 { } movieClip 2159 { } movieClip 2160 game61 { frame 1 { _root.beatclock = true; _root.rules = 'To End Of The Track!'; } instance of movieClip 2131 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 32)); } } instance of movieClip 2131 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 32)); } } instance of movieClip 2131 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 32)); } } instance of movieClip 2131 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 32)); } } instance of movieClip 2136 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 17)); } } instance of movieClip 2136 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 17)); } } instance of movieClip 2139 { onClipEvent (load) { this._x = Math.random() * 550; this._y = Math.random() * 100; } } instance of movieClip 2144 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 25)); } } instance of movieClip 2144 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 25)); } } instance of movieClip 2144 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 25)); } } instance of movieClip 2139 { onClipEvent (load) { this._x = Math.random() * 550; this._y = Math.random() * 100; } } instance of movieClip 2139 { onClipEvent (load) { this._x = Math.random() * 550; this._y = Math.random() * 100; } } instance of movieClip 2139 { onClipEvent (load) { this._x = Math.random() * 550; this._y = Math.random() * 100; } } instance mover of movieClip 2152 { onClipEvent (load) { movingspeed = 7; position = 2; top = false; bottom = false; moveable = true; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (moveable == true) { _x = _x + movingspeed; } if (position == 1) { top = true; } else { top = false; } if (position == 3) { bottom = true; } else { bottom = false; } if (movingspeed >= 12) { movingspeed = 12; } if (movingspeed <= 4) { movingspeed = 4; } } } onClipEvent (keyDown) { if (_root.cstatus == 1) { if (Key.getCode() == 38 && top == false && moveable == true) { _y = _y - 50; position -= 1; } if (Key.getCode() == 40 && bottom == false && moveable == true) { _y = _y + 50; position += 1; } } } } instance of movieClip 2155 { onClipEvent (load) { _x = Math.ceil(Math.random() * 550) + 190; eatspeed = 6; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_root.g.mover.hitTest(this)) { _root.g.mover.gotoAndStop(2); _root.g.mover.moveable = false; _root.gameOutcome(false); } if (_root.g.mover.moveable == false) { eatspeed = 0; } _x = _x - eatspeed; } } } instance of movieClip 2155 { onClipEvent (load) { _x = Math.ceil(Math.random() * 550) + 190; eatspeed = 6; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_root.g.mover.hitTest(this)) { _root.g.mover.gotoAndStop(2); _root.g.mover.moveable = false; _root.gameOutcome(false); } if (_root.g.mover.moveable == false) { eatspeed = 0; } _x = _x - eatspeed; } } } instance of movieClip 2155 { onClipEvent (load) { _x = Math.ceil(Math.random() * 550) + 190; eatspeed = 6; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_root.g.mover.hitTest(this)) { _root.g.mover.gotoAndStop(2); _root.g.mover.moveable = false; _root.gameOutcome(false); } if (_root.g.mover.moveable == false) { eatspeed = 0; } _x = _x - eatspeed; } } } instance of movieClip 2156 { onClipEvent (enterFrame) { if (_root.g.mover.hitTest(this)) { _root.g.mover.moveable = false; _root.gameOutcome(true); } } } } movieClip 2163 { } movieClip 2187 { } movieClip 2193 { frame 1 { stop(); this._parent.slider.wait = false; } } movieClip 2243 { frame 1 { stop(); } frame 2 { this._parent.space._visible = false; if (this._parent.slider.swing == 1) { gotoAndPlay('one'); } } frame 5 { if (this._parent.slider.swing == 2) { gotoAndPlay('one'); } } frame 9 { if (this._parent.slider.swing == 3) { gotoAndPlay('two'); } } frame 13 { if (this._parent.slider.swing == 4) { gotoAndPlay('three'); } } frame 20 { this._parent.ball.hit = true; } frame 27 { stop(); bison = false; } frame 28 { this.gotoAndStop(27); } } movieClip 2245 { } movieClip 2252 { frame 1 { stop(); } frame 2 { if (this._parent.slider.power == 1) { gotoAndPlay('one'); } } frame 6 { if (this._parent.slider.power == 2) { gotoAndPlay('two'); } } frame 11 { if (this._parent.slider.power == 3) { gotoAndPlay('three'); } } frame 16 { if (this._parent.slider.power == 4) { gotoAndPlay('four'); } } frame 20 { if (this._parent.slider.power == 5) { gotoAndPlay('five'); } } frame 50 { stop(); buffolo = false; _root.gameOutcome(false); } frame 120 { stop(); buffolo = false; _root.gameOutcome(false); } frame 210 { stop(); buffolo = false; _root.gameOutcome(false); } frame 254 { stop(); buffolo = false; _root.gameOutcome(true); } frame 311 { stop(); buffolo = false; _root.gameOutcome(false); } } movieClip 2256 { frame 1 { this.power = 1; } frame 1 { stop(); } frame 4 { this.power = 2; } frame 7 { this.power = 3; } frame 10 { this.power = 4; } frame 14 { this.power = 5; } frame 17 { this.power = 5; } frame 20 { this.power = 4; } frame 24 { this.power = 3; } frame 27 { this.power = 2; } frame 30 { this.power = 1; } frame 32 { stop(); } } movieClip 2275 { } movieClip 2276 { frame 3 { stop(); } } movieClip 2279 { } movieClip 2280 game63 { frame 1 { _root.rules = 'Space at green'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance space of movieClip 2193 { onClipEvent (enterFrame) { if (Key.isDown(32)) { play(); } } } instance man of movieClip 2243 { onClipEvent (load) { bison = true; } onClipEvent (enterFrame) { this._parent.man2.gotoAndStop(this._currentframe); if (bison == true) { this.swing = this._parent.slider.swing; } else { this.swing = 0; } if (this.swing != 0 and bison == true and this._parent.slider.Stop == true) { this.play(); } } } instance ball of movieClip 2252 { onClipEvent (load) { buffolo = true; hit = false; } onClipEvent (enterFrame) { if (buffolo == true) { this.swing = this._parent.slider.swing; } else { this.swing = 0; } if (this.swing != 0 and buffolo == true and this._parent.slider.Stop == true) { this.play(); } } } instance slider of movieClip 2256 { onClipEvent (load) { go = false; going = false; Stop = false; wait = false; counter = 0; swing = 0; power = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { go = true; if (Key.isDown(32) and wait == false) { if (go == true) { Stop = true; } if (going == false) { go = true; wait = true; } } } if (go == true) { play(); going = true; } if (Stop == true) { stop(); swing = power; } } } } movieClip 2283 { } movieClip 2285 { } movieClip 2288 { } movieClip 2291 { } movieClip 2292 game64 { frame 1 { _root.beatClock = false; _root.rules = 'Balance the dish!'; Mouse.hide(); } instance stick of movieClip 2283 { onClipEvent (enterFrame) { _x = _root._xmouse; _y = _root._ymouse - _height / 2; } } instance of movieClip 2285 { onClipEvent (load) { function rand(min, max) { return Math.random() * (max - min) + min; } rTarget = rand(-1, 1); while (rTarget == 0) { rTarget = rand(-1, 1); } deadSpeed = 10; speed = 0; _x = rand(_width / 2, 550 - _width / 2); _y = rand(_height / 2, 200 - _height / 2); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { _rotation = _rotation - (_rotation - rTarget) / 10; rTarget *= 1.01; if (rTarget < 0) { _x = _x - 0.5; } else { _x = _x + 0.5; } if (rTarget < -45) { dead = true; _root.gameOutcome(false); } else { if (rTarget > 45) { dead = true; _root.gameOutcome(false); } } if (!hitTest(_parent.stick._x, _parent.stick._y, true)) { _y = _y + speed; speed += 2; } else { speed = 0; _y = _y - (_y - _parent.stick._y) / 2; rTarget += (_x - _parent.stick._x) / 20; } } if (dead) { _y = _y + deadSpeed; if (rTarget < 0) { _x = _x - deadSpeed / 3; } else { _x = _x + deadSpeed / 3; } deadSpeed += 2; } if (_y - _height / 2 > 400) { dead = true; _root.gameOutcome(false); } } } } movieClip 2295 { } movieClip 2297 { } movieClip 2299 { } movieClip 2301 { } movieClip 2303 { } movieClip 2306 { } movieClip 2309 { } movieClip 2310 game65 { frame 1 { function startDraw(colour, tar, par) { if (_root.cstatus == 1) { this.createEmptyMovieClip('line' + i, this.getNextHighestDepth()); this['line' + i].lineStyle(2, colour); this['line' + i].moveTo(_xmouse, _ymouse); drawing = true; target = tar; parent = par; trace('Start Draw'); } } function die() { if (this[target].hitTest(_xmouse, _ymouse)) { drawing = false; this[parent].active = false; this[target].active = false; ++joined; } else { drawing = false; this['line' + i].onEnterFrame = function () { this._alpha -= 10; if (this._alpha <= 0) { this.removeMovieClip(); } }; } ++i; } _root.rules = 'Join the wires!'; _root.beatClock = true; i = 1; joined = 0; onEnterFrame = function () { if (drawing) { this['line' + i].lineTo(_xmouse, _ymouse); } if (joined >= 2) { _root.gameOutcome(true); } if (_root.cstatus != 1) { die(); } }; onMouseUp = die; } instance leftgreen of movieClip 2297 { onClipEvent (load) { active = true; } onClipEvent (press) { if (active) { _parent.startDraw(39168, 'rightgreen', 'leftgreen'); } } } instance leftorange of movieClip 2299 { onClipEvent (load) { active = true; } onClipEvent (press) { if (active) { _parent.startDraw(16737792, 'rightorange', 'leftorange'); } } } instance rightorange of movieClip 2301 { onClipEvent (load) { active = true; } onClipEvent (press) { if (active) { _parent.startDraw(16737792, 'leftorange', 'rightorange'); } } } instance rightgreen of movieClip 2303 { onClipEvent (load) { active = true; } onClipEvent (press) { if (active) { _parent.startDraw(39168, 'leftgreen', 'rightgreen'); } } } } movieClip 2314 { } movieClip 2316 { } movieClip 2317 { } movieClip 2318 { instance of movieClip 2316 { onClipEvent (enterFrame) { this._rotation += 10; } } } movieClip 2327 { } movieClip 2329 { } movieClip 2330 { } movieClip 2333 { } movieClip 2336 { } movieClip 2337 game66 { frame 1 { speed = 1; _root.rules = 'Escape the Portal!'; _root.beatClock = false; } instance ship of movieClip 2330 { onClipEvent (load) { down = false; spd = 2 * _root.speed; spd2 = spd * 2.5; _alpha = 100; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (!this.ship.hitTest(_parent.center)) { Yd = -(_y - _parent.center._y); this._yscale = -(Xd + Yd) / 5; Xd = _parent.center._x - _x; this._xscale = (Xd + Yd) / 5; this._alpha = -_xscale + 20; radAngle = Math.atan2(Yd, Xd); _rotation = int(radAngle * 360 / 6.283185307179586 + 90); if ((Key.isDown(32) || Key.isDown(38)) && !down) { down = true; _y = _y + spd2 * Math.cos(0.0174532925199433 * _rotation); _x = _x - spd2 * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y - spd * Math.cos(0.0174532925199433 * _rotation); _x = _x + spd * Math.sin(0.0174532925199433 * _rotation); } if (!Key.isDown(32)) { down = false; } } else { _root.gameOutcome(false); this._x = -1000; this._y = -1000; } } } } } movieClip 2339 { } movieClip 2342 { } movieClip 2343 { frame 1 { stop(); } } movieClip 2344 { } movieClip 2345 { frame 129 { stop(); } } movieClip 2347 { } movieClip 2349 { } movieClip 2352 { } movieClip 2353 game67 { frame 1 { _root.rules = 'Hit the Bullseye'; _root.beatClock = true; bullet = 1; shot = new Sound(this); shot.attachSound('shottaken'); onEnterFrame = function () { if (_root.cstatus == 1) { cursor._rotation += 3; if (Key.isDown(37)) { cursor._x -= 3; } if (Key.isDown(39)) { cursor._x += 3; } if (Key.isDown(38)) { cursor._y -= 3; } if (Key.isDown(40)) { cursor._y += 3; } if (Key.isDown(32) and bullet == 1) { bullet = 0; shot.start(0, 1); if (cursor.hitTest(target.target2.bullseye)) { _root.gameOutcome(true); target.target2.bullseye.gotoAndPlay(2); } else { _root.gameOutcome(false); } } } }; } } movieClip 2357 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 2362 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 2366 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 2368 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 2369 { frame 1 { stop(); } instance edi1_car2 of movieClip 2357 { onClipEvent (load) { this.gotoAndStop(int(random(3))); } } instance edi1_wrongwaysign of movieClip 2362 { onClipEvent (load) { this.gotoAndStop(int(random(4))); } } instance edi1_oldwoman of movieClip 2366 { onClipEvent (load) { this.gotoAndStop(int(random(4))); } } instance edi1_fallentree of movieClip 2368 { onClipEvent (load) { this.gotoAndStop(int(random(4))); } } } movieClip 2371 { } movieClip 2376 { } movieClip 2380 { } movieClip 2383 { } movieClip 2384 game68 { frame 1 { _root.rules = 'Navagate Thru Fog'; _root.beatClock = false; onEnterFrame = function () { if (_root.cstatus == 1) { edi1_obstacles.play(); if (Key.isDown(37) and edi1_car._x > 100) { edi1_car._x -= 15; } if (Key.isDown(39) and edi1_car._x < 450) { edi1_car._x += 15; } edi1_shadow._x = edi1_car._x; if (edi1_obstacles.hitTest(edi1_shadow)) { _root.gameOutcome(false); edi1_obstacles.stop(); edi1_owned._x = 300; } } }; } } movieClip 2389 { } movieClip 2391 { } movieClip 2395 { } movieClip 2396 { } movieClip 2397 { } movieClip 2398 { } movieClip 2399 { frame 1 { stop(); } frame 10 { stop(); } } movieClip 2400 { instance flower2 of movieClip 2399 { onClipEvent (enterFrame) { if (_root.cstatus == 1 && this.hitTest(_root.g.thing)) { this.play(); _root.gameOutcome(true); } } } } movieClip 2405 { } movieClip 2406 { instance of movieClip 2405 { onClipEvent (enterFrame) { if (this.hitTest(_root.bg.flower2.flower)) { _root.bg.flower2.gotoAndPlay(2); } } onClipEvent (enterFrame) { if (this.hitTest(_root.bg.flower6)) { _root.bg.flower6.gotoAndPlay(2); } } } } movieClip 2407 { } movieClip 2408 { } movieClip 2412 { } movieClip 2414 game69 { frame 1 { _root.rules = 'Crush the flower!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } frame 1 { stop(); } instance bg of movieClip 2400 { onClipEvent (load) { speed = -10; stop(); } onClipEvent (enterFrame) { _x = _x + Key.isDown(39) * speed; _x = _x - Key.isDown(37) * speed; } } frame 2 { stop(); } } movieClip 2417 { frame 1 { Nug6_widthSpan = 550; Nug6_heightSpan = 400; Nug6_twinkle = 30; Nug6_Nug6_twinkleS = 5; Nug6_Stars = 100; Nug6_star.Nug6_pos = undefined; i = 0; while (i < Nug6_Stars) { attachMovie('Nug6_star', 'Nug6_star' + i, i); Nug6_star = this['Nug6_star' + i]; Nug6_star._alpha = Math.random() * Nug6_twinkle + (100 - Nug6_twinkle); Nug6_star.Aset = Nug6_star._alpha; Nug6_star.c = Math.random() * (Nug6_star.Aset / 2) + Nug6_star.Aset / 2; Nug6_star.p = Math.random() * Nug6_Nug6_twinkleS; Nug6_star.Nug6_pos = 'waning'; Nug6_star._x = Math.random() * Nug6_widthSpan; Nug6_star._y = Math.random() * Nug6_heightSpan; Nug6_star._yscale = Math.random() * 80 + 20; Nug6_star._xscale = Nug6_star._yscale; Nug6_star.onEnterFrame = function () { if (this.Nug6_pos == 'waning') { this._alpha -= this.p; if (this._alpha <= this.c) { this.Nug6_pos = 'waxing'; } } if (this.Nug6_pos == 'waxing') { this._alpha += this.p; if (this._alpha >= this.Aset) { this.Nug6_pos = 'waning'; } } }; ++i; } } } movieClip 2420 { } movieClip 2431 { } movieClip 2437 { } movieClip 2438 { } movieClip 2440 { } movieClip 2446 { } movieClip 2450 { } movieClip 2451 { } movieClip 2456 { } movieClip 2462 { } movieClip 2463 { frame 5 { Nug6_poop = 15; onEnterFrame = function () { Nug6_poop += 5; this._y += Nug6_poop; }; _root.gameOutcome(true); trace('win'); } instance of movieClip 2462 { onClipEvent (load) { this._rotation = Math.random() * 360; } } frame 14 { stop(); } } movieClip 2464 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 2466 { } movieClip 2469 { } movieClip 2470 { frame 1 { stop(); } frame 3 { stop(); } } movieClip 2473 { } movieClip 2474 game70 { frame 1 { _root.beatClock = true; _root.rules = 'Smash the bug!'; } instance Nug6_fly of movieClip 2464 { onClipEvent (load) { Nug6_accel = 5; this._x = random(550); this._y = random(400); Nug6_move = function () { ranx = random(550); rany = random(400); }; Nug6_move(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (this._currentframe == 1) { _x = _x + (ranx - _x) / Nug6_accel; _y = _y + (rany - _y) / Nug6_accel; if (Math.round(_x) == ranx || Math.round(_y) == rany) { Nug6_move(); } } } } } instance Nug6_hand of movieClip 2470 { onClipEvent (load) { Nug6_speed = 12; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(39)) { this._x += Nug6_speed; } if (Key.isDown(37)) { this._x -= Nug6_speed; } if (Key.isDown(38)) { this._y -= Nug6_speed; } if (Key.isDown(40)) { this._y += Nug6_speed; } if (Key.isDown(32)) { nextFrame(); } if (_parent.Nug6_fly._currentframe == 1) { if (Nug6_down.hitTest(_parent.Nug6_fly.Nug6_fly2.Nug6_head)) { _parent.Nug6_fly.play(); } } } } onClipEvent (keyUp) { if (_currentframe > 1) { play(); } } } } movieClip 2476 { } movieClip 2479 { } movieClip 2486 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 2493 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 2499 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 2501 { } movieClip 2502 { frame 1 { stop(); } frame 15 { stop(); } } movieClip 2504 { } movieClip 2505 { frame 1 { stop(); } frame 15 { stop(); } } movieClip 2508 { } movieClip 2509 game71 { frame 1 { _root.rules = 'Cut the blue wire!'; _root.beatClock = true; setTimeout(function () { timer = '0:03'; }, 1000); setTimeout(function () { timer = '0:02'; }, 2000); setTimeout(function () { timer = '0:01'; }, 3000); setTimeout(function () { timer = '0:00'; _root.gameOutcome(false); }, 4000); onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance of movieClip 2486 { onClipEvent (rollOver) { if (_root.cstatus == 1) { play(); _parent.lose.play(); _root.gameOutcome(false); } } } instance of movieClip 2493 { onClipEvent (rollOver) { if (_root.cstatus == 1) { play(); _parent.win.play(); _root.gameOutcome(true); } } } instance of movieClip 2499 { onClipEvent (rollOver) { if (_root.cstatus == 1) { play(); _parent.lose.play(); _root.gameOutcome(false); } } } } movieClip 2512 { } movieClip 2515 { } movieClip 2518 { frame 1 { stop(); } } movieClip 2520 { } movieClip 2522 { } movieClip 2525 { } movieClip 2526 game72 { frame 1 { _root.rules = 'Catch the Green Ball!'; _root.beatClock = true; onEnterFrame = function () { if (_root.g.hand.palm.hitTest(_root.g.bball1) || _root.g.hand.palm.hitTest(_root.g.bball2) || _root.g.hand.palm.hitTest(_root.g.bball3) || _root.g.hand.palm.hitTest(_root.g.bball4) || _root.g.hand.palm.hitTest(_root.g.bball5)) { _root.gameOutcome(false); } }; } instance hand of movieClip 2518 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(38)) { if (!this.hitTest(_root.g.gball)) { this._y -= 16; } } if (Key.isDown(40)) { if (!this.hitTest(_root.g.gball)) { this._y += 16; } } if (this._y < 25) { this._y = 25; } if (this._y > 300) { this._y = 300; } } } } instance ball5 of movieClip 2520 { onClipEvent (load) { this._y = random(300); } onClipEvent (enterFrame) { if (cstatus == 1) { if (!_root.g.hand.palm.hitTest(_root.gball)) { this._x -= 16; } } } } instance bball4 of movieClip 2520 { onClipEvent (load) { this._y = random(300); } onClipEvent (enterFrame) { if (cstatus == 1) { if (!_root.g.hand.palm.hitTest(_root.gball)) { this._x -= 16; } } } } instance bball3 of movieClip 2520 { onClipEvent (load) { this._y = random(300); } onClipEvent (enterFrame) { if (cstatus == 1) { if (!_root.g.hand.palm.hitTest(_root.gball)) { this._x -= 16; } } } } instance bball2 of movieClip 2520 { onClipEvent (load) { this._y = random(300); } onClipEvent (enterFrame) { if (cstatus == 1) { if (!_root.g.hand.palm.hitTest(_root.gball)) { this._x -= 16; } } } } instance bball1 of movieClip 2520 { onClipEvent (load) { this._y = random(300); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (!_root.g.hand.palm.hitTest(_root.gball)) { this._x -= 16; } } } } instance gball of movieClip 2522 { onClipEvent (load) { this._y = random(300); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (!this.hitTest(_root.g.hand.palm)) { this._x -= 16; } else { _root.g.hand.gotoAndStop(2); _root.gameOutcome(true); } } } } } movieClip 2533 { } movieClip 2540 { } movieClip 2541 { } movieClip 2543 { } movieClip 2544 { } movieClip 2547 { } movieClip 2549 { } movieClip 2551 { } movieClip 2555 { } movieClip 2556 game73 { frame 1 { _root.rules = 'Shut down'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { rightclick._x = mousemain._x; rightclick._y = mousemain._y; leftclick._x = mousemain._x; leftclick._y = mousemain._y; cursor._x = mousemain._x / 2 - 100; cursor._y = mousemain._y / 2 - 20; if (startbutton.hitTest(cursor._x, cursor._y, true)) { startmenu._x = 40; startmenu._y = 40; } if (leftclick.clicked == true) { if (startmenu.offbutton.hitTest(cursor._x, cursor._y, false)) { _root.gameOutcome(true); blanked._x = 0; } } } }; } instance leftclick of movieClip 2547 { onClipEvent (load) { clicked = false; } onClipEvent (press) { if (_root.cstatus == 1) { clicked = true; } } onClipEvent (release) { clicked = false; } } instance mousemain of movieClip 2551 { onClipEvent (press) { if (_root.cstatus == 1) { startDrag(this, false, 290, 100, 600, 350); } else { stopDrag(); } } onClipEvent (release) { stopDrag(); } } } movieClip 2559 { } movieClip 2562 { } movieClip 2564 { } movieClip 2567 { } movieClip 2568 { } movieClip 2570 { } movieClip 2572 { } movieClip 2574 { } movieClip 2575 { } movieClip 2578 { } movieClip 2600 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } frame 4 { _root.gameOutcome(true); } frame 48 { stop(); _root.gameOutcome(true); } } movieClip 2601 { frame 130 { _parent.play(); _root.gameOutcome(false); } } movieClip 2603 { } movieClip 2605 { } movieClip 2607 { } movieClip 2609 { } movieClip 2612 { } movieClip 2616 { } movieClip 2618 { frame 1 { stop(); } frame 12 { stop(); } } movieClip 2619 { frame 1 { stop(); bgSound = new Sound(this); bgSound.attachSound('Autorifle'); click = new Sound(this); click.attachSound('click'); } instance bullseye_01 of movieClip 2618 { onClipEvent (enterFrame) { if (Key.isDown(32) == true) { --_parent.ammo; if (_parent.ammo <= 0) { _parent.click.start(0, 2); _parent.ammo = 0; } else { if (_parent.ammo > 0) { _parent._parent.bullseye_02.play(); _parent.bullseye_01.play(); if (this.hitTest(_parent._parent.block_01)) { } else { if (this.hitTest(_parent._parent.block_02)) { } else { if (this.hitTest(_parent._parent.train_01.train_02.train_03)) { --_parent.train_health; if (_parent.train_health <= 0) { _parent.train_health = 0; } if (_parent.train_dead == true) { } else { if (_parent.train_health > 1) { _parent._parent.train_01.train_02.gotoAndPlay(2); } else { if (_parent.train_health <= 0) { _parent._parent.train_01.train_02.gotoAndPlay(4); _parent._parent.train_01.stop(); _parent.train_dead = true; } } } } } } } } } } } frame 2 { bgSound.start(0, 0); } frame 12 { stop(); } frame 15 { bgSound.stop(0, 0); bgSound.start(0, 0); } } movieClip 2622 { } movieClip 2623 game74 { frame 1 { _root.rules = 'Kill the Train'; _root.beatClock = true; train_random_spot = Number(random(100) + 226); obstical_random_spot = Number(random(483) + 37); bullseye_random_x_spot = Number(random(400) + 63); bullseye_random_y_spot = Number(random(339.9) + 59.9); obstical_3_random_spot = Number(random(483) + 37); bullseye_02.train_health = 30; bullseye_02.train_dead = false; bullseye_02.ammo = 45; stop(); } instance of movieClip 2562 { onClipEvent (enterFrame) { _y = _parent.train_random_spot; } } instance of movieClip 2564 { onClipEvent (load) { this._y = _parent.train_random_spot; this._x = _parent.obstical_3_random_spot; } } instance train_01 of movieClip 2601 { onClipEvent (enterFrame) { _y = _parent.train_random_spot; } } instance block_02 of movieClip 2603 { onClipEvent (load) { this._y = _parent.train_random_spot; this._x = _parent.obstical_3_random_spot; } } instance of movieClip 2605 { onClipEvent (load) { this._y = _parent.train_random_spot; this._x = _parent.obstical_3_random_spot; } } instance block_01 of movieClip 2607 { onClipEvent (enterFrame) { _x = _parent.obstical_random_spot; _y = _parent.train_random_spot; } } instance back_01 of movieClip 2609 { onClipEvent (enterFrame) { _x = _parent.obstical_random_spot; _y = _parent.train_random_spot; } } instance bullseye_02 of movieClip 2619 { onClipEvent (load) { _x = _parent.bullseye_random_x_spot; _y = _parent.bullseye_random_y_spot; } onClipEvent (enterFrame) { holdingRight = false; holdingLeft = false; holdingUp = false; holdingDown = false; if (Key.isDown(39) == true) { rightSpeed = 10; this._x += rightSpeed; holdingRight = true; } if (holdingRight == false) { rightSpeed -= 2; if (rightSpeed <= 0) { rightSpeed = 0; } this._x += rightSpeed; } if (Key.isDown(37) == true) { leftSpeed = 10; this._x -= leftSpeed; holdingLeft = true; } if (holdingLeft == false) { leftSpeed -= 2; if (leftSpeed <= 0) { leftSpeed = 0; } this._x -= leftSpeed; } if (Key.isDown(38) == true) { upSpeed = 10; this._y -= upSpeed; holdingUp = true; } if (holdingUp == false) { upSpeed -= 2; if (upSpeed <= 0) { upSpeed = 0; } this._y -= upSpeed; } if (Key.isDown(40) == true) { DownSpeed = 10; this._y += DownSpeed; holdingDown = true; } if (holdingDown == false) { DownSpeed -= 2; if (DownSpeed <= 0) { DownSpeed = 0; } this._y += DownSpeed; } } onClipEvent (enterFrame) { if (this._x <= -3) { this._x = -3; } if (this._y <= -2) { this._y = -2; } if (this._x >= 553) { this._x = 553; } if (this._y >= 402.9) { this._y = 402.9; } } } } movieClip 2628 { } movieClip 2631 { frame 1 { onEnterFrame = function () { banS.text = _parent._parent.INbananas; }; } } button 2632 { on (press) { if (INbananas < 10) { ++INbananas; } } } movieClip 2635 { frame 1 { onEnterFrame = function () { strawS.text = _parent._parent.INstrawberries; }; } } button 2636 { on (press) { if (INstrawberries < 10) { ++INstrawberries; } } } movieClip 2647 { frame 1 { stop(); } } movieClip 2658 { } movieClip 2671 { frame 1 { stop(); } frame 23 { stop(); } } button 2675 { on (release) { _parent.INbananas = 0; _parent.INstrawberries = 0; } } movieClip 2679 { instance of movieClip 2647 { onClipEvent (enterFrame) { this.gotoAndStop(_parent._parent.INbananas + 1); } } instance of movieClip 2658 { onClipEvent (enterFrame) { this.gotoAndStop(_parent._parent.INstrawberries + 1); } } } movieClip 2682 { } movieClip 2718 { frame 31 { stop(); } } movieClip 2746 { } movieClip 2747 { frame 28 { stop(); } } movieClip 2748 game75 { frame 1 { _root.rules = 'Make The Smoothie!'; _root.beatClock = true; stop(); bananas = random(5) + 1; strawberries = random(5) + 1; INbananas = 0; INstrawberries = 0; onEnterFrame = function () { strawT.text = ': ' + strawberries; banT.text = ': ' + bananas; if (_root.cstatus == 1) { blender.go.onPress = function () { if (INstrawberries == 0 && INbananas == 0) { gotoAndStop(3); } else { if (INbananas == bananas && INstrawberries == strawberries) { blender.blend.play(); _root.gameOutcome(true); } else { gotoAndStop(2); } } }; } }; } frame 2 { _root.gameOutcome(false); } frame 3 { _root.gameOutcome(false); } } movieClip 2757 { frame 1 { stop(); } frame 499 { stop(); } } movieClip 2760 { } movieClip 2763 { } movieClip 2766 { } movieClip 2767 game77 { frame 1 { _root.rules = 'Make \'em shine'; _root.beatClock = true; xprevious = edi4_bristles._x; cleanvalue = 749; onEnterFrame = function () { if (_root.cstatus == 1) { edi4_bristles._x = edi4_brush._x; edi4_bristles._y = edi4_brush._y; xmove = int(int(edi4_bristles._x) - int(xprevious)); if (xmove < 0) { xmove *= -1; } if (tooth1.hitTest(edi4_bristles)) { tooth1.clean += xmove; } if (tooth2.hitTest(edi4_bristles)) { tooth2.clean += xmove; } if (tooth3.hitTest(edi4_bristles)) { tooth3.clean += xmove; } if (tooth4.hitTest(edi4_bristles)) { tooth4.clean += xmove; } if (tooth5.hitTest(edi4_bristles)) { tooth5.clean += xmove; } if (tooth6.hitTest(edi4_bristles)) { tooth6.clean += xmove; } if (tooth7.hitTest(edi4_bristles)) { tooth7.clean += xmove; } if (tooth8.hitTest(edi4_bristles)) { tooth8.clean += xmove; } if (tooth9.hitTest(edi4_bristles)) { tooth9.clean += xmove; } if (tooth10.hitTest(edi4_bristles)) { tooth10.clean += xmove; } xprevious = edi4_bristles._x; if (tooth1.clean > cleanvalue and tooth2.clean > cleanvalue and tooth3.clean > cleanvalue and tooth4.clean > cleanvalue and tooth5.clean > cleanvalue and tooth6.clean > cleanvalue and tooth7.clean > cleanvalue and tooth8.clean > cleanvalue and tooth9.clean > cleanvalue and tooth10.clean > cleanvalue) { _root.gameOutcome(true); } } }; } instance tooth1 of movieClip 2757 { onClipEvent (load) { clean = 1; } onClipEvent (enterFrame) { gotoAndStop(int(clean)); } } instance tooth2 of movieClip 2757 { onClipEvent (load) { clean = 1; } onClipEvent (enterFrame) { gotoAndStop(int(clean)); } } instance tooth3 of movieClip 2757 { onClipEvent (load) { clean = 1; } onClipEvent (enterFrame) { gotoAndStop(int(clean)); } } instance tooth4 of movieClip 2757 { onClipEvent (load) { clean = 1; } onClipEvent (enterFrame) { gotoAndStop(int(clean)); } } instance tooth5 of movieClip 2757 { onClipEvent (load) { clean = 1; } onClipEvent (enterFrame) { gotoAndStop(int(clean)); } } instance tooth10 of movieClip 2757 { onClipEvent (load) { clean = 1; } onClipEvent (enterFrame) { gotoAndStop(int(clean)); } } instance tooth9 of movieClip 2757 { onClipEvent (load) { clean = 1; } onClipEvent (enterFrame) { gotoAndStop(int(clean)); } } instance tooth8 of movieClip 2757 { onClipEvent (load) { clean = 1; } onClipEvent (enterFrame) { gotoAndStop(int(clean)); } } instance tooth7 of movieClip 2757 { onClipEvent (load) { clean = 1; } onClipEvent (enterFrame) { gotoAndStop(int(clean)); } } instance tooth6 of movieClip 2757 { onClipEvent (load) { clean = 1; } onClipEvent (enterFrame) { gotoAndStop(int(clean)); } } instance edi4_brush of movieClip 2763 { onClipEvent (press) { if (_root.cstatus == 1) { startDrag(this, false); } else { this.stopDrag(); } } onClipEvent (release) { stopDrag(); } onClipEvent (enterFrame) { if (_root.cstatus != 1) { this.stopDrag(); } } } } movieClip 2771 { } movieClip 2787 { } movieClip 2788 { } movieClip 2794 { } movieClip 2795 { instance of movieClip 2794 { onClipEvent (keyDown) { if (Key.isDown(38)) { this._alpha = 0; } } onClipEvent (keyUp) { if (Key.getCode() == 38) { this._alpha = 100; } } } instance of movieClip 2794 { onClipEvent (keyDown) { if (Key.isDown(40)) { this._alpha = 0; } } onClipEvent (keyUp) { if (Key.getCode() == 40) { this._alpha = 100; } } } } movieClip 2796 { } movieClip 2799 { } movieClip 2802 { } movieClip 2803 game78 { frame 1 { function keyEvent(num) { if (num == 38) { if (hourChange && chooseHour < 23) { ++chooseHour; } else { if (!hourChange && chooseMins < 55) { chooseMins += 10; } } updateTime(); } else { if (num == 40) { if (hourChange && chooseHour > 0) { --chooseHour; } else { if (!hourChange && chooseMins > 0) { chooseMins -= 10; } } updateTime(); } } } function updateTime() { digital.dig_hour = chooseHour; digital.dig_minute = chooseMins; if (chooseMins < 10) { digital.dig_minute = '0' + digital.dig_minute; } } _root.rules = 'Set the clock!'; _root.beatClock = true; var hours = Math.floor(Math.random() * 10) + 1; var minutes = 10 * Math.floor(Math.random() * 5) + 10; var chooseHour = 0; var chooseMins = 0; var hourChange = true; digital.arMinute._alpha = 0; analog.hourHand._rotation = hours * 30; analog.minuteHand._rotation = minutes * 6; onEnterFrame = function () { if (_root.cstatus == 1) { if (Key.isDown(39)) { hourChange = false; digital.arHour._alpha = 0; digital.arMinute._alpha = 100; } if (Key.isDown(37)) { hourChange = true; digital.arMinute._alpha = 0; digital.arHour._alpha = 100; } if (chooseHour == hours && chooseMins == minutes) { _root.gameOutcome(true); } } }; } instance analog of movieClip 2788 { onClipEvent (keyUp) { if (_root.cstatus == 1) { _parent.keyEvent(Key.getCode()); } } } } movieClip 2805 { } movieClip 2818 { frame 1 { stop(); } frame 10 { _root.gameOutcome(true); } } movieClip 2821 { } movieClip 2822 { } movieClip 2825 { } movieClip 2826 { } movieClip 2827 { } movieClip 2828 { } movieClip 2830 { } movieClip 2831 { } movieClip 2832 game79 { frame 1 { function keyAction(keyd) { if (_root.cstatus == 1 && keyd == keytp) { turner['ar' + keytp].gotoAndStop(1); if (goNext) { vol.nextFrame(); volbar.mask._width += 30; goNext = false; } else { goNext = true; } ++keytp; if (keytp > 40) { keytp = 37; } turner['ar' + keytp].play(); } } _root.rules = 'Turn it Up!'; _root.beatClock = true; var goNext = false; var keytp = Math.floor(Math.random() * 4) + 37; volbar.mask._width = 0; var i = 37; while (i <= 40) { turner['ar' + i].stop(); ++i; } turner['ar' + keytp].play(); } instance turner of movieClip 2827 { onClipEvent (keyDown) { _parent.keyAction(Key.getCode()); } } } movieClip 2834 { } movieClip 2836 { } movieClip 2838 { } movieClip 2840 { } movieClip 2842 { } movieClip 2850 { frame 1 { stop(); } frame 6 { _root.gameOutcome(true); } frame 7 { _root.gameOutcome(false); } } movieClip 2851 game80 { frame 1 { function keyu(key) { this['key' + key]._alpha = 50; if (combo <= 4) { if (key == this['combo' + combo]) { ++combo; textItem.nextFrame(); } else { if (key >= 37 && key <= 40) { textItem.gotoAndStop(7); combo = 5; } } } } function keyd(key) { this['key' + key]._alpha = 100; } _root.rules = 'Watch and Repeat!'; _root.beatClock = true; var i = 0; while (i <= 4) { this['combo' + i] = Math.floor(Math.random() * 4) + 37; ++i; } var combo = 1; var played = false; var playCount = 1; var plays = 0; this['key' + this['combo' + combo]]._alpha = 100; onEnterFrame = function () { if (_root.cstatus == 1 && !played) { if (playCount == 12) { this['key' + this['combo' + combo]]._alpha = 50; } else { if (playCount >= 16) { ++plays; ++combo; this['key' + this['combo' + combo]]._alpha = 100; if (plays >= 4) { played = true; combo = 1; textItem.nextFrame(); } playCount = 0; } } ++playCount; } }; } instance textItem of movieClip 2850 { onClipEvent (keyDown) { if (_parent.played) { _parent.keyd(Key.getCode()); } } onClipEvent (keyUp) { if (_parent.played) { _parent.keyu(Key.getCode()); } } } } movieClip 2853 { } movieClip 2855 { } movieClip 2857 { } movieClip 2860 { } movieClip 2862 { } movieClip 2875 { } movieClip 2877 { } movieClip 2878 { frame 1 { stop(); } frame 5 { var active = true; } frame 40 { active = false; } } movieClip 2880 { } movieClip 2882 { } movieClip 2886 { } movieClip 2888 { } movieClip 2889 { } movieClip 2890 { frame 1 { stop(); } frame 4 { _parent.hitMole(); } } movieClip 2892 game81 { frame 1 { function keyd(key) { if (key == 37 && malletPos > 0) { mallet._x -= 55; --malletPos; } else { if (key == 39 && malletPos < 4) { mallet._x += 55; ++malletPos; } else { if (key == 32) { mallet.play(); } } } } function hitMole() { if (this['mole' + malletPos].active) { this['mole' + malletPos].gotoAndStop(1); ++molesHit; } } _root.rules = 'Whack 4 Moles!'; _root.beatClock = true; var malletPos = 0; var randomNumber; var i; molesHit = 0; onEnterFrame = function () { if (_root.cstatus == 1) { i = 0; while (i < 5) { randomNumber = Math.random(); if (randomNumber > 0.98 && this['mole' + i]._currentframe == 1) { this['mole' + i].play(); } ++i; } if (molesHit >= 4) { _root.gameOutcome(true); } } }; } instance mallet of movieClip 2890 { onClipEvent (keyDown) { if (_root.cstatus == 1) { _parent.keyd(Key.getCode()); } } } } movieClip 2899 { } movieClip 2901 { } movieClip 2903 { } movieClip 2904 { frame 1 { stop(); } instance of movieClip 2903 { onClipEvent (enterFrame) { _rotation = _rotation + 29; } } } movieClip 2907 { } movieClip 2908 game82 { frame 1 { _root.rules = 'Dodge the Firestorm!'; _root.beatClock = false; onEnterFrame = function () { if (_root.cstatus == 1) { if (_root.g.player.hitTest(_root.g.fb1) || _root.g.player.hitTest(_root.g.fb2) || _root.g.player.hitTest(_root.g.fb3) || _root.g.player.hitTest(_root.g.fb4) || _root.g.player.hitTest(_root.g.fb5) || _root.g.player.hitTest(_root.g.fb6)) { _root.g.player._x += 10; _root.g.player.nextFrame(); _root.gameOutcome(false); } } }; } instance fb1 of movieClip 2899 { onClipEvent (load) { this._x = random(550); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._y -= 10; } } } instance player of movieClip 2904 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(37)) { this._x -= 20; } if (Key.isDown(39)) { this._x += 20; } if (_x < 0) { _x = 0; } if (_x > 550) { _x = 550; } } } } instance fb2 of movieClip 2899 { onClipEvent (load) { this._x = random(550); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._y -= 10; } } } instance fb3 of movieClip 2899 { onClipEvent (load) { this._x = random(550); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._y -= 10; } } } instance fb4 of movieClip 2899 { onClipEvent (load) { this._x = random(550); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._y -= 10; } } } instance fb5 of movieClip 2899 { onClipEvent (load) { this._x = random(550); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._y -= 10; } } } instance fb6 of movieClip 2899 { onClipEvent (load) { this._x = random(550); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._y -= 10; } } } } movieClip 2919 { frame 13 { stop(); } } movieClip 2920 { frame 1 { stop(); } instance of movieClip 2919 { onClipEvent (load) { _alpha = random(100); _height = random(409.4); _width = random(424.4); if (_alpha <= 50) { _alpha = 50; } if (_height <= 204.7) { _height = 204.7; } if (_width <= 214.2) { _width = 214.2; } } } } movieClip 2927 { } movieClip 2930 { } movieClip 2931 { } movieClip 2932 game83 { frame 1 { _root.rules = 'Don\'t Fall Off!'; _root.beatClock = false; } instance ground of movieClip 2920 { onClipEvent (load) { gotoAndStop(random(4)); } onClipEvent (enterFrame) { _rotation = _rotation + 1.5; } } instance of movieClip 2931 { onClipEvent (load) { grav = 0; speed = 3; jumpHeight = 15; scale = _xscale; slowfall = 0.8; gotoAndStop(3); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { ++grav; _y = _y + grav; while (_root.g.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (Key.isDown(39)) { _x = _x + speed; _xscale = scale; if (_root.g.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (Key.isDown(37)) { _x = _x - speed; _xscale = -scale; if (_root.g.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } } if (Key.isDown(38) && _root.g.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(2); } if (_root.g.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.g.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true)) { _x = _x - speed; } if (_root.g.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.g.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true)) { _x = _x + speed; } if (_root.g.ground.hitTest(_x, _y - _height, true)) { grav = 2; } if (_x > 550) { _root.gameOutcome(false); _root.g.ground.gotoAndStop('explode'); } if (_x < 0) { _root.gameOutcome(false); _root.g.ground.gotoAndStop('explode'); } if (_y > 400) { _root.gameOutcome(false); _root.g.ground.gotoAndStop('explode'); } } } onClipEvent (keyUp) { gotoAndStop(3); } } } movieClip 2935 { } movieClip 2938 { frame 1 { stop(); } frame 17 { stop(); } } movieClip 2941 { frame 1 { stop(); } frame 16 { stop(); } } movieClip 2942 game84 { frame 1 { _root.rules = 'Clear the Area!'; _root.beatClock = true; onEnterFrame = function () { if (_root.g.star1._currentframe >= 2 && _root.g.star2._currentframe >= 2 && _root.g.star3._currentframe >= 2 && _root.g.star4._currentframe >= 2 && _root.g.star5._currentframe >= 2 && _root.g.star6._currentframe >= 2) { _root.gameOutcome(true); _root.g.level.nextFrame(); } }; } instance player of movieClip 2935 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(38)) { _y = _y - 5; } if (Key.isDown(40)) { _y = _y + 5; } if (Key.isDown(37)) { _x = _x - 5; } if (Key.isDown(39)) { _x = _x + 5; } if (_root.g.level.hitTest(_x, _y, true)) { _root.gameOutcome(false); _x = 202.5; _y = 327.2; } } } } instance star1 of movieClip 2938 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.player) && _currentframe <= 1) { gotoAndPlay(2); } } } instance star2 of movieClip 2938 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.player) && _currentframe <= 1) { gotoAndPlay(2); } } } instance star3 of movieClip 2938 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.player) && _currentframe <= 1) { gotoAndPlay(2); } } } instance star4 of movieClip 2938 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.player) && _currentframe <= 1) { gotoAndPlay(2); } } } instance star5 of movieClip 2938 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.player) && _currentframe <= 1) { gotoAndPlay(2); } } } instance star6 of movieClip 2938 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.player) && _currentframe <= 1) { gotoAndPlay(2); } } } } movieClip 2948 { } movieClip 2949 { } movieClip 2951 { } movieClip 2953 { } movieClip 2957 { } movieClip 2958 { frame 1 { stop(); } instance of movieClip 2953 { onClipEvent (enterFrame) { this._rotation += 10; } } frame 2 { _root.gameOutcome(true); } frame 32 { stop(); } } movieClip 2960 { frame 1 { stop(); } } movieClip 2961 game85 { frame 1 { _root.rules = 'Reach the exit!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { if (Key.isDown(32)) { _root.g.ground.block1.stop(); _root.g.ground.block2.stop(); _root.g.ground.block3.stop(); } } }; } instance of movieClip 2951 { onClipEvent (load) { grav = 0; speed = 20; scale = _xscale; go = false; stopp = false; } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.g.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (Key.isDown(32) && stopp == false) { go = true; } if (go == true) { _x = _x + speed; _xscale = scale; if (_root.g.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (this.hitTest(_root.g.exit)) { _root.g.exit.play(); go = false; stopp = true; } } } } movieClip 2966 { } movieClip 2969 { } movieClip 2971 { } movieClip 2975 { } movieClip 2976 { } movieClip 2978 { } movieClip 2982 { } movieClip 2985 { } movieClip 2988 { } movieClip 3007 game86 { frame 1 { _root.rules = 'Delete Virus!'; _root.beatClock = true; stop(); } instance xpl1_virus1 of movieClip 2966 { onClipEvent (load) { time1 = 0; xSpeed1 = 0; ySpeed1 = 0; grabbed1 = 0; maxSpeed1 = 8; dead1 = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (grabbed1 == 0 && dead1 == 0) { if (time1 <= 0) { time1 = random(15); xSpeed1 = random(maxSpeed1); ySpeed1 = random(maxSpeed1); if (xSpeed1 < 4) { xSpeed1 -= maxSpeed1; } if (ySpeed1 < 4) { ySpeed1 -= maxSpeed1; } } this._x += xSpeed1; this._y += ySpeed1; if (this._x < 0 || this._x > 550 - this._width) { if (this._x < 0) { this._x = 0; } if (this._x > 550 - this._width) { this._x = 550 - this._width; } xSpeed1 = -xSpeed1; } if (this._y < 0) { this._y = 0; ySpeed1 = -ySpeed1; } if (this._y > 400 - this._height) { this._y = 400 - this._height; ySpeed1 = -ySpeed1; } time1 -= 1; } } } onClipEvent (press) { if (_root.cstatus == 1) { grabbed1 = 1; startDrag(this, false); } } onClipEvent (release) { if (_root.cstatus == 1) { grabbed1 = 0; stopDrag(); if (_root.g.xpl1_virus1.hitTest(_root.g.xpl1_RecycleBin)) { _root.g.xpl1_virus1._x = 600; _root.g.xpl1_virus1._y = 600; dead1 = 1; _root.gameOutcome(true); } if (_root.g.xpl1_virus1.hitTest(_root.g.xpl1_MyComp)) { _root.g.xpl1_virus1._x = 600; _root.g.xpl1_virus1._y = 600; dead1 = 1; _parent.gotoAndPlay(3); _root.gameOutcome(false); } } } } frame 19 { stop(); } frame 20 { stop(); } } movieClip 3011 { } movieClip 3013 { } movieClip 3015 game87 { frame 1 { _root.rules = 'Get Green Circles!'; _root.beatClock = true; stop(); } instance xpl2_hyp1 of movieClip 3011 { onClipEvent (load) { _root.g.xpl2_hyp1Hit = 0; hit = 0; rad = 10; this._x = -20; this._y = -20; this._width = 2 * rad; this._height = 2 * rad; radius = 150; xPosi = random(6) - 3; yPosi = Math.sqrt(20 - xPosi * xPosi); zPosi = Math.sqrt(1 + xPosi * xPosi + yPosi * yPosi); centerX = 0; centerY = 0; X0 = 0; Y0 = 0; Z0 = 0; } onClipEvent (enterFrame) { if (_root.g.xpl2_hyp1Hit == 0) { centerX = _root.g.xpl2_xPos; centerY = _root.g.xpl2_yPos; X0 = xPosi - centerX; Y0 = yPosi - centerY; Z0 = Math.sqrt(1 + X0 * X0 + Y0 * Y0); R = Math.min(rad, Math.max(1, 5 * rad / Math.sqrt(X0 * X0 + Y0 * Y0))); this._width = Math.round(R * 2); this._height = Math.round(R * 2); X0 = radius * (X0 / (Z0 + 1)) + 275; Y0 = radius * (Y0 / (Z0 + 1)) + 200; this._x = Math.round(X0); this._y = Math.round(Y0); } else { this._x = -20; this._y = -20; } } } instance xpl2_Ball of movieClip 3013 { onClipEvent (load) { hitObjects = 0; maxSpeed = 0.1; moveSpeed = 0.01; this._x = 250; this._y = 175; this._width = 50; this._height = 50; _root.g.xpl2_xPos = 0; _root.g.xpl2_yPos = 0; zPos = 1; xSpeed = 0; ySpeed = 0; accel = 1; } onClipEvent (enterFrame) { function sinh(v) { return 0.5 * (Math.exp(v) - Math.exp(-v)); } function cosh(v) { return 0.5 * (Math.exp(v) + Math.exp(-v)); } if (Key.isDown(39)) { xSpeed += moveSpeed; } else { if (Key.isDown(37)) { xSpeed -= moveSpeed; } } if (Key.isDown(38)) { ySpeed -= moveSpeed; } else { if (Key.isDown(40)) { ySpeed += moveSpeed; } } if (Math.abs(xSpeed) > maxSpeed) { xSpeed = (xSpeed / Math.abs(xSpeed)) * maxSpeed; } if (Math.abs(ySpeed) > maxSpeed) { ySpeed = (ySpeed / Math.abs(ySpeed)) * maxSpeed; } sinhdx = sinh(xSpeed); coshdx = cosh(xSpeed); sinhdy = sinh(ySpeed); coshdy = cosh(ySpeed); _root.g.xpl2_xPos = _root.g.xpl2_xPos * coshdx + zPos * sinhdx; zPos = _root.g.xpl2_xPos * sinhdx + zPos * coshdx; _root.g.xpl2_yPos = _root.g.xpl2_yPos * coshdy + zPos * sinhdy; zPos = _root.g.xpl2_yPos * sinhdy + zPos * coshdy; if (hitTest(_root.g.xpl2_hyp1)) { ++hitObjects; _root.g.xpl2_hyp1Hit = 1; } if (hitTest(_root.g.xpl2_hyp2)) { ++hitObjects; _root.g.xpl2_hyp2Hit = 1; } if (hitObjects == 1) { _root.gameOutcome(true); } } } instance xpl2_hyp2 of movieClip 3011 { onClipEvent (load) { _root.g.xpl2_hyp2Hit = 0; hit1 = 0; rad1 = 10; this._width = 2 * rad; this._height = 2 * rad; radius1 = 150; xPosi1 = random(6) - 3; yPosi1 = -Math.sqrt(20 - xPosi1 * xPosi1); zPosi1 = Math.sqrt(1 + xPosi1 * xPosi1 + yPosi1 * yPosi1); centerX1 = 0; centerY1 = 0; X01 = 0; Y01 = 0; Z01 = 0; } onClipEvent (enterFrame) { if (_root.g.xpl2_hyp2Hit == 0) { centerX1 = _root.g.xpl2_xPos; centerY1 = _root.g.xpl2_yPos; X01 = xPosi1 - centerX1; Y01 = yPosi1 - centerY1; Z01 = Math.sqrt(1 + X01 * X01 + Y01 * Y01); R1 = Math.min(rad1, Math.max(1, 5 * rad1 / Math.sqrt(X01 * X01 + Y01 * Y01))); this._width = Math.round(R1 * 2); this._height = Math.round(R1 * 2); X01 = radius1 * (X01 / (Z01 + 1)) + 275; Y01 = radius1 * (Y01 / (Z01 + 1)) + 200; this._x = Math.round(X01); this._y = Math.round(Y01); } else { this._x = -20; this._y = -20; } } } } movieClip 3017 { } movieClip 3020 { } movieClip 3021 { } movieClip 3024 { } movieClip 3025 { } movieClip 3028 { } movieClip 3029 game88 { frame 1 { _root.rules = 'Get your hat on the wall'; _root.beatClock = true; speedx = 0; speedy = 0; hit = 0; onEnterFrame = function () { if (_root.cstatus == 1) { if (Key.isDown(39) and hit == 0) { speedx += 1; } if (Key.isDown(38) and hit == 0) { speedy += 1.5; hat._y -= speedy / 5; } if (Key.isDown(37) and hit == 0) { speedx -= 1; } if (Key.isDown(40) and hit == 0) { speedy -= 0.8; } if (!Key.isDown(38)) { speedy -= 0.2; hat._y -= speedy / 5; } hat._x += speedx / 3; if (!Key.isDown(37)) { speedx -= speedx / 50; } if (hat.hood.hitTest(hanger.hook)) { _root.gameOutcome(true); speedy = 0; speedx = 0; hit = 1; } hat._rotation = -speedy; } }; } } movieClip 3033 { } movieClip 3034 { } movieClip 3036 { } movieClip 3037 { } movieClip 3038 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 3041 { } movieClip 3042 { } movieClip 3043 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 3046 { } movieClip 3047 { } movieClip 3048 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 3050 { } movieClip 3052 { } movieClip 3053 { } movieClip 3056 { } movieClip 3057 game89 { frame 1 { _root.rules = 'Arrow Lines \'em up '; _root.beatClock = true; spaceDown = false; onEnterFrame = function () { if (!Key.isDown(32)) { spaceDown = false; } }; } frame 1 { Nug7_rotnum = 1; } instance Nug7_c2 of movieClip 3038 { onClipEvent (load) { Nug7_presstimer1 = 0; Nug7_presstimel1 = 0; Nug7_set = 2; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_parent.Nug7_rotnum == Nug7_set) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } if (_parent.Nug7_rotnum == Nug7_set) { if (Key.isDown(39) || Key.isDown(40)) { ++Nug7_presstimer1; if (Nug7_presstimer1 == 1) { _rotation = _rotation + 90; } } else { Nug7_presstimer1 = 0; } if (Key.isDown(37) || Key.isDown(38)) { ++Nug7_presstimel1; if (Nug7_presstimel1 == 1) { _rotation = _rotation - 90; } } else { Nug7_presstimel1 = 0; } } } } } instance Nug7_c1 of movieClip 3043 { onClipEvent (load) { Nug7_presstimer = 0; Nug7_presstimel = 0; Nug7_set = 1; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_parent.Nug7_rotnum == Nug7_set) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } if (_parent.Nug7_rotnum == Nug7_set) { if (Key.isDown(39) || Key.isDown(40)) { ++Nug7_presstimer; if (Nug7_presstimer == 1) { _rotation = _rotation + 90; } } else { Nug7_presstimer = 0; } if (Key.isDown(37) || Key.isDown(38)) { ++Nug7_presstimel; if (Nug7_presstimel == 1) { _rotation = _rotation - 90; } } else { Nug7_presstimel = 0; } } } } } instance Nug7_c3 of movieClip 3048 { onClipEvent (load) { Nug7_presstimer2 = 0; Nug7_presstimel2 = 0; Nug7_set = 3; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_parent.Nug7_rotnum == Nug7_set) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } if (_parent.Nug7_rotnum == Nug7_set) { if (Key.isDown(39) || Key.isDown(40)) { ++Nug7_presstimer2; if (Nug7_presstimer2 == 1) { _rotation = _rotation + 90; } } else { Nug7_presstimer2 = 0; } if (Key.isDown(37) || Key.isDown(38)) { ++Nug7_presstimel2; if (Nug7_presstimel2 == 1) { _rotation = _rotation - 90; } } else { Nug7_presstimel2 = 0; } } } } } instance of movieClip 3053 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(32) && _root.g.spaceDown == false) { _root.g.spaceDown = true; ++_parent.Nug7_rotnum; if (_parent.Nug7_rotnum > 3) { _parent.Nug7_rotnum = 1; } } } } onClipEvent (enterFrame) { if (_parent.Nug7_c1.Nug7_hit1.hitTest(this) && _parent.Nug7_c2.Nug7_hit2.hitTest(this) && _parent.Nug7_c3.Nug7_hit3.hitTest(this)) { _root.gameOutcome(true); _parent.Nug7_win._visible = true; } else { _parent.Nug7_win._visible = false; } } } } movieClip 3060 { frame 1 { this.onEnterFrame = function () { this._rotation += 2; }; } } movieClip 3061 { frame 1 { function per() { var v3 = new Sound(); v3.attachSound('win1_explo'); v3.start(0, 1); this.gotoAndStop(2); _root.g.gan(); _root.gameOutcome(true); } stop(); this.onEnterFrame = function () { if (this.hitTest(_root.g.nave)) { var v3 = new Sound(); v3.attachSound('win1_explo'); v3.start(0, 1); _root.g.nave.gotoAndStop(2); _root.g.per(); } }; } frame 2 { stop(); } } movieClip 3063 { frame 1 { stop(); var s = 10; var a = 0; var d = 0; var p = true; this.onEnterFrame = function () { if (_root.cstatus == 1) { var v4 = _root.g._xmouse - this._x; var v3 = _root.g._ymouse - this._y; var v6 = Math.sqrt(v4 * v4 + v3 * v3); this._rotation = Math.asin(v4 / v6) / 0.0174532925199433; if (v3 > 0) { this._rotation = 180 - this._rotation; } if (p) { _root.g._x -= Math.sin(0.0174532925199433 * this._rotation) * Math.abs(v4 / 10); _root.g._y += Math.cos(0.0174532925199433 * this._rotation) * Math.abs(v3 / 10); this._x += Math.sin(0.0174532925199433 * this._rotation) * Math.abs(v4 / 10); this._y -= Math.cos(0.0174532925199433 * this._rotation) * Math.abs(v3 / 10); _root.g.bord._x += Math.sin(0.0174532925199433 * this._rotation) * Math.abs(v4 / 10); _root.g.bord._y -= Math.cos(0.0174532925199433 * this._rotation) * Math.abs(v3 / 10); } if (_root.g.b && s >= 15 && p) { _root.g.attachMovie('win_bala', 'win_bala' + _root.g.w, _root.g.w++, {'_x': this._x, '_y': this._y, '_rotation': this._rotation}); s = 0; var v5 = new Sound(); v5.attachSound('win1_balaso'); v5.start(0, 1); } ++s; if (this._x <= a) { a -= 550; _root.g.fond._x = a; } else { if (this._x >= a + 550) { a += 550; _root.g.fond._x = a; } } if (this._y <= d) { d -= 400; _root.g.fond._y = d; } else { if (this._y >= d + 400) { d += 400; _root.g.fond._y = d; } } } }; } } movieClip 3071 { } movieClip 3077 { } movieClip 3078 { frame 1 { stop(); this.onEnterFrame = function () { if (_root.g.nave.s < 15) { this.cua.gotoAndStop(_root.g.nave.s + 1); } else { this.gotoAndStop(2); } }; } frame 2 { this.onEnterFrame = function () { if (_root.g.nave.s < 15) { this.gotoAndStop(1); } }; } frame 3 { this.onEnterFrame = undefined; } frame 4 { this.onEnterFrame = undefined; } } movieClip 3080 { } movieClip 3083 { } movieClip 3086 { } movieClip 3087 game90 { frame 1 { function gan() { bord.bar.gotoAndStop(3); _root.gameOutCome(true); } function per() { bord.bar.gotoAndStop(4); _root.g.nave.p = false; _root.gameOutCome(false); } _root.rules = 'Destroy base!'; _root.beatClock = true; var w = 0; var b = false; this.onMouseDown = function () { b = true; }; this.onMouseUp = function () { b = false; }; this.onMouseDown = function () { b = true; }; this.onMouseUp = function () { b = false; }; } } movieClip 3090 { } movieClip 3102 { } movieClip 3103 { frame 1 { stop(); } frame 6 { stop(); } frame 11 { stop(); } frame 16 { stop(); } frame 21 { stop(); } frame 26 { stop(); } frame 31 { stop(); } frame 36 { stop(); } frame 41 { stop(); } frame 46 { stop(); } frame 51 { stop(); } frame 56 { stop(); } frame 61 { stop(); } frame 66 { stop(); } frame 71 { stop(); } frame 72 { _root.gameOutcome(true); } frame 97 { stop(); } frame 98 { prevFrame(); } } movieClip 3106 { } movieClip 3107 game91 { frame 1 { _root.rules = 'Shake it up'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance of movieClip 3103 { onClipEvent (load) { prevX = this._x; prevY = this._y; this.startDrag(true); } onClipEvent (enterFrame) { currX = this._x; currY = this._y; _root.g.dist = Math.sqrt(Math.pow(prevX - currX, 2) + Math.pow(prevY - currY, 2)); prevX = this._x; prevY = this._y; if (_root.g.dist > 40) { this.play(); } } } } movieClip 3109 { } movieClip 3112 { frame 25 { stop(); } } movieClip 3114 { } movieClip 3117 { frame 25 { stop(); } } movieClip 3120 { frame 25 { stop(); } } movieClip 3122 { frame 25 { stop(); } } movieClip 3123 { frame 1 { stop(); } frame 5 { stop(); _root.gameOutcome(true); _root.g.gotoAndStop(2); } } movieClip 3125 { } movieClip 3127 { } movieClip 3132 { frame 1 { stop(); } frame 15 { stop(); gotoAndStop(1); } frame 16 { play(); } frame 30 { stop(); } } movieClip 3135 { } movieClip 3137 { } movieClip 3138 { } movieClip 3139 { frame 1 { play(); } frame 15 { stop(); } } movieClip 3142 { frame 1 { play(); } frame 15 { stop(); } } movieClip 3143 game92 { frame 1 { _root.rules = 'Check the 4 points'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { personaje.velocidad = 8; personaje.yaesta = true; started = true; } if (_root.cstatus == 0 && started == true) { _root.g.gotoAndStop(3); } }; } frame 1 { stop(); } instance of movieClip 3123 { onClipEvent (enterFrame) { if (this.hitcoso1.hitTest(_root.g.personaje.hitcoso)) { this.nextFrame(); } } } instance personaje of movieClip 3132 { onClipEvent (load) { velocidad = 0; yaesta == false; } onClipEvent (enterFrame) { if (Key.isDown(37) && yaesta == true) { this.play(); _x = _x - velocidad; _root.g.wheel1._x -= velocidad; _root.g.wheel2._x -= velocidad; _root.g.wheel1._rotation -= 5; _root.g.wheel2._rotation -= 5; } if (Key.isDown(39) && yaesta == true) { this.play(); _x = _x + velocidad; _root.g.wheel1._rotation += 5; _root.g.wheel2._rotation += 5; _root.g.wheel1._x += velocidad; _root.g.wheel2._x += velocidad; } } } } movieClip 3149 { } movieClip 3154 { } movieClip 3156 { } movieClip 3158 { } movieClip 3161 { } movieClip 3162 { } movieClip 3164 { } movieClip 3166 { } movieClip 3168 { } movieClip 3170 { } movieClip 3172 { } movieClip 3174 { } movieClip 3176 { } movieClip 3178 { } movieClip 3180 { } movieClip 3182 { } movieClip 3184 { } movieClip 3187 { } movieClip 3189 { frame 1 { stop(); } instance of movieClip 3149 { onClipEvent (enterFrame) { if (Key.isDown(39) && _root.cstatus == 1) { _root.g.head.gotoAndStop(2); } } } instance of movieClip 3158 { onClipEvent (enterFrame) { if (Key.isDown(37)) { _root.g.head.gotoAndStop(3); } } } frame 3 { stop(); } instance of movieClip 3161 { onClipEvent (enterFrame) { if (Key.isDown(39)) { _root.g.head.gotoAndStop(4); } } } instance of movieClip 3162 { onClipEvent (enterFrame) { if (Key.isDown(37)) { _root.g.head.gotoAndStop(5); } } } frame 5 { stop(); } instance of movieClip 3164 { onClipEvent (enterFrame) { if (Key.isDown(39)) { _root.g.head.gotoAndStop(6); } } } instance of movieClip 3166 { onClipEvent (enterFrame) { if (Key.isDown(37)) { _root.g.head.gotoAndStop(7); } } } frame 7 { stop(); } instance of movieClip 3168 { onClipEvent (enterFrame) { if (Key.isDown(39)) { _root.g.head.gotoAndStop(8); } } } instance of movieClip 3170 { onClipEvent (enterFrame) { if (Key.isDown(37)) { _root.g.head.gotoAndStop(9); } } } frame 9 { stop(); } instance of movieClip 3172 { onClipEvent (enterFrame) { if (Key.isDown(39)) { _root.g.head.gotoAndStop(10); } } } instance of movieClip 3174 { onClipEvent (enterFrame) { if (Key.isDown(37)) { _root.g.head.gotoAndStop(11); } } } frame 11 { stop(); } instance of movieClip 3176 { onClipEvent (enterFrame) { if (Key.isDown(37)) { _root.g.head.gotoAndStop(12); } } } instance of movieClip 3178 { onClipEvent (enterFrame) { if (Key.isDown(39)) { _root.g.head.gotoAndStop(13); } } } frame 13 { stop(); } instance of movieClip 3180 { onClipEvent (enterFrame) { if (Key.isDown(37)) { _root.g.head.gotoAndStop(14); } } } instance of movieClip 3182 { onClipEvent (enterFrame) { if (Key.isDown(39)) { _root.g.head.gotoAndStop(15); } } } frame 15 { stop(); } instance of movieClip 3184 { onClipEvent (enterFrame) { if (Key.isDown(37)) { _root.g.head.gotoAndStop(16); } } } instance of movieClip 3187 { onClipEvent (enterFrame) { if (Key.isDown(39)) { _root.g.head.gotoAndStop(17); } } } frame 17 { stop(); } frame 17 { stop(); _root.gameOutcome(true); } } movieClip 3191 { } movieClip 3202 { } movieClip 3205 { } movieClip 3206 game93 { frame 1 { _root.rules = 'Suck his face!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } } button 3210 { on (release) { _root.g.COUNTER = Number(_root.g.COUNTER) + 1000; } } movieClip 3211 { frame 1 { acceleration = 10; newpos = function () { ranx = Math.round(Math.random() * 250); rany = Math.round(Math.random() * 250); }; newpos(); this.onEnterFrame = function () { this._x += (ranx - this._x) / acceleration; this._y += (rany - this._y) / acceleration; if (Math.round(this._x) == ranx || Math.round(this._y) == rany) { newpos(); } }; } } button 3216 { on (release) { _root.g.COUNTER = Number(_root.g.COUNTER) - 1000; } } movieClip 3217 { frame 1 { acceleration = 7; newpos = function () { ranx = Math.round(Math.random() * 255); rany = Math.round(Math.random() * 255); }; newpos(); this.onEnterFrame = function () { this._x += (ranx - this._x) / acceleration; this._y += (rany - this._y) / acceleration; if (Math.round(this._x) == ranx || Math.round(this._y) == rany) { newpos(); } }; } } movieClip 3219 { } movieClip 3222 { } movieClip 3223 game94 { frame 1 { startDrag('CURSOR', true); Mouse.hide(); COUNTER = 90; wSize = Stage.width; hSize = Stage.height; fillType = 'linear'; colors = [16764057, 16777062]; alphas = [100, 100]; ratios = [0, 255]; matrix = {'matrixType': 'box', 'x': 0, 'y': 0, 'w': wSize, 'h': hSize, 'r': 1.570796326794897}; lineStyle(1, 16777215, 0); beginGradientFill(fillType, colors, alphas, ratios, matrix); lineTo(wSize, 0); lineTo(wSize, hSize); lineTo(0, hSize); lineTo(0, 0); endFill(); _root.rules = 'Click the smiley'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance of movieClip 3211 { onClipEvent (release) { if (_root.cstatus == 1) { _root.gameOutcome(true); } } } } movieClip 3224 game95 { } movieClip 3228 { } movieClip 3229 { } movieClip 3231 { } movieClip 3234 { } movieClip 3237 { } movieClip 3239 { } movieClip 3242 { } movieClip 3244 { } movieClip 3246 { instance difference2 of movieClip 3229 { onClipEvent (mouseDown) { if (_root.cstatus == 1) { if (_parent.selectedDifference == 2) { if (this.hitTest(_root._xmouse, _root._ymouse) || this.hitTest(_root._xmouse - 270, _root._ymouse) || this.hitTest(_root._xmouse + 270, _root._ymouse)) { _root.gameOutcome(true); } else { _root.gameOutcome(false); } _parent.mask._alpha = 100; _parent.mask._x = this._x; _parent.mask._y = this._y; } } } } instance difference1 of movieClip 3231 { onClipEvent (mouseDown) { if (_root.cstatus == 1) { if (_parent.selectedDifference == 1) { if (this.hitTest(_root._xmouse, _root._ymouse) || this.hitTest(_root._xmouse - 270, _root._ymouse) || this.hitTest(_root._xmouse + 270, _root._ymouse)) { _root.gameOutcome(true); } else { _root.gameOutcome(false); } _parent.mask._alpha = 100; _parent.mask._x = this._x; _parent.mask._y = this._y; } } } } instance difference3 of movieClip 3234 { onClipEvent (mouseDown) { if (_root.cstatus == 1) { if (_parent.selectedDifference == 3) { if (this.hitTest(_root._xmouse, _root._ymouse) || this.hitTest(_root._xmouse - 270, _root._ymouse) || this.hitTest(_root._xmouse + 270, _root._ymouse)) { _root.gameOutcome(true); } else { _root.gameOutcome(false); } _parent.mask._alpha = 100; _parent.mask._x = this._x; _parent.mask._y = this._y; } } } } instance difference6 of movieClip 3237 { onClipEvent (mouseDown) { if (_root.cstatus == 1) { if (_parent.selectedDifference == 6) { if (this.hitTest(_root._xmouse, _root._ymouse) || this.hitTest(_root._xmouse - 270, _root._ymouse) || this.hitTest(_root._xmouse + 270, _root._ymouse)) { _root.gameOutcome(true); } else { _root.gameOutcome(false); } _parent.mask._alpha = 100; _parent.mask._x = this._x; _parent.mask._y = this._y; } } } } instance difference5 of movieClip 3239 { onClipEvent (mouseDown) { if (_root.cstatus == 1) { if (_parent.selectedDifference == 5) { if (this.hitTest(_root._xmouse, _root._ymouse) || this.hitTest(_root._xmouse - 270, _root._ymouse) || this.hitTest(_root._xmouse + 270, _root._ymouse)) { _root.gameOutcome(true); } else { _root.gameOutcome(false); } _parent.mask._alpha = 100; _parent.mask._x = this._x; _parent.mask._y = this._y; } } } } instance difference7 of movieClip 3242 { onClipEvent (mouseDown) { if (_root.cstatus == 1) { if (_parent.selectedDifference == 7) { if (this.hitTest(_root._xmouse, _root._ymouse) || this.hitTest(_root._xmouse - 270, _root._ymouse) || this.hitTest(_root._xmouse + 270, _root._ymouse)) { _root.gameOutcome(true); } else { _root.gameOutcome(false); } _parent.mask._alpha = 100; _parent.mask._x = this._x; _parent.mask._y = this._y; } } } } instance difference4 of movieClip 3244 { onClipEvent (mouseDown) { if (_root.cstatus == 1) { if (_parent.selectedDifference == 4) { if (this.hitTest(_root._xmouse, _root._ymouse) || this.hitTest(_root._xmouse - 270, _root._ymouse) || this.hitTest(_root._xmouse + 270, _root._ymouse)) { _root.gameOutcome(true); } else { _root.gameOutcome(false); } _parent.mask._alpha = 100; _parent.mask._x = this._x; _parent.mask._y = this._y; } } } } } movieClip 3249 { } movieClip 3250 game96 { frame 1 { _root.rules = 'Click the difference'; _root.beatClock = true; } instance of movieClip 3246 { onClipEvent (load) { var selectedDifference = Math.ceil(Math.random() * 7); trace('selectedDifference: ' + selectedDifference); if (selectedDifference == 1) { this.difference1._visible = false; } else { if (selectedDifference == 2) { this.difference2._visible = false; } else { if (selectedDifference == 3) { this.difference3._visible = false; } else { if (selectedDifference == 4) { this.difference4._visible = false; } else { if (selectedDifference == 5) { this.difference5._visible = false; } else { if (selectedDifference == 6) { this.difference6._visible = false; } else { if (selectedDifference == 7) { this.difference7._visible = false; } } } } } } } } } } movieClip 3254 { } movieClip 3257 { } movieClip 3265 { instance of movieClip 3254 { onClipEvent (mouseDown) { if (_root.cstatus == 1) { if (this.hitTest(_root._xmouse, _root._ymouse)) { _root.gameOutcome(true); } } } } instance of movieClip 3254 { onClipEvent (mouseDown) { if (_root.cstatus == 1) { if (this.hitTest(_root._xmouse, _root._ymouse)) { _root.gameOutcome(false); } } } } instance of movieClip 3254 { onClipEvent (mouseDown) { if (_root.cstatus == 1) { if (this.hitTest(_root._xmouse, _root._ymouse)) { _root.gameOutcome(false); } } } } instance of movieClip 3254 { onClipEvent (mouseDown) { if (_root.cstatus == 1) { if (this.hitTest(_root._xmouse, _root._ymouse)) { _root.gameOutcome(false); } } } } instance of movieClip 3254 { onClipEvent (mouseDown) { if (_root.cstatus == 1) { if (this.hitTest(_root._xmouse, _root._ymouse)) { _root.gameOutcome(false); } } } } instance of movieClip 3254 { onClipEvent (mouseDown) { if (_root.cstatus == 1) { if (this.hitTest(_root._xmouse, _root._ymouse)) { _root.gameOutcome(true); } } } } instance of movieClip 3254 { onClipEvent (mouseDown) { if (_root.cstatus == 1) { if (this.hitTest(_root._xmouse, _root._ymouse)) { _root.gameOutcome(false); } } } } instance of movieClip 3254 { onClipEvent (mouseDown) { if (_root.cstatus == 1) { if (this.hitTest(_root._xmouse, _root._ymouse)) { _root.gameOutcome(true); } } } } instance of movieClip 3254 { onClipEvent (mouseDown) { if (_root.cstatus == 1) { if (this.hitTest(_root._xmouse, _root._ymouse)) { _root.gameOutcome(false); } } } } instance of movieClip 3254 { onClipEvent (mouseDown) { if (_root.cstatus == 1) { if (this.hitTest(_root._xmouse, _root._ymouse)) { _root.gameOutcome(true); } } } } } movieClip 3267 { } movieClip 3271 { } movieClip 3272 game97 { frame 1 { _root.rules = 'Pull the carrot'; _root.beatClock = true; } instance of movieClip 3265 { onClipEvent (load) { var selectedFrame = Math.ceil(Math.random() * 8); trace('selectedFrame: ' + selectedFrame); gotoAndStop(selectedFrame); } } } movieClip 3276 { } movieClip 3278 { } movieClip 3279 { } movieClip 3281 { } movieClip 3283 { } movieClip 3285 { } movieClip 3286 { frame 1 { stop(); } instance goal of movieClip 3281 { onClipEvent (load) { var xpositions = new Array(180, 360, 180, 360); var ypositions = new Array(120, 60, 300, 300); _x = xpositions[_parent.goalPosition]; _y = ypositions[_parent.goalPosition]; } } instance of movieClip 3283 { onClipEvent (load) { var xpositions = new Array(180, 360, 180, 360); var ypositions = new Array(120, 60, 300, 300); _x = xpositions[_parent.goalPosition]; _y = ypositions[_parent.goalPosition]; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (this.hitTest(_parent._parent.critter1)) { _parent.play(); _root.gameOutcome(true); } } } } instance critter1 of movieClip 3285 { onClipEvent (load) { _x = _parent._parent.critter1._x; _y = _parent._parent.critter1._y; var dx = 2; var dy = dx; } onClipEvent (enterFrame) { if (this._x > _parent.goal._x) { _x = _x - dx; } else { _x = _x + dx; } if (this._y > _parent.goal._y) { _y = _y - dy; } else { _y = _y + dy; } _alpha = ((this._x - _parent.goal._x) * (this._x - _parent.goal._x) + (this._y - _parent.goal._y) * (this._y - _parent.goal._y)) / 2; } } frame 3 { _parent.critter1._visible = false; stop(); } } movieClip 3288 { } movieClip 3290 { } movieClip 3291 { instance of movieClip 3290 { onClipEvent (load) { var rotationSpeed = 0; var ROTATIONSPEEDMAX = 30; var ACCELERATION = 3; var DECCELERATION = 0.5; var turnedOn = false; } onClipEvent (mouseDown) { turnedOn = true; } onClipEvent (mouseUp) { turnedOn = false; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (turnedOn) { rotationSpeed += ACCELERATION; if (rotationSpeed > ROTATIONSPEEDMAX) { rotationSpeed = ROTATIONSPEEDMAX; } } else { rotationSpeed -= DECCELERATION; if (rotationSpeed < 0) { rotationSpeed = 0; } } _rotation = _rotation + rotationSpeed; _root.g.fanpower = rotationSpeed; if (_rotation > 360) { _rotation = _rotation - 360; } } } } } movieClip 3294 { } movieClip 3295 game98 { frame 1 { function xFanEffect(critterX, critterY) { var v2; var v3; var v4 = 10; var v5 = 0.04; var v7; var v6; v2 = (critterX - _root._xmouse) / v4; v3 = (critterY - _root._ymouse) / v4; v7 = v2 * v2 + v3 * v3; v6 = _root.g.fanpower * _root.g.fanpower * v5 / v7; return v6 * (v2 / (Math.abs(v2) + Math.abs(v3))); } function yFanEffect(critterX, critterY) { var v3; var v2; var v4 = 10; var v5 = 0.04; var v7; var v6; v3 = (critterX - _root._xmouse) / v4; v2 = (critterY - _root._ymouse) / v4; v7 = v3 * v3 + v2 * v2; v6 = _root.g.fanpower * _root.g.fanpower * v5 / v7; return v6 * (v2 / (Math.abs(v3) + Math.abs(v2))); } _root.rules = 'Blow it in!'; _root.beatClock = true; var fanpower = 0; var setupNumber = Math.ceil(Math.random() * 4); if (setupNumber == 1) { gotoAndStop('bez03setup1'); } else { if (setupNumber == 2) { gotoAndStop('bez03setup2'); } else { if (setupNumber == 3) { gotoAndStop('bez03setup3'); } else { if (setupNumber == 4) { gotoAndStop('bez03setup4'); } } } } } instance of movieClip 3286 { onClipEvent (load) { var goalPosition = Math.ceil(Math.random() * 3); } } instance critter1 of movieClip 3285 { onClipEvent (load) { var dx = 0; var dy = 0; var previousx; var previousy; var MAXD = 20; var FRICTION = 0.9; var BOUNCINESS = -1; var TOPBOUNDARY = +(_height / 2); var BOTTOMBOUNDARY = 400 - _height / 2; var LEFTBOUNDARY = +(_width / 2); var RIGHTBOUNDARY = 550 - _width / 2; } onClipEvent (enterFrame) { dx += _root.g.xFanEffect(_x, _y); dy += _root.g.yFanEffect(_x, _y); if (dx > MAXD) { dx = MAXD; } else { if (dx < -MAXD) { dx = -MAXD; } } if (dy > MAXD) { dy = MAXD; } else { if (dy < -MAXD) { dy = -MAXD; } } _x = _x + dx; _y = _y + dy; dx *= FRICTION; dy *= FRICTION; if (_y < TOPBOUNDARY) { _y = TOPBOUNDARY; dy *= BOUNCINESS; } else { if (_y > BOTTOMBOUNDARY) { _y = BOTTOMBOUNDARY; dy *= BOUNCINESS; } } if (_x < LEFTBOUNDARY) { _x = LEFTBOUNDARY; dx *= BOUNCINESS; } else { if (_x > RIGHTBOUNDARY) { _x = RIGHTBOUNDARY; dx *= BOUNCINESS; } } if (this.hitTest(_root.g.block1) || this.hitTest(_root.g.block2) || this.hitTest(_root.g.block3) || this.hitTest(_root.g.block4) || this.hitTest(_root.g.block5) || this.hitTest(_root.g.block6) || this.hitTest(_root.g.block7) || this.hitTest(_root.g.block8) || this.hitTest(_root.g.block9) || this.hitTest(_root.g.block10) || this.hitTest(_root.g.block11) || this.hitTest(_root.g.block12) || this.hitTest(_root.g.block13) || this.hitTest(_root.g.block14) || this.hitTest(_root.g.block15) || this.hitTest(_root.g.block16) || this.hitTest(_root.g.block17) || this.hitTest(_root.g.block18) || this.hitTest(_root.g.block19) || this.hitTest(_root.g.block20) || this.hitTest(_root.g.block21) || this.hitTest(_root.g.block22) || this.hitTest(_root.g.block23) || this.hitTest(_root.g.block24) || this.hitTest(_root.g.block25) || this.hitTest(_root.g.block26) || this.hitTest(_root.g.block27) || this.hitTest(_root.g.block28) || this.hitTest(_root.g.block29) || this.hitTest(_root.g.block30) || this.hitTest(_root.g.block31) || this.hitTest(_root.g.block32)) { dx *= BOUNCINESS; dy *= BOUNCINESS; _x = _x + dx; _y = _y + dy; } _root.g.checkForDeath(_x, _y); previousx = _x; previousy = _y; } } instance fan of movieClip 3291 { onClipEvent (enterFrame) { Mouse.hide(); _x = _root._xmouse; _y = _root._ymouse; } } instance of movieClip 3286 { onClipEvent (load) { var goalPosition = Math.ceil(Math.random() * 3); if (goalPosition == 1) { goalPosition = 0; } } } instance of movieClip 3286 { onClipEvent (load) { var goalPosition = Math.ceil(Math.random() * 3); if (goalPosition == 2) { goalPosition = 0; } } } instance of movieClip 3286 { onClipEvent (load) { var goalPosition = Math.ceil(Math.random() * 3); if (goalPosition == 3) { goalPosition = 0; } } } } movieClip 3301 { } movieClip 3302 { } button 3304 { on (press) { if (active == true) { this.startDrag(); } } on (release) { if (active == true) { this.stopDrag(); if (this._x > _root.g.puzzlex - _root.g.lenience && this._x < _root.g.puzzlex + _root.g.lenience && this._y > _root.g.puzzley - _root.g.lenience && this._y < _root.g.puzzley + _root.g.lenience) { this._x = _root.g.puzzlex; this._y = _root.g.puzzley; active = false; trace('clicked'); _root.g.lowerDepth(1); } trace(this._x + ',' + this._y); } } } movieClip 3305 { } movieClip 3307 { } button 3309 { on (press) { if (active == true) { this.startDrag(); } } on (release) { if (active == true) { this.stopDrag(); if (this._x > _root.g.puzzlex - _root.g.lenience && this._x < _root.g.puzzlex + _root.g.lenience && this._y > _root.g.puzzley - _root.g.lenience && this._y < _root.g.puzzley + _root.g.lenience) { this._x = _root.g.puzzlex; this._y = _root.g.puzzley; active = false; trace('clicked'); _root.g.lowerDepth(2); } trace(this._x + ',' + this._y); } } } movieClip 3310 { } movieClip 3312 { } button 3314 { on (press) { if (active == true) { this.startDrag(); } } on (release) { if (active == true) { this.stopDrag(); if (this._x > _root.g.puzzlex - _root.g.lenience && this._x < _root.g.puzzlex + _root.g.lenience && this._y > _root.g.puzzley - _root.g.lenience && this._y < _root.g.puzzley + _root.g.lenience) { this._x = _root.g.puzzlex; this._y = _root.g.puzzley; active = false; trace('clicked'); _root.g.lowerDepth(3); } trace(this._x + ',' + this._y); } } } movieClip 3315 { } movieClip 3317 { } button 3319 { on (press) { if (active == true) { this.startDrag(); } } on (release) { if (active == true) { this.stopDrag(); if (this._x > _root.g.puzzlex - _root.g.lenience && this._x < _root.g.puzzlex + _root.g.lenience && this._y > _root.g.puzzley - _root.g.lenience && this._y < _root.g.puzzley + _root.g.lenience) { this._x = _root.g.puzzlex; this._y = _root.g.puzzley; active = false; trace('clicked'); _root.g.lowerDepth(4); } trace(this._x + ',' + this._y); } } } movieClip 3320 { } movieClip 3322 { } button 3324 { on (press) { if (active == true) { this.startDrag(); } } on (release) { if (active == true) { this.stopDrag(); if (this._x > _root.g.puzzlex - _root.g.lenience && this._x < _root.g.puzzlex + _root.g.lenience && this._y > _root.g.puzzley - _root.g.lenience && this._y < _root.g.puzzley + _root.g.lenience) { this._x = _root.g.puzzlex; this._y = _root.g.puzzley; active = false; trace('clicked'); _root.g.lowerDepth(5); } trace(this._x + ',' + this._y); } } } movieClip 3325 { } movieClip 3327 { } button 3329 { on (press) { if (active == true) { this.startDrag(); } } on (release) { if (active == true) { this.stopDrag(); if (this._x > _root.g.puzzlex - _root.g.lenience && this._x < _root.g.puzzlex + _root.g.lenience && this._y > _root.g.puzzley - _root.g.lenience && this._y < _root.g.puzzley + _root.g.lenience) { this._x = _root.g.puzzlex; this._y = _root.g.puzzley; active = false; trace('clicked'); _root.g.lowerDepth(6); } trace(this._x + ',' + this._y); } } } movieClip 3330 { } movieClip 3332 { } button 3334 { on (press) { if (active == true) { this.startDrag(); } } on (release) { if (active == true) { this.stopDrag(); if (this._x > _root.g.puzzlex - _root.g.lenience && this._x < _root.g.puzzlex + _root.g.lenience && this._y > _root.g.puzzley - _root.g.lenience && this._y < _root.g.puzzley + _root.g.lenience) { this._x = _root.g.puzzlex; this._y = _root.g.puzzley; active = false; trace('clicked'); _root.g.lowerDepth(7); } trace(this._x + ',' + this._y); } } } movieClip 3335 { } movieClip 3337 { } button 3339 { on (press) { if (active == true) { this.startDrag(); } } on (release) { if (active == true) { this.stopDrag(); if (this._x > _root.g.puzzlex - _root.g.lenience && this._x < _root.g.puzzlex + _root.g.lenience && this._y > _root.g.puzzley - _root.g.lenience && this._y < _root.g.puzzley + _root.g.lenience) { this._x = _root.g.puzzlex; this._y = _root.g.puzzley; active = false; trace('clicked'); _root.g.lowerDepth(8); } trace(this._x + ',' + this._y); } } } movieClip 3340 { } movieClip 3342 { } button 3344 { on (press) { if (active == true) { this.startDrag(); } } on (release) { if (active == true) { this.stopDrag(); if (this._x > _root.g.puzzlex - _root.g.lenience && this._x < _root.g.puzzlex + _root.g.lenience && this._y > _root.g.puzzley - _root.g.lenience && this._y < _root.g.puzzley + _root.g.lenience) { this._x = _root.g.puzzlex; this._y = _root.g.puzzley; active = false; trace('clicked'); _root.g.lowerDepth(9); } trace(this._x + ',' + this._y); } } } movieClip 3345 { } movieClip 3347 { } button 3349 { on (press) { if (active == true) { this.startDrag(); } } on (release) { if (active == true) { this.stopDrag(); if (this._x > _root.g.puzzlex - _root.g.lenience && this._x < _root.g.puzzlex + _root.g.lenience && this._y > _root.g.puzzley - _root.g.lenience && this._y < _root.g.puzzley + _root.g.lenience) { this._x = _root.g.puzzlex; this._y = _root.g.puzzley; active = false; trace('clicked'); _root.g.lowerDepth(10); } trace(this._x + ',' + this._y); } } } movieClip 3350 { } movieClip 3352 { } button 3354 { on (press) { if (active == true) { this.startDrag(); } } on (release) { if (active == true) { this.stopDrag(); if (this._x > _root.g.puzzlex - _root.g.lenience && this._x < _root.g.puzzlex + _root.g.lenience && this._y > _root.g.puzzley - _root.g.lenience && this._y < _root.g.puzzley + _root.g.lenience) { this._x = _root.g.puzzlex; this._y = _root.g.puzzley; active = false; trace('clicked'); _root.g.lowerDepth(11); } trace(this._x + ',' + this._y); } } } movieClip 3355 { } movieClip 3357 { } button 3359 { on (press) { if (active == true) { this.startDrag(); } } on (release) { if (active == true) { this.stopDrag(); if (this._x > _root.g.puzzlex - _root.g.lenience && this._x < _root.g.puzzlex + _root.g.lenience && this._y > _root.g.puzzley - _root.g.lenience && this._y < _root.g.puzzley + _root.g.lenience) { this._x = _root.g.puzzlex; this._y = _root.g.puzzley; active = false; trace('clicked'); _root.g.lowerDepth(12); } trace(this._x + ',' + this._y); } } } movieClip 3360 { } movieClip 3362 { } button 3364 { on (press) { if (active == true) { this.startDrag(); } } on (release) { if (active == true) { this.stopDrag(); if (this._x > _root.g.puzzlex - _root.g.lenience && this._x < _root.g.puzzlex + _root.g.lenience && this._y > _root.g.puzzley - _root.g.lenience && this._y < _root.g.puzzley + _root.g.lenience) { this._x = _root.g.puzzlex; this._y = _root.g.puzzley; active = false; trace('clicked'); _root.g.lowerDepth(13); } trace(this._x + ',' + this._y); } } } movieClip 3365 { } movieClip 3367 { } button 3369 { on (press) { if (active == true) { this.startDrag(); } } on (release) { if (active == true) { this.stopDrag(); if (this._x > _root.g.puzzlex - _root.g.lenience && this._x < _root.g.puzzlex + _root.g.lenience && this._y > _root.g.puzzley - _root.g.lenience && this._y < _root.g.puzzley + _root.g.lenience) { this._x = _root.g.puzzlex; this._y = _root.g.puzzley; active = false; trace('clicked'); _root.g.lowerDepth(14); } trace(this._x + ',' + this._y); } } } movieClip 3370 { } movieClip 3372 { } button 3374 { on (press) { if (active == true) { this.startDrag(); } } on (release) { if (active == true) { this.stopDrag(); if (this._x > _root.g.puzzlex - _root.g.lenience && this._x < _root.g.puzzlex + _root.g.lenience && this._y > _root.g.puzzley - _root.g.lenience && this._y < _root.g.puzzley + _root.g.lenience) { this._x = _root.g.puzzlex; this._y = _root.g.puzzley; active = false; trace('clicked'); _root.g.lowerDepth(15); } trace(this._x + ',' + this._y); } } } movieClip 3375 { } movieClip 3377 { } button 3379 { on (press) { if (active == true) { this.startDrag(); } } on (release) { if (active == true) { this.stopDrag(); if (this._x > _root.g.puzzlex - _root.g.lenience && this._x < _root.g.puzzlex + _root.g.lenience && this._y > _root.g.puzzley - _root.g.lenience && this._y < _root.g.puzzley + _root.g.lenience) { this._x = _root.g.puzzlex; this._y = _root.g.puzzley; active = false; trace('clicked'); _root.g.lowerDepth(16); } trace(this._x + ',' + this._y); } } } movieClip 3380 { } movieClip 3381 { } movieClip 3384 { } movieClip 3385 game99 { frame 1 { _root.rules = 'Put it together!'; _root.beatClock = true; var puzzlex = 274.4; var puzzley = 179.5; var lenience = 50; } instance p1 of movieClip 3305 { onClipEvent (load) { var active = false; } } instance p2 of movieClip 3310 { onClipEvent (load) { var active = false; } } instance p3 of movieClip 3315 { onClipEvent (load) { var active = false; } } instance p4 of movieClip 3320 { onClipEvent (load) { var active = false; } } instance p5 of movieClip 3325 { onClipEvent (load) { var active = false; } } instance p6 of movieClip 3330 { onClipEvent (load) { var active = false; } } instance p7 of movieClip 3335 { onClipEvent (load) { var active = false; } } instance p8 of movieClip 3340 { onClipEvent (load) { var active = false; } } instance p9 of movieClip 3345 { onClipEvent (load) { var active = false; } } instance p10 of movieClip 3350 { onClipEvent (load) { var active = false; } } instance p11 of movieClip 3355 { onClipEvent (load) { var active = false; } } instance p12 of movieClip 3360 { onClipEvent (load) { var active = false; } } instance p13 of movieClip 3365 { onClipEvent (load) { var active = false; } } instance p14 of movieClip 3370 { onClipEvent (load) { var active = false; } } instance p15 of movieClip 3375 { onClipEvent (load) { var active = false; } } instance p16 of movieClip 3380 { onClipEvent (load) { var active = false; } } frame 2 { function breakPiece(pieceNumber, plonkingx, plonkingy) { var picked; do { picked = Math.ceil(Math.random() * 16); } while (picked == removed[0] || picked == removed[1] || picked == removed[2] || picked == removed[3]); trace('picked:' + picked); (eval('p' + picked)).active = true; (eval('p' + picked))._x = plonkingx; (eval('p' + picked))._y = plonkingy; (eval('p' + picked))._x -= xmodifiers[picked % 4]; (eval('p' + picked))._y -= ymodifiers[Math.ceil(picked / 4)]; (eval('p' + picked)).swapDepths(eval('depthmc' + depthNumber)); ++depthNumber; removed[pieceNumber] = picked; } function lowerDepth(pieceNumber) { (eval('p' + pieceNumber)).swapDepths(eval('depthmc' + depthNumber)); ++depthNumber; trace('depthNumber:' + depthNumber); if (depthNumber == 7) { _root.gameOutcome(true); } } var depthNumber = 1; var plah = 0; var xmodifiers = new Array(127.125, -127.125, -42.375, 42.375); var ymodifiers = new Array(0, -127.125, -42.375, 42.375, 127.125); var removed = new Array(0, 0, 0, 0); breakPiece(0, 45.625, 107.625); breakPiece(1, 60.625, 257.625); breakPiece(2, 504.625, 153.625); stop(); } } movieClip 3398 { } movieClip 3405 { } movieClip 3408 { } movieClip 3409 game100 { frame 1 { _root.rules = 'Escape the Grues'; _root.beatClock = false; gruespeed = 7.5; onEnterFrame = function () { if (_root.cstatus == 1) { if (kitty._x > grue2._x) { grue2._x += gruespeed; } if (kitty._x < grue2._x) { grue2._x -= gruespeed; } if (kitty._y > grue2._y) { grue2._y += gruespeed; } if (kitty._y < grue2._y) { grue2._y -= gruespeed; } if (kitty._x > grue1._x) { grue1._x += gruespeed; } if (kitty._x < grue1._x) { grue1._x -= gruespeed; } if (kitty._y > grue1._y) { grue1._y += gruespeed; } if (kitty._y < grue1._y) { grue1._y -= gruespeed; } if (kitty.hitTest(grue1._x, grue1._y)) { _root.gameOutcome(false); } if (kitty.hitTest(grue2._x, grue2._y)) { _root.gameOutcome(false); } } else { kitty.stopDrag(); } }; } instance kitty of movieClip 3405 { onClipEvent (press) { if (_root.cstatus == 1) { startDrag(this, true); } } } } movieClip 3411 { } movieClip 3413 { } movieClip 3415 { } movieClip 3417 { } movieClip 3418 { } movieClip 3420 { } movieClip 3436 { frame 14 { stop(); } } movieClip 3437 { frame 1 { stop(); } } movieClip 3440 { } movieClip 3441 game101 { frame 1 { _root.rules = 'One shot!'; _root.beatClock = true; speedx = 30; speedy = 30; shoot = 0; onEnterFrame = function () { if (_root.cstatus == 1) { if (shoot == 0) { if (Key.isDown(37) || Key.isDown(38)) { cannon.barrel._rotation -= 2; ball._rotation -= 2; if (shoot == 0) { --speedx; speedy += 1.5; } } } if (Key.isDown(39) || Key.isDown(40)) { cannon.barrel._rotation += 2; ball._rotation += 2; if (shoot == 0) { ++speedx; speedy -= 1.5; } } if (Key.isDown(32)) { shoot = 1; } if (shoot == 1) { ball._y -= speedy; ball._x += speedx; --speedy; speedx -= speedx / 25; } if (ball.hitTest(castle)) { castle.gotoAndStop(2); ball._visible = false; _root.gameOutcome(true); } } }; } } movieClip 3446 { } movieClip 3447 { } movieClip 3448 { } movieClip 3451 { } movieClip 3455 { } movieClip 3457 { } movieClip 3459 { } movieClip 3460 { } movieClip 3463 { } movieClip 3465 { } movieClip 3466 { } movieClip 3469 { } movieClip 3474 { } movieClip 3477 { } movieClip 3480 { } movieClip 3481 game102 { frame 1 { _root.rules = 'Grab the BEER!!!'; _root.beatClock = true; onEnterFrame = function () { if (_root._xmouse > oldX) { speed1 = _root._xmouse - oldX; } else { speed1 = oldX - _root._xmouse; } if (_root._ymouse > oldY) { speed2 = _root._ymouse - oldY; } else { speed2 = oldY - _root._ymouse; } oldX = _root._xmouse; oldY = _root._ymouse; if (_root.cstatus == 1) { speed = (speed1 + speed2) / 30; yTarget -= speed; yTarget += 2; hand._y -= (hand._y - yTarget) / 10; } if (hand._y <= 402) { _root.gameOutcome(true); hand._y = 402; hand.gotoAndStop(2); beer.speed = 0; hand.speed = 0; beer.onEnterFrame = function () { this._y += speed++; }; hand.onEnterFrame = function () { this._y += speed++; }; } trace(hand._y); }; yTarget = hand._y; oldX = _root._xmouse; oldY = _root._ymouse; hand.stop(); } } movieClip 3487 { } movieClip 3488 { } movieClip 3489 game103 { frame 1 { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function openPopup(ignoreCstatus) { if (_root.cstatus == 1 || ignoreCstatus) { ++i; this.attachMovie('dic_popup' + rand(1, 5), 'popup' + i, this.getNextHighestDepth()); this['popup' + i]._x = rand(0, 550); this['popup' + i]._y = rand(0, 400); } } function closePopup(instanceName) { if (_root.cstatus == 1) { this[instanceName].removeMovieClip(); ++closed; if (closed >= 5) { _root.gameOutcome(true); } } } _root.rules = 'Close 5 pop-ups!'; _root.beatClock = true; i = 0; closed = 0; j = 0; while (j < 4) { openPopup(true); ++j; } interval = 0; onEnterFrame = function () { ++interval; if (interval > 64) { interval = 0; openPopup(); } }; } } movieClip 3491 { } movieClip 3493 { } movieClip 3494 { } movieClip 3497 { } movieClip 3498 { } movieClip 3499 { } movieClip 3502 { } movieClip 3518 { } movieClip 3519 { frame 1 { _visible = false; } } movieClip 3523 { frame 11 { gotoAndStop(1); } } movieClip 3525 { } movieClip 3526 { } movieClip 3530 { } movieClip 3531 { frame 8 { stop(); } } movieClip 3532 game104 { frame 1 { _root.rules = 'Feed the fish!'; _root.beatClock = true; } instance of movieClip 3502 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { _y = 430; _x = rand(0, 550); leftLimit = _x - rand(10, 100); rightLimit = _x + rand(10, 100); left = rand(0, 1); speed = 0; } reset(); _y = rand(0, 400); speed = rand(1, 6); } onClipEvent (enterFrame) { speed += Math.random() / 3; _y = _y - speed; if (left) { _x = _x - 0.5; } else { _x = _x + 0.5; } if (_x < leftLimit) { left = false; } else { if (_x > rightLimit) { left = true; } } if (_y < 0) { reset(); } } } instance of movieClip 3502 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { _y = 430; _x = rand(0, 550); leftLimit = _x - rand(10, 100); rightLimit = _x + rand(10, 100); left = rand(0, 1); speed = 0; } reset(); _y = rand(0, 400); speed = rand(1, 6); } onClipEvent (enterFrame) { speed += Math.random() / 3; _y = _y - speed; if (left) { _x = _x - 0.5; } else { _x = _x + 0.5; } if (_x < leftLimit) { left = false; } else { if (_x > rightLimit) { left = true; } } if (_y < 0) { reset(); } } } instance of movieClip 3502 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { _y = 430; _x = rand(0, 550); leftLimit = _x - rand(10, 100); rightLimit = _x + rand(10, 100); left = rand(0, 1); speed = 0; } reset(); _y = rand(0, 400); speed = rand(1, 6); } onClipEvent (enterFrame) { speed += Math.random() / 3; _y = _y - speed; if (left) { _x = _x - 0.5; } else { _x = _x + 0.5; } if (_x < leftLimit) { left = false; } else { if (_x > rightLimit) { left = true; } } if (_y < 0) { reset(); } } } instance of movieClip 3502 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { _y = 430; _x = rand(0, 550); leftLimit = _x - rand(10, 100); rightLimit = _x + rand(10, 100); left = rand(0, 1); speed = 0; } reset(); _y = rand(0, 400); speed = rand(1, 6); } onClipEvent (enterFrame) { speed += Math.random() / 3; _y = _y - speed; if (left) { _x = _x - 0.5; } else { _x = _x + 0.5; } if (_x < leftLimit) { left = false; } else { if (_x > rightLimit) { left = true; } } if (_y < 0) { reset(); } } } instance of movieClip 3502 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { _y = 430; _x = rand(0, 550); leftLimit = _x - rand(10, 100); rightLimit = _x + rand(10, 100); left = rand(0, 1); speed = 0; } reset(); _y = rand(0, 400); speed = rand(1, 6); } onClipEvent (enterFrame) { speed += Math.random() / 3; _y = _y - speed; if (left) { _x = _x - 0.5; } else { _x = _x + 0.5; } if (_x < leftLimit) { left = false; } else { if (_x > rightLimit) { left = true; } } if (_y < 0) { reset(); } } } instance of movieClip 3502 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { _y = 430; _x = rand(0, 550); leftLimit = _x - rand(10, 100); rightLimit = _x + rand(10, 100); left = rand(0, 1); speed = 0; } reset(); _y = rand(0, 400); speed = rand(1, 6); } onClipEvent (enterFrame) { speed += Math.random() / 3; _y = _y - speed; if (left) { _x = _x - 0.5; } else { _x = _x + 0.5; } if (_x < leftLimit) { left = false; } else { if (_x > rightLimit) { left = true; } } if (_y < 0) { reset(); } } } instance of movieClip 3502 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { _y = 430; _x = rand(0, 550); leftLimit = _x - rand(10, 100); rightLimit = _x + rand(10, 100); left = rand(0, 1); speed = 0; } reset(); _y = rand(0, 400); speed = rand(1, 6); } onClipEvent (enterFrame) { speed += Math.random() / 3; _y = _y - speed; if (left) { _x = _x - 0.5; } else { _x = _x + 0.5; } if (_x < leftLimit) { left = false; } else { if (_x > rightLimit) { left = true; } } if (_y < 0) { reset(); } } } instance fish of movieClip 3523 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { rTarget = rand(-40, 40); timer = 32 * rand(1, 3); speed = 3; } reset(); stop(); _y = rand(100, 300); _x = rand(150, 550); } onClipEvent (enterFrame) { if (!fed) { _rotation = _rotation - (_rotation - rTarget) / 20; } else { _rotation = _rotation + 2; } _x = _x + Math.cos((_rotation - 180) * Math.PI / 180) * speed; _y = _y + Math.sin((_rotation - 180) * Math.PI / 180) * speed; if (_x + _width / 2 < 0) { _x = 550 + _width / 2; } if (_x - _width / 2 > 550) { _x = -(_width / 2); } if (_y + _height / 2 < 100) { rTarget = -30; } if (_y - _height / 2 > 300) { rTarget = 30; } --timer; if (timer <= 0) { reset(); } } } instance feeder of movieClip 3531 { onClipEvent (load) { cooldown = 0; i = 0; _x = random(550); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(37)) { _x = _x - 10; } else { if (Key.isDown(39)) { _x = _x + 10; } } if (_x + _width / 2 < 0) { _x = 550 + _width / 2; } if (_x - _width / 2 > 550) { _x = -(_width / 2); } --cooldown; if (Key.isDown(32) && cooldown <= 0) { cooldown = 32; ++i; _parent.attachMovie('dic_food', 'food' + i, _parent.getNextHighestDepth()); _parent['food' + i]._x = _x; _parent['food' + i]._y = 0; _parent['food' + i].speed = 0; _parent['food' + i]._rotation = random(360); _parent['food' + i].onEnterFrame = function () { this.speed += 2; this._y += this.speed; if (this._y > 400) { this.removeMovieClip(); } if (this.hitTest(_parent.fish.hit)) { _parent.fish.play(); _parent.fish.fed = true; _root.gameOutcome(true); this.removeMovieClip(); } }; } } } } } movieClip 3536 { } movieClip 3537 { } movieClip 3539 { } movieClip 3540 { } movieClip 3542 { frame 1 { _visible = false; } } movieClip 3543 { } movieClip 3545 { } movieClip 3546 { } movieClip 3547 { } movieClip 3550 { } movieClip 3553 { frame 15 { stop(); } } movieClip 3554 game105 { frame 1 { _root.rules = 'Inject the needle!'; _root.beatClock = true; } instance of movieClip 3540 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { _y = 400 + _height / 2; _x = rand(0, 450); leftLimit = _x - rand(10, 100); rightLimit = _x + rand(10, 100); left = rand(0, 1); speed = 0; } reset(); _y = rand(0, 400); speed = rand(1, 6); } onClipEvent (enterFrame) { speed += Math.random() / 20; _y = _y - speed; if (left) { _x = _x - 0.5; } else { _x = _x + 0.5; } if (_x < leftLimit) { left = false; } else { if (_x > rightLimit) { left = true; } } if (_y < -_height / 2) { reset(); } } } instance of movieClip 3540 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { _y = 400 + _height / 2; _x = rand(0, 450); leftLimit = _x - rand(10, 100); rightLimit = _x + rand(10, 100); left = rand(0, 1); speed = 0; } reset(); _y = rand(0, 400); speed = rand(1, 6); } onClipEvent (enterFrame) { speed += Math.random() / 20; _y = _y - speed; if (left) { _x = _x - 0.5; } else { _x = _x + 0.5; } if (_x < leftLimit) { left = false; } else { if (_x > rightLimit) { left = true; } } if (_y < -_height / 2) { reset(); } } } instance of movieClip 3540 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { _y = 400 + _height / 2; _x = rand(0, 450); leftLimit = _x - rand(10, 100); rightLimit = _x + rand(10, 100); left = rand(0, 1); speed = 0; } reset(); _y = rand(0, 400); speed = rand(1, 6); } onClipEvent (enterFrame) { speed += Math.random() / 20; _y = _y - speed; if (left) { _x = _x - 0.5; } else { _x = _x + 0.5; } if (_x < leftLimit) { left = false; } else { if (_x > rightLimit) { left = true; } } if (_y < -_height / 2) { reset(); } } } instance of movieClip 3540 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { _y = 400 + _height / 2; _x = rand(0, 450); leftLimit = _x - rand(10, 100); rightLimit = _x + rand(10, 100); left = rand(0, 1); speed = 0; } reset(); _y = rand(0, 400); speed = rand(1, 6); } onClipEvent (enterFrame) { speed += Math.random() / 20; _y = _y - speed; if (left) { _x = _x - 0.5; } else { _x = _x + 0.5; } if (_x < leftLimit) { left = false; } else { if (_x > rightLimit) { left = true; } } if (_y < -_height / 2) { reset(); } } } instance of movieClip 3540 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { _y = 400 + _height / 2; _x = rand(0, 450); leftLimit = _x - rand(10, 100); rightLimit = _x + rand(10, 100); left = rand(0, 1); speed = 0; } reset(); _y = rand(0, 400); speed = rand(1, 6); } onClipEvent (enterFrame) { speed += Math.random() / 20; _y = _y - speed; if (left) { _x = _x - 0.5; } else { _x = _x + 0.5; } if (_x < leftLimit) { left = false; } else { if (_x > rightLimit) { left = true; } } if (_y < -_height / 2) { reset(); } } } instance of movieClip 3540 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } function reset() { _y = 400 + _height / 2; _x = rand(0, 450); leftLimit = _x - rand(10, 100); rightLimit = _x + rand(10, 100); left = rand(0, 1); speed = 0; } reset(); _y = rand(0, 400); speed = rand(1, 6); } onClipEvent (enterFrame) { speed += Math.random() / 20; _y = _y - speed; if (left) { _x = _x - 0.5; } else { _x = _x + 0.5; } if (_x < leftLimit) { left = false; } else { if (_x > rightLimit) { left = true; } } if (_y < -_height / 2) { reset(); } } } instance aim of movieClip 3547 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } _x = rand(0, 550); _y = rand(0, 400); for (;;) { if (!(!_parent.arm.hit1.hitTest(_x, _y) && !_parent.arm.hit2.hitTest(_x, _y) && !_parent.arm.hit3.hitTest(_x, _y) && !_parent.arm.hit4.hitTest(_x, _y) && !_parent.arm.hit5.hitTest(_x, _y) && !_parent.arm.hit6.hitTest(_x, _y) && !_parent.arm.hit7.hitTest(_x, _y) && !_parent.arm.hit8.hitTest(_x, _y))) break; _y = rand(0, 400); } } } instance needle of movieClip 3553 { onClipEvent (load) { function rand(min, max) { return Math.round(Math.random() * (max - min) + min); } stop(); _x = rand(100, 450); _y = rand(100, 300); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(37)) { _x = _x - 10; } else { if (Key.isDown(39)) { _x = _x + 10; } } if (Key.isDown(38)) { _y = _y - 10; } else { if (Key.isDown(40)) { _y = _y + 10; } } if (Key.isDown(32) && _currentframe == 1) { if (_parent.arm.hit1.hitTest(_x, _y) || _parent.arm.hit2.hitTest(_x, _y) || _parent.arm.hit3.hitTest(_x, _y) || _parent.arm.hit4.hitTest(_x, _y) || _parent.arm.hit5.hitTest(_x, _y) || _parent.arm.hit6.hitTest(_x, _y) || _parent.arm.hit7.hitTest(_x, _y) || _parent.arm.hit8.hitTest(_x, _y)) { play(); if (_parent.aim.hitTest(_x, _y, false)) { _root.gameOutcome(true); } else { _root.gameOutcome(false); } } } } } } } movieClip 3557 { } movieClip 3559 { } movieClip 3561 { } movieClip 3567 { frame 1 { stop(); } } movieClip 3570 { } movieClip 3571 game106 { frame 1 { _root.rules = 'Get home'; _root.beatClock = true; speedx = -8; speedy = 0; gtas = 3; onEnterFrame = function () { if (_root.cstatus == 1) { if (Key.isDown(38)) { speedy = -8; speedx = 0; gtas = 1; } else { if (Key.isDown(40)) { speedy = 8; speedx = 0; gtas = 2; } else { if (Key.isDown(37)) { speedx = -8; speedy = 0; gtas = 3; } else { if (Key.isDown(39)) { speedx = 8; speedy = 0; gtas = 4; } } } } player.gotoAndStop(gtas); player._x += speedx; player._y += speedy; if (player.hitTest(home)) { _root.gameOutcome(true); } if (player._x <= 64 or player._x >= 486 or player._y <= 58 or player._y >= 336 or player.hitTest(badblock)) { _root.gameOutcome(false); } } }; } } movieClip 3573 { } movieClip 3576 { } movieClip 3578 { frame 1 { _visible = false; } } movieClip 3580 { frame 1 { _visible = false; } } movieClip 3581 { } movieClip 3584 { } movieClip 3587 { } movieClip 3588 game107 { frame 1 { _root.rules = 'Avoid the light!'; _root.beatClock = false; } instance of movieClip 3581 { onClipEvent (load) { function reset() { rTarget = random(360); clearInterval(interval); interval = setInterval(reset, 500 + random(1000)); } reset(); _x = 150 + random(400); _y = 150 + random(250); _rotation = random(360); cooldown = 0; point.x = point._x; point.y = point._y; localToGlobal(point); for (;;) { if (!(point.x < 0 || point.y > 400 || point.x > 550 || point.y < 0)) break; _x = 150 + random(400); _y = 150 + random(250); _rotation = random(360); cooldown = 0; point.x = point._x; point.y = point._y; localToGlobal(point); } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { _x = _x + Math.cos((_rotation - 90) * Math.PI / 180) * 3; _y = _y + Math.sin((_rotation - 90) * Math.PI / 180) * 3; _rotation = _rotation - (_rotation - rTarget) / 30; if (hit.hitTest(_root._xmouse, _root._ymouse, true)) { _root.gameOutcome(false); } point.x = point._x; point.y = point._y; localToGlobal(point); if (point.x < 0 || point.x > 550 || point.y > 400 || point.y < 0) { if (cooldown <= 0) { rTarget = -rTarget; cooldown = 32; } } if (lamp.hitTest(_root._xmouse, _root._ymouse, true)) { _x = _x - Math.cos((_rotation - 90) * Math.PI / 180) * 10; _y = _y - Math.sin((_rotation - 90) * Math.PI / 180) * 10; } --cooldown; } } } } movieClip 3592 { } movieClip 3594 { } movieClip 3595 { frame 4 { stop(); } } movieClip 3597 { } movieClip 3598 { frame 4 { stop(); } } movieClip 3600 { } movieClip 3601 { frame 4 { stop(); } } movieClip 3604 { } movieClip 3605 { frame 4 { stop(); } } movieClip 3608 { } movieClip 3611 { } movieClip 3612 { } movieClip 3613 { instance of movieClip 3612 { onClipEvent (enterFrame) { _parent._rotation -= 15; } } frame 9 { stop(); } } movieClip 3616 { } movieClip 3623 { frame 5 { stop(); } } movieClip 3624 { frame 1 { stop(); } instance of movieClip 3592 { onClipEvent (load) { s = 0; } onClipEvent (enterFrame) { ++s; if (s < 11) { _y = _y + 1; } else { if (s >= 14 and s < 24) { _y = _y - 1; } else { if (s >= 27) { s = 0; } } } } } instance of movieClip 3595 { onClipEvent (load) { s = 0; } onClipEvent (enterFrame) { ++s; if (s < 11) { _y = _y + 1; } else { if (s >= 14 and s < 24) { _y = _y - 1; } else { if (s >= 27) { s = 0; } } } } } instance of movieClip 3598 { onClipEvent (load) { s = 0; } onClipEvent (enterFrame) { ++s; if (s < 11) { _y = _y + 1; } else { if (s >= 14 and s < 24) { _y = _y - 1; } else { if (s >= 27) { s = 0; } } } } } instance of movieClip 3601 { onClipEvent (load) { s = 0; } onClipEvent (enterFrame) { ++s; if (s < 11) { _y = _y + 1; } else { if (s >= 14 and s < 24) { _y = _y - 1; } else { if (s >= 27) { s = 0; } } } } } instance of movieClip 3605 { onClipEvent (load) { s = 0; } onClipEvent (enterFrame) { ++s; if (s < 11) { _y = _y + 1; } else { if (s >= 14 and s < 24) { _y = _y - 1; } else { if (s >= 27) { s = 0; } } } } } frame 6 { _root.gameOutcome(true); } } movieClip 3625 game108 { frame 1 { _root.rules = 'Explode'; _root.beatClock = true; } instance of movieClip 3624 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(32)) { if (temp == 1) { temp = 2; nextFrame(); } } else { if (temp == 2) { temp = 0; } else { temp = 1; } } } } } } movieClip 3628 { } movieClip 3630 { } movieClip 3633 { } movieClip 3634 { } movieClip 3637 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 3639 { } movieClip 3640 { instance of movieClip 3639 { onClipEvent (load) { this._alpha = 0; } } } movieClip 3642 { } movieClip 3644 { } movieClip 3646 { } movieClip 3648 { } movieClip 3651 { } movieClip 3653 { } movieClip 3655 { } movieClip 3657 { } movieClip 3658 { frame 1 { stop(); } instance of movieClip 3651 { onClipEvent (load) { s = 0; } onClipEvent (enterFrame) { ++s; if (s == 1) { _y = _y + 1; } else { if (s == 3) { _y = _y - 1; } else { if (s >= 5) { s = 0; } } } } } frame 8 { _parent.con = 1; } } movieClip 3661 { } movieClip 3662 { frame 1 { stop(); } instance of movieClip 3640 { onClipEvent (load) { _parent._x += random(80) - 40; } onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.hero.hit)) { if (Key.isDown(32)) { _parent._parent.con = 0; _parent._parent.hero._x = _parent._x; _parent._parent.hero.play(); _parent.play(); } } } } frame 8 { _parent.ac += 1; } frame 19 { stop(); } } movieClip 3663 game109 { frame 1 { _root.rules = 'Pull the weed'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance of movieClip 3630 { onClipEvent (enterFrame) { _x = _x - 1; } } instance hero of movieClip 3658 { onClipEvent (load) { _parent.con = 1; _parent.ac = 0; } onClipEvent (enterFrame) { if (_parent.ac == 3) { _root.gameOutcome(true); } if (_root.cstatus == 1) { if (_parent.con == 1) { if (_x > 60) { if (Key.isDown(37)) { a._xscale = -100; a.play(); _x = _x - 10; } } if (_x < 490) { if (Key.isDown(39)) { a._xscale = 100; a.play(); _x = _x + 10; } } } } } } } movieClip 3666 { } movieClip 3670 { } movieClip 3671 { instance of movieClip 3670 { onClipEvent (load) { this._alpha = 0; } } } movieClip 3673 { frame 1 { stop(); } instance of movieClip 3666 { onClipEvent (load) { s = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { ++s; if (s >= 80) { _parent.play(); } } } } instance hit of movieClip 3671 { onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.elefant.hit)) { _root.gameOutcome(false); _parent._parent.elefant.nextFrame(); } } } frame 5 { stop(); } } movieClip 3676 { } movieClip 3678 { } movieClip 3680 { } movieClip 3682 { } movieClip 3685 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 3687 { } movieClip 3688 { frame 1 { stop(); } instance of movieClip 3687 { onClipEvent (load) { _parent.sn = 0; } onClipEvent (enterFrame) { _parent.sn += 5; _parent._y += 10 + _parent.sn; } } } movieClip 3690 game110 { frame 1 { _root.rules = 'Don\'t fall down'; _root.beatClock = false; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance elefant of movieClip 3688 { onClipEvent (load) { _parent.con = 1; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_parent.con == 1) { if (_x > 60) { if (Key.isDown(37)) { _xscale = 100; a.play(); _x = _x - 7; } } if (_x < 490) { if (Key.isDown(39)) { _xscale = -100; a.play(); _x = _x + 7; } } } } } } } movieClip 3696 { } movieClip 3697 { } movieClip 3699 { } movieClip 3701 { } movieClip 3703 { } movieClip 3705 { } movieClip 3707 { } movieClip 3709 { } movieClip 3710 { } movieClip 3712 { } movieClip 3714 { } movieClip 3716 { } movieClip 3718 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 3722 { } movieClip 3724 { } movieClip 3726 { } movieClip 3728 { } movieClip 3729 { } movieClip 3731 { } movieClip 3733 { } movieClip 3735 { } movieClip 3737 { } movieClip 3739 { } movieClip 3740 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 3742 { } movieClip 3744 { } movieClip 3749 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 3750 { frame 1 { stop(); } } movieClip 3751 game111 { frame 1 { _root.rules = 'Search'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance of movieClip 3697 { onClipEvent (load) { _x = random(490) + 30; _y = random(320) + 40; if (_x > 200 and _x < 300) { _x = (random(1) + 1) * 400 + 40; } if (_x > 300) { _parent.bengt._x = 150; } else { if (_x < 200) { _parent.bengt._x = 400; } } } onClipEvent (enterFrame) { if (this.hit.hitTest(_parent.bengt.shadow)) { _root.gameOutcome(true); _x = -1000; } } } instance bengt of movieClip 3750 { onClipEvent (load) { speed = 10; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(37)) { face = 'left'; if (Key.isDown(38) or Key.isDown(40)) { } else { gotoAndStop('left'); a.play(); } _x = _x - speed; } if (Key.isDown(39)) { if (Key.isDown(38) or Key.isDown(40)) { } else { gotoAndStop('right'); a.play(); } _x = _x + speed; } if (Key.isDown(38)) { face = 'up'; _y = _y - speed; gotoAndStop('up'); a.play(); } if (Key.isDown(40)) { _y = _y + speed; face = 'down'; gotoAndStop('down'); a.play(); } } } } } movieClip 3753 { } movieClip 3754 { instance of movieClip 3753 { onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.bengt.shadowrl)) { _parent._parent.bengt._x += 10; } } } } movieClip 3756 { } movieClip 3757 { instance of movieClip 3756 { onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.bengt.shadowrl)) { _parent._parent.bengt._x -= 10; } } } } movieClip 3759 { } movieClip 3760 { instance of movieClip 3759 { onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.bengt.shadow)) { _parent._parent.bengt._y -= 10; } } } } movieClip 3762 { } movieClip 3763 { instance of movieClip 3762 { onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.bengt.shadow)) { _parent._parent.bengt._y += 10; } } } } movieClip 3766 { } movieClip 3770 { } movieClip 3771 { } movieClip 3774 { } movieClip 3775 { } movieClip 3777 { } movieClip 3778 { } movieClip 3780 { } movieClip 3782 { } movieClip 3783 { } movieClip 3785 { } movieClip 3787 { } movieClip 3789 { } movieClip 3790 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 3792 { } movieClip 3794 { } movieClip 3796 { } movieClip 3798 { } movieClip 3799 { } movieClip 3801 { } movieClip 3802 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 3804 { } movieClip 3806 { } movieClip 3807 { } movieClip 3808 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 3809 { frame 1 { stop(); } } movieClip 3811 { } movieClip 3814 { } movieClip 3816 { } movieClip 3818 { } movieClip 3819 { instance of movieClip 3818 { onClipEvent (load) { if (_parent._parent.bengt._y >= _parent._y) { _parent.swapDepths(_parent._parent.bengt); front = 0; } else { front = 1; } this._alpha = 0; } onClipEvent (enterFrame) { if (_parent._parent.bengt._y <= _parent._y) { if (front == 0) { _parent.swapDepths(_parent._parent.bengt); front = 1; } } if (_parent._parent.bengt._y >= _parent._y) { if (front == 1) { _parent.swapDepths(_parent._parent.bengt); front = 0; } } } } } movieClip 3821 { } movieClip 3825 { } movieClip 3827 { } movieClip 3829 { } movieClip 3831 { } movieClip 3833 { } movieClip 3834 { frame 1 { stop(); } frame 8 { _parent.gotoAndStop(random(3) + 1); } } movieClip 3835 { frame 1 { gotoAndStop(random(3) + 1); } instance of movieClip 3834 { onClipEvent (enterFrame) { if (random(60) == 1) { play(); } } } instance of movieClip 3834 { onClipEvent (enterFrame) { if (random(60) == 1) { play(); } } } instance of movieClip 3834 { onClipEvent (enterFrame) { if (random(60) == 1) { play(); } } } } movieClip 3836 { instance of movieClip 3829 { onClipEvent (enterFrame) { if (this.hitTest(_parent._parent._parent.bengt.shadow)) { _parent._parent.coin.start(); _parent._parent._parent.ac += 1; _parent._x = -1000; } } } } movieClip 3837 { frame 1 { _parent.number = 7; } frame 1 { gotoAndStop(random(9) + 1); } frame 2 { _parent.number = 7; } frame 3 { _parent.number = 7; } frame 4 { _parent.number = 7; } frame 5 { _parent.number = 6; } frame 6 { _parent.number = 6; } frame 7 { _parent.number = 7; } frame 8 { _parent.number = 7; } frame 9 { _parent.number = 7; } } movieClip 3838 game112 { frame 1 { _root.rules = 'Grab the coins'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance bengt of movieClip 3809 { onClipEvent (load) { _parent.ac = 0; _parent.number = 0; speed = 10; _parent.ac = 0; } onClipEvent (enterFrame) { if (_parent.ac >= _parent.number) { _root.gameOutcome(true); } if (_root.cstatus == 1) { if (Key.isDown(37)) { face = 'left'; if (Key.isDown(38) or Key.isDown(40)) { } else { gotoAndStop('left'); a.play(); } _x = _x - speed; } if (Key.isDown(39)) { if (Key.isDown(38) or Key.isDown(40)) { } else { gotoAndStop('right'); a.play(); } _x = _x + speed; } if (Key.isDown(38)) { face = 'up'; _y = _y - speed; gotoAndStop('up'); a.play(); } if (Key.isDown(40)) { _y = _y + speed; face = 'down'; gotoAndStop('down'); a.play(); } } } } instance of movieClip 3837 { onClipEvent (load) { coin = new Sound(); coin.attachSound('sbf6_coin'); } } } movieClip 3843 { } movieClip 3844 { frame 5 { stop(); } } movieClip 3845 { frame 1 { stop(); } frame 2 { _parent.ac += 1; } } movieClip 3848 { frame 1 { stop(); } frame 2 { _parent.ac += 1; } } movieClip 3851 { frame 1 { stop(); } frame 2 { _parent.ac += 1; } } movieClip 3854 { frame 1 { stop(); } frame 2 { _parent.ac += 1; } } movieClip 3857 { frame 1 { stop(); _parent.ac += 1; } } movieClip 3860 { } movieClip 3862 { } movieClip 3864 { } movieClip 3865 { frame 1 { stop(); } } movieClip 3866 { frame 1 { stop(); _parent.s = 'a'; } frame 2 { _parent.s = 'b'; } frame 3 { _parent.s = 'c'; } frame 4 { _parent.s = 'd'; } frame 5 { _parent.s = 'e'; } } movieClip 3867 game113 { frame 1 { _root.rules = 'Clip the nails'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance of movieClip 3866 { onClipEvent (load) { _parent.ac = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_parent.ac == 5) { _root.gameOutcome(true); } if (Key.isDown(37)) { if (tempv == 1) { prevFrame(); tempv = 2; } } else { if (tempv == 2) { tempv = 0; } else { tempv = 1; } } if (Key.isDown(39)) { if (temps == 1) { nextFrame(); temps = 2; } } else { if (temps == 2) { temps = 0; } else { temps = 1; } } if (Key.isDown(32)) { if (temp == 1) { temp = 2; a.play(); if (_parent.s == 'a') { _parent.a.nextFrame(); } else { if (_parent.s == 'b') { _parent.b.nextFrame(); } else { if (_parent.s == 'c') { _parent.c.nextFrame(); } else { if (_parent.s == 'd') { _parent.d.nextFrame(); } else { if (_parent.s == 'e') { _parent.e.nextFrame(); _root.gameOutcome(true); } } } } } } } else { if (temp == 2) { temp = 0; } else { temp = 1; } } } } } } movieClip 3870 { } movieClip 3874 { } movieClip 3876 { } movieClip 3879 { } movieClip 3883 { } movieClip 3884 { frame 1 { _parent.ouch = 0; stop(); } frame 3 { _parent.ouch = 1; } frame 8 { _parent.ouch = 0; stop(); } instance of movieClip 3883 { onClipEvent (enterFrame) { _parent._x -= 10 * _root.speed; _rotation = _rotation - 10 * _root.speed; } } } movieClip 3886 { } movieClip 3888 { } movieClip 3890 { } movieClip 3891 { frame 3 { stop(); } } movieClip 3893 { } movieClip 3894 { frame 1 { stop(); } instance of movieClip 3886 { onClipEvent (load) { start = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (start == 0) { cd = random(48); start = 1; } else { if (start == 1) { if (cd <= 0) { start = 2; } else { cd -= 1; } } } if (_parent._parent.ouch == 1) { if (this.hitTest(_parent._parent.elefant.kick)) { _parent._parent.starz.nextFrame(); _root.gameOutcome(true); _parent.nextFrame(); } } else { if (this.hitTest(_parent._parent.elefant.hit)) { _parent._parent.elefant.gotoAndStop('kill'); _parent._parent.star.nextFrame(); _root.gameOutcome(lose); _parent._parent.lose = 1; _parent.gotoAndStop(3); } } if (start == 2) { _parent._x -= 20 * _root.speed; } } } } instance of movieClip 3888 { onClipEvent (enterFrame) { _parent._x += 10 * _root.speed; _rotation = _rotation + 10 * _root.speed; } } instance of movieClip 3891 { onClipEvent (load) { s = 0; } onClipEvent (enterFrame) { _parent._x += 2 * _root.speed; ++s; if (s < 11) { _y = _y + 0.5; } else { if (s >= 14 and s < 24) { _y = _y - 0.5; } else { if (s >= 27) { s = 0; } } } } } instance of movieClip 3893 { onClipEvent (load) { s = 0; } onClipEvent (enterFrame) { _parent._x += 2 * _root.speed; ++s; if (s < 11) { _y = _y + 1; } else { if (s >= 14 and s < 24) { _y = _y - 1; } else { if (s >= 27) { s = 0; } } } } } } movieClip 3895 { frame 1 { stop(); } } movieClip 3896 game114 { frame 1 { _root.rules = 'Kick the ninja'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance elefant of movieClip 3884 { onClipEvent (load) { s = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(32)) { if (_parent.lose == 1) { } else { if (at == 1) { } else { at = 1; play(); } } } } ++s; if (s < 11) { _y = _y + 1; } else { if (s >= 14 and s < 24) { _y = _y - 1; } else { if (s >= 27) { s = 0; } } } } } } movieClip 3901 { } movieClip 3905 { } movieClip 3908 { } movieClip 3911 { } movieClip 3914 { } movieClip 3916 { } movieClip 3917 { frame 1 { stop(); } } movieClip 3956 { } movieClip 3958 { frame 1 { stop(); } frame 19 { stop(); } } movieClip 3959 { } movieClip 3962 { frame 1 { stop(); } frame 19 { stop(); } } movieClip 3963 { } movieClip 3966 { frame 1 { stop(); } frame 19 { stop(); } } movieClip 3967 { } movieClip 3970 { } movieClip 3971 game115 { frame 1 { _root.rules = 'Shoot RED!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { if (Key.isDown(37)) { eye1_cannon._rotation -= 10; } if (Key.isDown(39)) { eye1_cannon._rotation += 10; } if (Key.isDown(32)) { eye1_cannon.play(); } if (eye1_cannon.hitTest(eye1_red)) { eye1_red.stop(); eye1_red.eye1_redboom.play(); _root.gameOutcome(true); } if (eye1_cannon.hitTest(eye1_blue)) { eye1_blue.stop(); eye1_blue.eye1_blueboom.play(); _root.gameOutcome(false); } if (eye1_cannon.hitTest(eye1_green)) { eye1_green.stop(); eye1_green.eye1_greenboom.play(); _root.gameOutcome(false); } } }; } frame 1 { stop(); } } movieClip 3974 { } movieClip 3978 { } movieClip 3981 { } movieClip 3986 { frame 1 { stop(); } frame 3 { stop(); } } movieClip 3989 { frame 1 { stop(); } frame 22 { stop(); } } movieClip 3992 { } movieClip 3996 game116 { frame 1 { _root.rules = 'Avoid falling!'; _root.beatClock = false; onEnterFrame = function () { if (_root.cstatus == 1) { eye2_car._x += 6; if (Key.isDown(37)) { if (eye2_man._currentframe == 3) { eye2_car._x -= 15; eye2_man.play(); } } if (Key.isDown(39)) { if (eye2_man._currentframe == 1) { eye2_car._x -= 15; eye2_man.play(); } } if (eye2_car._x >= 260) { eye2_car._x = 260; eye2_car.play(); play(); if (eye2_car._currentframe == 22) { eye2_car.stop(); stop(); _root.gameOutcome(false); } } } }; } frame 1 { stop(); } frame 22 { _root.gameOutcome(false); } } movieClip 3999 { } movieClip 4008 { } movieClip 4015 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 4024 { } movieClip 4030 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 4039 { } movieClip 4045 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 4054 { } movieClip 4060 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 4063 { } movieClip 4067 { } movieClip 4068 game117 { frame 1 { _root.rules = 'Pop \'Em All!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { if (eye3_ball1._currentframe == 7 && eye3_ball2._currentframe == 7 && eye3_ball3._currentframe == 7 && eye3_ball4._currentframe == 7 && eye3_ball5._currentframe == 7 && eye3_ball6._currentframe == 7) { _root.gameOutcome(true); play(); } } }; } frame 1 { stop(); } instance eye3_ball1 of movieClip 4015 { onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { this.play(); if (this._currentframe == 7) { this.stop(); } } } onClipEvent (load) { function getPoints() { getX = random(500); getY = random(350); gotoX = (getX - _x) / speed; gotoY = (getY - _y) / speed; clearInterval(id); id = setInterval(getPoints, random(2000) + 500); } speed = 45; id = setInterval(getPoints, 1000); getX = random(500); getY = random(350); } onClipEvent (enterFrame) { _x = _x + gotoX; _y = _y + gotoY; } } instance eye3_ball2 of movieClip 4030 { onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { this.play(); if (this._currentframe == 7) { this.stop(); } } } onClipEvent (load) { function getPoints() { getX = random(500); getY = random(350); gotoX = (getX - _x) / speed; gotoY = (getY - _y) / speed; clearInterval(id); id = setInterval(getPoints, random(2000) + 500); } speed = 45; id = setInterval(getPoints, 1000); getX = random(500); getY = random(350); } onClipEvent (enterFrame) { _x = _x + gotoX; _y = _y + gotoY; } } instance eye3_ball3 of movieClip 4045 { onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { this.play(); if (this._currentframe == 7) { this.stop(); } } } onClipEvent (load) { function getPoints() { getX = random(500); getY = random(350); gotoX = (getX - _x) / speed; gotoY = (getY - _y) / speed; clearInterval(id); id = setInterval(getPoints, random(2000) + 500); } speed = 45; id = setInterval(getPoints, 1000); getX = random(500); getY = random(350); } onClipEvent (enterFrame) { _x = _x + gotoX; _y = _y + gotoY; } } instance eye3_ball4 of movieClip 4060 { onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { this.play(); if (this._currentframe == 7) { this.stop(); } } } onClipEvent (load) { function getPoints() { getX = random(500); getY = random(350); gotoX = (getX - _x) / speed; gotoY = (getY - _y) / speed; clearInterval(id); id = setInterval(getPoints, random(2000) + 500); } speed = 45; id = setInterval(getPoints, 1000); getX = random(500); getY = random(350); } onClipEvent (enterFrame) { _x = _x + gotoX; _y = _y + gotoY; } } instance eye3_ball5 of movieClip 4060 { onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { this.play(); if (this._currentframe == 7) { this.stop(); } } } onClipEvent (load) { function getPoints() { getX = random(500); getY = random(350); gotoX = (getX - _x) / speed; gotoY = (getY - _y) / speed; clearInterval(id); id = setInterval(getPoints, random(2000) + 500); } speed = 45; id = setInterval(getPoints, 1000); getX = random(500); getY = random(350); } onClipEvent (enterFrame) { _x = _x + gotoX; _y = _y + gotoY; } } instance eye3_ball6 of movieClip 4045 { onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { this.play(); if (this._currentframe == 7) { this.stop(); } } } onClipEvent (load) { function getPoints() { getX = random(500); getY = random(350); gotoX = (getX - _x) / speed; gotoY = (getY - _y) / speed; clearInterval(id); id = setInterval(getPoints, random(2000) + 500); } speed = 45; id = setInterval(getPoints, 1000); getX = random(500); getY = random(350); } onClipEvent (enterFrame) { _x = _x + gotoX; _y = _y + gotoY; } } frame 2 { stop(); } } movieClip 4077 { frame 1 { stop(); } frame 20 { stop(); } } movieClip 4102 { } movieClip 4105 { } movieClip 4120 game118 { frame 1 { _root.rules = 'Knock it Up!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { eye4_prey._x += 20 * _root.speed; if (eye4_prey._x > 340) { _root.gameOutcome(false); } if (Key.isDown(32)) { eye4_trap.play(); if (eye4_prey._x >= 194 && eye4_prey._x <= 294) { play(); } } if (_currentframe == 42) { _root.gameOutcome(true); stop(); } } }; } frame 1 { stop(); } } movieClip 4122 { } movieClip 4125 { } movieClip 4129 { } movieClip 4132 { } movieClip 4135 { } movieClip 4137 { } movieClip 4139 { } movieClip 4141 { } movieClip 4143 { } movieClip 4145 { } movieClip 4147 { } movieClip 4150 { } movieClip 4153 { } movieClip 4156 { } movieClip 4159 { } movieClip 4162 { } movieClip 4165 { } movieClip 4168 { } movieClip 4171 { } movieClip 4174 { } movieClip 4177 { } movieClip 4180 { } movieClip 4183 { } movieClip 4186 { } movieClip 4189 { } movieClip 4192 { } movieClip 4195 { } movieClip 4197 { } movieClip 4200 { } movieClip 4202 { } movieClip 4219 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } frame 16 { stop(); } frame 17 { stop(); } frame 18 { stop(); } frame 19 { stop(); } frame 20 { stop(); } frame 21 { stop(); } frame 22 { stop(); } frame 23 { stop(); } frame 24 { stop(); } frame 25 { stop(); } frame 26 { stop(); } frame 27 { stop(); } frame 28 { stop(); } frame 45 { stop(); } } movieClip 4221 { } movieClip 4222 { } movieClip 4225 { } movieClip 4228 { } movieClip 4230 { } movieClip 4236 { } movieClip 4238 { } movieClip 4240 { } movieClip 4242 { } movieClip 4244 { } movieClip 4245 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 4248 { } movieClip 4249 game119 { frame 1 { _root.rules = 'Fill Up!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { if (Key.isDown(37)) { eye5_fill._x -= 15; if (eye5_fill._x <= 50) { eye5_fill._x = 50; } } if (Key.isDown(39)) { eye5_fill._x += 15; if (eye5_fill._x >= 400) { eye5_fill._x = 400; } } if (Key.isDown(32)) { eye5_fill.play(); } if (eye5_fill.hitTest(eye5_whole.eye5_cap)) { eye5_whole.eye5_bottle.play(); if (eye5_whole.eye5_bottle._currentframe >= 29) { eye5_whole.stop(); eye5_strip.stop(); _root.gameOutcome(true); if (eye5_whole.eye5_bottle._currentframe == 45) { eye5_whole.eye5_bottle.stop(); } } } } }; } } movieClip 4251 { } movieClip 4253 { } movieClip 4255 { } movieClip 4259 { } movieClip 4263 { } movieClip 4266 { } movieClip 4269 { } movieClip 4272 { } movieClip 4278 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 9 { stop(); } } movieClip 4283 { } movieClip 4288 { } movieClip 4293 { } movieClip 4298 { } movieClip 4299 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 4300 game120 { frame 1 { _root.rules = 'Squish!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { if (Key.isDown(38)) { if (eye6_arrows._currentframe == 1) { eye6_arrows.play(); } else { eye6_arrows.stop(); } } if (Key.isDown(39)) { if (eye6_arrows._currentframe == 2) { eye6_arrows.play(); } else { eye6_arrows.stop(); } } if (Key.isDown(40)) { if (eye6_arrows._currentframe == 3) { eye6_arrows.play(); } else { eye6_arrows.stop(); } } if (Key.isDown(37)) { if (eye6_arrows._currentframe == 4) { eye6_arrows.play(); eye6_hand.play(); if (eye6_hand._currentframe == 9) { eye6_hand.stop(); } } else { eye6_arrows.stop(); } } if (eye6_hand._currentframe == 7) { _root.gameOutcome(true); } } }; } } movieClip 4303 { } movieClip 4307 { } movieClip 4311 { } movieClip 4328 { } movieClip 4329 { } movieClip 4337 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } } movieClip 4339 { } movieClip 4341 { } movieClip 4343 { frame 1 { stop(); } frame 25 { stop(); } } movieClip 4347 { frame 1 { stop(); } } movieClip 4350 { } movieClip 4351 game121 { frame 1 { _root.rules = 'Search and destroy!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { startDrag('_root.g.eye7_con', true); Mouse.hide(); if (eye7_targets.eye7_bar._currentframe == 7) { _root.gameOutcome(true); eye7_targets.play(); } } }; } instance eye7_back of movieClip 4303 { onClipEvent (release) { _root.g.eye7_con.play(); } } instance eye7_targets of movieClip 4343 { onClipEvent (load) { function getPoints() { getX = random(450); getY = random(300); gotoX = (getX - _x) / speed; gotoY = (getY - _y) / speed; clearInterval(id); id = setInterval(getPoints, random(2000) + 500); } speed = 40; id = setInterval(getPoints, 1000); getX = random(450); getY = random(300); } onClipEvent (enterFrame) { _x = _x + gotoX; _y = _y + gotoY; } onClipEvent (release) { this.eye7_bar.play(); _root.g.eye7_con.play(); } } } movieClip 4354 { } movieClip 4355 { } movieClip 4356 { } movieClip 4357 { } movieClip 4358 { } movieClip 4359 { } movieClip 4360 { } movieClip 4363 { } movieClip 4364 { } movieClip 4366 { } movieClip 4370 { } movieClip 4407 { } movieClip 4409 { frame 1 { stop(); } frame 19 { stop(); } } movieClip 4412 { } movieClip 4413 game122 { frame 1 { _root.rules = 'To the safe zone!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { if (Key.isDown(37)) { eye8_player._x -= 6.5; if (eye8_player._x <= 0) { eye8_player._x = 0; } } if (Key.isDown(39)) { eye8_player._x += 6.5; if (eye8_player._x >= 550 - eye8_player._width) { eye8_player._x = 550 - eye8_player._width; } } if (Key.isDown(38)) { eye8_player._y -= 6.5; if (eye8_player._y <= 0) { eye8_player._y = 0; } } if (Key.isDown(40)) { eye8_player._y += 6.5; if (eye8_player._y >= 400 - eye8_player._height) { eye8_player._y = 400 - eye8_player._height; } } if (eye8_player.hitTest(eye8_goal)) { _root.gameOutcome(true); } if (eye8_player._currentframe == 19) { eye8_player.stop(); } if (eye8_player.hitTest(eye8_meteor1) || eye8_player.hitTest(eye8_meteor2) || eye8_player.hitTest(eye8_meteor3) || eye8_player.hitTest(eye8_meteorr1) || eye8_player.hitTest(eye8_meteorr2) || eye8_player.hitTest(eye8_meteory1) || eye8_player.hitTest(eye8_meteory2) || eye8_player.hitTest(eye8_meteorg1) || eye8_player.hitTest(eye8_meteorg2) || eye8_player.hitTest(eye8_meteori1) || eye8_player.hitTest(eye8_meteori2) || eye8_player.hitTest(eye8_meteorb1) || eye8_player.hitTest(eye8_meteorb2) || eye8_player.hitTest(eye8_meteorp1) || eye8_player.hitTest(eye8_meteorp2) || eye8_player.hitTest(eye8_enemy) || eye8_player.hitTest(eye8_enemy2)) { _root.gameOutcome(false); eye8_player.play(); } } }; } instance eye8_enemy of movieClip 4366 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_root.eye8_player._x > _x) { _x = _x + 2.5; } } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_root.eye8_player._x < _x) { _x = _x - 2.5; } } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_root.eye8_player._y > _y) { _y = _y + 2.5; } } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_root.eye8_player._y < _y) { _y = _y - 2.5; } } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { varX = _root.g.eye8_player._x - this._x; varY = -1 * (_root.g.eye8_player._y - this._y); angle = Math.atan2(varY, varX); angle = Math.round((angle / Math.PI) * 180); this._rotation = -1 * angle; } } } instance eye8_enemy2 of movieClip 4366 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_root.eye8_player._x > _x) { _x = _x + 2.5; } } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_root.eye8_player._x < _x) { _x = _x - 2.5; } } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_root.eye8_player._y > _y) { _y = _y + 2.5; } } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_root.eye8_player._y < _y) { _y = _y - 2.5; } } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { varX = _root.g.eye8_player._x - this._x; varY = -1 * (_root.g.eye8_player._y - this._y); angle = Math.atan2(varY, varX); angle = Math.round((angle / Math.PI) * 180); this._rotation = -1 * angle; } } } } movieClip 4415 { } movieClip 4418 { frame 16 { stop(); } } movieClip 4424 { } movieClip 4425 { frame 1 { stop(); } } movieClip 4427 { } movieClip 4429 { } movieClip 4430 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4431 { } movieClip 4434 { } movieClip 4435 game123 { frame 1 { function ends_game() { x = 1; while (x <= respawn_count) { fish = eval('fish_' + x); ++x; } } function creates_fish() { if (amount_of_fishes < 4) { ++respawn_count; fish_1.duplicateMovieClip('fish_' + respawn_count, getNextHighestDepth()); fish_1._y = Number(random(150) + 240); ++amount_of_fishes; } } _root.rules = 'Dont let them escape!'; _root.beatClock = false; respawn_count = 1; amount_of_fishes = 1; stop(); frame_one = _currentframe; } instance bird of movieClip 4425 { onClipEvent (enterFrame) { if (Key.isDown(32) == true || Key.isDown(40) == true) { this.play(); } if (Key.isDown(39) == true) { this._x += 5; if (this._x >= 500) { this._x -= 5; } } else { if (Key.isDown(37) == true) { this._x -= 5; if (this._x <= 60) { this._x += 5; } } } if (this.hitTest(_parent.splasher)) { _parent.splash._x = this._x; _parent.splash._y = 194; _parent.splash.gotoAndPlay(1); } } } instance fish_1 of movieClip 4430 { onClipEvent (load) { fish_speed_var = Number(random(4) + 6); } onClipEvent (enterFrame) { _parent.creates_fish(); this._x -= fish_speed_var; if (this._x > 578 || this._x < -17 || this.hitTest(_parent.bird)) { this._x = 578; this._y = Number(random(150) + 240); fish_speed_var = Number(random(4) + 6); } if (this.hitTest(_parent.end)) { _parent.ends_game(); _root.gameOutcome(false); } if (this._x <= 241.6) { play(); } else { gotoAndStop(1); } if (_parent.frame_one != _parent._currentframe) { _parent.ends_game(); } } } } movieClip 4438 { } movieClip 4449 { } movieClip 4453 { } movieClip 4454 { } movieClip 4455 { instance of movieClip 4454 { onClipEvent (load) { this._xscale = Math.random() * 75 + 75; this._yscale = this._xscale; } } } movieClip 4460 { frame 1 { stop(); } } movieClip 4467 { frame 1 { stop(); } frame 47 { gotoAndPlay(10); } } movieClip 4468 { frame 1 { stop(); } frame 20 { stop(); } } movieClip 4470 { } movieClip 4476 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 4477 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 4479 { } movieClip 4484 { } movieClip 4494 { } movieClip 4498 { } movieClip 4500 { frame 29 { gotoAndPlay(10); } } movieClip 4501 { frame 1 { stop(); } frame 2 { _root.gameOutcome(true); } frame 10 { stop(); } } movieClip 4504 { } movieClip 4506 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4507 { instance Nug8_face of movieClip 4501 { onClipEvent (load) { Nug8_presstime = 0; Nug8_frame = 1; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_parent.Nug8_gil.Nug8_slice._currentframe == 19) { play(); _parent.Nug8_hand.nextFrame(); } if (_parent.Nug8_gil.Nug8_slice._currentframe == 10) { Nug8_presstime = 0; Nug8_frame = 3; _parent.Nug8_arrow.gotoAndStop(3); if (Key.isDown(32)) { ++Nug8_presstime; if (Nug8_presstime == 1) { _parent.Nug8_gil.Nug8_slice.play(); _parent.Nug8_gil.Nug8_slice.Nug8_pull2.play(); _parent.Nug8_arrow.Nug8_space.play(); } } } else { if (_parent.Nug8_gil.Nug8_slice._currentframe <= 9) { if (Nug8_frame == 1) { _parent.Nug8_arrow.gotoAndStop(1); if (Key.isDown(39)) { ++Nug8_presstime; if (Nug8_presstime == 1) { _parent.Nug8_arrow.gotoAndStop(2); _parent.Nug8_gil.Nug8_slice.Nug8_pull.play(); _parent.Nug8_gil.Nug8_slice.nextFrame(); Nug8_frame = 2; } } else { Nug8_presstime = 0; } } } } if (Nug8_frame == 2) { _parent.Nug8_arrow.gotoAndStop(2); if (Key.isDown(37)) { ++Nug8_presstime; if (Nug8_presstime == 1) { _parent.Nug8_arrow.gotoAndStop(1); _parent.Nug8_gil.Nug8_slice.Nug8_pull.play(); _parent.Nug8_gil.Nug8_slice.nextFrame(); Nug8_frame = 1; } } else { Nug8_presstime = 0; } } } } } } movieClip 4510 { } movieClip 4511 game124 { frame 1 { _root.rules = 'Chop \'is \'ead off!'; _root.beatClock = true; } } movieClip 4513 { frame 128 { _root.gameOutcome(false); } } movieClip 4538 { frame 1 { stop(); onEnterFrame = function () { if (_root.cstatus == 1) { if (Key.isDown(39)) { play(); } } }; } frame 9 { stop(); onEnterFrame = function () { if (Key.isDown(38)) { play(); } }; } frame 15 { stop(); onEnterFrame = function () { if (Key.isDown(40)) { play(); } }; } frame 20 { stop(); onEnterFrame = function () { if (Key.isDown(37)) { play(); } }; } frame 23 { stop(); onEnterFrame = function () { if (Key.isDown(38)) { play(); } }; } frame 29 { stop(); onEnterFrame = function () { if (_root.cstatus == 1) { if (Key.isDown(40)) { play(); } } }; } frame 35 { stop(); } frame 38 { stop(); onEnterFrame = function () { if (Key.isDown(38)) { play(); } }; } frame 44 { stop(); onEnterFrame = function () { if (Key.isDown(40)) { play(); } }; } frame 50 { stop(); onEnterFrame = function () { if (Key.isDown(37)) { play(); } }; } frame 56 { stop(); onEnterFrame = function () { if (Key.isDown(38)) { play(); } }; } frame 62 { stop(); onEnterFrame = function () { if (Key.isDown(40)) { play(); } }; } frame 68 { stop(); onEnterFrame = function () { if (Key.isDown(37)) { play(); } }; } frame 73 { stop(); } } movieClip 4630 { frame 1 { stop(); onEnterFrame = function () { if (_root.cstatus == 1) { if (Key.isDown(39)) { play(); } } }; } frame 9 { stop(); onEnterFrame = function () { if (Key.isDown(38)) { play(); } }; } frame 15 { stop(); onEnterFrame = function () { if (Key.isDown(40)) { play(); } }; } frame 20 { stop(); onEnterFrame = function () { if (Key.isDown(37)) { play(); } }; } frame 23 { stop(); onEnterFrame = function () { if (Key.isDown(38)) { play(); } }; } frame 29 { stop(); onEnterFrame = function () { if (_root.cstatus == 1) { if (Key.isDown(40)) { play(); } } }; } frame 35 { stop(); _root.gameOutcome(true); } frame 38 { stop(); onEnterFrame = function () { if (Key.isDown(38)) { play(); } }; } frame 44 { stop(); onEnterFrame = function () { if (Key.isDown(40)) { play(); } }; } frame 50 { stop(); onEnterFrame = function () { if (Key.isDown(37)) { play(); } }; } frame 56 { stop(); onEnterFrame = function () { if (Key.isDown(38)) { play(); } }; } frame 62 { stop(); onEnterFrame = function () { if (Key.isDown(40)) { play(); } }; } frame 68 { stop(); onEnterFrame = function () { if (Key.isDown(37)) { play(); } }; } frame 73 { stop(); _root.gameOutcome(true); } } movieClip 4632 { } movieClip 4635 { } movieClip 4636 game125 { frame 1 { _root.rules = 'Pick the lock'; _root.beatClock = true; } } movieClip 4643 { } movieClip 4645 { } movieClip 4647 { } movieClip 4649 { } movieClip 4651 { } movieClip 4662 { frame 1 { jumping = false; stop(); } frame 2 { jumping = true; } } movieClip 4664 { } movieClip 4666 { } movieClip 4668 { } movieClip 4670 { } movieClip 4672 { } movieClip 4693 { } movieClip 4694 { frame 1 { } instance hitme_mc of movieClip 4651 { onClipEvent (enterFrame) { this._visible = false; } } } movieClip 4695 { } movieClip 4696 { frame 1 { _root.rules = 'Round the Sheep!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { speed = 10; if (this.home_mc.win1 == true and this.home_mc.win2 == true) { _root.gameOutcome(true); trace('win!'); } } }; } instance home_mc of movieClip 4645 { onClipEvent (load) { win1 = false; win2 = false; win3 = false; } onClipEvent (enterFrame) { if (this._parent.sheep1.hitTest(this)) { win1 = true; } if (this._parent.sheep2.hitTest(this)) { win2 = true; } if (this._parent.sheep3.hitTest(this)) { win3 = true; } } } instance of movieClip 4647 { onClipEvent (load) { this._x = random(470) - 230; this._y = random(300) - 90; } } instance of movieClip 4647 { onClipEvent (load) { this._x = random(470) - 230; this._y = random(300) - 90; } } instance of movieClip 4649 { onClipEvent (load) { this._x = random(470) - 230; this._y = random(300) - 90; } } instance of movieClip 4649 { onClipEvent (load) { this._x = random(470) - 230; this._y = random(300) - 90; } } instance of movieClip 4649 { onClipEvent (load) { this._x = random(470) - 230; this._y = random(300) - 90; } } instance of movieClip 4647 { onClipEvent (load) { this._x = random(470) - 230; this._y = random(300) - 90; } } instance of movieClip 4649 { onClipEvent (load) { this._x = random(470) - 230; this._y = random(300) - 90; } } instance of movieClip 4649 { onClipEvent (load) { this._x = random(470) - 230; this._y = random(300) - 90; } } instance left of movieClip 4651 { onClipEvent (enterFrame) { this._visible = false; } } instance right of movieClip 4651 { onClipEvent (enterFrame) { this._visible = false; } } instance of movieClip 4651 { onClipEvent (enterFrame) { sp1 = _parent.speed; this._visible = false; if (this._parent.char_mc.in_mc.hitme_mc.hitTest(this)) { _parent.char_mc.in_mc._y -= sp1; } } } instance of movieClip 4651 { onClipEvent (enterFrame) { sp1 = _parent.speed; this._visible = false; if (this._parent.char_mc.in_mc.hitme_mc.hitTest(this)) { _parent.char_mc.in_mc._y -= sp1; } } } instance of movieClip 4651 { onClipEvent (enterFrame) { sp1 = _parent.speed; this._visible = false; if (this._parent.char_mc.in_mc.hitme_mc.hitTest(this)) { _parent.char_mc.in_mc._y -= sp1; } } } instance center_mc of movieClip 4651 { onClipEvent (enterFrame) { sp1 = _parent.speed; this._visible = false; if (_parent.char_mc.in_mc.hitTest(this)) { _parent.char_mc.in_mc._y += sp1; } } } instance sheep1 of movieClip 4662 { onClipEvent (load) { this._x = random(470) - 230; this._y = random(280) - 100; this._parent.win1 = false; if (this._parent.left.hitTest(this)) { this._xscale = 35; } else { if (this._parent.right.hitTest(this)) { this._xscale = -35; } } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { sp1 = _parent.speed * 2; if (this._parent.left.hitTest(this)) { this._xscale = 35; } else { if (this._parent.right.hitTest(this)) { this._xscale = -35; } } if (!this._parent.center_mc.hitTest(this)) { if (_parent.char_mc.in_mc.hitme_mc.hitTest(this)) { this._x = (this._x + _parent.center_mc._x) / (sp1 / (sp1 - 1)); this._y = (this._y + _parent.center_mc._y) / (sp1 / (sp1 - 1)); if (jumping == false) { this.gotoAndPlay(2); } } } else { this._parent.win1 = true; } } } } instance of movieClip 4651 { onClipEvent (enterFrame) { sp1 = _parent.speed; this._visible = false; if (this._parent.char_mc.in_mc.hitme_mc.hitTest(this)) { _parent.char_mc.in_mc._y -= sp1; } } } instance sheep2 of movieClip 4662 { onClipEvent (load) { this._x = random(470) - 230; this._y = random(280) - 100; this._parent.win2 = false; if (this._parent.left.hitTest(this)) { this._xscale = 35; } else { if (this._parent.right.hitTest(this)) { this._xscale = -35; } } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { sp1 = _parent.speed * 2; if (this._parent.left.hitTest(this)) { this._xscale = 35; } else { if (this._parent.right.hitTest(this)) { this._xscale = -35; } } if (!this._parent.center_mc.hitTest(this)) { if (_parent.char_mc.in_mc.hitme_mc.hitTest(this)) { this._x = (this._x + _parent.center_mc._x) / (sp1 / (sp1 - 1)); this._y = (this._y + _parent.center_mc._y) / (sp1 / (sp1 - 1)); if (jumping == false) { this.gotoAndPlay(2); } } } else { this._parent.win2 = true; } } } } instance char_mc of movieClip 4695 { onClipEvent (load) { keyed = false; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { sp1 = _parent.speed; if (Key.isDown(39)) { this._rotation -= sp1 / 2; keyed = true; this.in_mc.right_mc._visible = true; this.in_mc.left_mc._visible = false; this.in_mc.inside_mc._visible = false; this.in_mc.out_mc._visible = false; } else { if (Key.isDown(37)) { this._rotation += sp1 / 2; keyed = true; this.in_mc.right_mc._visible = false; this.in_mc.left_mc._visible = true; this.in_mc.inside_mc._visible = false; this.in_mc.out_mc._visible = false; } else { if (Key.isDown(38)) { this.in_mc._y -= sp1; keyed = true; this.in_mc.right_mc._visible = false; this.in_mc.left_mc._visible = false; this.in_mc.inside_mc._visible = true; this.in_mc.out_mc._visible = false; } else { if (Key.isDown(40)) { this.in_mc._y += sp1; keyed = true; this.in_mc.right_mc._visible = false; this.in_mc.left_mc._visible = false; this.in_mc.inside_mc._visible = false; this.in_mc.out_mc._visible = true; } else { if (keyed == true and !Key.isDown(37) and !Key.isDown(38) and !Key.isDown(39) and !Key.isDown(39)) { this.in_mc.right_mc._visible = false; this.in_mc.left_mc._visible = false; this.in_mc.inside_mc._visible = false; this.in_mc.out_mc._visible = false; } } } } } } } } } movieClip 4699 { } movieClip 4700 game127 { } movieClip 4705 { } movieClip 4706 { } movieClip 4721 { } movieClip 4725 { } movieClip 4726 { } movieClip 4740 { } movieClip 4748 { frame 128 { stop(); } } movieClip 4751 game128 { frame 1 { stop(); } frame 1 { _root.rules = 'Repel the plasma'; _root.beatClock = false; onEnterFrame = function () { if (_root.cstatus == 1) { gotoAndStop(2); } }; } frame 2 { onEnterFrame = function () { if (_root.timer._currentframe == 128) { _root.gameOutcome(false); } }; } frame 2 { _root.rules = 'Repel the plasma'; _root.beatClock = false; onEnterFrame = function () { if (_root.Re21_blank._currentframe == 1) { _root.gameOutcome(false); } }; } instance of movieClip 4706 { onClipEvent (mouseMove) { Xd = _root._xmouse - _x; Yd = _root._ymouse - _y; radAngle = Math.atan2(Yd, Xd); _rotation = int(radAngle * 360 / 6.283185307179586 + 90); updateAfterEvent(); } } instance of movieClip 4721 { onClipEvent (enterFrame) { if (_root._xmouse > _x) { _x = _x - 2; } } onClipEvent (enterFrame) { if (_root._xmouse < _x) { _x = _x + 2; } } onClipEvent (enterFrame) { if (_root._ymouse > _y) { _y = _y - 2; } } onClipEvent (enterFrame) { if (_root._ymouse < _y) { _y = _y + 2; } } } instance of movieClip 4721 { onClipEvent (enterFrame) { if (_root._xmouse > _x) { _x = _x - 2; } } onClipEvent (enterFrame) { if (_root._xmouse < _x) { _x = _x + 2; } } onClipEvent (enterFrame) { if (_root._ymouse > _y) { _y = _y - 2; } } onClipEvent (enterFrame) { if (_root._ymouse < _y) { _y = _y + 2; } } } instance of movieClip 4721 { onClipEvent (enterFrame) { if (_root._xmouse > _x) { _x = _x - 2; } } onClipEvent (enterFrame) { if (_root._xmouse < _x) { _x = _x + 2; } } onClipEvent (enterFrame) { if (_root._ymouse > _y) { _y = _y - 2; } } onClipEvent (enterFrame) { if (_root._ymouse < _y) { _y = _y + 2; } } } instance of movieClip 4721 { onClipEvent (enterFrame) { if (_root._xmouse > _x) { _x = _x - 2; } } onClipEvent (enterFrame) { if (_root._xmouse < _x) { _x = _x + 2; } } onClipEvent (enterFrame) { if (_root._ymouse > _y) { _y = _y - 2; } } onClipEvent (enterFrame) { if (_root._ymouse < _y) { _y = _y + 2; } } } instance of movieClip 4721 { onClipEvent (enterFrame) { if (_root._xmouse > _x) { _x = _x - 2; } } onClipEvent (enterFrame) { if (_root._xmouse < _x) { _x = _x + 2; } } onClipEvent (enterFrame) { if (_root._ymouse > _y) { _y = _y - 2; } } onClipEvent (enterFrame) { if (_root._ymouse < _y) { _y = _y + 2; } } } instance plasma of movieClip 4721 { onClipEvent (enterFrame) { if (_root._xmouse > _x) { _x = _x - 2; } } onClipEvent (enterFrame) { if (_root._xmouse < _x) { _x = _x + 2; } } onClipEvent (enterFrame) { if (_root._ymouse > _y) { _y = _y - 2; } } onClipEvent (enterFrame) { if (_root._ymouse < _y) { _y = _y + 2; } } } instance plasma of movieClip 4721 { onClipEvent (enterFrame) { if (_root._xmouse > _x) { _x = _x - 2; } } onClipEvent (enterFrame) { if (_root._xmouse < _x) { _x = _x + 2; } } onClipEvent (enterFrame) { if (_root._ymouse > _y) { _y = _y - 2; } } onClipEvent (enterFrame) { if (_root._ymouse < _y) { _y = _y + 2; } } onClipEvent (load) { radius = 38; } onClipEvent (enterFrame) { i = 0; while (i < 360) { X = Math.cos(i * 0.0174532925199433) * radius + _x; Y = Math.sin(i * 0.0174532925199433) * radius + _y; if (_root.reactor.hitTest(X, Y, true)) { _root.gotoAndStop(3); } i += 15; } } } } movieClip 4754 { } movieClip 4755 { } movieClip 4757 { } movieClip 4760 { } movieClip 4762 { } movieClip 4763 { } movieClip 4766 { } movieClip 4767 { } movieClip 4768 { frame 1 { stop(); } frame 6 { stop(); } } movieClip 4769 { frame 1 { stop(); } frame 6 { stop(); } } movieClip 4772 { } movieClip 4773 game131 { instance of movieClip 4763 { onClipEvent (load) { nmbr = 0; md = false; Mouse.hide(); tim = 0; _root.rules = 'Clean the Bike'; _root.beatClock = true; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (tim <= 127) { _x = _parent._xmouse; _y = _parent._ymouse; if (md) { duplicateMovieClip(_parent.clip.circ, 'c' + nmbr, nmbr); _parent.clip['c' + nmbr]._x = _x; _parent.clip['c' + nmbr]._y = _y; ++nmbr; duplicateMovieClip(_parent.clip2.circ, 'c' + nmbr, nmbr); _parent.clip2['c' + nmbr]._x = _x; _parent.clip2['c' + nmbr]._y = _y; ++nmbr; } } tim += 1; trace(tim); if (tim == 99) { var h = 20; var w = 80; win = true; var i = 0; while (i < w) { var j = 0; while (j < h) { if (_parent.guid.hitTest(i * _parent.bike._width / w + _parent.bike._x, j * _parent.bike._height / h + _parent.bike._y, true)) { if (!_parent.clip2.hitTest(i * _parent.bike._width / w + _parent.bike._x, j * _parent.bike._height / h + _parent.bike._y, true)) { win = false; j = 1000; i = 1000; } else { win = true; trace('win'); } } ++j; } ++i; } if (!win) { _parent.lose.play(); _root.gameOutcome(false); } else { _parent.clip.box.play(); _parent.winc.play(); _root.gameOutcome(true); } } } } onClipEvent (mouseDown) { md = true; } onClipEvent (mouseUp) { md = false; } } } movieClip 4774 { } movieClip 4775 { frame 1 { box = new Array(this); box = [new Vector(275, 200), new Vector(-140, -140), new Vector(140, -140), new Vector(140, 140), new Vector(-140, 140)]; createEmptyMovieClip('boxclip', 1); numbal = 3; rs = 0; balls = new Array(this); var k = 0; while (k < numbal) { duplicateMovieClip(this.ball, 'b' + k, k + 2); balls[k] = this['b' + k]; balls[k]._x = random(200) + 175; balls[k]._y = random(200) + 100; balls[k].speed = new Vector(Math.random() * 10 - 5, Math.random() * 10 - 5); balls[k]._height = random(25) + 4; balls[k]._width = balls[k]._height; ++k; } edge = 1; tim = 0; numb = 0; col = 16777215; siz = 4.666666666666667; angTest = 17.5484006137923; _root.rules = 'Catch All'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { (tim == 30) ? 0; var k = 0; while (k < numbal) { balls[k].speed.y += 1; balls[k]._x += balls[k].speed.x; balls[k]._y += balls[k].speed.y; ++k; } if (Key.isDown(37)) { rs -= 1; } if (Key.isDown(39)) { rs += 1; } } rs *= 0.95; var i = 1; while (i < 5) { box[i].rotate(rs); ++i; } if (_root.cstatus == 1) { var i = 1; while (i < 5) { var j = i + 1; if (j < 5) { } else { j = 1; } 0; var k = 0; while (k < numbal) { var rad = balls[k]._width / 2; var p = (new Vector(box[i].x - box[j].x, box[i].y - box[j].y)).perpendicular(); p.norm(); var d = new Vector(balls[k]._x - (box[i].x + box[0].x) + p.x * rad, balls[k]._y - (box[i].y + box[0].y) + p.y * rad); if (Vector.dot(p, d) > 0) { var dis = Math.sqrt((balls[k]._x + p.x * rad - (box[i].x + box[0].x)) * (balls[k]._x + p.x * rad - (box[i].x + box[0].x)) + (this.ball._y + p.y * rad - (box[i].y + box[0].y)) * (balls[k]._y + p.y * rad - (box[i].y + box[0].y))); var t = -dis * Math.sin(Vector.angle(new Vector(box[j].x - box[i].x, box[j].y - box[i].y), new Vector(balls[k]._x + p.x * rad - (box[i].x + box[0].x), balls[k]._y + p.y * rad - (box[i].y + box[0].y))) * 0.0174532925199433); balls[k]._x += p.x * t; balls[k]._y += p.y * t; balls[k].speed = balls[k].speed.reflect(p); balls[k].speed.vLength() > 1 ? balls[k].speed.scale(0.99) : balls[k].speed.scale(0); if (Vector.angle(new Vector(balls[k]._x - box[0].x, balls[k]._y - box[0].y), new Vector((box[edge].x - box[edge2].x) / 2, (box[edge].y - box[edge2].y) / 2)) < angTest && j == edge) { removeMovieClip(balls[k]); numb += 1; if (numb == numbal) { col = 16711680; _root.gameOutcome(true); } } } ++k; } ++i; } } with (boxclip) { clear(); lineStyle(0, col, 0); moveTo(box[0].x + box[1].x, box[0].y + box[1].y); beginFill(col, 100); lineTo(box[0].x + box[2].x, box[0].y + box[2].y); lineTo(box[0].x + box[3].x, box[0].y + box[3].y); lineTo(box[0].x + box[4].x, box[0].y + box[4].y); lineTo(box[0].x + box[1].x, box[0].y + box[1].y); endFill(); lineStyle(20, col, 100); edge2 = edge + 1; if (edge2 < 5) { } else { edge2 = 1; } 0; moveTo((box[edge].x - box[edge2].x) / 2 + box[0].x, (box[edge].y - box[edge2].y) / 2 + box[0].y); lineTo((box[edge].x - box[edge2].x) / 2 + box[0].x - (box[edge].y - box[edge2].y) / 2 / siz, (box[edge].y - box[edge2].y) / 2 + box[0].y + (box[edge].x - box[edge2].x) / 2 / siz); moveTo((box[edge].x - box[edge2].x) / 2 + box[0].x, (box[edge].y - box[edge2].y) / 2 + box[0].y); lineTo((box[edge].x - box[edge2].x) / 2 + box[0].x + (box[edge].y - box[edge2].y) / 2 / siz, (box[edge].y - box[edge2].y) / 2 + box[0].y - (box[edge].x - box[edge2].x) / 2 / siz); } }; } } movieClip 4778 { } movieClip 4779 game132 { } movieClip 4784 { } movieClip 4787 { } movieClip 4800 { frame 1 { stop(); } frame 13 { stop(); } } movieClip 4804 { } movieClip 4806 { } movieClip 4807 { frame 1 { stop(); } instance goo of movieClip 4806 { onClipEvent (load) { _visible = false; if (_parent.hitTest(_parent._parent.bug1._x, _parent._parent.bug1._y) && _parent._parent.bug1._currentframe == 1) { _visible = true; _parent._parent.bug1.play(); } if (_parent.hitTest(_parent._parent.bug2._x, _parent._parent.bug2._y) && _parent._parent.bug2._currentframe == 1) { _visible = true; _parent._parent.bug2.play(); } if (_parent.hitTest(_parent._parent.bug3._x, _parent._parent.bug3._y) && _parent._parent.bug3._currentframe == 1) { _visible = true; _parent._parent.bug3.play(); } } } } movieClip 4811 { } movieClip 4812 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 4813 { frame 1 { _root.rules = 'Debug'; _root.beatClock = true; } instance bug1 of movieClip 4800 { onClipEvent (load) { _x = random(550); dir = random(3) - 1; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_currentframe == 1) { _x = _x + 3 * dir; if (_x >= 0) { } else { _x = 0; } 0; if (_x <= 550) { } else { _x = 500; } 0; if (random(20) != 0) { } else { dir = random(3) - 1; } 0; } } } } instance bug2 of movieClip 4800 { onClipEvent (load) { _x = random(550); dir = random(3) - 1; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_currentframe == 1) { _x = _x + 3 * dir; if (_x >= 0) { } else { _x = 0; } 0; if (_x <= 550) { } else { _x = 500; } 0; if (random(20) != 0) { } else { dir = random(3) - 1; } 0; } } } } instance bug3 of movieClip 4800 { onClipEvent (load) { _x = random(550); dir = random(3) - 1; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_currentframe == 1) { _x = _x + 3 * dir; if (_x >= 0) { } else { _x = 0; } 0; if (_x <= 550) { } else { _x = 500; } 0; if (random(20) != 0) { } else { dir = random(3) - 1; } 0; } } } } instance of movieClip 4807 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(32)) { play(); } if (_currentframe == 1) { if (Key.isDown(37)) { _x = _x - 15; } if (Key.isDown(39)) { _x = _x + 15; } if (_x >= 0) { } else { _x = 0; } 0; if (_x <= 550) { } else { _x = 500; } 0; } if (_parent.bug1._currentframe != 1 && _parent.bug2._currentframe != 1 && _parent.bug3._currentframe != 1 && _parent.happy._currentframe == 1) { _parent.happy.play(); _root.gameOutcome(true); } } } } } movieClip 4816 { } movieClip 4817 game133 { } movieClip 4819 { } movieClip 4827 { } movieClip 4828 { frame 1 { stop(); } instance of movieClip 4827 { onClipEvent (load) { this.gotoAndStop(_parent.pass); } } frame 6 { stop(); } } movieClip 4830 { frame 71 { stop(); } } movieClip 4833 { } movieClip 4834 game134 { instance of movieClip 4828 { onClipEvent (load) { pass = 1; _root.rules = 'Differentiate'; _root.beatClock = true; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_currentframe == 1) { if (Key.isDown(39)) { play(); pass = 2; _root.gameOutcome(true); } if (Key.isDown(37) || Key.isDown(38) || Key.isDown(40)) { play(); _root.gameOutcome(false); } } } } } } movieClip 4841 { } movieClip 4850 { } movieClip 4851 { instance of movieClip 4841 { onClipEvent (load) { stop(); t = random(4) + 1; this.gotoAndStop(t); k = false; _root.rules = 'evolve'; _root.beatClock = true; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this.gotoAndStop(t); if (Key.isDown(37) && !k) { k = true; if (t == 3) { _parent.ec.nextFrame(); t = random(5) + 1; } } if (Key.isDown(39) && !k) { k = true; if (t == 1) { _parent.ec.nextFrame(); t = random(5) + 1; } } if (Key.isDown(38) && !k) { k = true; if (t == 2) { _parent.ec.nextFrame(); t = random(5) + 1; } } if (Key.isDown(40) && !k) { k = true; if (t == 4) { _parent.ec.nextFrame(); t = random(5) + 1; } } if (Key.isDown(32) && !k) { k = true; if (t == 5) { _parent.ec.nextFrame(); t = random(5) + 1; } } if (!Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40) && !Key.isDown(32)) { k = false; } if (_parent.ec._currentframe == 8) { _root.gameOutcome(true); } } } } instance ec of movieClip 4850 { onClipEvent (load) { stop(); } } } movieClip 4854 { } movieClip 4855 game135 { } movieClip 4857 { } movieClip 4871 { } movieClip 4872 { } movieClip 4879 { frame 1 { stop(); } } movieClip 4887 { frame 1 { stop(); } frame 4 { ++ticker; } } movieClip 4890 { } movieClip 4893 { } movieClip 4894 game136 { frame 1 { numb = 0; _root.rules = 'How much wood?'; _root.beatClock = true; } instance j1 of movieClip 4879 { onClipEvent (load) { tim = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { ++tim; if (tim < 80 && _currentframe == 1 && random(20) == 0) { play(); ++_parent.numb; } } } } instance j2 of movieClip 4879 { onClipEvent (load) { tim = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { ++tim; if (tim < 80 && _currentframe == 1 && random(20) == 0) { play(); ++_parent.numb; } } } } instance j3 of movieClip 4879 { onClipEvent (load) { tim = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { ++tim; if (tim < 80 && _currentframe == 1 && random(20) == 0) { play(); ++_parent.numb; } } } } instance of movieClip 4887 { onClipEvent (load) { ticker = 0; tim = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(32) && tim < 99) { play(); } ++tim; if (tim == 99) { if (ticker == _parent.numb) { _root.gameOutcome(true); } else { _root.gameOutcome(false); } } } } } } movieClip 4895 { } movieClip 4898 { frame 1 { stop(); } frame 10 { stop(); } } movieClip 4899 { } movieClip 4901 { } movieClip 4904 { } movieClip 4905 { } movieClip 4908 { } movieClip 4910 { } movieClip 4912 { } movieClip 4913 { frame 1 { stop(); } frame 6 { stop(); } } movieClip 4914 { frame 1 { stop(); } frame 6 { stop(); } } movieClip 4915 { instance of movieClip 4910 { onClipEvent (load) { nmbr = 0; md = false; Mouse.hide(); tim = 0; _root.rules = 'Paint'; _root.beatClock = true; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (tim <= 99) { _x = _parent._xmouse; _y = _parent._ymouse; if (md) { duplicateMovieClip(_parent.clip.circ, 'c' + nmbr, nmbr); _parent.clip['c' + nmbr]._x = _x; _parent.clip['c' + nmbr]._y = _y; ++nmbr; duplicateMovieClip(_parent.clip2.circ, 'c' + nmbr, nmbr); _parent.clip2['c' + nmbr]._x = _x; _parent.clip2['c' + nmbr]._y = _y; ++nmbr; } } tim += 1; if (tim == 99) { var h = 50; var w = 20; win = true; var i = 0; while (i < w) { var j = 0; while (j < h) { if (!_parent.clip2.hitTest(i * _parent.can._width / w + _parent.can._x, j * _parent.can._height / h + _parent.can._y, true)) { win = false; } ++j; } ++i; } if (!win) { _parent.lose.play(); _root.gameOutcome(false); } else { _parent.clip.box.play(); _parent.winc.play(); _root.gameOutcome(true); } } } } onClipEvent (mouseDown) { if (_root.cstatus == 1) { md = true; } } onClipEvent (mouseUp) { md = false; } } } movieClip 4918 { } movieClip 4919 game137 { } movieClip 4922 { } movieClip 4924 { } movieClip 4926 { } movieClip 4929 { } movieClip 4931 { } movieClip 4933 { } movieClip 4935 { } movieClip 4937 { } movieClip 4939 { } movieClip 4952 { frame 105 { stop(); } } movieClip 4955 { } movieClip 4958 { } movieClip 4959 game138 { instance of movieClip 4952 { onClipEvent (load) { stop(); space = false; _root.rules = 'Seppuku'; _root.beatClock = true; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_currentframe < 50) { if (Key.isDown(39)) { nextFrame(); } } if (_currentframe == 50) { play(); _root.gameOutcome(true); } } } } } movieClip 4962 { } movieClip 4967 { } movieClip 4969 { } movieClip 4971 { } movieClip 4972 { } movieClip 4974 { } movieClip 4992 { } movieClip 4993 { frame 2 { stop(); } } movieClip 4994 { } movieClip 4995 { } movieClip 4997 { } movieClip 4998 { } movieClip 5001 { } movieClip 5004 { } movieClip 5005 game139 { frame 1 { filler0 = new Color(sumos.sum0.guts.dude.diaper.fill); hig0 = new Color(sumos.sum0.guts.dude.diaper.hig); stroke0 = new Color(sumos.sum0.guts.dude.diaper.stroke); filler1 = new Color(sumos.sum1.guts.dude.diaper.fill); hig1 = new Color(sumos.sum1.guts.dude.diaper.hig); stroke1 = new Color(sumos.sum1.guts.dude.diaper.stroke); sumos.sum0.onEnterFrame = function () { filler0.setRGB(13369344); hig0.setRGB(16711680); stroke0.setRGB(11730944); }; sumos.sum1.onEnterFrame = function () { filler1.setRGB(3892113); hig1.setRGB(8430540); stroke1.setRGB(13158); }; _root.rules = 'Sumo'; _root.beatClock = true; } instance sumos of movieClip 4995 { onClipEvent (load) { _x = 275; } } instance of movieClip 4998 { onClipEvent (load) { stop(); ldown = false; rdown = false; speed2 = 3; speed1 = 14; t = 0; t1 = 2; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (t <= 0) { _parent.sumos._x -= speed2; } t -= 1; if (Key.isDown(39) && !rdown) { rdown = true; if (_currentframe == 1) { _parent.sumos._x += speed1; t = t1; this.gotoAndStop(2); } } if (Key.isDown(37) && !ldown) { ldown = true; if (_currentframe == 2) { _parent.sumos._x += speed1; t = t1; this.gotoAndStop(1); } } if (!Key.isDown(37)) { ldown = false; } if (!Key.isDown(39)) { rdown = false; } if (_parent.sumos._x > 475) { _root.gameOutcome(true); } if (_parent.sumos._x < 75) { _root.gameOutcome(false); } } } } } movieClip 5007 { } movieClip 5008 { } movieClip 5010 { } movieClip 5012 { instance of movieClip 5010 { onClipEvent (load) { rot = new Vector(_parent._xmouse - _x, _parent._ymouse - _y); fr = 0; md = false; prot = 0; _parent.weight.stop(); _root.rules = 'Wind Up'; _root.beatClock = true; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (md) { var newrot = new Vector(_parent._xmouse - _x, _parent._ymouse - _y); ofr = fr; fr += Vector.angle2(newrot, rot); if (isNaN(fr)) { fr = ofr; } rot.x = newrot.x; rot.y = newrot.y; fr2 = Math.round(fr / 28); if (fr2 < 100) { } else { fr2 = 100; } 0; if (fr2 > 1) { } else { fr2 = 1; } 0; _parent.weight.gotoAndStop(fr2); _rotation = Vector.angle2(new Vector(0, 1), rot) + 180 + prot; if (_parent.weight._currentframe >= 100) { _root.gameOutcome(true); } } } } onClipEvent (mouseDown) { if (_root.cstatus == 1) { md = true; rot = new Vector(_parent._xmouse - _x, _parent._ymouse - _y); prot = _rotation - Vector.angle2(new Vector(0, 1), rot) + 180; } } onClipEvent (mouseUp) { md = false; } } } movieClip 5015 { } movieClip 5016 game140 { } movieClip 5021 { frame 1 { stop(); } frame 10 { stop(); } } movieClip 5026 { } movieClip 5027 { } movieClip 5031 { } movieClip 5033 { } movieClip 5036 { } movieClip 5050 { } movieClip 5051 { frame 29 { gotoAndPlay(10); } } movieClip 5053 { } movieClip 5054 { } movieClip 5056 { frame 8 { this._parent._parent._parent.Nug9_dead.play(); } frame 10 { stop(); } } movieClip 5057 { frame 1 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 5059 { } movieClip 5063 { } movieClip 5064 { } movieClip 5065 { frame 1 { stop(); } frame 15 { stop(); } } movieClip 5067 { } movieClip 5068 { frame 1 { stop(); } frame 10 { stop(); } } movieClip 5073 { frame 1 { stop(); } frame 40 { stop(); } } movieClip 5076 { } movieClip 5077 game141 { frame 1 { _root.rules = 'Hit His Eye'; _root.beatClock = true; } instance Nug9_spear of movieClip 5065 { onClipEvent (load) { this._x = random(500) + 25; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (this._x <= 0) { this._x = 0; } if (this._x >= 550) { this._x = 550; } if (_currentframe == 1) { if (Key.isDown(32)) { play(); } if (Key.isDown(37)) { _x = _x - 5; } if (Key.isDown(39)) { _x = _x + 5; } } if (_currentframe == 14) { if (hitTest(this._parent.Nug9_face.Nug9_eye.Nug9_ball1.Nug9_ball)) { this._parent.Nug9_face.Nug9_eye.play(); this._parent.Nug9_hand.play(); this._parent.Nug9_face.Nug9_ear.play(); this._parent.Nug9_face.Nug9_ear1.play(); _root.gameOutcome(true); } else { if (hitTest(this._parent.Nug9_face.Nug9_eye.Nug9_left)) { this._parent.Nug9_face.Nug9_eye.gotoAndStop('left'); _root.gameOutcome(false); } else { if (hitTest(this._parent.Nug9_face.Nug9_eye.Nug9_right)) { this._parent.Nug9_face.Nug9_eye.gotoAndStop('right'); _root.gameOutcome(false); } } } } } } } } movieClip 5079 { } movieClip 5084 { frame 1 { stop(); } } movieClip 5086 { } movieClip 5089 { } movieClip 5091 { frame 1 { stop(); } frame 24 { stop(); } } movieClip 5104 { frame 1 { stop(); } frame 41 { stop(); } } movieClip 5106 { } movieClip 5107 { instance of movieClip 5106 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 15)); } } instance of movieClip 5106 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 15)); } } instance of movieClip 5106 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 15)); } } instance of movieClip 5106 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 15)); } } instance of movieClip 5106 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 15)); } } instance of movieClip 5106 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 15)); } } instance of movieClip 5106 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 15)); } } instance of movieClip 5106 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 15)); } } instance of movieClip 5106 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 15)); } } instance of movieClip 5106 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 15)); } } } movieClip 5115 { } movieClip 5120 { } movieClip 5122 { } movieClip 5124 { } movieClip 5147 { frame 1 { stop(); } } movieClip 5149 { } movieClip 5150 { } movieClip 5153 { frame 7 { stop(); _root.g.counter.number = 2; } } movieClip 5155 { frame 7 { stop(); _root.g.counter.number = 3; } } movieClip 5157 { frame 7 { stop(); } } movieClip 5158 { frame 1 { stop(); } frame 4 { _root.g.alternate.play(); } } movieClip 5164 { frame 1 { stop(); } frame 10 { stop(); _root.gameOutcome(true); } } movieClip 5167 { } movieClip 5168 game142 { frame 1 { _quality = 'LOW'; _root.rules = 'Get to 3!'; _root.beatClock = true; } instance of movieClip 5084 { onClipEvent (load) { this.gotoAndStop(Math.ceil(Math.random() * 5)); } } instance of movieClip 5089 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 71)); } } instance of movieClip 5089 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 71)); } } instance of movieClip 5089 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 71)); } } instance of movieClip 5091 { onClipEvent (load) { if (_root.cstatus == 1) { this.play(); } } } instance of movieClip 5091 { onClipEvent (load) { if (_root.cstatus == 1) { this.play(); } } } instance of movieClip 5091 { onClipEvent (load) { if (_root.cstatus == 1) { this.play(); } } } instance of movieClip 5091 { onClipEvent (load) { if (_root.cstatus == 1) { this.play(); } } } instance of movieClip 5091 { onClipEvent (load) { if (_root.cstatus == 1) { this.play(); } } } instance of movieClip 5091 { onClipEvent (load) { if (_root.cstatus == 1) { this.play(); } } } instance of movieClip 5091 { onClipEvent (load) { if (_root.cstatus == 1) { this.play(); } } } instance of movieClip 5091 { onClipEvent (load) { if (_root.cstatus == 1) { this.play(); } } } instance of movieClip 5091 { onClipEvent (load) { if (_root.cstatus == 1) { this.play(); } } } instance of movieClip 5091 { onClipEvent (load) { if (_root.cstatus == 1) { this.play(); } } } instance of movieClip 5091 { onClipEvent (load) { if (_root.cstatus == 1) { this.play(); } } } instance of movieClip 5104 { onClipEvent (load) { if (_root.cstatus == 1) { this.play(); } } } instance of movieClip 5104 { onClipEvent (load) { if (_root.cstatus == 1) { this.gotoAndPlay(Math.ceil(Math.random() * 15)); } } } instance of movieClip 5104 { onClipEvent (load) { if (_root.cstatus == 1) { this.gotoAndPlay(7); } } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5115 { onClipEvent (load) { this.gotoAndPlay(Math.ceil(Math.random() * 35)); this._height = Math.random() * 17 + 5; } } instance of movieClip 5147 { onClipEvent (load) { } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this.play(); } if (_root.cstatus == 1) { if (this._currentframe >= 20 && _root.g.counter.number == 1 && Key.isDown(32)) { _root.g.counter.gotoAndStop(2); } if (this._currentframe >= 20 && _root.g.counter.number == 2 && Key.isDown(32)) { _root.g.counter.gotoAndStop(3); } if (this._currentframe >= 20 && _root.g.counter.number == 3 && Key.isDown(32)) { _root.g.counter.gotoAndStop(4); } } } } instance counter of movieClip 5158 { onClipEvent (load) { number = 1; } } } movieClip 5186 { } movieClip 5196 { } movieClip 5198 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5200 { } movieClip 5201 { } movieClip 5202 { } movieClip 5220 { } movieClip 5221 { frame 1 { stop(); } } movieClip 5224 { } movieClip 5226 game143 { frame 1 { _root.rules = 'Don\'t get eaten!'; _root.beatClock = false; onEnterFrame = function () { if (_root.cstatus == 1) { if (fishy.hitTest(sharky.hittesty)) { _root.gameOutcome(false); } } }; } instance fishy of movieClip 5198 { onClipEvent (load) { speed = 0.3; max = 4; x_velocity = 0; y_velocity = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(39)) { gotoAndStop(2); x_velocity += speed; } else { if (Key.isDown(37)) { gotoAndStop(1); x_velocity -= speed; } else { if (x_velocity > 0) { x_velocity -= speed; } else { if (x_velocity < 0) { x_velocity += speed; } } } } if (x_velocity > max) { x_velocity = max; } if (x_velocity < -max) { x_velocity = -max; } if (Key.isDown(40)) { y_velocity += speed; } else { if (Key.isDown(38)) { y_velocity -= speed; } else { if (y_velocity > 0) { y_velocity -= speed; } else { if (y_velocity < 0) { y_velocity += speed; } } } } if (y_velocity > max) { y_velocity = max; } if (y_velocity < -max) { y_velocity = -max; } if (x_velocity < 0.3 && x_velocity > -0.3) { x_velocity = 0; } if (y_velocity < 0.3 && y_velocity > -0.3) { y_velocity = 0; } _y = _y + y_velocity; _x = _x + x_velocity; if (_x >= 550 - _width) { _x = 550 - _width; } if (_y >= 363.7) { _y = 363.7; } if (_x <= 1) { _x = 1; } if (_y <= 1) { _y = 1; } } if (this.hitTest(_parent.sharky.hittesty)) { this.gotoAndStop(3); } } } instance of movieClip 5200 { onClipEvent (enterFrame) { if (_parent.fishy._currentframe == 1) { _x = _parent.fishy._x; _y = _parent.fishy._y; } else { _x = _parent.fishy._x + _parent.fishy._width; } _y = _parent.fishy._y; } } instance of movieClip 5201 { onClipEvent (enterFrame) { if (_parent.sharky._currentframe == 1) { _x = _parent.sharky._x; _y = _parent.sharky._y; } else { _x = _parent.sharky._x + _parent.fishy._width; } _y = _parent.sharky._y; } } instance sharky of movieClip 5221 { onClipEvent (load) { speed = 0.22; max = 4; x_velocity = 0; y_velocity = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_parent.fishy._x < this._x + _width / 2) { gotoAndStop(1); x_velocity -= speed; } if (_parent.fishy._x > this._x + _width / 2) { gotoAndStop(2); x_velocity += speed; } if (x_velocity > max) { x_velocity = max; } if (x_velocity < -max) { x_velocity = -max; } if (_parent.fishy._y < this._y + _height / 2) { y_velocity -= speed; } if (_parent.fishy._y > this._y + _height / 2) { y_velocity += speed; } if (y_velocity > max) { y_velocity = max; } if (y_velocity < -max) { y_velocity = -max; } _y = _y + y_velocity; _x = _x + x_velocity; } } } } movieClip 5229 { } movieClip 5230 { instance of movieClip 5229 { onClipEvent (enterFrame) { _rotation = _rotation + random(5); } } instance of movieClip 5229 { onClipEvent (enterFrame) { _rotation = _rotation + random(5); } } instance of movieClip 5229 { onClipEvent (enterFrame) { _rotation = _rotation + random(5); } } instance of movieClip 5229 { onClipEvent (enterFrame) { _rotation = _rotation + random(5); } } instance of movieClip 5229 { onClipEvent (enterFrame) { _rotation = _rotation + random(5); } } instance of movieClip 5229 { onClipEvent (enterFrame) { _rotation = _rotation + random(5); } } } movieClip 5232 { } movieClip 5246 { frame 14 { stop(); } } movieClip 5247 { frame 1 { stop(); } } movieClip 5249 { frame 1 { stop(); } } movieClip 5252 { } movieClip 5253 game144 { frame 1 { function main() { xspeed = oldx - _root._xmouse; yspeed = oldy - _root._ymouse; mousespeed = Math.abs((xspeed + yspeed) / 2); oldx = _root._xmouse; oldy = _root._ymouse; trace(mouseSpeed); if (mousespeed >= 15 && _root.g.cursor.hitTest(_root.g.enemy)) { _root.g.enemy.gotoAndStop(2); _root.gameOutcome(true); Mouse.show(); } } _root.rules = 'Slash the Ball!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { main(); } }; } instance enemy of movieClip 5247 { onClipEvent (load) { right = true; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (right == true) { _x = _x + 5; } else { _x = _x - 5; } if (_x < 0) { right = true; } if (_x > 550) { right = false; } } } } instance cursor of movieClip 5249 { onClipEvent (load) { Mouse.hide(); } onClipEvent (enterFrame) { _x = _root._xmouse; _y = _root._ymouse; } } } movieClip 5259 { } movieClip 5261 { } movieClip 5264 { } movieClip 5265 { } movieClip 5276 { frame 1 { stop(); } frame 64 { stop(); } } movieClip 5277 game145 { frame 1 { _root.rules = 'Time the Leap!'; _root.beatClock = true; onEnterFrame = function () { if (_root.csatus == 1) { if (Key.isDown(32)) { _root.g.ground.exit.stop(); _root.gameOutcome(true); } if (_root.g.player.hitTest(_root.g.water)) { _root.gameOutcome(false); } } }; } instance of movieClip 5261 { onClipEvent (load) { grav = 0; speed = 6; scale = _xscale; go = false; stopp = false; goup = 5; gooup = false; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { ++grav; _y = _y + grav; while (_root.g.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (Key.isDown(32) && stopp == false) { go = true; } if (go == true) { _x = _x - speed; _xscale = scale; if (_root.g.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (this.hitTest(_root.g.ground.exit)) { _root.g.ground.play(); _root.g.ground.exit._y -= goup; gooup = true; go = false; stopp = true; } if (gooup == true) { _root.g.ground.exit._y -= goup; goup + 0.5; } } } } } movieClip 5279 { } movieClip 5289 { frame 1 { stop(); } } movieClip 5298 { frame 1 { stop(); } frame 23 { stop(); } } movieClip 5300 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5319 { frame 1 { stop(); } frame 8 { stop(); } frame 17 { stop(); } } movieClip 5322 { } movieClip 5323 game146 { frame 1 { _root.rules = 'Hug Somebody!'; _root.beatClock = true; } instance targetz of movieClip 5289 { onClipEvent (load) { _x = random(550); _y = random(350) + 50; gotoAndStop(random(8)); } } instance of movieClip 5298 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(38)) { _y = _y - 10; } if (Key.isDown(40)) { _y = _y + 10; } if (Key.isDown(39)) { _x = _x + 10; } if (Key.isDown(37)) { _x = _x - 10; } if (_x < 0) { _x = 0; } if (_x > 550) { _x = 550; } if (_y < 0) { _y = 0; } if (_y > 400) { _y = 400; } if (Key.isDown(32)) { gotoAndPlay(2); if (this.hitTest(_root.g.targetz)) { _root.g.targetz._x = this._x; _root.g.targetz._x += 15; _root.gameOutcome(true); _root.g.wl1.gotoAndPlay(2); } else { _root.gameOutcome(false); _root.g.wl1.gotoAndPlay(9); } } } } onClipEvent (keyDown) { _root.g.intro.nextFrame(); } } } movieClip 5356 { frame 32 { stop(); } } movieClip 5357 { frame 1 { stop(); } } movieClip 5364 { frame 1 { stop(); } } movieClip 5367 { } movieClip 5368 game147 { frame 1 { _root.rules = 'Catch them ALL!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { if (_root.g.ball1._currentframe == 7 && _root.g.ball2._currentframe == 7 && _root.g.ball3._currentframe == 7 && _root.g.ball4._currentframe == 7) { _root.gameOutcome(true); _root.g.player.gotoAndStop(2); } } }; } instance player of movieClip 5357 { onClipEvent (enterFrame) { if (Key.isDown(37) && _currentframe == 1) { _x = _x - 24; } if (Key.isDown(39) && _currentframe == 1) { _x = _x + 24; } if (_x < 0) { _x = 0; } if (_x > 550) { _x = 550; } } } instance ball1 of movieClip 5364 { onClipEvent (load) { up = true; left = true; gotoAndStop(random(6)); _x = random(550); _y = random(400); } onClipEvent (enterFrame) { if (up == true) { _y = _y - 12; } else { _y = _y + 12; } if (left == true) { _x = _x - 12; } else { _x = _x + 12; } if (_x < 0) { _x = 0; left = false; } if (_x > 550) { _x = 550; left = true; } if (_y < 0) { _y = 0; up = false; } if (_y > 400) { _y = 400; up = true; } if (this.hitTest(_root.g.player)) { gotoAndStop(7); } } } instance ball2 of movieClip 5364 { onClipEvent (load) { up = true; left = true; gotoAndStop(random(6)); _x = random(550); _y = random(400); } onClipEvent (enterFrame) { if (up == true) { _y = _y - 12; } else { _y = _y + 12; } if (left == true) { _x = _x - 12; } else { _x = _x + 12; } if (_x < 0) { _x = 0; left = false; } if (_x > 550) { _x = 550; left = true; } if (_y < 0) { _y = 0; up = false; } if (_y > 400) { _y = 400; up = true; } if (this.hitTest(_root.g.player)) { gotoAndStop(7); } } } instance ball3 of movieClip 5364 { onClipEvent (load) { up = true; left = true; gotoAndStop(random(6)); _x = random(550); _y = random(400); } onClipEvent (enterFrame) { if (up == true) { _y = _y - 12; } else { _y = _y + 12; } if (left == true) { _x = _x - 12; } else { _x = _x + 12; } if (_x < 0) { _x = 0; left = false; } if (_x > 550) { _x = 550; left = true; } if (_y < 0) { _y = 0; up = false; } if (_y > 400) { _y = 400; up = true; } if (this.hitTest(_root.g.player)) { gotoAndStop(7); } } } instance ball4 of movieClip 5364 { onClipEvent (load) { up = true; left = true; gotoAndStop(random(6)); _x = random(550); _y = random(400); } onClipEvent (enterFrame) { if (up == true) { _y = _y - 12; } else { _y = _y + 12; } if (left == true) { _x = _x - 12; } else { _x = _x + 12; } if (_x < 0) { _x = 0; left = false; } if (_x > 550) { _x = 550; left = true; } if (_y < 0) { _y = 0; up = false; } if (_y > 400) { _y = 400; up = true; } if (this.hitTest(_root.g.player)) { gotoAndStop(7); } } } } movieClip 5372 { } movieClip 5380 { } movieClip 5419 { frame 1 { stop(); } frame 20 { _root.gameOutcome(true); } frame 35 { stop(); } } movieClip 5420 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 5424 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5427 { } movieClip 5428 game148 { frame 1 { _root.rules = 'Spray the Paint!'; _root.beatClock = true; shakec = 0; onEnterFrame = function () { if (_root.cstatus == 1) { if (Key.isDown(38) && _root.g.arrows._currentframe == 1) { _root.g.player.play(); _root.g.arrows.nextFrame(); shakec += 1; } if (Key.isDown(40) && _root.g.arrows._currentframe == 2) { _root.g.player.play(); _root.g.arrows.prevFrame(); shakec += 1; } if (shakec >= 10) { _root.g.player.arms.nextFrame(); _root.g.arrows.gotoAndStop(3); } } }; } } movieClip 5431 { } movieClip 5432 { } movieClip 5433 { } movieClip 5435 { } movieClip 5437 { } movieClip 5438 { } movieClip 5447 { frame 9 { stop(); } } movieClip 5449 { frame 11 { stop(); } } movieClip 5450 { frame 9 { stop(); } } movieClip 5451 { frame 11 { stop(); } } movieClip 5455 { } movieClip 5457 { } movieClip 5460 { } movieClip 5461 { } movieClip 5463 { } movieClip 5464 { frame 46 { stop(); } } movieClip 5466 { } movieClip 5467 { frame 1 { _root.rules = 'Sharpen the knife'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { started = true; } if (_root.cstatus == 0 && started == true) { _root.g.gotoAndStop(17); } }; } frame 1 { stop(); } instance tom3_loader of movieClip 5438 { onClipEvent (enterFrame) { if (Key.isDown(37)) { if (_root.cstatus == 1) { _root.g.g.gotoAndStop(2); } } } } frame 2 { stop(); } instance of movieClip 5438 { onClipEvent (enterFrame) { if (Key.isDown(39)) { if (_root.cstatus == 1) { _root.g.g.gotoAndStop(3); } } } } frame 3 { stop(); } instance tom3_loader of movieClip 5438 { onClipEvent (enterFrame) { if (Key.isDown(37)) { if (_root.cstatus == 1) { _root.g.g.gotoAndStop(4); } } } } frame 4 { stop(); } instance of movieClip 5438 { onClipEvent (enterFrame) { if (Key.isDown(39)) { if (_root.cstatus == 1) { _root.g.g.gotoAndStop(5); } } } } frame 5 { stop(); } instance tom3_loader of movieClip 5438 { onClipEvent (enterFrame) { if (Key.isDown(37)) { if (_root.cstatus == 1) { _root.g.g.gotoAndStop(6); } } } } frame 6 { stop(); } instance of movieClip 5438 { onClipEvent (enterFrame) { if (Key.isDown(39)) { if (_root.cstatus == 1) { _root.g.g.gotoAndStop(7); } } } } frame 7 { stop(); } instance tom3_loader of movieClip 5438 { onClipEvent (enterFrame) { if (Key.isDown(37)) { if (_root.cstatus == 1) { _root.g.g.gotoAndStop(8); } } } } frame 8 { stop(); } instance of movieClip 5438 { onClipEvent (enterFrame) { if (Key.isDown(39)) { if (_root.cstatus == 1) { _root.g.g.gotoAndStop(9); } } } } frame 9 { stop(); } instance tom3_loader of movieClip 5438 { onClipEvent (enterFrame) { if (Key.isDown(37)) { if (_root.cstatus == 1) { _root.g.g.gotoAndStop(10); } } } } frame 10 { stop(); } instance of movieClip 5438 { onClipEvent (enterFrame) { if (Key.isDown(39)) { if (_root.cstatus == 1) { _root.g.g.gotoAndStop(11); } } } } frame 11 { stop(); } instance tom3_loader of movieClip 5438 { onClipEvent (enterFrame) { if (Key.isDown(37)) { if (_root.cstatus == 1) { _root.g.g.gotoAndStop(12); } } } } frame 12 { stop(); } instance of movieClip 5438 { onClipEvent (enterFrame) { if (Key.isDown(39)) { if (_root.cstatus == 1) { _root.g.g.gotoAndStop(13); } } } } frame 13 { stop(); } instance tom3_loader of movieClip 5438 { onClipEvent (enterFrame) { if (Key.isDown(37)) { if (_root.cstatus == 1) { _root.g.g.gotoAndStop(14); } } } } frame 14 { stop(); } instance of movieClip 5438 { onClipEvent (enterFrame) { if (Key.isDown(39)) { if (_root.cstatus == 1) { _root.g.g.gotoAndStop(15); } } } } frame 15 { stop(); } instance tom3_loader of movieClip 5438 { onClipEvent (enterFrame) { if (Key.isDown(37)) { if (_root.cstatus == 1) { _root.g.g.gotoAndStop(16); } } } } frame 16 { stop(); } instance of movieClip 5438 { onClipEvent (enterFrame) { if (Key.isDown(39)) { if (_root.cstatus == 1) { _root.g.g.gotoAndStop(17); } } } } frame 17 { stop(); _root.gameOutcome(true); } frame 18 { stop(); _root.gameOutcome(false); } } movieClip 5470 { } movieClip 5471 game149 { } movieClip 5474 { } movieClip 5475 game150 { frame 1 { _root.rules = 'Clear the Area!'; _root.beatClock = true; onEnterFrame = function () { if (_root.g.star1._currentframe >= 2 && _root.g.star2._currentframe >= 2 && _root.g.star3._currentframe >= 2 && _root.g.star4._currentframe >= 2 && _root.g.star5._currentframe >= 2 && _root.g.star6._currentframe >= 2) { _root.gameOutcome(true); _root.g.level.nextFrame(); } }; } instance player of movieClip 2935 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(38)) { _y = _y - 5; } if (Key.isDown(40)) { _y = _y + 5; } if (Key.isDown(37)) { _x = _x - 5; } if (Key.isDown(39)) { _x = _x + 5; } if (_root.g.level.hitTest(_x, _y, true)) { _root.gameOutcome(false); _x = 202.5; _y = 327.2; } } } } instance star1 of movieClip 2938 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.player) && _currentframe <= 1) { gotoAndPlay(2); } } } instance star2 of movieClip 2938 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.player) && _currentframe <= 1) { gotoAndPlay(2); } } } instance star3 of movieClip 2938 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.player) && _currentframe <= 1) { gotoAndPlay(2); } } } instance star4 of movieClip 2938 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.player) && _currentframe <= 1) { gotoAndPlay(2); } } } instance star5 of movieClip 2938 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.player) && _currentframe <= 1) { gotoAndPlay(2); } } } instance star6 of movieClip 2938 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.player) && _currentframe <= 1) { gotoAndPlay(2); } } } } movieClip 5478 { } movieClip 5479 { } movieClip 5485 { } movieClip 5489 { } movieClip 5493 { } movieClip 5498 { } movieClip 5505 { } movieClip 5507 { frame 2 { _root.gameOutcome(true); } frame 18 { stop(); } } movieClip 5508 { frame 1 { _root.rules = 'Make the plane'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } frame 1 { stop(); } instance of movieClip 5485 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(38)) { _root.g.stuffs.nextFrame(); } } } } frame 2 { stop(); } instance of movieClip 5489 { onClipEvent (enterFrame) { if (Key.isDown(39)) { _root.g.stuffs.nextFrame(); } } } frame 3 { stop(); } instance of movieClip 5493 { onClipEvent (enterFrame) { if (Key.isDown(37)) { _root.g.stuffs.nextFrame(); } } } frame 4 { stop(); } instance of movieClip 5498 { onClipEvent (enterFrame) { if (Key.isDown(40)) { _root.g.stuffs.nextFrame(); } } } frame 5 { stop(); } instance of movieClip 5489 { onClipEvent (enterFrame) { if (Key.isDown(39)) { _root.g.stuffs.nextFrame(); } } } frame 6 { stop(); } instance of movieClip 5493 { onClipEvent (enterFrame) { if (Key.isDown(37)) { _root.g.stuffs.nextFrame(); } } } frame 7 { stop(); } instance of movieClip 5505 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(32)) { _root.g.stuffs.nextFrame(); } } } } frame 8 { stop(); } frame 9 { stop(); _root.gameOutcome(true); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { } frame 14 { _root.gameOutcome(true); stop(); } } movieClip 5511 { } movieClip 5512 game151 { } movieClip 5516 { } movieClip 5521 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 5522 { frame 1 { onEnterFrame = function () { if (_root.cstatus == 1) { play(); } else { stop(); } }; } } movieClip 5523 { } movieClip 5524 { } movieClip 5531 { } movieClip 5539 { frame 11 { stop(); } } movieClip 5540 { frame 1 { stop(); } frame 30 { stop(); } } movieClip 5543 { } movieClip 5544 game152 { frame 1 { _root.rules = 'Jump!'; _root.beatClock = false; onEnterFrame = function () { if (_root.cstatus == 1) { if (eye9_runner._currentframe == 29) { eye9_runner.gotoAndPlay(1); } if (Key.isDown(32)) { eye9_runner.play(); if (eye9_runner._currentframe == 29) { eye9_runner.gotoAndPlay(1); } } if (eye9_runner.hitTest(eye9_back.eye9_stand)) { if (eye9_runner._currentframe < 3 || eye9_runner._currentframe > 18) { eye9_runner.gotoAndStop('fall'); if (eye9_runner.eye9_fall._currentframe == 11) { eye9_runner.eye9_fall.stop(); } eye9_back.eye9_stand.stop(); eye9_back.eye9_stand.eye9_stand2.play(); eye9_back.eye9_crowd.stop(); _root.gameOutcome(false); if (eye9_runner._currentframe == 33) { eye9_runner.stop(); } if (eye9_back.eye9_stand.eye9_stand2._currentframe == 5) { eye9_back.eye9_stand.eye9_stand2.stop(); } } } } }; } } movieClip 5547 { } movieClip 5553 { } movieClip 5554 { frame 20 { stop(); } } movieClip 5555 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5561 { } movieClip 5562 { frame 25 { stop(); } } movieClip 5563 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5566 { } movieClip 5569 { } movieClip 5572 { } movieClip 5573 { } movieClip 5574 { } movieClip 5577 { } movieClip 5578 game153 { frame 1 { _root.rules = 'Land the Plane!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance of movieClip 5555 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.plane)) { this.gotoAndStop(2); } } } instance of movieClip 5555 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.plane)) { this.gotoAndStop(2); } } } instance of movieClip 5555 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.plane)) { this.gotoAndStop(2); } } } instance of movieClip 5555 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.plane)) { this.gotoAndStop(2); } } } instance of movieClip 5563 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.plane)) { this.gotoAndStop(2); _root.gameOutcome(true); } } } instance plane of movieClip 5574 { onClipEvent (load) { speed = 4; stop(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { _x = _x + Key.isDown(39) * speed; _x = _x - Key.isDown(37) * speed; _y = _y + Key.isDown(40) * speed; _y = _y - Key.isDown(38) * speed; } } } } movieClip 5580 { } movieClip 5582 { } movieClip 5584 { } movieClip 5586 { } movieClip 5588 { } button 5590 { on (release) { _root.gameOutcome(false); } on (release) { _root.rageacecrosshair.play(); } } movieClip 5594 { frame 1 { stop(); } } movieClip 5595 { } movieClip 5598 { } button 5600 { on (release) { _root.gameOutcome(true); } on (release) { _root.rageacecrosshair.play(); } } movieClip 5602 { } movieClip 5603 game154 { frame 1 { startDrag('_root.g.rageacecrosshair', true); Mouse.hide(); } frame 1 { _root.rules = 'Wait till its clear'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance of movieClip 5580 { onClipEvent (release) { _root.gameOutcome(false); } onClipEvent (release) { _root.rageacecrosshair.play(); } } instance of movieClip 5595 { onClipEvent (mouseDown) { ++i; duplicateMovieClip(this, 'bulletnew' + i, _parent.getNextHighestDepth()); _root.g.aimer.gotoAndPlay(2); } onClipEvent (load) { this._x = _root._xmouse; this._y = _root._ymouse; } } frame 27 { _root.rageacetarget._x = random(240); _root.rageacetarget._y = random(8.4); stop(); } } movieClip 5605 { } movieClip 5606 { instance of movieClip 5605 { onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.bengt.shadowrl)) { _parent._parent.bengt._x += 10; } } } } movieClip 5608 { } movieClip 5609 { instance of movieClip 5608 { onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.bengt.shadowrl)) { _parent._parent.bengt._x -= 10; } } } } movieClip 5611 { } movieClip 5612 { instance of movieClip 5611 { onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.bengt.shadow)) { _parent._parent.bengt._y -= 10; } } } } movieClip 5614 { } movieClip 5615 { instance of movieClip 5614 { onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.bengt.shadow)) { _parent._parent.bengt._y += 10; } } } } movieClip 5620 { } movieClip 5622 { } movieClip 5624 { } movieClip 5626 { } movieClip 5628 { } movieClip 5629 { } movieClip 5630 { frame 1 { stop(); } frame 8 { _parent.gotoAndStop(random(3) + 1); } } movieClip 5631 { frame 1 { gotoAndStop(random(3) + 1); } instance of movieClip 5630 { onClipEvent (enterFrame) { if (random(60) == 1) { play(); } } } instance of movieClip 5630 { onClipEvent (enterFrame) { if (random(60) == 1) { play(); } } } instance of movieClip 5630 { onClipEvent (enterFrame) { if (random(60) == 1) { play(); } } } } movieClip 5632 { instance of movieClip 5626 { onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.bengt.shad)) { _parent._parent.coin.stop(); _parent._parent.coin.start(); _parent._parent.ac += 1; _parent._x = -1000; } } } } movieClip 5633 { } movieClip 5634 { instance of movieClip 5633 { onClipEvent (load) { if (_parent._parent.bengt._y >= _parent._y) { _parent.swapDepths(_parent._parent.bengt); front = 0; } else { front = 1; } this._alpha = 0; } onClipEvent (enterFrame) { if (_parent._parent.bengt._y <= _parent._y) { if (front == 0) { _parent.swapDepths(_parent._parent.bengt); front = 1; } } if (_parent._parent.bengt._y >= _parent._y) { if (front == 1) { _parent.swapDepths(_parent._parent.bengt); front = 0; } } } } } movieClip 5635 { } movieClip 5636 { } movieClip 5637 { } movieClip 5640 { } movieClip 5642 { } movieClip 5644 { } movieClip 5646 { } movieClip 5650 { } movieClip 5653 { } movieClip 5660 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 5663 { } movieClip 5665 { } movieClip 5667 { } movieClip 5669 { } movieClip 5672 { } movieClip 5682 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 5685 { } movieClip 5687 { } movieClip 5693 { } movieClip 5699 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 5700 { frame 1 { stop(); } instance a of movieClip 5660 { onClipEvent (load) { if (random(2) == 1) { _xscale = -100; } } } } movieClip 5705 game155 { frame 1 { _root.rules = 'Grab 35 rings'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { target = 35; } }; } instance bengt of movieClip 5700 { onClipEvent (load) { _parent.coin = new Sound(); _parent.coin.attachSound('ringljud'); _parent.ac = 0; _parent.number = 0; speed = 10; _parent.ac = 0; timer = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { ++timer; if (timer == 99) { trace(_parent.ac); if (_parent.ac >= _parent.target) { _root.gameOutcome(true); } else { _root.gameOutcome(false); } } if (Key.isDown(37)) { face = 'left'; if (Key.isDown(38) or Key.isDown(40)) { } else { gotoAndStop('left'); a.play(); } _x = _x - speed; } if (Key.isDown(39)) { if (Key.isDown(38) or Key.isDown(40)) { } else { gotoAndStop('right'); a.play(); } _x = _x + speed; } if (Key.isDown(38)) { face = 'up'; _y = _y - speed; gotoAndStop('up'); a.play(); } if (Key.isDown(40)) { _y = _y + speed; face = 'down'; gotoAndStop('down'); a.play(); } } } } } movieClip 5708 { } movieClip 5710 { } movieClip 5713 { } movieClip 5715 { } movieClip 5716 { } movieClip 5721 { } movieClip 5722 { } movieClip 5723 { } movieClip 5725 { } movieClip 5728 { } movieClip 5729 { frame 1 { _root.rules = 'Use the arrows'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } frame 1 { stop(); } instance of movieClip 5722 { onClipEvent (enterFrame) { if (Key.isDown(40)) { if (_root.cstatus == 1) { _root.g.stuff.nextFrame(); } } } } frame 2 { stop(); } instance of movieClip 5723 { onClipEvent (enterFrame) { if (Key.isDown(38)) { if (_root.cstatus == 1) { _root.g.stuff.nextFrame(); } } } } frame 3 { stop(); } instance of movieClip 5722 { onClipEvent (enterFrame) { if (Key.isDown(40)) { if (_root.cstatus == 1) { _root.g.stuff.nextFrame(); } } } } frame 4 { stop(); } instance of movieClip 5723 { onClipEvent (enterFrame) { if (Key.isDown(38)) { if (_root.cstatus == 1) { _root.g.stuff.nextFrame(); } } } } frame 5 { stop(); } instance of movieClip 5722 { onClipEvent (enterFrame) { if (Key.isDown(40)) { if (_root.cstatus == 1) { _root.g.stuff.nextFrame(); } } } } frame 6 { stop(); } instance of movieClip 5723 { onClipEvent (enterFrame) { if (Key.isDown(38)) { if (_root.cstatus == 1) { _root.g.stuff.nextFrame(); } } } } frame 7 { stop(); } instance of movieClip 5722 { onClipEvent (enterFrame) { if (Key.isDown(40)) { if (_root.cstatus == 1) { _root.g.stuff.nextFrame(); } } } } frame 8 { stop(); } instance of movieClip 5723 { onClipEvent (enterFrame) { if (Key.isDown(38)) { if (_root.cstatus == 1) { _root.g.stuff.nextFrame(); } } } } frame 9 { stop(); } instance of movieClip 5722 { onClipEvent (enterFrame) { if (Key.isDown(40)) { if (_root.cstatus == 1) { _root.g.stuff.nextFrame(); } } } } frame 10 { stop(); } instance of movieClip 5723 { onClipEvent (enterFrame) { if (Key.isDown(38)) { if (_root.cstatus == 1) { _root.g.stuff.nextFrame(); } } } } frame 11 { stop(); } instance of movieClip 5722 { onClipEvent (enterFrame) { if (Key.isDown(40)) { if (_root.cstatus == 1) { _root.g.stuff.nextFrame(); } } } } frame 12 { stop(); } instance of movieClip 5723 { onClipEvent (enterFrame) { if (Key.isDown(38)) { if (_root.cstatus == 1) { _root.g.stuff.nextFrame(); } } } } frame 13 { stop(); } instance of movieClip 5722 { onClipEvent (enterFrame) { if (Key.isDown(40)) { if (_root.cstatus == 1) { _root.g.stuff.nextFrame(); } } } } frame 14 { stop(); } instance of movieClip 5723 { onClipEvent (enterFrame) { if (Key.isDown(38)) { if (_root.cstatus == 1) { _root.g.stuff.nextFrame(); } } } } frame 15 { stop(); } instance of movieClip 5722 { onClipEvent (enterFrame) { if (Key.isDown(40)) { if (_root.cstatus == 1) { _root.g.stuff.nextFrame(); } } } } frame 16 { stop(); } instance of movieClip 5723 { onClipEvent (enterFrame) { if (Key.isDown(38)) { if (_root.cstatus == 1) { _root.g.stuff.nextFrame(); } } } } frame 17 { stop(); } instance of movieClip 5722 { onClipEvent (enterFrame) { if (Key.isDown(40)) { if (_root.cstatus == 1) { _root.g.stuff.nextFrame(); } } } } frame 18 { _root.gameOutcome(true); stop(); } } movieClip 5732 { } movieClip 5733 game156 { } movieClip 5735 { } movieClip 5737 { } movieClip 5739 { } movieClip 5740 { } movieClip 5742 { } movieClip 5744 { } movieClip 5747 { } movieClip 5748 game157 { frame 1 { _root.rules = 'Wipe off the chalk'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { dx = _root._xmouse - dish._x; dy = _root._ymouse - dish._y; angle = Math.atan2(dy, dx); distance = Math.sqrt(dx * dx + dy * dy); speed = distance / 5 + 2; if (speed < distance) { dish._x += Math.cos(angle) * speed; dish._y += Math.sin(angle) * speed; if (dish.hitTest(chalk1)) { chalk1._alpha -= speed / 5; } if (dish.hitTest(chalk2)) { chalk2._alpha -= speed / 5; } if (dish.hitTest(chalk3)) { chalk3._alpha -= speed / 5; } if (dish.hitTest(chalk4)) { chalk4._alpha -= speed / 2.5; } if (chalk1._alpha <= 1 and chalk2._alpha <= 1 and chalk3._alpha <= 1 and chalk4._alpha <= 1) { _root.gameOutcome(true); win._x = 250; } } } }; } } movieClip 5751 { } movieClip 5774 { frame 1 { stop(); } } movieClip 5776 { } movieClip 5778 { } movieClip 5781 { } movieClip 5782 { } movieClip 5783 { } movieClip 5787 { } movieClip 5788 { frame 1 { pencil._height = _root.g.pencilWidth; } } movieClip 5792 { } movieClip 5793 { frame 1 { pencil._height = _root.g.pencilWidth; } } movieClip 5794 { frame 1 { stop(); } frame 23 { gotoAndPlay(3); } } movieClip 5795 { } movieClip 5799 { } movieClip 5803 { } movieClip 5807 { frame 1 { stop(); } } movieClip 5810 { } movieClip 5811 game158 { frame 1 { _root.rules = 'Sharpen the pencil!'; _root.beatClock = true; g.pencilSize = Math.round(Math.random() * 5) + 1; g.currentHole = Math.round(Math.random() * 5) + 1; c.holes._rotation = (g.currentHole - 1) * 60; g.moving = false; g.destination = 0; g.direct = 1; g.pIn = false; g.keyLeft = true; g.tillSharp = 41; g.handleFrame = 1; g.pencilWidth = 8 + (6 - g.pencilSize) * 2; } frame 2 { onEnterFrame = function () { if (_root.cstatus == 1) { instr._x = 280; if (g.moving == false) { if (Key.isDown(32)) { if (g.currentHole == g.pencilSize) { g.pIn = true; pencilholder.gotoAndStop(2); instr.gotoAndStop(2); } } else { g.pIn = false; pencilholder.gotoAndStop(1); instr.gotoAndStop(1); } if (Key.isDown(39) && g.pIn == true) { if (g.keyLeft == false) { g.tillSharp -= 4; g.handleFrame += 4; g.keyLeft = true; } } else { if (Key.isDown(37) && g.pIn == true) { if (g.keyLeft == true) { g.tillSharp -= 4; g.handleFrame += 4; g.keyLeft = false; } } else { if (Key.isDown(38)) { if (g.pIn == false) { g.currentHole -= 1; if (g.currentHole < 1) { g.currentHole = 6; } g.moving = true; g.direct = -1; g.destination = (g.currentHole - 1) * 60; if (g.destination >= 180) { g.destination = -180 + (g.destination - 180); } } } else { if (Key.isDown(40)) { if (g.pIn == false) { g.currentHole += 1; if (g.currentHole > 6) { g.currentHole = 1; } g.moving = true; g.direct = 1; g.destination = (g.currentHole - 1) * 60; if (g.destination > 180) { g.destination = -180 + (g.destination - 180); } } } } } } } else { _root.g.c.holes._rotation += g.direct * 10; g.holrot = _root.g.c.holes._rotation; if (c.holes._rotation == g.destination) { g.moving = false; } } if (g.tillSharp <= 0) { pencilholder.gotoAndPlay(3); _root.gameOutcome(true); instr._x = -400; } } if (handle._currentframe < g.handleFrame) { handle._currentframe += 1; handle.gotoAndStop(handle._currentframe); } }; } frame 3 { gotoAndPlay(2); } } movieClip 5817 { frame 1 { stop(); } frame 2 { play(); } frame 3 { play(); } frame 4 { stop(); } } movieClip 5820 { } movieClip 5823 { } movieClip 5824 { } movieClip 5826 { frame 1 { stop(); } } movieClip 5833 { frame 1 { stop(); } frame 6 { stop(); } frame 7 { prevFrame(); } } movieClip 5836 { } movieClip 5837 game159 { frame 1 { _root.rules = 'Shoot the Clock'; _root.beatClock = true; stop(); } instance gun of movieClip 5817 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(37)) { _rotation = _rotation - 10; } if (Key.isDown(39)) { _rotation = _rotation + 10; } } } } instance of movieClip 5826 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { _rotation = _rotation - 10; if (this.hitTest(_root.g.shot)) { _root.gameOutcome(true); } } } } instance shot of movieClip 5833 { onClipEvent (load) { _alpha = 0; ammo = 1; speed = 0; _root.shot._visible = false; _y = _root.g.gun._y; _x = _root.g.gun._x; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { _rotation = _root.g.gun._rotation; _y = _y - speed * Math.cos(_rotation * 0.0174532925199433); _x = _x + speed * Math.sin(_rotation * 0.0174532925199433); if (Key.isDown(32)) { if (ammo == 1) { speed = 30; _alpha = 100; ammo = 0; this.play(); _root.g.gun.play(); } } } } } } movieClip 5843 { } movieClip 5844 { } movieClip 5847 { } movieClip 5849 { } movieClip 5850 { } movieClip 5852 { frame 1 { stop(); } frame 2 { play(); } frame 3 { play(); } frame 4 { play(); } frame 5 { play(); } frame 6 { play(); } frame 7 { play(); } frame 8 { play(); } frame 9 { play(); } frame 10 { play(); } frame 10 { stop(); } frame 10 { removeMovieClip(this); } } movieClip 5854 { } movieClip 5855 { } movieClip 5856 { } movieClip 5859 { } movieClip 5860 game160 { frame 1 { _root.rules = 'dodge the zeppelins!'; _root.beatClock = true; stop(); } instance missile of movieClip 5852 { onClipEvent (load) { yspeed = 1; xspeed = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { yspeed += 0.1; _y = _y + yspeed; _x = _x + xspeed; if (_rotation == 0) { _rotation = -5; } if (_rotation == -180) { _rotation = -175; } if (Key.isDown(37)) { _rotation = _rotation + 5; xspeed -= 0.5; } if (Key.isDown(39)) { _rotation = _rotation - 5; xspeed += 0.5; } if (this.hitTest(_root.g.plane1)) { this.play(); yspeed = 0; _root.plane1.removeMovieClip(); } if (this.hitTest(_root.g.plane2)) { this.play(); yspeed = 0; _root.plane2.removeMovieClip(); } if (this.hitTest(_root.g.plane3)) { this.play(); yspeed = 0; _root.plane3.removeMovieClip(); } if (this.hitTest(_root.g.target)) { _root.gameOutcome(true); } if (_x < 150) { _x = 150; xspeed = 0; _rotation = 270; } if (_x > 625) { _x = 625; xspeed = 0; _rotation = 270; } } } } } movieClip 5869 { frame 1 { stop(); } frame 2 { play(); } frame 3 { play(); } frame 4 { gotoAndPlay(1); } } button 5872 { on (press) { this.play(); _root.g.targets -= 1; } } movieClip 5874 { } movieClip 5877 { } movieClip 5879 { } movieClip 5881 { } movieClip 5883 { } movieClip 5885 { } movieClip 5886 { } movieClip 5888 { } movieClip 5890 { } movieClip 5891 { } movieClip 5892 { frame 1 { stop(); } frame 2 { ++_parent.hit; trace(_parent.hit); } frame 99 { stop(); } frame 100 { prevFrame(); } } movieClip 5895 { } movieClip 5896 game161 { frame 1 { _root.rules = 'hit all the targets!'; _root.beatClock = true; stop(); var hit = 0; } frame 1 { targets = 3; onEnterFrame = function () { if (_root.cstatus == 1) { if (targets == 0) { _root.gameOutcome(true); } } }; } instance gun of movieClip 5869 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { startDrag('', true); } } onClipEvent (mouseDown) { if (_root.cstatus == 1) { this.play(); } } } instance of movieClip 5892 { onClipEvent (load) { _x = random(450) + 50; _y = random(300) + 50; } } instance of movieClip 5892 { onClipEvent (load) { _x = random(450) + 50; _y = random(300) + 50; } } instance of movieClip 5892 { onClipEvent (load) { _x = random(450) + 50; _y = random(300) + 50; } } } movieClip 5905 { } movieClip 5906 { } movieClip 5912 { } movieClip 5914 { } movieClip 5916 { } movieClip 5917 { } movieClip 5924 { } movieClip 5925 { } movieClip 5928 { } movieClip 5930 { frame 1 { stop(); } instance of movieClip 5906 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(39)) { _root.g.main.gotoAndStop(2); } } } } frame 2 { stop(); } instance of movieClip 5906 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(38)) { _root.g.main.gotoAndStop(3); } } } } frame 3 { stop(); } instance of movieClip 5917 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(40)) { _root.g.main.gotoAndStop(4); } } } } frame 4 { stop(); } instance of movieClip 5917 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(37)) { _root.g.main.gotoAndStop(5); } } } } frame 5 { stop(); } instance of movieClip 5925 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(40)) { _root.g.main.gotoAndStop(6); } } } } frame 6 { stop(); } instance of movieClip 5925 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(37)) { _root.g.main.gotoAndStop(7); } } } } frame 7 { stop(); } instance of movieClip 5928 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(40)) { _root.g.main.gotoAndStop(8); } } } } frame 8 { stop(); } instance of movieClip 5928 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(39)) { _root.g.main.gotoAndStop(9); } } } } frame 9 { stop(); _root.gameOutcome(true); } } movieClip 5931 { } movieClip 5934 { } movieClip 5935 game162 { frame 1 { _root.rules = 'Be a bum!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } } movieClip 5937 { } movieClip 5939 { } movieClip 5941 { } movieClip 5942 { frame 1 { stop(); } } movieClip 5945 { } movieClip 5946 { frame 1 { stop(); } } movieClip 5948 { } movieClip 5950 { } movieClip 5951 { } movieClip 5954 { } movieClip 5955 { } movieClip 5956 { frame 1 { stop(); } frame 15 { stop(); } frame 30 { stop(); } } movieClip 5957 game163 { frame 1 { function shoot() { this.bul1._x = dep1_turret._x; this.bul1._y = dep1_turret._y; this.bul1._rotation = dep1_turret._rotation; vx = bulspeed * _root.speed * Math.cos(0.0174532925199433 * this.bul1._rotation); vy = bulspeed * _root.speed * Math.sin(0.0174532925199433 * this.bul1._rotation); } function shake() { shakex = random(10) - 5; shakey = random(10) - 5; shakex *= 0.7; shakey *= 0.7; _x = _x + shakex; _y = _y + shakey; } _root.rules = 'Shoot the Targets!'; _root.beatClock = true; timer = 0; bulcount = 0; bulspeed = 10; cstatus = 1; var speed = 2; fire = new Sound(); fire.attachSound('Dep1_fire'); dep1_shotflash.getNextHighestDepth(); dep1_turret.getNextHighestDepth(); winlose.getNextHighestDepth(); var randomNumber = Math.random() * 100 + 50; BD = new flash.display.BitmapData(Stage.width + 300, Stage.height + 300, false, 26112); BD.perlinNoise(randomNumber, randomNumber, 20, 2, true, 5, 2, false); dep1_bg.attachBitmap(BD, 1); i = 1; while (i < 4) { attachMovie('Dep1_Enemy', 'Enemy' + i, i); this['Enemy' + i]._x = Math.random() * 550; this['Enemy' + i]._y = Math.random() * 400; this['Enemy' + i]._rotation = (Math.random())() * 360; this['Enemy' + i]._alpha = Math.random() * 100 + 20; this['Enemy' + i]._yscale = Math.random() * 100 + 50; this['Enemy' + i]._xscale = this['Enemy' + i]._yscale; ++i; } attachMovie('Dep1_Bullet', 'bul1', 998); this.bul1._x = -1000; onEnterFrame = function () { if (_root.cstatus == 1) { ++timer; if (timer == 99) { winlose.gotoAndPlay('lose'); _root.gameOutcome(false); } if (this.bul1.hitTest(Enemy1)) { Enemy1.play(); enemy1hit = true; } if (this.bul1.hitTest(Enemy2)) { Enemy2.play(); enemy2hit = true; } if (this.bul1.hitTest(Enemy3)) { Enemy3.play(); enemy3hit = true; } if (enemy1hit && enemy2hit && enemy3hit) { won = true; _root.gameOutcome(true); enemy1hit = false; winlose.play(); trace('win'); trace(winlose._currentframe); } if (fired) { shake(); this.bul1._x += vx; this.bul1._y += vy; with (this.bul1) { if (_x > Stage.width + 10 || _x < -10 || _y < -10 || _y > Stage.height + 10) { fired = false; } } } else { _x = 0; _y = 0; } if (Key.isDown(39)) { dep1_turret._rotation += 6 * _root.speed; } if (Key.isDown(37)) { dep1_turret._rotation -= 6 * _root.speed; } if (Key.isDown(32)) { dep1_turret.play(); dep1_shotflash.gotoAndPlay(2); fire.start(); if (!fired) { shoot(); fired = true; } } } }; } } movieClip 6009 { frame 4 { _root.gameOutcome(true); } frame 85 { gotoAndPlay(7); } } movieClip 6019 { } movieClip 6020 { } movieClip 6022 { } movieClip 6023 { } movieClip 6026 { } movieClip 6029 { } movieClip 6030 game164 { frame 1 { _root.beatClock = true; _root.rules = 'Start a Fire!'; } instance wood of movieClip 6020 { onClipEvent (load) { gotoAndStop(1); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (onfire) { gotoAndStop(2); } else { gotoAndStop(1); } } } } instance stick of movieClip 6023 { onClipEvent (load) { point = 0; Mouse.hide(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { Mouse.hide(); startDrag(this, true); Xd = _parent.wood._x - _x; Yd = _parent.wood._y + 200 - _y; radAngle = Math.atan2(Yd, Xd); _rotation = int(radAngle * 360 / 6.283185307179586); curx = _x + 1; cury = _y + 1; speedx = _x - oldx; speedy = _y - oldy; speed = Math.abs(speedx * speedy); oldx = _x; oldy = _y; if (speed >= 100 && hitter.hitTest(_parent.wood)) { ++point; } if (point > 20) { _parent.wood.onfire = true; } } } } } movieClip 6033 { } movieClip 6035 { } movieClip 6037 { } movieClip 6039 { } movieClip 6041 { frame 19 { _root.g.prevFrame(); } } movieClip 6044 { } movieClip 6046 { frame 31 { stop(); } } movieClip 6049 { frame 45 { stop(); this.removeMovieClip(); } } movieClip 6050 { frame 1 { stop(); var i = 0; while (i < 10) { duplicateMovieClip('shard', 'shard' + i, i); target = eval('shard' + i); target._x += random(20) - 10; target._y += random(30) - 15; ++i; } } instance shard of movieClip 6049 { onClipEvent (load) { xspeed = random(16) - 8; yspeed = -random(10) - 5; _xscale = random(120) + 20; _yscale = _xscale; } onClipEvent (enterFrame) { yspeed += 0.5; _rotation = Math.atan2(yspeed, xspeed) * 360 / 3.141593; _x = _x + xspeed; _y = _y + yspeed; if (_y > bv + _height / 2) { _y = bv + _height / 2; yspeed = -yspeed * 0.3; xspeed *= 0.3; } } } } movieClip 6051 { frame 1 { _root.rules = 'Fill it'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { globostart = true; } }; } frame 1 { stop(); } instance tom3_loader of movieClip 5438 { onClipEvent (load) { stuff = 'left'; } onClipEvent (enterFrame) { if (Key.isDown(37) && stuff == 'left') { stuff = 'right'; _root.g.g.nextFrame(); } if (Key.isDown(39) && stuff == 'right') { stuff = 'left'; _root.g.g.nextFrame(); } } } frame 30 { stop(); _root.gameOutcome(true); } } movieClip 6054 { } movieClip 6055 game165 { } movieClip 6059 { } movieClip 6061 { } movieClip 6062 { } movieClip 6063 { } movieClip 6065 { } movieClip 6067 { } movieClip 6069 { } button 6070 { on (release) { _root.gameOutcome(true); } } button 6071 { on (release) { _root.gameOutcome(true); } } button 6072 { on (release) { _root.gameOutcome(true); } } movieClip 6074 { } movieClip 6075 game166 { frame 1 { rageacescursor.startDrag('true'); Mouse.hide(); onEnterFrame = function () { if (_root.cstatus == 0) { rageacescursor.stopDrag(); } else { rageacescursor.startDrag('true'); } }; stop(); } frame 1 { randomnumber = random(4); if (randomnumber == 1) { random3._x = 253; random3._y = 258; } if (randomnumber == 2) { random1._x = 182; random1._y = 257; } if (randomnumber == 3) { random2._x = 267; random2._y = 204; } if (randomnumber == 0) { random2._x = 267; random2._y = 204; } stop(); } frame 1 { _root.rules = 'Stop The Fires'; _root.beatClock = true; } } movieClip 6076 game167 { } movieClip 6078 { } movieClip 6091 { } movieClip 6102 { } movieClip 6104 { instance elec of movieClip 6102 { onClipEvent (load) { oldx = _x; } onClipEvent (enterFrame) { this._x = random(9) - random(10) + oldx; this._width = this._parent._parent._parent._parent.wheel.Sonic.speed; } } } movieClip 6105 { } movieClip 6107 { } movieClip 6108 { instance of movieClip 6091 { onClipEvent (enterFrame) { if (this._parent._parent.wheel.Sonic.speed > 0) { play(); } else { stop(); } } } instance of movieClip 6091 { onClipEvent (enterFrame) { if (this._parent._parent.wheel.Sonic.speed > 0) { play(); } else { stop(); } } } instance of movieClip 6107 { onClipEvent (enterFrame) { this._rotation += this._parent._parent.wheel.Sonic.speed; } } instance of movieClip 6107 { onClipEvent (enterFrame) { this._rotation += this._parent._parent.wheel.Sonic.speed; } } } movieClip 6111 { } movieClip 6113 { } movieClip 6115 { } movieClip 6117 { } movieClip 6118 { instance of movieClip 6111 { onClipEvent (enterFrame) { this._rotation += _parent.Sonic.speed; } } } movieClip 6122 { frame 1 { stop(); } frame 60 { stop(); } } movieClip 6125 { } movieClip 6126 { } movieClip 6128 { } movieClip 6131 { } movieClip 6134 { } movieClip 6135 game168 { frame 1 { var power = 0; _root.rules = 'Fill up the battery'; _root.beatClock = true; } instance battery of movieClip 6122 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this.gotoAndStop(_root.g.power); if (_root.g.power >= 60) { _root.g.power = 60; _root.gameOutcome(true); } } } } instance thing of movieClip 6128 { onClipEvent (load) { _parent.bar._x -= 5; this._x = _parent.bar._x; this._y = _parent.bar._y; _parent.wheel.Sonic.speed = 0; down = true; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (down) { this._y += 10; } else { this._y -= 10; } if (this._y <= _parent.bar._y - _parent.bar._y / 2) { this._parent.wheel.Sonic.speed -= 3; down = true; } if (this._y >= _parent.bar._y + _parent.bar._y / 2) { this._parent.wheel.Sonic.speed -= 3; down = false; } dist = Math.abs(this._y - _parent.bar._y); speed = Math.round(100 - dist); if (Key.isDown(32) && !kdown) { if (this.hitTest(this._parent.bar.hitter)) { _parent.wheel.Sonic.speed += 8; } else { _parent.wheel.Sonic.speed -= 2; } kdown = true; } if (!Key.isDown(32)) { kdown = false; } if (_parent.wheel.Sonic.speed <= 0) { _parent.wheel.Sonic.speed = 0; _parent.wheel.Sonic.leg1._rotation = 0; _parent.wheel.Sonic.leg2._rotation = 0; _parent.wheel.Sonic.leg3._rotation = 0; _parent.wheel.Sonic.leg4._rotation = 0; } else { _parent.wheel.Sonic.leg1._rotation += 30 + _parent.wheel.Sonic.speed / 2; _parent.wheel.Sonic.leg2._rotation += 30 + _parent.wheel.Sonic.speed / 2; _parent.wheel.Sonic.leg3._rotation += 30 + _parent.wheel.Sonic.speed / 2; _parent.wheel.Sonic.leg4._rotation += 30 + _parent.wheel.Sonic.speed / 2; } filter = new flash.filters.BlurFilter(3 + _parent.wheel.Sonic.speed, _parent.wheel.Sonic.speed / _parent.wheel.Sonic.speed, 2); _parent.wheel.Sonic.filters = [filter]; if (_parent.wheel.Sonic.speed >= 20) { _parent.wheel.Sonic.speed = 20; } if (_parent.wheel.Sonic.speed >= 15) { trace('hey'); _root.g.power += 2; } } } } } movieClip 6138 { } movieClip 6140 { } movieClip 6141 { frame 1 { stop(); } } movieClip 6148 { } movieClip 6149 game169 { frame 1 { _root.rules = 'Gets teh Gold!'; _root.beatClock = true; orgin = random(Stage.width - 300); i = 0; while (i < 5) { duplicateMovieClip(gold, 'gold' + i, getNextHighestDepth()); ++i; } cgold = 0; onEnterFrame = function () { if (cgold >= 5) { _root.gameOutcome(true); } }; } instance gold of movieClip 6140 { onClipEvent (load) { this._x = _parent.orgin + random(300); this._y = -random(500) - 10; fspeed = 10; rotation = 10 + random(20) - random(30); } onClipEvent (enterFrame) { if (_name == 'gold') { this._x = -1000; } else { if (_root.cstatus == 1) { _rotation = _rotation + rotation; this._y += fspeed; if (this.hitTest(_parent.char)) { _parent.cgold += 1; this.removeMovieClip(); } } } } } instance char of movieClip 6148 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { vgold.gotoAndStop(1 + _parent.cgold); this.swapDepths(100); if (Key.isDown(39)) { this._x += 15; } else { if (Key.isDown(37)) { this._x -= 15; } } if (_x <= 0) { _x = 0; } if (_x >= Stage.width) { _x = Stage.width; } } } } } movieClip 6153 { } movieClip 6157 { } movieClip 6166 { frame 9 { stop(); } } movieClip 6167 { frame 1 { stop(); } } movieClip 6168 { frame 1 { stop(); } frame 2 { plug.gotoAndStop(1); } } movieClip 6169 { frame 1 { stop(); } } movieClip 6172 { frame 1 { stop(); } frame 20 { gotoAndPlay(2); } } movieClip 6175 game170 { frame 1 { _root.beatClock = true; _root.rules = 'Plug it in!'; onEnterFrame = function () { createEmptyMovieClip('line', 1000); line.lineStyle(3, 13421772, 100); line.moveTo(orgin._x, orgin._y); if (!plug.plugged && !plug.splode) { line.lineTo(plug._x, plug._y + 5); } else { if (plug.plugged && !plug.splode) { if (outlet.number <= 1) { line.lineTo(outlet._x, outlet._y + outlet._height / 4 - 5); } else { if (outlet.number >= 2) { line.lineTo(outlet._x, outlet._y - outlet._height / 4 + 5); } } } else { if (plug.splode) { removeMovieClip(line); } } } }; } instance outlet of movieClip 6169 { onClipEvent (load) { number = random(3); this.gotoAndStop(number); } } instance plug of movieClip 6167 { onClipEvent (load) { spd = 10; plugged = false; splode = false; this._x = random(Stage.width); this._y = random(Stage.height); } onClipEvent (enterFrame) { if (this.hitter.hitTest(_parent.outlet.checkmark)) { correct = true; hitting = true; _parent.text2 = 'Press Space'; } else { if (this.hitter.hitTest(_parent.outlet.wrong)) { correct = false; hitting = true; _parent.text2 = ''; } else { correct = false; hitting = false; _parent.text2 = ''; } } if (!plugged && !splode) { if (!Key.isDown(32)) { _x = _x + Key.isDown(39) * spd; _x = _x - Key.isDown(37) * spd; _y = _y + Key.isDown(40) * spd; _y = _y - Key.isDown(38) * spd; } if (Key.isDown(32) && correct && hitting) { plugged = true; splode = false; } else { if (Key.isDown(32) && !correct && hitting) { plugged = false; splode = true; } } } else { if (correct) { this._alpha = 0; _parent.outlet.checkmark.gotoAndStop(2); _parent.outlet.checkmark._alpha = 100; _parent.speakers.play(); _parent.text2 = 'Woot'; _root.gameOutcome(true); } if (splode) { this.gotoAndStop('explosion'); _parent.text2 = 'Boom, lol'; _root.gameOutcome(false); } } } } } movieClip 6178 { } movieClip 6179 { } movieClip 6181 { } movieClip 6182 { } movieClip 6184 { } movieClip 6186 { } movieClip 6188 { } movieClip 6190 { } movieClip 6192 { } movieClip 6195 { } movieClip 6197 { } movieClip 6198 { } movieClip 6200 { } movieClip 6201 { } movieClip 6203 { } movieClip 6204 { } movieClip 6205 { frame 1 { function die() { _root.gameOutcome(false); } _root.rules = 'Get to the exit!'; _root.beatClock = true; enemy0._x = Math.random() * 310 - 190; enemy0._y = Math.random() * 170 - 120; enemy0.velocity = 5; if (Math.random() > 0.5) { enemy0._rotation = 90; enemy0.onEnterFrame = function () { if (_root.cstatus == 1) { var v3 = 0; while (v3 <= 2) { if (this.hitTest(_root.game['wall' + v3].body)) { this.velocity *= -1; } this._y += this.velocity; v3 += 2; } } }; } else { enemy0.onEnterFrame = function () { if (_root.cstatus == 1) { var v3 = 1; while (v3 <= 3) { if (this.hitTest(_root.game['wall' + v3].body)) { this.velocity *= -1; } this._x += this.velocity; v3 += 2; } } }; } var i = 1; while (i < 5) { duplicateMovieClip(enemy0, 'enemy' + i, this.getNextHighestDepth()); this['enemy' + i]._x = Math.random() * 315 - 180; this['enemy' + i]._y = Math.random() * 165 - 110; this['enemy' + i].velocity = 5; if (Math.random() > 0.5) { this['enemy' + i]._rotation = 90; this['enemy' + i].onEnterFrame = function () { if (_root.cstatus == 1) { var v3 = 0; while (v3 <= 2) { if (this.hitTest(_root.game['wall' + v3].body)) { this.velocity *= -1; } this._y += this.velocity; v3 += 2; } } }; } else { this['enemy' + i]._rotation = 0; this['enemy' + i].onEnterFrame = function () { if (_root.cstatus == 1) { var v3 = 1; while (v3 <= 3) { if (this.hitTest(_root.game['wall' + v3].body)) { this.velocity *= -1; } this._x += this.velocity; v3 += 2; } } }; } ++i; } onEnterFrame = function () { if (_root.cstatus == 1) { if (Key.isDown(38)) { player._y -= 8; } if (Key.isDown(40)) { player._y += 8; } if (Key.isDown(37)) { player._x -= 8; } if (Key.isDown(39)) { player._x += 8; } if (player.hitTest(exit.portal)) { _root.gameOutcome(true); } var v3 = 0; while (v3 < 4) { if (player.hitTest(this['wall' + v3].body)) { die(); } ++v3; } v3 = 0; while (v3 < 5) { if (player.hitTest(this['enemy' + v3].body)) { die(); } ++v3; } } }; } } movieClip 6206 game171 { } movieClip 6209 { } movieClip 6211 { } movieClip 6213 { } movieClip 6214 { } movieClip 6217 { } movieClip 6219 { } movieClip 6220 { } movieClip 6222 { } movieClip 6223 game172 { frame 1 { _root.rules = 'Avoid the spikes'; _root.beatClock = true; } instance wheel of movieClip 6214 { onClipEvent (load) { speed = 0; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += speed; this.wheel._rotation += speed; if (Key.isDown(39)) { ++speed; } else { if (Key.isDown(37)) { --speed; } } if (Key.isDown(38) && !jumping) { jumping = true; vel_y = 15; } if (jumping) { this._y -= vel_y; vel_y -= 1.3; if (vel_y <= -10) { vel_y = -10; } } while (_parent.ground.hitTest(this)) { vel_y = 0; jumping = false; this._y -= 1; } if (this.hitTest(_parent.spike._x - speed, _parent.spike._y, true) || this.hitTest(_parent.spike2._x - speed, _parent.spike2._y, true)) { _root.gameOutcome(false); } } } } instance of movieClip 6222 { onClipEvent (enterFrame) { if (this.hitTest(_parent.wheel)) { _root.gameOutcome(true); } } } } movieClip 6230 { } movieClip 6232 { } movieClip 6233 { } movieClip 6234 { } movieClip 6235 { } movieClip 6241 { } movieClip 6242 { frame 1 { stop(); } } movieClip 6243 { frame 1 { stop(); } } movieClip 6244 { frame 1 { stop(); } } movieClip 6245 { frame 1 { stop(); } } movieClip 6246 { } movieClip 6247 { frame 1 { stop(); } } movieClip 6248 { frame 1 { stop(); } } movieClip 6250 { } movieClip 6255 { } movieClip 6260 { } movieClip 6261 game173 { frame 1 { _root.rules = 'Light the Candles'; _root.beatClock = true; var litCandle1 = false; var litCandle2 = false; var litCandle3 = false; var litCandle4 = false; var litCandle5 = false; var litCandle6 = false; onEnterFrame = function () { if (_root.cstatus == 1) { if (litCandle1 == true && litCandle2 == true && litCandle3 == true && litCandle3 == true && litCandle4 == true && litCandle5 == true && litCandle6 == true) { _root.gameOutcome(true); } if (roc1_flame.hitTest(roc1_wick1)) { litCandle1 = true; roc1_wick1.gotoAndStop(2); } if (roc1_flame.hitTest(roc1_wick2)) { litCandle2 = true; roc1_wick2.gotoAndStop(2); } if (roc1_flame.hitTest(roc1_wick3)) { litCandle3 = true; roc1_wick3.gotoAndStop(2); } if (roc1_flame.hitTest(roc1_wick4)) { litCandle4 = true; roc1_wick4.gotoAndStop(2); } if (roc1_flame.hitTest(roc1_wick5)) { litCandle5 = true; roc1_wick5.gotoAndStop(2); } if (roc1_flame.hitTest(roc1_wick6)) { litCandle6 = true; roc1_wick6.gotoAndStop(2); } } }; } instance of movieClip 6250 { onClipEvent (enterFrame) { endX = _root._xmouse; endY = _root._ymouse; _x = _x + (endX - _x) / 3; _y = _y + (endY - _y) / 3; Mouse.hide(); } } instance roc1_flame of movieClip 6255 { onClipEvent (enterFrame) { endX = _root._xmouse; endY = _root._ymouse; _x = _x + (endX - _x) / 3; _y = _y + (endY - _y) / 3; Mouse.hide(); } } } movieClip 6263 { } movieClip 6266 { } movieClip 6270 { } movieClip 6271 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 6274 { } movieClip 6277 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 6279 { } movieClip 6281 { frame 6 { stop(); } } movieClip 6282 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 6283 game174 { frame 1 { _root.rules = 'Lights, Camera...'; _root.beatClock = true; stop(); onEnterFrame = function () { if (_root.cstatus == 1) { } }; } frame 1 { } instance light of movieClip 6271 { onClipEvent (press) { _parent.light.gotoAndStop(2); _parent.nextFrame(); } } frame 2 { stop(); } instance of movieClip 6271 { onClipEvent (enterFrame) { gotoAndStop(2); } } instance camera of movieClip 6277 { onClipEvent (press) { this.gotoAndStop(2); _parent.nextFrame(); } } frame 3 { stop(); } instance of movieClip 6271 { onClipEvent (enterFrame) { gotoAndStop(2); } } instance camera of movieClip 6277 { onClipEvent (enterFrame) { gotoAndStop(2); } } instance of movieClip 6282 { onClipEvent (press) { _root.gameOutcome(true); this.gotoAndStop(2); } } } movieClip 6287 { } movieClip 6289 { } movieClip 6291 { } movieClip 6292 { } movieClip 6299 { } movieClip 6300 { } movieClip 6303 { } movieClip 6305 { frame 1 { stop(); } frame 2 { stop(); stop(); _root.gameOutcome(true); } } movieClip 6307 { frame 1 { stop(); } } movieClip 6310 { } movieClip 6311 game175 { frame 1 { _root.rules = 'Get his leg back!'; _root.beatClock = true; time = 0; onEnterFrame = function () { if (_root.cstatus == 1) { timerunning = true; } ++time; if (time == 120) { _root.g.hombre.gotoAndStop(3); } }; } instance hombre of movieClip 6305 { onClipEvent (load) { this._x = random(280); } } instance of movieClip 6307 { onClipEvent (load) { this._x = random(450); } onClipEvent (mouseDown) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { drag = true; xx = _root._xmouse - _x; yy = _root._ymouse - _y; } } onClipEvent (mouseUp) { drag = false; } onClipEvent (enterFrame) { if (drag == true) { _x = _root._xmouse - xx; _y = _root._ymouse - yy; } } onClipEvent (enterFrame) { if (this.hitcoso.hitTest(_root.g.hombre.hitcoso)) { _root.g.hombre.gotoAndStop(2); this.gotoAndStop(2); } } } } movieClip 6315 { } movieClip 6317 { } movieClip 6319 { } movieClip 6321 { } movieClip 6323 { } movieClip 6325 { } movieClip 6327 { } movieClip 6330 { } movieClip 6332 game176 { frame 1 { _root.rules = 'Pick the Right Book'; _root.beatClock = true; } frame 1 { stop(); onEnterFrame = function () { if (_root.cstatus == 1) { nextFrame(); } }; } instance of movieClip 6317 { } instance of movieClip 6319 { } instance of movieClip 6327 { } frame 2 { stop(); Nug10_rand = Math.round(Math.random() * 5); Nug10_array = new Array('Science', 'Math', 'History', 'Language', 'Art', 'English'); Nug10_array2 = new Array(); Nug10_txt1 = Nug10_array[Nug10_rand]; onMouseDown = function () { if (_root.cstatus == 1) { while (Nug10_array2.length > 0) { Nug10_array2.pop(); } } }; Nug10_txt = 'Get Your ' + Nug10_txt1 + ' Book!'; onEnterFrame = function () { if (_root.cstatus == 1) { if (Nug10_array2[0] != undefined) { if (Nug10_array2[0] == Nug10_txt1) { Nug10_out._visible = true; Nug10_out.gotoAndStop(1); _root.gameOutcome(true); } else { Nug10_out._visible = true; Nug10_out.gotoAndStop(2); _root.gameOutcome(false); } } } }; } instance of movieClip 6317 { onClipEvent (release) { if (_root.cstatus == 1) { _parent.Nug10_array2.push('Science'); } } } instance of movieClip 6319 { onClipEvent (release) { if (_root.cstatus == 1) { _parent.Nug10_array2.push('Math'); } } } instance of movieClip 6321 { onClipEvent (release) { if (_root.cstatus == 1) { _parent.Nug10_array2.push('History'); } } } instance of movieClip 6323 { onClipEvent (release) { if (_root.cstatus == 1) { _parent.Nug10_array2.push('Language'); } } } instance of movieClip 6325 { onClipEvent (release) { if (_root.cstatus == 1) { _parent.Nug10_array2.push('Art'); } } } instance of movieClip 6327 { onClipEvent (release) { if (_root.cstatus == 1) { _parent.Nug10_array2.push('English'); } } } } movieClip 6335 { } button 6337 { on (release) { gotoAndPlay(2); } } movieClip 6340 { } movieClip 6345 { } movieClip 6347 { frame 1 { stop(); } instance of movieClip 6340 { onClipEvent (load) { } onClipEvent (enterFrame) { Mouse.hide(); } onClipEvent (load) { startDrag('', true); } } frame 56 { stop(); } frame 56 { _root.gameOutcome(true); stop; } } movieClip 6350 { } movieClip 6351 game177 { frame 1 { _root.rules = 'Punch The Bag.'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } } button 6358 { on (press) { if (_root.cstatus == 1) { _root.gameOutcome(false); } } } button 6362 { on (press) { if (_root.cstatus == 1) { _root.gameOutcome(true); } } } button 6366 { on (press) { if (_root.cstatus == 1) { _root.gameOutcome(false); } } } button 6372 { on (press) { if (_root.cstatus == 1) { _root.gameOutcome(false); } } } button 6373 { on (press) { if (_root.cstatus == 1) { _root.gameOutcome(true); } } } button 6379 { on (press) { if (_root.cstatus == 1) { _root.gameOutcome(true); } } } movieClip 6383 { frame 1 { stop(); } } movieClip 6386 { } movieClip 6387 game178 { frame 1 { _root.rules = 'Find the color!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance of movieClip 6383 { onClipEvent (load) { if (_root.cstatus == 1) { this.gotoAndStop(random(18)); } } onClipEvent (enterFrame) { if (_root.cstatus != 1) { this.gotoAndStop(random(18)); } } } } movieClip 6391 { } movieClip 6394 { } movieClip 6395 { } movieClip 6397 { } movieClip 6399 { } movieClip 6401 { } movieClip 6403 { } movieClip 6405 { } movieClip 6407 { } movieClip 6408 { } movieClip 6409 { } movieClip 6411 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 6414 { frame 1 { stop(); } frame 7 { i = 0; while (i < _parent.totalStars) { _parent[i].gotoAndStop(1); _parent['act' + i] = false; ++i; } stop(); } } movieClip 6416 { } movieClip 6417 { frame 1 { stop(); } frame 10 { stop(); } } movieClip 6420 { } movieClip 6423 { } movieClip 6426 { } movieClip 6428 { } movieClip 6429 { } movieClip 6430 { } movieClip 6431 { } movieClip 6433 { } movieClip 6435 { } movieClip 6436 { } movieClip 6438 { } movieClip 6439 game179 { frame 1 { _root.beatClock = true; _root.rules = 'Cut that Godly Thing!'; var totalStars = 7; var k = 0; i = 0; while (i < totalStars) { this['act' + i] = false; ++i; } var starsHit = 0; onEnterFrame = function () { if (_root.cstatus == 1) { i = 0; while (i < 7) { if (this[i].hitTest(_root._xmouse, _root._ymouse) && this['act' + i] == false) { this[i].play(); j = 0; while (j < 10) { shit = attachMovie('evan2_star2', 'evan2_star2' + k, k++); shit._x = this[i]._x; shit._y = this[i]._y; shit._rotation = random(360); shit._xscale = random(150); shit._yscale = shit._xscale; ++j; } this['act' + i] = true; ++starsHit; } ++i; } } if (starsHit >= totalStars) { pizza.play(); starsHit = 0; if (hitOnce == true) { nextFrame(); } pizza.pan.nextFrame(); hitOnce = true; } }; stop(); } frame 2 { stop(); _root.gameOutcome(true); trace('win'); } } movieClip 6441 { } movieClip 6448 { frame 1 { stop(); } } movieClip 6454 { } movieClip 6456 { } movieClip 6463 { frame 1 { stop(); } } movieClip 6468 { frame 1 { stop(); } } movieClip 6471 { } movieClip 6472 game180 { frame 1 { _root.rules = 'Inflate!!'; _root.beatClock = true; left = true; onEnterFrame = function () { if (_root.cstatus == 1) { if (Key.isDown(37) && left && !Key.isDown(39)) { tire.nextFrame(); pump.play(); left = false; right = true; } if (Key.isDown(39) && right && !Key.isDown(37)) { tire.nextFrame(); pump.play(); right = false; left = true; } if (tire._currentframe == tire._totalframes) { cstatus = 0; tire.prevFrame(); sparkle.play(); _root.gameOutcome(true); } } }; } } movieClip 6496 { } movieClip 6501 { } movieClip 6503 { } movieClip 6506 { } movieClip 6508 { } movieClip 6511 { } movieClip 6514 { } movieClip 6515 game181 { frame 1 { cstatus = 1; _root.rules = 'Catch the Green!'; _root.beatClock = true; i = 0; while (i < 4) { this['acc' + i] = (random(30) + 1) * 0.01; this['vel' + i] = 0; this[i]._x = random(450) + 50; this['a' + i]._x = this[i]._x; ++i; } onEnterFrame = function () { if (_root.cstatus == 1) { i = 0; while (i < 4) { this[i]._y += this['vel' + i]; this['vel' + i] += this['acc' + i]; ++i; } i = 0; while (i < 3) { if (this[i].hitTest(_root._xmouse, _root._ymouse)) { _root.gameOutcome(false); } if (this.3.hitTest(_root._xmouse, _root._ymouse)) { _root.gameOutcome(true); } ++i; } } }; } } movieClip 6518 { } button 6519 { on (release) { if (_root.cstatus == 1) { nextFrame(); } } } button 6522 { on (release) { if (_root.cstatus == 1) { prevFrame(); } } } movieClip 6523 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 6524 { } movieClip 6527 { } movieClip 6528 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 6529 { } movieClip 6532 { } movieClip 6536 { } button 6537 { on (release) { verify(); } } movieClip 6540 { } movieClip 6541 game182 { frame 1 { function verify() { var v3 = true; var v2 = 1; while (v2 <= 8) { if (redPad['s' + v2]._currentframe != bluePad['s' + v2]._currentframe) { v3 = false; } ++v2; } if (v3) { _root.gameOutcome(true); } else { _root.gameOutcome(false); } } _root.rules = 'Hole + light = :)'; _root.beatClock = true; var i = 1; while (i <= 8) { if (Math.random() > 0.5) { this.bluePad['s' + i].nextFrame(); } ++i; } } } movieClip 6544 { } movieClip 6546 { } movieClip 6548 { } movieClip 6575 { } movieClip 6585 { } movieClip 6588 { } movieClip 6589 { } movieClip 6592 { } movieClip 6606 { } movieClip 6607 { frame 1 { stop(); } frame 3 { stop(); } } button 6608 { on (press) { if (_root.cstatus == 1) { startDrag('eye10_drag', false); } } on (release) { stopDrag(); } } movieClip 6611 { } movieClip 6620 { } movieClip 6628 { frame 22 { stop(); } } movieClip 6629 game183 { frame 1 { _root.rules = 'Drag to the light!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { if (eye10_dot.hitTest(eye10_exit)) { _root.gameOutcome(true); } if (eye10_dot.hitTest(eye10_ball1) || eye10_dot.hitTest(eye10_ball2) || eye10_dot.hitTest(eye10_ball3) || eye10_dot.hitTest(eye10_ball4) || eye10_dot.hitTest(eye10_ball5) || eye10_dot.hitTest(eye10_ball6) || eye10_dot.hitTest(eye10_ball7) || eye10_dot.hitTest(eye10_ball8) || eye10_dot.hitTest(eye10_ball9) || eye10_dot.hitTest(eye10_ball10) || eye10_dot.hitTest(eye10_ball11) || eye10_dot.hitTest(eye10_ball12) || eye10_dot.hitTest(eye10_ball13) || eye10_dot.hitTest(eye10_ball14) || eye10_dot.hitTest(eye10_ball15) || eye10_dot.hitTest(eye10_ball16) || eye10_dot.hitTest(eye10_ball17)) { _root.gameOutcome(false); play(); } } else { eye10_drag.stopDrag(); } }; } frame 1 { stop(); } instance eye10_dot of movieClip 6548 { onClipEvent (enterFrame) { this._x = _root.g.eye10_drag._x; this._y = _root.g.eye10_drag._y; } } instance eye10_ball9 of movieClip 6589 { onClipEvent (load) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); if (this.hitTest(_root.g.eye10_drag) || this.hitTest(_root.g.eye10_exit)) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); } } } instance eye10_ball7 of movieClip 6589 { onClipEvent (load) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); if (this.hitTest(_root.g.eye10_drag) || this.hitTest(_root.g.eye10_exit)) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); } } } instance eye10_ball12 of movieClip 6589 { onClipEvent (load) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); if (this.hitTest(_root.g.eye10_drag) || this.hitTest(_root.g.eye10_exit)) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); } } } instance eye10_ball6 of movieClip 6589 { onClipEvent (load) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); if (this.hitTest(_root.g.eye10_drag) || this.hitTest(_root.g.eye10_exit)) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); } } } instance eye10_ball14 of movieClip 6589 { onClipEvent (load) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); if (this.hitTest(_root.g.eye10_drag) || this.hitTest(_root.g.eye10_exit)) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); } } } instance eye10_ball2 of movieClip 6589 { onClipEvent (load) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); if (this.hitTest(_root.g.eye10_drag) || this.hitTest(_root.g.eye10_exit)) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); } } } instance eye10_ball8 of movieClip 6589 { onClipEvent (load) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); if (this.hitTest(_root.g.eye10_drag) || this.hitTest(_root.g.eye10_exit)) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); } } } instance eye10_ball1 of movieClip 6589 { onClipEvent (load) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); if (this.hitTest(_root.g.eye10_drag) || this.hitTest(_root.g.eye10_exit)) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); } } } instance eye10_ball13 of movieClip 6589 { onClipEvent (load) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); if (this.hitTest(_root.g.eye10_drag) || this.hitTest(_root.g.eye10_exit)) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); } } } instance eye10_ball4 of movieClip 6589 { onClipEvent (load) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); if (this.hitTest(_root.g.eye10_drag) || this.hitTest(_root.g.eye10_exit)) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); } } } instance eye10_ball11 of movieClip 6589 { onClipEvent (load) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); if (this.hitTest(_root.g.eye10_drag) || this.hitTest(_root.g.eye10_exit)) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); } } } instance eye10_ball5 of movieClip 6589 { onClipEvent (load) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); if (this.hitTest(_root.g.eye10_drag) || this.hitTest(_root.g.eye10_exit)) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); } } } instance eye10_ball10 of movieClip 6589 { onClipEvent (load) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); if (this.hitTest(_root.g.eye10_drag) || this.hitTest(_root.g.eye10_exit)) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); } } } instance eye10_ball15 of movieClip 6589 { onClipEvent (load) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); if (this.hitTest(_root.g.eye10_drag) || this.hitTest(_root.g.eye10_exit)) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); } } } instance eye10_ball3 of movieClip 6589 { onClipEvent (load) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); if (this.hitTest(_root.g.eye10_drag) || this.hitTest(_root.g.eye10_exit)) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); } } } instance eye10_ball16 of movieClip 6589 { onClipEvent (load) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); if (this.hitTest(_root.g.eye10_drag) || this.hitTest(_root.g.eye10_exit)) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); } } } instance eye10_ball17 of movieClip 6589 { onClipEvent (load) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); if (this.hitTest(_root.g.eye10_drag) || this.hitTest(_root.g.eye10_exit)) { this._x = int(Math.random() * 400); this._y = int(Math.random() * 400); } } } } movieClip 6673 { } movieClip 6674 { } movieClip 6676 { } movieClip 6678 { } movieClip 6682 { } movieClip 6683 { } movieClip 6701 { } movieClip 6708 { } movieClip 6714 { } movieClip 6716 { } movieClip 6718 { } movieClip 6720 { } movieClip 6722 { } movieClip 6724 { } movieClip 6734 { frame 14 { stop(); } } movieClip 6742 { } movieClip 6750 { frame 35 { stop(); } frame 36 { stop(); Remove.MovieClip; } } movieClip 6751 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 6753 { } movieClip 6755 { } movieClip 6756 { instance rightharborpart of movieClip 6753 { onClipEvent (enterFrame) { if (this.hitTest(this._parent._parent.boat1)) { this._parent._parent.boat1.vx = 0; this._parent._parent.boat1.vy = 0; _root.gameOutcome(false); } } onClipEvent (enterFrame) { if (this.hitTest(this._parent.boat1)) { this._parent.boat1.gotoAndStop(5); this._parent.boat1.vx = 0; this._parent.boat1.vy = 0; _root.gameOutcome(false); } } } instance leftharborpart of movieClip 6755 { onClipEvent (enterFrame) { if (this.hitTest(this._parent._parent.boat1)) { this._parent._parent.boat1.vx = 0; this._parent._parent.boat1.vy = 0; _root.gameOutcome(false); } } onClipEvent (enterFrame) { if (this.hitTest(this._parent.boat1)) { this._parent.boat1.gotoAndStop(5); this._parent.boat1.vx = 0; this._parent.boat1.vy = 0; _root.gameOutcome(false); } } } } movieClip 6757 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 6760 { } movieClip 6761 game184 { frame 1 { _root.rules = 'Steal the tankers space!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { Text = 'Four Second Firestorm'; letters = Text.split(''); letterformat = new TextFormat(); letterformat.font = 'Ariala'; letterformat.align = 'left'; letterformat.size = '13'; spacing = 8; speed = 3; var LTR = 0; while (LTR < letters.length) { mc = _root.g.createEmptyMovieClip(LTR + 'l', LTR); mc.createTextField(letters[LTR] + 't', LTR, LTR * spacing, 10, 20, 20); with (mc[letters[LTR] + 't']) { text = letters[LTR]; setTextFormat(letterformat); selectable = false; } if (LTR) { mc.prevClip = _root.g[LTR - 1 + 'l']; mc.onEnterFrame = function () { this._x += (this.prevClip._x - this._x + 5) / speed; this._y += (this.prevClip._y - this._y) / speed; }; } else { mc.onEnterFrame = function () { this._x += (_root._xmouse - this._x + 10) / speed; this._y += (_root._ymouse - this._y) / speed; }; } ++LTR; } } }; } instance tanker1 of movieClip 6701 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.boat1)) { this._parent.boat1.gotoAndStop(5); this._parent.boat1.vx = 0; this._parent.boat1.vy = 0; _parent.boat1.gotoAndStop(5); _root.gameOutcome(false); } } onClipEvent (load) { speed = 1; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x += speed; } } onClipEvent (enterFrame) { if (this.hitTest(this._parent.tankerbeam) and this._parent.boat1.hitTest(this._parent.portthing)) { speed = 0; } } } instance mine1 of movieClip 6708 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.boat1)) { this._parent.boat1.gotoAndStop(5); this._parent.boat1.vx = 0; this._parent.boat1.vy = 0; _root.gameOutcome(false); } } onClipEvent (enterFrame) { if (this._parent.boat1.hitTest(this._parent.portthing) and this._parent.tanker1._x < 475) { _root.gameOutcome(true); this._parent.gamewin11.gotoAndStop(2); } } } instance boat1 of movieClip 6751 { onClipEvent (load) { vx = 5; vy = 5; friction = 0.7; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { vx *= friction; vy *= friction; this._x += vx; this._y += vy; if (Key.isDown(39)) { vx += 3; this.gotoAndStop(3); } } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { vx *= friction; vy *= friction; this._x += vx; this._y += vy; if (Key.isDown(37)) { vx -= 3; this.gotoAndStop(2); } } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { vx *= friction; vy *= friction; this._x += vx; this._y += vy; if (Key.isDown(38)) { vy -= 3; this.gotoAndStop(1); } } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { vx *= friction; vy *= friction; this._x += vx; this._y += vy; if (Key.isDown(40)) { vy += 3; this.gotoAndStop(4); } } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(32)) { vx = 0; vy = 0; } } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_root.armor == 0) { _root.gotoAndPlay(6); } } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_root.fuel == 0) { _root.gotoAndPlay(6); } } } } } movieClip 6764 { frame 1 { stop(); } frame 21 { stop(); } } movieClip 6766 { } movieClip 6768 { } movieClip 6770 { } movieClip 6773 { frame 10 { gotoAndPlay(1); } } movieClip 6776 { } movieClip 6777 game186 { frame 1 { this.attachMovie('coin', 'coin1', 6); } frame 1 { _root.rules = 'Avoid!'; _root.beatClock = false; onEnterFrame = function () { if (_root.cstatus == 1) { if (_root.g.coin1.hitTest(_root.g.cur)) { _root.gameOutcome(false); _root.g.avoider.gotoAndStop('YOULOSE'); _root.g.bg.gotoAndPlay(2); _root.g.coin1.unloadMovie(); } } }; } instance rand2 of movieClip 6766 { onClipEvent (load) { this._visible = false; } } instance rand of movieClip 6766 { onClipEvent (load) { this._visible = false; } } instance rand3 of movieClip 6766 { onClipEvent (load) { this._visible = false; } } instance rand4 of movieClip 6766 { onClipEvent (load) { this._visible = false; } } instance cur of movieClip 6770 { onClipEvent (load) { startDrag(this, true, 223, 170, 327, 231); Mouse.hide(); } } } movieClip 6779 { } movieClip 6781 { } movieClip 6785 { frame 14 { stop(); } } movieClip 6786 { frame 1 { stop(); } frame 2 { hit += 1; } } movieClip 6788 { frame 1 { stop(); } frame 2 { hit += 1; } } movieClip 6790 { frame 1 { stop(); } frame 2 { hit += 1; } } movieClip 6793 { } movieClip 6794 game187 { frame 1 { _root.rules = 'Hit all the planets'; _root.beatClock = true; speed = 1; pla._y = random(200) + 10; plb._y = random(200) + 10; plc._y = random(200) + 10; onEnterFrame = function () { if (_root.cstatus == 1) { speed += speed / 35; meteor._rotation += 3; meteor._x += speed; if (Key.isDown(38)) { meteor._y -= 5; } if (Key.isDown(40)) { meteor._y += 5; } if (meteor.hitTest(pla)) { pla.gotoAndStop(2); hit = 1; } if (meteor.hitTest(plb)) { plb.gotoAndStop(2); if (hit == 1) { hit = 2; } } if (meteor.hitTest(plc)) { plc.gotoAndStop(2); if (hit == 2) { hit = 3; meteor._alpha = 0; } } if (hit == 3) { _root.gameOutcome(true); } } }; } } movieClip 6797 { } movieClip 6799 { } movieClip 6801 { frame 21 { stop(); } } movieClip 6804 { frame 45 { stop(); this.removeMovieClip(); } } movieClip 6805 { frame 1 { stop(); var i = 0; while (i < 5) { duplicateMovieClip('shard', 'shard' + i, i); target = eval('shard' + i); target._x += random(20) - 10; target._y += random(30) - 15; ++i; } } instance shard of movieClip 6804 { onClipEvent (load) { xspeed = random(16) - 8; yspeed = -random(10) - 5; _xscale = random(120) + 20; _yscale = _xscale; } onClipEvent (enterFrame) { yspeed += 0.5; _rotation = Math.atan2(yspeed, xspeed) * 360 / 3.141593; _x = _x + xspeed; _y = _y + yspeed; if (_y > bv + _height / 2) { _y = bv + _height / 2; yspeed = -yspeed * 0.3; xspeed *= 0.3; } } } } movieClip 6806 { frame 1 { stop(); } instance of movieClip 6799 { onClipEvent (press) { if (_root.g.tom6_calculador.encendido == true) { this._parent.gotoAndStop(2); } } } frame 2 { _root.g.tom6_counter += 1; } } movieClip 6808 { } movieClip 6811 { } movieClip 6814 { } movieClip 6815 game188 { frame 1 { _root.rules = 'Shoot all coins'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { _root.g.tom6_calculador.encendido = true; } }; } frame 1 { stop(); _root.g.tom6_counter = 0; } instance of movieClip 6806 { onClipEvent (load) { this._x = random(520); } } instance of movieClip 6806 { onClipEvent (load) { this._x = random(520); } } instance of movieClip 6806 { onClipEvent (load) { this._x = random(520); } } instance of movieClip 6806 { onClipEvent (load) { this._x = random(520); } } instance of movieClip 6806 { onClipEvent (load) { this._x = random(520); } } instance of movieClip 6808 { onClipEvent (load) { this._x = random(520); } } instance tom6_calculador of movieClip 6811 { onClipEvent (load) { encendido = false; } onClipEvent (enterFrame) { if (_root.g.tom6_counter == 6) { _root.gameOutcome(true); } } } } movieClip 6818 { } movieClip 6819 { frame 1 { stop(); } } movieClip 6821 { } movieClip 6824 { } movieClip 6830 { frame 32 { _root.g.tom6_personaje.gotoAndStop(1); } } movieClip 6832 { frame 46 { stop(); } } movieClip 6833 { frame 1 { stop(); } frame 3 { _root.gameOutcome(false); } } movieClip 6838 { } movieClip 6839 game189 { frame 1 { _root.rules = 'Jump the flower'; _root.beatClock = false; onEnterFrame = function () { if (_root.cstatus == 1) { _root.g.tom6_flor.gotoAndStop(2); } }; } frame 1 { } instance tom6_personaje of movieClip 6833 { onClipEvent (load) { tom6_grav = 0; tom6_jumpHeight = 16; tom6_muere = false; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { ++tom6_grav; _y = _y + tom6_grav; while (_root.g.ground.hitTest(_x, _y, true)) { _y = _y - 1; tom6_grav = 0; } if (Key.isDown(32) && _root.g.ground.hitTest(_x, _y + 3, true) && tom6_muere == false) { tom6_grav = -tom6_jumpHeight; _y = _y - 4; this.gotoAndStop(2); } if (_root.g.tom6_flor.tom6_animacion._currentframe == 25) { this._xscale = -57; } if (_root.g.tom6_flor.tom6_animacion._currentframe == 90) { this._xscale = 57; } } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (this.tom6_unhit.hitTest(_root.g.tom6_flor)) { tom6_muere = true; this.gotoAndStop(3); } } } } } movieClip 6843 { } movieClip 6847 { } movieClip 6856 { frame 7 { stop(); } } movieClip 6857 { frame 1 { stop(); } } movieClip 6865 { } movieClip 6866 { frame 5 { stop(); } } movieClip 6870 { } movieClip 6871 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 6875 { } movieClip 6879 { } movieClip 6892 { } movieClip 6893 { frame 1 { stop(); } frame 14 { stop(); } } movieClip 6896 { } movieClip 6899 { } movieClip 6900 game190 { instance of movieClip 6893 { onClipEvent (load) { tim = random(80) + 16; _root.rules = 'Space to Dodge'; _root.beatClock = true; down = false; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { tim -= 1; if (_parent.kid._currentframe == 1) { if (Key.isDown(32) && tim <= 0 && !down) { _parent.kid.gotoAndStop(2); down = true; } if (Key.isDown(32) && tim > 0 && !down) { _parent.kid.xc.gotoAndStop(2); down = true; } } if (tim == 0) { play(); } if (tim == -12) { if (_parent.kid._currentframe == 1) { _parent.kid.gotoAndStop(3); _root.gameOutcome(false); } else { _root.gameOutcome(true); } } } } } } movieClip 6902 { } movieClip 6905 { } movieClip 6907 { } movieClip 6909 { } movieClip 6911 { } movieClip 6913 { } movieClip 6914 { } movieClip 6916 { } movieClip 6917 { frame 1 { stop(); } frame 10 { stop(); } } movieClip 6928 { frame 1 { stop(); } frame 11 { _parent.Spells0.gotoAndStop(Scy1_Magic + 2); _parent.play(); } frame 30 { stop(); } } movieClip 6942 { frame 2 { stop(); } frame 11 { gotoAndPlay('Death0'); } frame 28 { gotoAndPlay('Monster1'); } frame 37 { gotoAndPlay('Death1'); } frame 38 { stop(); } frame 39 { stop(); } frame 40 { stop(); } frame 41 { stop(); } } movieClip 6947 { frame 1 { stop(); } } movieClip 6950 { } movieClip 6951 game191 { frame 1 { _root.rules = 'Use the right spell'; _root.beatClock = true; stop(); _global.Scy1_Monster = Math.floor(Math.random() * 4); _global.Scy1_Spell = new Array(4); var DirList = new Array(0, 1, 2, 3); var SymList = new Array(0, 1, 2, 3); var DirRand; var SymRand; var Cnt = 0; while (Cnt < 4) { DirRand = Math.floor(Math.random() * (4 - Cnt)); SymRand = Math.floor(Math.random() * (4 - Cnt)); SpellBook0['Arrow' + Cnt]._rotation = DirList[DirRand] * 90; SpellBook0['Symbol' + SymList[SymRand]]._x = SpellBook0['Arrow' + Cnt]._x - 25; SpellBook0['Symbol' + SymList[SymRand]]._y = SpellBook0['Arrow' + Cnt]._y - 25; Scy1_Spell[DirList[DirRand]] = SymList[SymRand]; var Cnt2 = DirRand; while (Cnt2 < 3 - Cnt) { DirList[Cnt2] = DirList[Cnt2 + 1]; ++Cnt2; } var Cnt2 = SymRand; while (Cnt2 < 3 - Cnt) { SymList[Cnt2] = SymList[Cnt2 + 1]; ++Cnt2; } ++Cnt; } } instance Curtain0 of movieClip 6917 { onClipEvent (keyUp) { if (Key.getCode() > 36 and Key.getCode() < 41 and _currentframe == 1 and _root.cstatus == 1) { _global.Scy1_Magic = Scy1_Spell[Key.getCode() - 37]; play(); _parent.Wizard0.play(); if (Scy1_Magic == Scy1_Monster) { _root.beatClock = false; } } } } instance Monsters0 of movieClip 6942 { onClipEvent (load) { gotoAndPlay('Monster' + Scy1_Monster); } } frame 17 { Spells0.gotoAndStop(1); if (Scy1_Magic == Scy1_Monster) { Monsters0.gotoAndPlay('Death' + Scy1_Monster); } else { stop(); _root.gameOutcome(false); } } frame 48 { stop(); _root.gameOutcome(true); } } movieClip 6955 { } movieClip 6956 { } movieClip 6959 { } movieClip 6961 { } movieClip 6964 { } movieClip 6973 { } movieClip 6980 { } movieClip 6988 { } movieClip 6996 { } movieClip 7003 { } movieClip 7004 { } movieClip 7006 { frame 1 { stop(); } frame 64 { _root.gameOutcome(true); } } movieClip 7049 { } movieClip 7051 { } movieClip 7053 { } movieClip 7054 game192 { frame 1 { _root.rules = 'Put out the fire!'; _root.beatClock = true; adm1_fireDoused = 0; fire = 0; onEnterFrame = function () { if (_root.cstatus == 1) { if (_root.g.adm1_hose.adm1_douser.hitTest(_root.g.adm1_buildingFire)) { _root.g.adm1_buildingFire.nextFrame(); ++fire; } } }; } instance adm1_hose of movieClip 7053 { onClipEvent (enterFrame) { endX = _root._xmouse; endY = _root._ymouse; _x = _x + (endX - _x) / 10; _y = _y + (endY - _y) / 10; Mouse.hide(); } } } movieClip 7064 { frame 1 { stop(); } frame 30 { _root.g.gotoAndStop(2); } } movieClip 7066 { } movieClip 7070 { } movieClip 7073 { instance of movieClip 7070 { onClipEvent (enterFrame) { if (this.hitTest(_root.g.tom8_florcita)) { _root.g.tom8_florcita.nextFrame(); } } } } movieClip 7076 { } movieClip 7080 { } movieClip 7083 { } movieClip 7085 { frame 35 { stop(); } } movieClip 7088 { frame 1 { stop(); } } movieClip 7089 game195 { frame 1 { _root.rules = 'Water the plant'; _root.beatClock = true; secorre = false; started = false; onEnterFrame = function () { if (_root.cstatus == 1) { started = true; secorre = false; } if (_root.cstatus == 0 && started == true) { gotoAndStop(3); } }; } frame 1 { stop(); } instance of movieClip 7073 { onClipEvent (press) { startDrag(this, false); } onClipEvent (release) { stopDrag(); } } frame 2 { stop(); _root.gameOutcome(true); started = false; } frame 3 { stop(); _root.gameOutcome(true); } } movieClip 7092 { } movieClip 7093 { } movieClip 7100 { } movieClip 7107 { } movieClip 7114 { } movieClip 7115 { } button 7117 { on (press) { chosen(1); } } button 7118 { on (press) { chosen(2); } } button 7119 { on (press) { chosen(3); } } movieClip 7122 { } movieClip 7123 game196 { frame 1 { function chosen(creatureNumber) { if (creatureNumber == oddest) { _root.gameOutcome(true); } else { _root.gameOutcome(false); } } function setupSimilarity(oddest) { var bodyPart = Math.ceil(Math.random() * 3); trace('oddest: ' + oddest); if (bodyPart == 1) { (eval('creature' + wrapAround(oddest + 1))).head.gotoAndStop(wrapAround(headPicked + wrapAround(oddest + 2) * headDirection)); } else { if (bodyPart == 2) { (eval('creature' + wrapAround(oddest + 1))).body.gotoAndStop(wrapAround(bodyPicked + wrapAround(oddest + 2) * bodyDirection)); } else { if (bodyPart == 3) { (eval('creature' + wrapAround(oddest + 1))).legs.gotoAndStop(wrapAround(legsPicked + wrapAround(oddest + 2) * legsDirection)); } else { trace('ERROR! when setting up similarity.bodyPart==' + bodyPart); } } } } function generateCreature(creatureNumber) { (eval('creature' + creatureNumber)).head.gotoAndStop(wrapAround(headPicked + creatureNumber * headDirection)); (eval('creature' + creatureNumber)).body.gotoAndStop(wrapAround(bodyPicked + creatureNumber * bodyDirection)); (eval('creature' + creatureNumber)).legs.gotoAndStop(wrapAround(legsPicked + creatureNumber * legsDirection)); trace('creature' + creatureNumber + ':' + wrapAround(headPicked + creatureNumber * headDirection) + wrapAround(bodyPicked + creatureNumber * bodyDirection) + wrapAround(legsPicked + creatureNumber * legsDirection)); } function wrapAround(variableName) { var v2 = 3; if (variableName > v2) { variableName -= v2; } if (variableName < 1) { variableName += v2; } return variableName; } _root.rules = 'Spot the oddest!'; _root.beatClock = true; var oddest = Math.ceil(Math.random() * 3); var headPicked = Math.ceil(Math.random() * 3); var headDirection = Math.ceil(Math.random() * 2) - 1; var bodyPicked = Math.ceil(Math.random() * 3); var bodyDirection = Math.ceil(Math.random() * 2) - 1; var legsPicked = Math.ceil(Math.random() * 3); var legsDirection = Math.ceil(Math.random() * 2) - 1; if (headDirection == 0) { headDirection = -1; } if (bodyDirection == 0) { bodyDirection = -1; } if (legsDirection == 0) { legsDirection = -1; } trace('headDirection: ' + headDirection); generateCreature(1); generateCreature(2); generateCreature(3); setupSimilarity(oddest); stop(); } } movieClip 7127 { } movieClip 7129 { } movieClip 7131 { } button 7132 { on (press) { _root.gameOutcome(false); } } movieClip 7134 { } button 7135 { on (press) { _root.gameOutcome(true); } } movieClip 7137 { } movieClip 7139 { } movieClip 7142 { } movieClip 7144 { } movieClip 7146 { } movieClip 7148 { } movieClip 7150 { } movieClip 7152 { } movieClip 7154 { } button 7155 { on (press) { _root.gameOutcome(true); } } button 7156 { on (press) { _root.gameOutcome(false); } } movieClip 7157 game197 { frame 1 { _root.rules = 'Which is heavier?'; _root.beatClock = true; var selectedSetup = Math.ceil(Math.random() * 8); gotoAndStop('bez08_' + selectedSetup); } } movieClip 7160 { } movieClip 7174 { } movieClip 7177 game198 { frame 1 { var spendingTarget = 15 + 5 * Math.ceil(Math.random() * 9); _root.rules = 'Spend £' + spendingTarget + '!'; _root.beatClock = true; var moneyToSpend = 350 + Math.ceil(Math.random() * 100); var moneySpent = spendingTarget * 100 - moneyToSpend; var moneySpent_Ones = moneySpent % 10; var moneySpent_Tens = ((moneySpent - moneySpent_Ones) % 100) / 10; var moneySpent_Hundreds = ((moneySpent - moneySpent % 100) % 1000) / 100; var moneySpent_Thousands = (moneySpent - moneySpent % 1000) / 1000; stop(); } instance of movieClip 7160 { onClipEvent (load) { var charging = false; var chargingRate = 1; var chargingStartTime; var chargingDuration = 0; var MAXCHARGINGSPEED = 9; } onClipEvent (mouseDown) { if (_root.cstatus == 1) { charging = true; _parent.gotoAndStop('charging'); chargingStartTime = getTimer(); } } onClipEvent (mouseUp) { charging = false; _parent.gotoAndStop('waiting'); if (_root.cstatus == 1) { if (_parent.moneySpent_Thousands * 10 + _parent.moneySpent_Hundreds == _parent.spendingTarget) { _root.gameOutcome(true); } } } onClipEvent (enterFrame) { if (_root.cstatus != 1) { charging = false; _parent.gotoAndStop('waiting'); } if (charging == true) { chargingDuration = getTimer() - chargingStartTime; if (chargingDuration > 500) { chargingrate += 1; chargingStartTime -= 500; } if (chargingRate > MAXCHARGINGSPEED) { chargingrate = MAXCHARGINGSPEED; } _parent.moneySpent += chargingRate; } else { chargingRate = 1; } _parent.moneySpent_Ones = _parent.moneySpent % 10; _parent.moneySpent_Tens = ((_parent.moneySpent - _parent.moneySpent_Ones) % 100) / 10; _parent.moneySpent_Hundreds = ((_parent.moneySpent - _parent.moneySpent % 100) % 1000) / 100; _parent.moneySpent_Thousands = (_parent.moneySpent - _parent.moneySpent % 1000) / 1000; } } } movieClip 7187 game199 { frame 1 { var spendingTarget = 15 + 5 * Math.ceil(Math.random() * 9); _root.rules = 'Spend £' + spendingTarget + '!'; _root.beatClock = true; var moneyToSpend = 700 + Math.ceil(Math.random() * 100); var moneySpent = spendingTarget * 100 - moneyToSpend; var moneySpent_Ones = moneySpent % 10; var moneySpent_Tens = ((moneySpent - moneySpent_Ones) % 100) / 10; var moneySpent_Hundreds = ((moneySpent - moneySpent % 100) % 1000) / 100; var moneySpent_Thousands = (moneySpent - moneySpent % 1000) / 1000; } instance of movieClip 7160 { onClipEvent (load) { var charging = false; var chargingRate = 1; var chargingStartTime; var chargingDuration = 0; } onClipEvent (mouseDown) { if (_root.cstatus == 1) { charging = true; chargingStartTime = getTimer(); } } onClipEvent (mouseUp) { charging = false; if (_root.cstatus == 1) { if (_parent.moneySpent_Thousands * 10 + _parent.moneySpent_Hundreds == _parent.spendingTarget) { _root.gameOutcome(true); } } } onClipEvent (enterFrame) { if (_root.cstatus != 1) { charging = false; } if (charging == true) { chargingDuration = getTimer() - chargingStartTime; if (chargingDuration > 500) { chargingrate += 1; chargingStartTime -= 500; } if (chargingRate > 17) { chargingrate = 17; } _parent.moneySpent += chargingRate; } else { chargingRate = 1; } _parent.moneySpent_Ones = _parent.moneySpent % 10; _parent.moneySpent_Tens = ((_parent.moneySpent - _parent.moneySpent_Ones) % 100) / 10; _parent.moneySpent_Hundreds = ((_parent.moneySpent - _parent.moneySpent % 100) % 1000) / 100; _parent.moneySpent_Thousands = (_parent.moneySpent - _parent.moneySpent % 1000) / 1000; } } } movieClip 7190 { } button 7191 { on (press) { this.startDrag(); clicked = false; } on (release) { this.stopDrag(); if (this._x > clickx - _root.g.shoeLenience && this._x < clickx + _root.g.shoeLenience && this._y > clicky - _root.g.shoeLenience && this._y < clicky + _root.g.shoeLenience) { this._x = clickx; this._y = clicky; trace('clicked'); clicked = true; } trace(this._x + ',' + this._y); } } movieClip 7192 { } movieClip 7194 { } button 7195 { on (press) { this.startDrag(); clicked = false; } on (release) { this.stopDrag(); if (this._x > clickx - _root.g.trouserLenience && this._x < clickx + _root.g.trouserLenience && this._y > clicky - _root.g.trouserLenience && this._y < clicky + _root.g.trouserLenience) { this._x = clickx; this._y = clicky; trace('clicked'); clicked = true; } trace(this._x + ',' + this._y); } } movieClip 7196 { } movieClip 7198 { } button 7199 { on (press) { this.startDrag(); clicked = false; } on (release) { this.stopDrag(); if (this._x > clickx - _root.g.topLenience && this._x < clickx + _root.g.topLenience && this._y > clicky - _root.g.topLenience && this._y < clicky + _root.g.topLenience) { this._x = clickx; this._y = clicky; trace('clicked'); clicked = true; } trace(this._x + ',' + this._y); } } movieClip 7200 { } movieClip 7202 { } button 7203 { on (press) { this.startDrag(); clicked = false; } on (release) { this.stopDrag(); if (this._x > clickx - _root.g.trouserLenience && this._x < clickx + _root.g.trouserLenience && this._y > clicky - _root.g.trouserLenience && this._y < clicky + _root.g.trouserLenience) { this._x = clickx; this._y = clicky; trace('clicked'); clicked = true; } trace(this._x + ',' + this._y); } } movieClip 7204 { } movieClip 7206 { } button 7207 { on (press) { this.startDrag(); clicked = false; } on (release) { this.stopDrag(); if (this._x > clickx - _root.g.shoeLenience && this._x < clickx + _root.g.shoeLenience && this._y > clicky - _root.g.shoeLenience && this._y < clicky + _root.g.shoeLenience) { this._x = clickx; this._y = clicky; trace('clicked'); clicked = true; } trace(this._x + ',' + this._y); } } movieClip 7208 { } movieClip 7210 { } button 7211 { on (press) { this.startDrag(); clicked = false; } on (release) { this.stopDrag(); if (this._x > clickx - _root.g.topLenience && this._x < clickx + _root.g.topLenience && this._y > clicky - _root.g.topLenience && this._y < clicky + _root.g.topLenience) { this._x = clickx; this._y = clicky; trace('clicked'); clicked = true; } trace(this._x + ',' + this._y); } } movieClip 7212 { } movieClip 7214 { } button 7215 { on (press) { this.startDrag(); clicked = false; } on (release) { this.stopDrag(); if (this._x > clickx - _root.g.shoeLenience && this._x < clickx + _root.g.shoeLenience && this._y > clicky - _root.g.shoeLenience && this._y < clicky + _root.g.shoeLenience) { this._x = clickx; this._y = clicky; trace('clicked'); clicked = true; } trace(this._x + ',' + this._y); } } movieClip 7216 { } movieClip 7218 { } button 7219 { on (press) { this.startDrag(); clicked = false; } on (release) { this.stopDrag(); if (this._x > clickx - _root.g.trouserLenience && this._x < clickx + _root.g.trouserLenience && this._y > clicky - _root.g.trouserLenience && this._y < clicky + _root.g.trouserLenience) { this._x = clickx; this._y = clicky; trace('clicked'); clicked = true; } trace(this._x + ',' + this._y); } } movieClip 7220 { } movieClip 7222 { } button 7223 { on (press) { this.startDrag(); clicked = false; } on (release) { this.stopDrag(); if (this._x > clickx - _root.g.topLenience && this._x < clickx + _root.g.topLenience && this._y > clicky - _root.g.topLenience && this._y < clicky + _root.g.topLenience) { this._x = clickx; this._y = clicky; trace('clicked'); clicked = true; } trace(this._x + ',' + this._y); } } movieClip 7224 { } movieClip 7228 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 7230 { } movieClip 7233 { } movieClip 7236 { } movieClip 7237 game201 { frame 1 { _root.rules = 'Dress up!'; _root.beatClock = true; var generalLenience = 85; var shoeLenience = generalLenience; var trouserLenience = generalLenience + 40; var topLenience = generalLenience + 20; var outfit = Math.ceil(Math.random() * 3); gotoAndStop('outfit1'); if (outfit == 1) { gotoAndStop('outfit1'); } else { if (outfit == 2) { gotoAndStop('outfit2'); } else { if (outfit == 3) { gotoAndStop('outfit3'); } else { trace('ERROR!!!!!! - outfit wrongly selected.'); } } } stop(); } instance of movieClip 7192 { onClipEvent (load) { var clickx = 241.3; var clicky = 331.4; var clicked = false; } } instance of movieClip 7196 { onClipEvent (load) { var clickx = 238.3; var clicky = 244.6; var clicked = false; } } instance of movieClip 7200 { onClipEvent (load) { var clickx = 227.8; var clicky = 177.3; var clicked = false; } } instance of movieClip 7204 { onClipEvent (load) { var clickx = 238.7; var clicky = 255.3; var clicked = false; } } instance of movieClip 7208 { onClipEvent (load) { var clickx = 240.4; var clicky = 309.8; var clicked = false; } } instance of movieClip 7212 { onClipEvent (load) { var clickx = 228.8; var clicky = 188.3; var clicked = false; } } instance shoes of movieClip 7216 { onClipEvent (load) { var clickx = 241.1; var clicky = 322.1; var clicked = false; } } instance trousers of movieClip 7220 { onClipEvent (load) { var clickx = 239.9; var clicky = 259.1; var clicked = false; } } instance top of movieClip 7224 { onClipEvent (load) { var clickx = 228.2; var clicky = 177.6; var clicked = false; } } instance of movieClip 7233 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_parent.top.clicked == true && _parent.trousers.clicked == true && _parent.shoes.clicked == true) { _parent.face.gotoAndStop('smile'); _root.gameOutcome(true); } } } } instance of movieClip 7216 { onClipEvent (load) { var clickx = 241.1; var clicky = 322.1; var clicked = false; } } instance of movieClip 7220 { onClipEvent (load) { var clickx = 239.9; var clicky = 259.1; var clicked = false; } } instance of movieClip 7224 { onClipEvent (load) { var clickx = 228.2; var clicky = 177.6; var clicked = false; } } instance shoes of movieClip 7192 { onClipEvent (load) { var clickx = 241.3; var clicky = 331.4; var clicked = false; } } instance trousers of movieClip 7196 { onClipEvent (load) { var clickx = 238.3; var clicky = 244.6; var clicked = false; } } instance top of movieClip 7200 { onClipEvent (load) { var clickx = 227.8; var clicky = 177.3; var clicked = false; } } instance of movieClip 7192 { onClipEvent (load) { var clickx = 241.3; var clicky = 331.4; var clicked = false; } } instance of movieClip 7196 { onClipEvent (load) { var clickx = 238.3; var clicky = 244.6; var clicked = false; } } instance of movieClip 7200 { onClipEvent (load) { var clickx = 227.8; var clicky = 177.3; var clicked = false; } } instance trousers of movieClip 7204 { onClipEvent (load) { var clickx = 238.7; var clicky = 255.3; var clicked = false; } } instance shoes of movieClip 7208 { onClipEvent (load) { var clickx = 240.4; var clicky = 309.8; var clicked = false; } } instance top of movieClip 7212 { onClipEvent (load) { var clickx = 228.8; var clicky = 188.3; var clicked = false; } } } movieClip 7242 { } movieClip 7245 { } movieClip 7248 { } movieClip 7251 { } movieClip 7252 { } movieClip 7255 { } movieClip 7258 { } movieClip 7261 { } movieClip 7264 { } button 7266 { on (press) { perform('LADY'); } } button 7267 { on (press) { perform('TREE'); } } button 7268 { on (press) { perform('MONK'); } } button 7269 { on (press) { perform('BIRD'); } } movieClip 7270 game202 { frame 1 { function perform(actionString) { var v2; if (_root.cstatus == 1) { achieved += actionString; trace('_' + achieved); if (achieved == goal) { _root.gameOutcome(true); } v2 = goal.substr(0, achieved.length); trace(v2); if (achieved != v2) { _root.gameOutcome(false); } } } function someGoal() { var v1 = Math.ceil(Math.random() * 6); if (v1 == 1) { return 'GIVE WIG TO MONK'; } else { if (v1 == 2) { return 'GIVE BIKE TO BIRD'; } else { if (v1 == 3) { return 'GIVE FISH TO LADY'; } else { if (v1 == 4) { return 'TALK TO TREE'; } else { if (v1 == 5) { return 'PUNCH TREE'; } else { if (v1 == 6) { return 'TALK TO BIRD'; } else { trace('ERROR! error in \'someGoal\' function'); } } } } } } } var goal = someGoal(); _root.rules = goal; _root.beatClock = true; var achieved = ''; stop(); } instance of movieClip 7242 { onClipEvent (load) { var active = false; var startingX = 67.5; var startingY = 267.5; var lenienceX = 35; var lenienceY = 20; } onClipEvent (mouseDown) { if (_root.cstatus == 1 && _parent._xmouse > startingX - lenienceX && _parent._xmouse < startingX + lenienceX && _parent._ymouse > startingY - lenienceY && _parent._ymouse < startingY + lenienceY) { _parent.perform('LOOK AT '); active = true; } else { active = false; this._x = startingX; this._y = startingY; } } onClipEvent (enterFrame) { if (active == true) { this._x = _root._xmouse; this._y = _root._ymouse; } } } instance of movieClip 7245 { onClipEvent (load) { var active = false; var startingX = 65; var startingY = 320; var lenienceX = 30; var lenienceY = 25; } onClipEvent (mouseDown) { if (_root.cstatus == 1 && _parent._xmouse > startingX - lenienceX && _parent._xmouse < startingX + lenienceX && _parent._ymouse > startingY - lenienceY && _parent._ymouse < startingY + lenienceY) { _parent.perform('PUNCH '); active = true; } else { active = false; this._x = startingX; this._y = startingY; } } onClipEvent (enterFrame) { if (active == true) { this._x = _root._xmouse; this._y = _root._ymouse; } } } instance of movieClip 7248 { onClipEvent (load) { var active = false; var startingX = 167.5; var startingY = 322.5; var lenienceX = 35; var lenienceY = 25; } onClipEvent (mouseDown) { if (_root.cstatus == 1 && _parent._xmouse > startingX - lenienceX && _parent._xmouse < startingX + lenienceX && _parent._ymouse > startingY - lenienceY && _parent._ymouse < startingY + lenienceY) { _parent.perform('TALK TO '); active = true; } else { active = false; this._x = startingX; this._y = startingY; } } onClipEvent (enterFrame) { if (active == true) { this._x = _root._xmouse; this._y = _root._ymouse; } } } instance give of movieClip 7252 { onClipEvent (load) { var active = false; var startingX = 167.5; var startingY = 270; var lenienceX = 35; var lenienceY = 25; } onClipEvent (mouseDown) { if (_root.cstatus == 1 && _parent._xmouse > startingX - lenienceX && _parent._xmouse < startingX + lenienceX && _parent._ymouse > startingY - lenienceY && _parent._ymouse < startingY + lenienceY) { _parent.perform('GIVE '); active = true; } else { active = false; this._x = startingX; this._y = startingY; } } onClipEvent (enterFrame) { if (active == true) { this._x = _root._xmouse; this._y = _root._ymouse; } } } instance of movieClip 7255 { onClipEvent (load) { var active = false; var startingX = 297.5; var startingY = 267.5; var lenienceX = 25; var lenienceY = 25; } onClipEvent (mouseDown) { if (_parent._xmouse > startingX - lenienceX && _parent._xmouse < startingX + lenienceX && _parent._ymouse > startingY - lenienceY && _parent._ymouse < startingY + lenienceY && _parent.give.active == true) { _parent.perform('BALL TO '); active = true; } else { active = false; this._x = startingX; this._y = startingY; } } onClipEvent (enterFrame) { if (active == true) { this._x = _root._xmouse; this._y = _root._ymouse; } } } instance of movieClip 7258 { onClipEvent (load) { var active = false; var startingX = 295; var startingY = 322.5; var lenienceX = 35; var lenienceY = 25; } onClipEvent (mouseDown) { if (_parent._xmouse > startingX - lenienceX && _parent._xmouse < startingX + lenienceX && _parent._ymouse > startingY - lenienceY && _parent._ymouse < startingY + lenienceY && _parent.give.active == true) { _parent.perform('FISH TO '); active = true; } else { active = false; this._x = startingX; this._y = startingY; } } onClipEvent (enterFrame) { if (active == true) { this._x = _root._xmouse; this._y = _root._ymouse; } } } instance of movieClip 7261 { onClipEvent (load) { var active = false; var startingX = 397.5; var startingY = 267.5; var lenienceX = 35; var lenienceY = 25; } onClipEvent (mouseDown) { if (_parent._xmouse > startingX - lenienceX && _parent._xmouse < startingX + lenienceX && _parent._ymouse > startingY - lenienceY && _parent._ymouse < startingY + lenienceY && _parent.give.active == true) { _parent.perform('BIKE TO '); active = true; } else { active = false; this._x = startingX; this._y = startingY; } } onClipEvent (enterFrame) { if (active == true) { this._x = _root._xmouse; this._y = _root._ymouse; } } } instance of movieClip 7264 { onClipEvent (load) { var active = false; var startingX = 397.5; var startingY = 325; var lenienceX = 35; var lenienceY = 20; } onClipEvent (mouseDown) { if (_parent._xmouse > startingX - lenienceX && _parent._xmouse < startingX + lenienceX && _parent._ymouse > startingY - lenienceY && _parent._ymouse < startingY + lenienceY && _parent.give.active == true) { _parent.perform('WIG TO '); active = true; } else { active = false; this._x = startingX; this._y = startingY; } } onClipEvent (enterFrame) { if (active == true) { this._x = _root._xmouse; this._y = _root._ymouse; } } } } movieClip 7277 { } movieClip 7280 { } movieClip 7283 { } movieClip 7284 { frame 1 { stop(); } } movieClip 7285 game203 { frame 1 { _root.rules = 'Click in time!'; _root.beatClock = true; } instance of movieClip 7284 { onClipEvent (load) { var previousFrameTime = getTimer(); var currentFrameTime = previousFrameTime; var timeCounter = 0; var lenience = 95; var beatTime = 500; var score = 0; var goal = 5; var i; } onClipEvent (enterFrame) { currentFrameTime = getTimer(); timeCounter += currentFrameTime - previousFrameTime; previousFrameTime = currentFrameTime; if (timeCounter > beatTime) { timeCounter -= beatTime; this.gotoAndPlay('bang'); i = 1; while (i <= 8) { (eval('_parent.monkey' + i)).gotoAndPlay('bang'); ++i; } } } onClipEvent (mouseDown) { if (_root.cstatus == 1) { if (timeCounter < lenience || timeCounter > beatTime - lenience) { ++score; if (score == goal) { score = 8; _root.gameOutcome(true); } trace('clicked in time'); } else { trace('not in time'); } i = 1; while (i <= score) { (eval('_parent.monkey' + i))._alpha = 100; ++i; } } } } instance monkey4 of movieClip 7284 { onClipEvent (load) { this._alpha = 0; } } instance monkey3 of movieClip 7284 { onClipEvent (load) { this._alpha = 0; } } instance monkey2 of movieClip 7284 { onClipEvent (load) { this._alpha = 0; } } instance monkey1 of movieClip 7284 { onClipEvent (load) { this._alpha = 0; } } instance monkey7 of movieClip 7284 { onClipEvent (load) { this._alpha = 0; } } instance monkey8 of movieClip 7284 { onClipEvent (load) { this._alpha = 0; } } instance monkey6 of movieClip 7284 { onClipEvent (load) { this._alpha = 0; } } instance monkey5 of movieClip 7284 { onClipEvent (load) { this._alpha = 0; } } } movieClip 7288 { } movieClip 7297 { } movieClip 7300 { } movieClip 7301 { } movieClip 7304 { } movieClip 7305 { } movieClip 7307 { } movieClip 7308 { } movieClip 7309 { instance of movieClip 7307 { onClipEvent (enterFrame) { this._visible = false; if (_root.player.hitTest(this)) { _root.player._x -= 15; } } } } movieClip 7311 { } movieClip 7313 { } movieClip 7319 { } movieClip 7320 { } movieClip 7322 { } movieClip 7324 { } movieClip 7325 { instance timer of movieClip 7297 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (this._currentframe == 129) { this.stop(); } } } } instance of movieClip 7300 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(39)) { this.gotoAndStop(2); } } } onClipEvent (keyUp) { if (Key.getCode() == 39) { this.gotoAndStop(1); } } } instance of movieClip 7301 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(37)) { this.gotoAndStop(2); } } } onClipEvent (keyUp) { if (Key.getCode() == 37) { this.gotoAndStop(1); } } } instance left of movieClip 7308 { onClipEvent (enterFrame) { this._visible = false; if (_parent.player.hitTest(this)) { _parent.player._x += 15; } } } instance right of movieClip 7309 { onClipEvent (enterFrame) { this._visible = false; if (_parent.player.hitTest(this)) { _parent.player._x -= 15; } } } instance player of movieClip 7320 { onClipEvent (load) { stop(); this.gotoAndStop(1); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(39)) { this.gotoAndStop(2); _parent.player._x += 15; } if (Key.isDown(37)) { this.gotoAndStop(3); _parent.player._x -= 15; } } } onClipEvent (keyUp) { if (_root.cstatus == 1) { if (Key.getCode() == 39) { this.gotoAndStop(1); } } } onClipEvent (keyUp) { if (_root.cstatus == 1) { if (Key.getCode() == 37) { this.gotoAndStop(4); } } } } instance enemy1 of movieClip 308 ducka { onClipEvent (load) { function reset() { this._x = 550; this._y = math.random() * 200; enemySpeed = Math.random() * 8 + 1; } reset(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x -= enemySpeed; if (this._x < -100) { reset(); } } } onClipEvent (load) { ySpeed = 0; gravity = 3; bounce = 0.99; ground = 310; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_y < ground) { ySpeed += gravity; } else { if (ySpeed > gravity * 4) { _y = ground; ySpeed *= -bounce; } else { ySpeed = 0; _y = ground; } } _y = _y + ySpeed; } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_parent.player.shad.hitTest(this)) { _root.gameOutcome(false); } } } } instance enemy2 of movieClip 7322 { onClipEvent (load) { function reset() { this._x = 550; this._y = math.random() * 200; enemySpeed = Math.random() * 8 + 1; } reset(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x -= enemySpeed; if (this._x < -100) { reset(); } } } onClipEvent (load) { ySpeed = 0; gravity = 3; bounce = 0.99; ground = 310; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_y < ground) { ySpeed += gravity; } else { if (ySpeed > gravity * 4) { _y = ground; ySpeed *= -bounce; } else { ySpeed = 0; _y = ground; } } _y = _y + ySpeed; } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_parent.player.shad.hitTest(this)) { _root.gameOutcome(false); } } } } instance enemy3 of movieClip 7324 { onClipEvent (load) { function reset() { this._x = 550; this._y = math.random() * 200; enemySpeed = Math.random() * 8 + 1; } reset(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x -= enemySpeed; if (this._x < -100) { reset(); } } } onClipEvent (load) { ySpeed = 0; gravity = 3; bounce = 0.99; ground = 310; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_y < ground) { ySpeed += gravity; } else { if (ySpeed > gravity * 4) { _y = ground; ySpeed *= -bounce; } else { ySpeed = 0; _y = ground; } } _y = _y + ySpeed; } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_parent.player.shad.hitTest(this)) { _root.gameOutcome(false); } } } } } movieClip 7328 { } movieClip 7329 game204 { frame 1 { stop(); } frame 1 { _root.rules = 'Dodge the Ducks!'; _root.beatClock = false; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } } movieClip 7330 { } movieClip 7331 { } movieClip 7332 { instance of movieClip 7330 { onClipEvent (enterFrame) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._y += 10; } } } } movieClip 7333 { instance of movieClip 7330 { onClipEvent (enterFrame) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._x += 10; } } } } movieClip 7334 { instance of movieClip 7330 { onClipEvent (enterFrame) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._x -= 10; } } } } movieClip 7337 { } movieClip 7340 { } movieClip 7343 { } movieClip 7346 { } movieClip 7349 { } movieClip 7354 { } movieClip 7355 { } movieClip 7357 { } movieClip 7359 { frame 1 { stop(); } frame 2 { _parent.mykey = true; } } movieClip 7362 { } movieClip 7363 game205 { frame 1 { _root.rules = 'Open the Door!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } frame 1 { mykey = false; stop(); } instance of movieClip 7331 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._y -= 10; } } } } instance of movieClip 7331 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._y -= 10; } } } } instance of movieClip 7331 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._y -= 10; } } } } instance of movieClip 7331 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._y -= 10; } } } } instance of movieClip 7331 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._y -= 10; } } } } instance of movieClip 7332 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._y += 10; } } } } instance of movieClip 7332 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._y += 10; } } } } instance of movieClip 7332 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._y += 10; } } } } instance of movieClip 7333 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._x += 10; _parent.walkClip.gotoAndStop(3); } } } } instance of movieClip 7333 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._x += 10; _parent.walkClip.gotoAndStop(3); } } } } instance of movieClip 7333 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._x += 10; _parent.walkClip.gotoAndStop(3); } } } } instance of movieClip 7333 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._x += 10; _parent.walkClip.gotoAndStop(3); } } } } instance of movieClip 7333 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._x += 10; _parent.walkClip.gotoAndStop(3); } } } } instance of movieClip 7332 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._y += 10; } } } } instance of movieClip 7334 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._x -= 10; _parent.walkClip.gotoAndStop(1); } } } } instance of movieClip 7334 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._x -= 10; _parent.walkClip.gotoAndStop(1); } } } } instance of movieClip 7334 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._x -= 10; _parent.walkClip.gotoAndStop(1); } } } } instance of movieClip 7334 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._x -= 10; _parent.walkClip.gotoAndStop(1); } } } } instance of movieClip 7334 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._x -= 10; _parent.walkClip.gotoAndStop(1); } } } } instance of movieClip 7332 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.walkClip.feet.hitTest(this)) { _parent.walkClip._y += 10; } } } } instance of movieClip 7340 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(38)) { this.gotoAndStop(2); } } } onClipEvent (keyUp) { if (_root.cstatus == 1) { if (Key.getCode() == 38) { this.gotoAndStop(1); } } } } instance of movieClip 7343 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(40)) { this.gotoAndStop(2); } } } onClipEvent (keyUp) { if (_root.cstatus == 1) { if (Key.getCode() == 40) { this.gotoAndStop(1); } } } } instance of movieClip 7346 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(37)) { this.gotoAndStop(2); } } } onClipEvent (keyUp) { if (_root.cstatus == 1) { if (Key.getCode() == 37) { this.gotoAndStop(1); } } } } instance of movieClip 7349 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(39)) { this.gotoAndStop(2); } } } onClipEvent (keyUp) { if (_root.cstatus == 1) { if (Key.getCode() == 39) { this.gotoAndStop(1); } } } } instance of movieClip 7354 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (Key.isDown(32)) { this.gotoAndStop(2); } } onClipEvent (keyUp) { if (Key.getCode() == 32) { this.gotoAndStop(1); } } } instance timer of movieClip 7355 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (this._currentframe == 129) { this.stop(); } } } } instance testdoor of movieClip 7357 { onClipEvent (enterFrame) { this._visible = false; if (_parent.walkClip.hitTest(this) && Key.isDown(32) && _parent.mykey == true) { _root.gameOutcome(true); } } } instance walkClip of movieClip 304 player { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(39)) { this.gotoAndStop(2); _parent.walkClip._x += 10; } if (Key.isDown(37)) { this.gotoAndStop(4); _parent.walkClip._x -= 10; } if (this._currentframe == 1 && Key.isDown(40)) { this.gotoAndStop(2); } if (this._currentframe == 2 && Key.isDown(40)) { _parent.walkClip._y += 10; } if (this._currentframe == 3 && Key.isDown(40)) { this.gotoAndStop(4); } if (this._currentframe == 4 && Key.isDown(40)) { _parent.walkClip._y += 10; } if (this._currentframe == 1 && Key.isDown(38)) { this.gotoAndStop(2); } if (this._currentframe == 2 && Key.isDown(38)) { _parent.walkClip._y -= 10; } if (this._currentframe == 3 && Key.isDown(38)) { this.gotoAndStop(4); } if (this._currentframe == 4 && Key.isDown(38)) { _parent.walkClip._y -= 10; } } } onClipEvent (keyUp) { if (_root.cstatus == 1) { if (Key.getCode() == 39) { this.gotoAndStop(1); } if (Key.getCode() == 37) { this.gotoAndStop(3); } if (this._currentframe == 2 && Key.getCode(40)) { this.gotoAndStop(1); } if (this._currentframe == 4 && Key.getCode(40)) { this.gotoAndStop(3); } if (this._currentframe == 2 && Key.getCode(38)) { this.gotoAndStop(1); } if (this._currentframe == 4 && Key.getCode(38)) { this.gotoAndStop(3); } } } } instance key of movieClip 7359 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_parent.walkClip.hitTest(this) && Key.isDown(32)) { this.nextFrame(); } } } } } movieClip 7365 { } movieClip 7367 { } movieClip 7371 { } movieClip 7372 { instance middle of movieClip 7371 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; } } } } movieClip 7374 { } movieClip 7375 { } movieClip 7376 { } movieClip 7377 { } movieClip 7378 { } movieClip 7379 { } movieClip 7382 { } movieClip 7387 { } movieClip 7391 { } movieClip 7392 { } movieClip 7394 { } movieClip 7395 { } movieClip 7396 { } movieClip 7402 { frame 14 { stop(); } } movieClip 7403 { frame 1 { stop(); } instance of movieClip 7402 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (this._currentframe == 14) { _root.gameOutcome(true); } } } } } movieClip 7404 game206 { frame 1 { _root.rules = 'Cut On The Dotted Line!'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance shad of movieClip 7367 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(40)) { _parent.shad._y += 7; } if (Key.isDown(38)) { _parent.shad._y -= 7; } } } } instance masktest of movieClip 7372 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(40)) { _parent.masktest._y += 7; } if (Key.isDown(38)) { _parent.masktest._y -= 7; } } } } instance scissor of movieClip 7374 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_parent.masktest.middle.hitTest(this) && Key.isDown(32)) { _parent.axe.gotoAndStop(2); } } } } instance btmplt of movieClip 7376 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.masktest.hitTest(this)) { _parent.masktest._y += 7; } } } } instance btmshd of movieClip 7377 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.shad.hitTest(this)) { _parent.shad._y += 7; } } } } instance of movieClip 7378 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.masktest.hitTest(this)) { _parent.masktest._y -= 7; } } } } instance of movieClip 7379 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._visible = false; if (_parent.shad.hitTest(this)) { _parent.shad._y -= 7; } } } } instance of movieClip 7382 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(38)) { this.gotoAndStop(2); } } } onClipEvent (keyUp) { if (_root.cstatus == 1) { if (Key.getCode() == 38) { this.gotoAndStop(1); } } } } instance of movieClip 7392 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(32)) { this.gotoAndStop(2); } } } onClipEvent (keyUp) { if (_root.cstatus == 1) { if (Key.getCode() == 32) { this.gotoAndStop(1); } } } } instance of movieClip 7395 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(40)) { this.gotoAndStop(2); } } } onClipEvent (keyUp) { if (_root.cstatus == 1) { if (Key.getCode() == 40) { this.gotoAndStop(1); } } } } instance timer of movieClip 7396 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (this._currentframe == 129) { this.stop(); } } } } } movieClip 7406 { } movieClip 7409 { } movieClip 7416 { } movieClip 7434 { } movieClip 7436 { } movieClip 7443 { } movieClip 7445 { } movieClip 7446 { frame 1 { stop(); } } movieClip 7448 { } movieClip 7450 { } movieClip 7451 { } movieClip 7453 { frame 1 { stop(); _parent.kizuo.hitwalll = false; _parent.kizuo.hitwallr = false; } } movieClip 7454 { frame 1 { stop(); _parent.kizuo.hitwalll = false; _parent.kizuo.hitwallr = false; } } movieClip 7456 { } movieClip 7458 { } movieClip 7467 { } movieClip 7469 { } movieClip 7470 { frame 1 { stop(); } instance body of movieClip 7456 { onClipEvent (load) { this._visible = false; } } } movieClip 7473 { } movieClip 7476 { } movieClip 7479 { } movieClip 7481 { } movieClip 7482 { } movieClip 7483 game207 { frame 1 { _root.rules = 'Avoid the Snowballs!'; _root.beatClock = false; onEnterFrame = function () { if (_root.cstatus == 1) { } }; } instance slide of movieClip 7434 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_parent.timer._currentframe > 60) { this._x -= 17; if (this._x < -100) { reset(); } } } } } instance enemy of movieClip 7448 { onClipEvent (load) { function reset() { this._x = 330; this._y = math.random() * 200; enemySpeed = Math.random() * 8 + 1; } reset(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x -= enemySpeed; if (this._x < -100) { reset(); } } } onClipEvent (load) { ySpeed = 0; gravity = 3; bounce = 0.99; ground = 345; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_y < ground) { ySpeed += gravity; } else { if (ySpeed > gravity * 4) { _y = ground; ySpeed *= -bounce; } else { ySpeed = 0; _y = ground; } } _y = _y + ySpeed; } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_parent.kizuo.body.hitTest(this)) { _root.gameOutcome(false); } } } } instance enemy2 of movieClip 7450 { onClipEvent (load) { function reset() { this._x = 330; this._y = math.random() * 200; enemySpeed = Math.random() * 8 + 1; } reset(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { this._x -= enemySpeed; if (this._x < -100) { reset(); } } } onClipEvent (load) { ySpeed = 0; gravity = 3; bounce = 0.99; ground = 345; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_y < ground) { ySpeed += gravity; } else { if (ySpeed > gravity * 4) { _y = ground; ySpeed *= -bounce; } else { ySpeed = 0; _y = ground; } } _y = _y + ySpeed; } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (_parent.kizuo.body.hitTest(this)) { _root.gameOutcome(false); } } } } instance ground of movieClip 7451 { onClipEvent (load) { if (_root.cstatus == 1) { this._visible = false; active = false; } } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (this.hitTest(_parent.kizuo)) { active = true; } else { active = false; } if (active) { xmin = (getBounds(_parent)).xMin; xmax = (getBounds(_parent)).xMax; ymin = (getBounds(_parent)).yMin; ymax = (getBounds(_parent)).yMax; pymax = (_parent.kizuo.body.getBounds(_parent)).yMax; px = _parent.kizuo._x; if (px < xmax and px > xmin and pymax < ymax and pymax > ymin and _parent.kizuo.grav <= 0) { _parent.kizuo.jumping = false; _parent.kizuo.grav = 0; } else { _parent.kizuo.jumping = true; } } } } } instance wall of movieClip 7453 { onClipEvent (enterFrame) { this._visible = false; if (_parent.kizuo.body.hitTest(this)) { _parent.kizuo._x += 9; } } } instance of movieClip 7454 { onClipEvent (enterFrame) { this._visible = false; if (_parent.kizuo.body.hitTest(this)) { _parent.kizuo._x -= 9; } } } instance kizuo of movieClip 7470 { onClipEvent (load) { stop(); hitwallr = false; hitwalll = false; grav = 0; jumping = true; running = false; } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(39)) { gotoAndStop(2); if (!hitwallr) { this._x += 9; running = true; } } else { if (Key.isDown(37)) { gotoAndStop(2); if (!hitwalll) { this._x -= 9; running = true; } } else { running = false; if (!jumping) { this.gotoAndStop(1); } } } if (Key.isDown(38) and !jumping) { if (!running) { jumping = true; grav = 30; this.gotoAndStop(3); } else { if (Key.isDown(39) and !hitwallr) { this.gox = 11; jumping = true; grav = 30; this.gotoAndStop(3); } else { if (Key.isDown(37) and !hitwalll) { this.gox = -11; jumping = true; grav = 30; this.gotoAndStop(3); } } } } if (jumping) { this.gotoAndStop(3); this._y -= grav; grav -= 2; if (!hitwallr and !hitwalll) { } } else { gox = 0; } } } } instance of movieClip 7473 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(37)) { this.gotoAndStop(2); } } } onClipEvent (keyUp) { if (_root.cstatus == 1) { if (Key.getCode() == 37) { this.gotoAndStop(1); } } } } instance of movieClip 7476 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(39)) { this.gotoAndStop(2); } } } onClipEvent (keyUp) { if (_root.cstatus == 1) { if (Key.getCode() == 39) { this.gotoAndStop(1); } } } } instance of movieClip 7479 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (Key.isDown(38)) { this.gotoAndStop(2); } } } onClipEvent (keyUp) { if (_root.cstatus == 1) { if (Key.getCode() == 38) { this.gotoAndStop(1); } } } } instance timer of movieClip 7482 { onClipEvent (enterFrame) { if (_root.cstatus == 1) { if (this._currentframe == 129) { this.stop(); } } } } } movieClip 7487 { } movieClip 7489 { } movieClip 7490 { frame 1 { stop(); } } movieClip 7492 { } movieClip 7498 { frame 1 { stop(); } } movieClip 7504 { } movieClip 7505 { frame 1 { stop(); } frame 2 { _root.insultMC.gotoAndStop(Math.round(Math.random() * 4)); } instance insultMC of movieClip 7498 { onClipEvent (load) { this.gotoAndStop(Math.round(Math.random() * 3)); } } } movieClip 7508 { } movieClip 7509 game208 { frame 1 { score = 0; _root.rules = 'Insult n00b! (space bar)'; _root.beatClock = true; onEnterFrame = function () { if (_root.cstatus == 1) { } if (pirate._currentframe == 2) { score += 1; if (score == 4) { _root.gameOutcome(true); } } }; } instance of movieClip 7490 { onClipEvent (enterFrame) { if (Key.isDown(32)) { play(); } } } instance pirate of movieClip 7505 { onClipEvent (enterFrame) { if (Key.isDown(32)) { play(); } } } } movieClip 7513 { } movieClip 7515 { } movieClip 7524 { } movieClip 7525 { } movieClip 7526 { } movieClip 7532 { } movieClip 7534 { } movieClip 7539 { } movieClip 7545 { } movieClip 7546 { } movieClip 7548 { } movieClip 7550 { } movieClip 7555 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 7557 { frame 1 { stop(); } } movieClip 7560 { } movieClip 7561 game209 { frame 1 { function randomNumber(l, h) { var v1 = Math.round(Math.random() * (h - l)) + l; return v1; } function addPlayer(pT, pX, pY, uK, pC) { players.push({'name': nextDepth, 'type': pT, 'ySpeed': 0, 'xSpeed': 0, 'goingFor': 2000, 'view': 2000, 'hitNum': -1, 'useKeys': uK, 'cView': -1}); attachMovie('obj_player_' + pC, 'p_' + nextDepth, nextDepth); _root.g['p_' + nextDepth].sumo.anim.stop(); _root.g['p_' + nextDepth]._x = pX; _root.g['p_' + nextDepth]._y = pY; makeProp(_root.g['p_' + nextDepth]); ++numberPlayers; ++nextDepth; } function killPlayer(pN) { if (_root.g['p_' + players[pN].name]._y >= levels_info[currentLevel][4]) { _root.g['p_' + players[pN].name].sumo.gotoAndStop(9); } else { removeMovieClip(_root.g['p_' + players[pN].name]); } players.splice(pN, 1); --numberPlayers; } function makeProp(p) { var v4 = boardMax - boardMin; var v3 = p._y - boardMin; var v1 = v3 * 80 / v4 + 60; p._xscale = v1; p._yscale = v1; } function getMakeView(rA) { if (rA <= 310 && rA >= 274) { return 8; } if (rA <= 275 && rA >= 262) { return 7; } if (rA <= 263 && rA >= 248) { return 6; } if (rA <= 247 && rA >= 129) { return 5; } if (rA <= 128 && rA >= 109) { return 4; } if (rA <= 108 && rA >= 91 || rA <= 449 && rA >= 438) { return 3; } if (rA <= 437 && rA >= 418) { return 2; } if (rA <= 417 && rA >= 309) { return 1; } } function setUpPlayers() { var v3 = new Array(_root.g.bounds._x + 11, _root.g.bounds._x + 11, _root.g.bounds._x - 213, _root.g.bounds._x + 219); var v4 = new Array(_root.g.bounds._y + 47, _root.g.bounds._y - 73, _root.g.bounds._y - 4, _root.g.bounds._y - 4); var v2 = 0; v2 = randomNumber(0, v3.length - 1); addPlayer('player', v3[v2], v4[v2], -1, 0); attachMovie('you_arrow', 'y_a', 202); y_a._x = v3[v2] - 62; y_a._y = v4[v2] - 125; v3.splice(v2, 1); v4.splice(v2, 1); v2 = randomNumber(0, v3.length - 1); addPlayer('computer', v3[v2], v4[v2], -1, 1); v3.splice(v2, 1); v4.splice(v2, 1); v2 = randomNumber(0, v3.length - 1); addPlayer('computer', v3[v2], v4[v2], -1, 2); v3.splice(v2, 1); v4.splice(v2, 1); v2 = 0; addPlayer('computer', v3[v2], v4[v2], -1, 3); v3.splice(v2, 1); v4.splice(v2, 1); showCountdown(); } function moveWorld() { var v5 = 0; var v2 = 0; while (v2 < numberPlayers) { switch (players[v2].type) { case 'player': if (Key.isDown(38) && !Key.isDown(40)) { if (players[v2].ySpeed <= 0) { players[v2].ySpeed -= 0.13; v5 += 1; if (players[v2].ySpeed < -maxPlayerSpeed) { players[v2].ySpeed = -maxPlayerSpeed; } } } else { if (players[v2].ySpeed < 0) { players[v2].ySpeed += 0.31; if (players[v2].ySpeed > 0) { players[v2].ySpeed = 0; players[v2].hitNum = -1; } } } if (!Key.isDown(38) && Key.isDown(40)) { if (players[v2].ySpeed >= 0) { players[v2].ySpeed += 0.13; v5 += 10; if (players[v2].ySpeed > maxPlayerSpeed) { players[v2].ySpeed = maxPlayerSpeed; } } } else { if (players[v2].ySpeed > 0) { players[v2].ySpeed -= 0.31; if (players[v2].ySpeed < 0) { players[v2].ySpeed = 0; players[v2].hitNum = -1; } } } if (Key.isDown(37) && !Key.isDown(39)) { if (players[v2].xSpeed <= 0) { players[v2].xSpeed -= 0.85; v5 += 7; if (players[v2].xSpeed < -maxPlayerSpeed) { players[v2].xSpeed = -maxPlayerSpeed; } } } else { if (players[v2].xSpeed < 0) { players[v2].xSpeed += 0.43; if (players[v2].xSpeed > 0) { players[v2].xSpeed = 0; players[v2].hitNum = -1; } } } if (!Key.isDown(37) && Key.isDown(39)) { if (players[v2].xSpeed >= 0) { players[v2].xSpeed += 0.85; v5 += 5; if (players[v2].xSpeed > maxPlayerSpeed) { players[v2].xSpeed = maxPlayerSpeed; } } } else { if (players[v2].xSpeed > 0) { players[v2].xSpeed -= 0.43; if (players[v2].xSpeed < 0) { players[v2].xSpeed = 0; players[v2].hitNum = -1; } } } break; case 'computer': var v6 = 0; var v7 = 0; var v9 = 0; var v4 = 0; var v8 = players[v2].goingFor; var v10 = 0; v6 = _root.g['p_' + players[v8].name]._x - _root.g['p_' + players[v2].name]._x; v7 = _root.g['p_' + players[v8].name]._y - _root.g['p_' + players[v2].name]._y; v9 = Math.atan2(v7, v6); v4 = int(v9 * 360 / 6.283185307179586 + 90) + 180; v10 = getMakeView(v4); v4 = Math.atan2(v7, v6); v4 = int(v4 * 360 / 6.283185307179586 + 90); var v11 = Math.abs(players[v2].xSpeed) + Math.abs(players[v2].ySpeed); Xdf = v11 * Math.sin(0.0174532925199433 * v4) / 5; Ydf = -(v11 * Math.cos(0.0174532925199433 * v4)) / 5; if (Xdf > 0) { if (players[v2].xSpeed > 0) { players[v2].xSpeed += Xdf; if (players[v2].xSpeed > maxCompSpeed) { players[v2].xSpeed = maxCompSpeed; } } else { players[v2].xSpeed += computerSlow; } } if (Ydf > 0) { if (players[v2].ySpeed > 0) { players[v2].ySpeed += Ydf; if (players[v2].ySpeed > maxCompSpeed) { players[v2].ySpeed = maxCompSpeed; } } else { players[v2].ySpeed += computerSlow; } } if (Xdf < 0) { if (players[v2].xSpeed < 0) { players[v2].xSpeed += Xdf; if (players[v2].xSpeed < -maxCompSpeed) { players[v2].xSpeed = -maxCompSpeed; } } else { players[v2].xSpeed -= computerSlow; } } if (Ydf < 0) { if (players[v2].ySpeed < 0) { players[v2].ySpeed += Ydf; if (players[v2].ySpeed < -maxCompSpeed) { players[v2].ySpeed = -maxCompSpeed; } } else { players[v2].ySpeed -= computerSlow; } } if (players[v2].xSpeed == 0 && v6 != 0) { if (v6 >= 0) { players[v2].xSpeed = 0.05; } else { players[v2].xSpeed = -0.05; } } if (players[v2].ySpeed == 0 && v7 != 0) { if (v7 >= 0) { players[v2].ySpeed = 0.05; } else { players[v2].ySpeed = -0.05; } } _root.g['p_' + players[v2].name].sumo.gotoAndStop(v10); _root.g['p_' + players[v2].name].sumo.anim.play(); } if (v5 != currentView) { switch (v5) { case 1: _root.g['p_' + players[v2].name].sumo.gotoAndStop(5); _root.g['p_' + players[v2].name].sumo.anim.play(); break; case 10: _root.g['p_' + players[v2].name].sumo.gotoAndStop(1); _root.g['p_' + players[v2].name].sumo.anim.play(); break; case 7: _root.g['p_' + players[v2].name].sumo.gotoAndStop(3); _root.g['p_' + players[v2].name].sumo.anim.play(); break; case 5: _root.g['p_' + players[v2].name].sumo.gotoAndStop(7); _root.g['p_' + players[v2].name].sumo.anim.play(); break; case 8: _root.g['p_' + players[v2].name].sumo.gotoAndStop(4); _root.g['p_' + players[v2].name].sumo.anim.play(); break; case 6: _root.g['p_' + players[v2].name].sumo.gotoAndStop(6); _root.g['p_' + players[v2].name].sumo.anim.play(); break; case 17: _root.g['p_' + players[v2].name].sumo.gotoAndStop(2); _root.g['p_' + players[v2].name].sumo.anim.play(); break; case 15: _root.g['p_' + players[v2].name].sumo.gotoAndStop(8); _root.g['p_' + players[v2].name].sumo.anim.play(); break; case 0: _root.g['p_' + players[v2].name].sumo.anim.stop(); } currentView = v5; } _root.g['p_' + players[v2].name]._y += players[v2].ySpeed; _root.g['p_' + players[v2].name]._x += players[v2].xSpeed; makeProp(_root.g['p_' + players[v2].name]); if (players[v2].ySpeed != 0 || players[v2].xSpeed != 0) { var v16 = 0; var v17 = 0; var v13 = 0; var v12 = 0; var v15 = 0; var v14 = 0; var v3 = 0; while (v3 < numberPlayers) { if (v3 != v2) { if (_root.g['p_' + players[v2].name].hit.hitTest(_root.g['p_' + players[v3].name].hit) && players[v2].hitNum != v3) { tempSpeedXJ = players[v3].xSpeed; tempSpeedYJ = players[v3].ySpeed; tempSpeedXI = players[v2].xSpeed; tempSpeedYI = players[v2].ySpeed; if (players[v2].type == 'computer') { tempSpeedXI *= 2.5; tempSpeedYI *= 2.5; } else { tempSpeedXI *= 2; tempSpeedYI *= 2; } if (players[v3].type == 'computer') { tempSpeedXJ *= 2.5; tempSpeedYJ *= 2.5; } else { tempSpeedXJ *= 2; tempSpeedYJ *= 2; } players[v3].xSpeed += tempSpeedXI; players[v3].ySpeed += tempSpeedYI; players[v2].xSpeed += tempSpeedXJ; players[v2].ySpeed += tempSpeedYJ; players[v2].hitNum = v3; players[v3].hitNum = v2; } if (_root.g['p_' + players[v2].name].hitTest(_root.g['p_' + players[v3].name])) { if (_root.g['p_' + players[v2].name]._y > _root.g['p_' + players[v3].name]._y) { if (_root.g['p_' + players[v2].name].getDepth() < _root.g['p_' + players[v3].name].getDepth()) { _root.g['p_' + players[v2].name].swapDepths(_root.g['p_' + players[v3].name]); } } else { if (_root.g['p_' + players[v2].name].getDepth() > _root.g['p_' + players[v3].name].getDepth()) { _root.g['p_' + players[v2].name].swapDepths(_root.g['p_' + players[v3].name]); } } } } ++v3; } } if (players[v2].type == 'computer') { players[v2].goingFor = 0; } if (!_root.g.bounds.hitTest(_root.g['p_' + players[v2].name]._x, _root.g['p_' + players[v2].name]._y + 15, true)) { if (players[v2].type == 'player') { killPlayer(v2); _root.gameOutcome(false); return undefined; } if (players[v2].type == 'computer' && numberPlayers <= 3) { killPlayer(v2); _root.gameOutcome(true); return undefined; } else { killPlayer(v2); } } ++v2; } } stop(); _root.rules = 'Knock 2 Sumos off!'; _root.beatClock = true; currentLevel = 0; levels_info = [['mountain', 323, 145, 263, 228, 2, 0.1]]; nextDepth = 1; boardMax = _root.g.levels_info[_root.g.currentLevel][1]; boardMin = _root.g.levels_info[_root.g.currentLevel][2]; maxPlayerSpeed = 7; maxCompSpeed = levels_info[_root.g.currentLevel][5]; currentView = -1; numberPlayers = 0; ridArrow = false; computerSlow = levels_info[_root.g.currentLevel][6]; players = new Array(); _root.g.cstatus = 1; bounds._x = _root.g.levels_info[_root.g.currentLevel][3]; bounds._y = _root.g.levels_info[_root.g.currentLevel][4]; level_display.gotoAndStop(_root.g.currentLevel + 1); onEnterFrame = function () { if (_root.g.cstatus == 1) { moveWorld(); if (!ridArrow) { removeMovieClip(y_a); ridArrow = true; } } }; initializeGame(); setUpPlayers(); } } movieClip 7568 { } movieClip 7569 { } movieClip 7575 { } movieClip 7578 { } movieClip 7581 { } movieClip 7582 { } movieClip 7583 { } movieClip 7585 { } movieClip 7590 { } movieClip 7591 { frame 20 { stop(); } } movieClip 7592 { } movieClip 7595 { } movieClip 7598 { } movieClip 7599 game210 { frame 1 { function copterControl() { if (Key.isDown(39)) { dip += 2; travel += 2; } else { if (Key.isDown(37)) { dip -= 2; travel -= 2; } } copter._rotation *= 0.9; copter._rotation += dip; dip = 0; copter._x += travel; if (travel < 0) { ++travel; } else { if (travel > 0) { --travel; } } if (copter._x < 25) { copter._x = 25; } if (copter._x > 385) { copter._x = 385; } } _root.rules = 'Save from the fire!'; _root.beatClock = true; var dip = 0; var lives = 100; var travel = 0; var acc = 0.5; var stiff = 10; released = 0; copter._x = random(200) + 200; onEnterFrame = function () { if (_root.cstatus == 1) { if (released == 1) { werg._y -= stiff; stiff -= acc; bg._y -= 2; copter._y += 4; spikes._y -= 6; if (werg.hitTest(spikes.matress)) { released = 2; trace('WIN'); _root.gameOutcome(true); werg.gotoAndStop(4); } if (werg.hitTest(spikes.spikes)) { released = 2; trace('LOSE'); _root.gameOutcome(false); werg.gotoAndStop(3); } } } if (released == 2) { copter._y += 4; } if (released == 0) { copterControl(); if (Key.isDown(40)) { copter._y += 3; bg._y -= 1; spikes._y -= 3; } if (Key.isDown(38)) { copter._y -= 3; bg._y += 1; spikes._y += 3; } if (Key.isDown(39)) { copter._x += 3; bg._x -= 0.5; spikes._x -= 1.5; } if (Key.isDown(37)) { copter._x -= 3; bg._x += 0.5; spikes._x += 1.5; } if (Key.isDown(32)) { tag = attachMovie('mog1_bloke1', 'werg', _root.getNextHighestDepth()); tag._x = copter._x + copter.copter2._x + copter.copter2.copter3._x + copter.copter2.copter3.bloke._x - 45; tag._y = copter._y + copter.copter2._y + copter.copter2.copter3._y + copter.copter2.copter3.bloke._y - 90; tag._xscale = 55.9; tag._yscale = 55.9; tag.gotoAndPlay(2); copter.copter2.copter3.bloke._visible = false; released = 1; } } }; } } movieClip 7603 { } movieClip 7613 { } movieClip 7615 { } movieClip 7619 { } movieClip 7623 { frame 5 { _root.gameOutcome(true); } frame 26 { stop(); } } movieClip 7627 { frame 7 { _root.gameOutcome(false); } frame 26 { stop(); } } movieClip 7628 { frame 1 { stop(); } } movieClip 7632 { } movieClip 7647 { frame 11 { stop(); } } movieClip 7648 { frame 5 { stop(); _root.g.states.gotoAndStop(2); } } movieClip 7651 { frame 5 { stop(); } } movieClip 7652 { frame 5 { stop(); _root.g.states.gotoAndStop(3); } } movieClip 7653 { frame 26 { stop(); } } movieClip 7654 { frame 5 { stop(); _root.g.states.gotoAndStop(3); } } movieClip 7655 { frame 5 { stop(); _root.g.states.gotoAndStop(3); } } movieClip 7656 { frame 5 { stop(); _root.g.states.gotoAndStop(3); } } movieClip 7657 { frame 1 { stop(); } } movieClip 7660 { frame 35 { stop(); } frame 48 { stop(); } } movieClip 7662 { } movieClip 7663 { frame 1 { side = 'a'; } frame 1 { shock = 'lose2'; } frame 10 { side = 'a'; } frame 10 { shock = 'lose1'; } frame 13 { shock = 'lose1'; } frame 14 { shock = 'win'; } frame 16 { side = 'b'; } frame 16 { shock = 'win'; } frame 17 { shock = 'lose1'; } frame 20 { shock = 'lose1'; } frame 21 { shock = 'lose2'; } frame 40 { side = 'b'; } frame 40 { shock = 'lose1'; } frame 43 { shock = 'lose1'; } frame 44 { shock = 'win'; } frame 45 { side = 'a'; } frame 46 { shock = 'win'; } frame 47 { shock = 'lose1'; } frame 50 { shock = 'lose2'; } } movieClip 7666 { } movieClip 7667 game211 { frame 1 { _root.beatClock = true; _root.rules = 'Finish off the mod!'; thrown = false; onEnterFrame = function () { if (Key.isDown(32) && thrown == false) { meter.stop(); thrown = true; arm.play(); if (meter.side == 'a') { if (meter.shock == 'lose2') { knives.gotoAndStop(6); } if (meter.shock == 'lose1') { knives.gotoAndStop(5); } } if (meter.side == 'b') { if (meter.shock == 'lose1') { knives.gotoAndStop(3); } if (meter.shock == 'lose2') { knives.gotoAndStop(4); } } if (meter.shock == 'win') { knives.gotoAndStop(2); } } }; } } movieClip 7684 { frame 1 { stop(); } } button 7688 { on (release) { onEnterFrame = function () {}; gotoAndPlay(4); } } movieClip 7691 { } button 7692 { on (release) { getURL('http://www.armorgames.com', 'blank'); } } movieClip 7694 { } movieClip 7696 { } movieClip 7698 { } movieClip 7699 { frame 81 { _root.play(); } } movieClip 7700 { } movieClip 7703 { } movieClip 7704 { } movieClip 7705 { } movieClip 7706 { } button 7713 { on (release) { _parent.gotoAndPlay(675); } } movieClip 7714 { frame 27 { stop(); } } movieClip 7716 { } movieClip 7717 { } movieClip 7719 { } movieClip 7720 { } movieClip 7721 { } movieClip 7723 { } movieClip 7725 { } movieClip 7727 { } movieClip 7729 { } movieClip 7730 { } movieClip 7731 { } frame 676 { _quality = 'LOW'; } frame 676 { k = 5; i = 0; while (i < 10) { tt = attachMovie('circ', 'circ' + getNextHighestDepth(), getNextHighestDepth()); tt._x = random(550); tt._y = random(400); tt._xscale = 100 + random(600); tt._yscale = tt._xscale; ++i; } } frame 677 { i = 0; while (i < 30) { tt = attachMovie('circ', 'circ' + getNextHighestDepth(), getNextHighestDepth()); tt._x = random(550); tt._y = random(400); tt._xscale = 100 + random(600); tt._yscale = tt._xscale; ++i; } } movieClip 7733 { } button 7739 { on (release) { _root.storyMode = 'short'; play(); } } movieClip 7743 { } button 7748 { on (release) { _root.goto(1); } } button 7751 { on (release) { _root.goto(1); } } button 7752 { on (release) { _root.globalMode = 'original'; _root.storyMode = 'short'; _root.goto(1); } } button 7753 { on (release) { _root.globalMode = 'mouse'; _root.storyMode = 'short'; _root.goto(6); } } movieClip 7754 { frame 1 { stop(); } frame 24 { stop(); } } button 7759 { on (release) { _root.storyMode = 'endurance'; play(); } } movieClip 7763 { } button 7765 { on (release) { _root.globalMode = 'original'; _root.storyMode = 'endurance'; _root.goto(1); } } button 7766 { on (release) { _root.globalMode = 'mouse'; _root.storyMode = 'endurance'; _root.goto(6); } } movieClip 7767 { frame 1 { stop(); } frame 24 { stop(); } } frame 687 { _quality = 'HIGH'; } button 7772 { on (release) { _root.storyMode = 'suddenDeath'; play(); } } movieClip 7776 { } button 7778 { on (release) { _root.globalMode = 'original'; _root.storyMode = 'suddenDeath'; _root.goto(1); } } button 7779 { on (release) { _root.globalMode = 'mouse'; _root.storyMode = 'suddenDeath'; _root.goto(6); } } movieClip 7780 { frame 1 { stop(); } frame 24 { stop(); } } button 7785 { on (release) { _root.storyMode = 'sandbox'; _root.globalMode = 'original'; _root.goto(4); } } movieClip 7786 { } button 7791 { on (release) { getURL('http://www.armorgames.com/', '_blank'); } } movieClip 7792 { } button 7797 { on (release) { _root.goto(7); } } movieClip 7798 { } movieClip 7802 { } frame 711 { onEnterFrame = function () { i = 0; while (i < 7) { x1 = this[i]._x; y1 = this[i]._y; x2 = _root._xmouse; y2 = _root._ymouse; this[i]._xscale = 150 - Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2)) * 1.5; this[i]._yscale = this[i]._xscale; if (this[i].hitTest(_root._xmouse, _root._ymouse)) { j = 0; while (j < 10) { tt = attachMovie('circ', 'circ' + getNextHighestDepth(), getNextHighestDepth()); tt._x = this[i]._x - this[i]._width / 2 + random(this[i]._width); tt._y = this[i]._y - this[i]._height / 2 + random(this[i]._height); tt._xscale = random(50); tt._yscale = tt._xscale; tt._alpha = 19; ++j; } } if (this[i]._xscale <= 100) { this[i]._xscale = 100; this[i]._yscale = 100; } ++i; } }; } movieClip 7803 { frame 5 { stop(); } } button 7804 { on (release) { getURL('http://www.armorgames.com/', '_blank'); } } frame 733 { onEnterFrame = function () { i = 0; while (i < 7) { x1 = this[i]._x; y1 = this[i]._y; x2 = _root._xmouse; y2 = _root._ymouse; this[i]._xscale = 150 - Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2)) * 1.5; this[i]._yscale = this[i]._xscale; if (this[i].hitTest(_root._xmouse, _root._ymouse)) { j = 0; while (j < 10) { tt = attachMovie('circ', 'circ' + getNextHighestDepth(), getNextHighestDepth()); tt._x = this[i]._x - this[i]._width / 2 + random(this[i]._width); tt._y = this[i]._y - this[i]._height / 2 + random(this[i]._height); tt._xscale = random(50); tt._yscale = tt._xscale; tt._alpha = 19; ++j; } } if (this[i]._xscale <= 100) { this[i]._xscale = 100; this[i]._yscale = 100; } ++i; } }; } frame 753 { onEnterFrame = function () { i = 0; while (i < 7) { x1 = this[i]._x; y1 = this[i]._y; x2 = _root._xmouse; y2 = _root._ymouse; this[i]._xscale = 150 - Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2)) * 1.5; this[i]._yscale = this[i]._xscale; if (this[i].hitTest(_root._xmouse, _root._ymouse)) { j = 0; while (j < 10) { tt = attachMovie('circ', 'circ' + getNextHighestDepth(), getNextHighestDepth()); tt._x = this[i]._x - this[i]._width / 2 + random(this[i]._width); tt._y = this[i]._y - this[i]._height / 2 + random(this[i]._height); tt._xscale = random(50); tt._yscale = tt._xscale; tt._alpha = 19; ++j; } } if (this[i]._xscale <= 100) { this[i]._xscale = 100; this[i]._yscale = 100; } ++i; } }; } frame 773 { onEnterFrame = function () { i = 0; while (i < 7) { x1 = this[i]._x; y1 = this[i]._y; x2 = _root._xmouse; y2 = _root._ymouse; this[i]._xscale = 150 - Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2)) * 1.5; this[i]._yscale = this[i]._xscale; if (this[i].hitTest(_root._xmouse, _root._ymouse)) { j = 0; while (j < 10) { tt = attachMovie('circ', 'circ' + getNextHighestDepth(), getNextHighestDepth()); tt._x = this[i]._x - this[i]._width / 2 + random(this[i]._width); tt._y = this[i]._y - this[i]._height / 2 + random(this[i]._height); tt._xscale = random(50); tt._yscale = tt._xscale; tt._alpha = 19; ++j; } } if (this[i]._xscale <= 100) { this[i]._xscale = 100; this[i]._yscale = 100; } ++i; } }; } frame 798 { onEnterFrame = function () { i = 0; while (i < 7) { x1 = this[i]._x; y1 = this[i]._y; x2 = _root._xmouse; y2 = _root._ymouse; this[i]._xscale = 150 - Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2)) * 1.5; this[i]._yscale = this[i]._xscale; if (this[i].hitTest(_root._xmouse, _root._ymouse)) { j = 0; while (j < 10) { tt = attachMovie('circ', 'circ' + getNextHighestDepth(), getNextHighestDepth()); tt._x = this[i]._x - this[i]._width / 2 + random(this[i]._width); tt._y = this[i]._y - this[i]._height / 2 + random(this[i]._height); tt._xscale = random(50); tt._yscale = tt._xscale; tt._alpha = 19; ++j; } } if (this[i]._xscale <= 100) { this[i]._xscale = 100; this[i]._yscale = 100; } ++i; } }; } frame 824 { onEnterFrame = function () { i = 0; while (i < 7) { x1 = this[i]._x; y1 = this[i]._y; x2 = _root._xmouse; y2 = _root._ymouse; this[i]._xscale = 150 - Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2)) * 1.5; this[i]._yscale = this[i]._xscale; if (this[i].hitTest(_root._xmouse, _root._ymouse)) { j = 0; while (j < 10) { tt = attachMovie('circ', 'circ' + getNextHighestDepth(), getNextHighestDepth()); tt._x = this[i]._x - this[i]._width / 2 + random(this[i]._width); tt._y = this[i]._y - this[i]._height / 2 + random(this[i]._height); tt._xscale = random(50); tt._yscale = tt._xscale; tt._alpha = 19; ++j; } } if (this[i]._xscale <= 100) { this[i]._xscale = 100; this[i]._yscale = 100; } ++i; } }; } frame 2227 { stop(); } movieClip 7806 { } movieClip 7808 { } movieClip 7810 { } movieClip 7812 { } movieClip 7814 { } movieClip 7815 { frame 50 { _root.initialBar(); this.removeMovieClip(); } } movieClip 7817 { } movieClip 7819 { } movieClip 7821 { } frame 2412 { stopAllSounds(); } frame 2413 { _root.goto(5); } movieClip 7823 { } frame 2598 { stopAllSounds(); } frame 2599 { _root.goto(5); } frame 2600 { function hearts() { if (storyMode == 'short') { trace('short MODE'); totGames = 20; bar.heart8._alpha = 0; bar.heart9._alpha = 0; bar.heart10._alpha = 0; lives = 7; } if (storyMode == 'endurance') { trace('endurance MODE'); totGames = 50; lives = 10; } if (storyMode == 'suddenDeath') { trace('sudden death MODE'); totGames = 50; bar.heart2._alpha = 0; bar.heart3._alpha = 0; bar.heart4._alpha = 0; bar.heart5._alpha = 0; bar.heart6._alpha = 0; bar.heart7._alpha = 0; bar.heart8._alpha = 0; bar.heart9._alpha = 0; bar.heart10._alpha = 0; lives = 1; } if (storyMode == 'sandbox') { bar.heart1._alpha = 0; bar.heart2._alpha = 0; bar.heart3._alpha = 0; bar.heart4._alpha = 0; bar.heart5._alpha = 0; bar.heart6._alpha = 0; bar.heart7._alpha = 0; bar.heart8._alpha = 0; bar.heart9._alpha = 0; bar.heart10._alpha = 0; lives = 1000000000; } } function runFinal() { cstatus = 10; subsub.removeMovieClip(); stopAllSounds(); gotoAndStop('win'); runFine = true; } function initialBar() { trace('bar initialized!!!'); if (gameMode == 'boss') { Mouse.show(); } bar._visible = true; b = bar.bar._width; bwidth = b / frameRate * timeGiven; counter = timeGiven * frameRate; tcounter = 100; bar.swapDepths(barLevel); bar.bar._x = ibx; bar.bar._y = iby; callRules(); bar.bar.cautionBar._alpha = 0; bar.four.gotoAndStop(1); bar.two.gotoAndStop(1); bar.zero.gotoAndStop(1); chooseGame(); callTransIn(); bar.progressBar._xscale = barActual; } function runningBar() { if (tcounter <= 50) { bar.bar.cautionBar._alpha += bwidth / 2; } if (tcounter == 100) { bar.four.play(); } if (tcounter == 65) { bar.two.play(); } if (tcounter == 15) { bar.zero.play(); } bar.bar._x -= bwidth; --tcounter; if (tcounter == 0 && beatClock == true) { gameOutcome(false); } if (tcounter == 0 && beatClock == false) { gameOutcome(true); } } function callRules() { rls = attachMovie('loadrules', 'l' + k, rulesLevel); rls._x = 275; rls._y = 125; } function callResponse(cr) { if (cr == true) { rls = attachMovie('loadResponse', 'l', k, responsesLevel); rls._x = 275; rls._y = 125; responses = typeResponses[random(typeResponses.length)]; if (combo > combo4) { w4.start(); trace('Level 4 Sound'); } else { if (combo > combo3) { w3.start(); trace('Level 3 Sound'); } else { if (combo > combo2) { w2.start(); trace('Level 2 Sound'); } else { if (combo > combo1) { w1.start(); trace('Level 1 Sound'); } else { if (combo < combo1) { trace('Level 0 Sound'); } } } } } } if (cr == false) { rls = attachMovie('loadResponse', 'l', k, responsesLevel); rls._x = 275; rls._y = 125; responses = typeBadResponses[random(typeBadResponses.length)]; l1.start(); } } function callTransIn() { temp = random(xtransin) + 1; trace('--Transition ' + temp + ' In-->'); g.attachMovie('Transition_' + temp, 'transrans', translevel); } function callTransOut() { temp = random(xtransout) + 1; g.attachMovie('transOut_' + temp, 't' + k + 10, translevel); trace('--Transition ' + temp + 'Out-->'); } function switchScreens() { g.onEnterFrame = function () {}; g.removeMovieClip(); bar._visible = false; Mouse.show(); if (games.length <= 0 && bbpran == false) { gotoAndPlay(2601); gameMode = 'boss'; bbpran = true; trace('====Switched to Boss Mode====='); } else { if (bbpran == true) { subsub._visible = true; _root.continuedBoss = true; trace('====Switched - Continued Boss Mode====='); } else { rls = attachMovie('switcher', 's' + k + 10, switcherLevel); trace('====Switched - Regular====='); } } } function gameOutcome(gib) { jumpX = 3; if (cstatus == 1) { ++gamesRan; bar.progressBar._xscale = gamesRan / tinyInc; if (bar.progressBar._xscale > 100) { bar.progressBar._xscale = 100; } if (gameMode != 'finalBoss') { barActual += barInc; } trace('You have completed ' + barActual + '%'); if (gib == true) { if (_root.gameMode == 'boss') { coverScreen.play(); ++combo; callResponse(true); callTransOut(); cstatus = 0; g.removeMovieClip(); } if (_root.gameMode == 'finalBoss') { if (bossMode == 'final') { _root['finalGame' + currentlyOn] = true; trace('finalGame' + currentlyOn + ' = ' + _root['finalGame' + currentlyOn]); } subsub.boss.top[currentlyOn].gotoAndStop(2); subsub.boss.bottom[currentlyOn].gotoAndStop(2); } if (finalGame1 == true && finalGame2 == true && finalGame3 == true && finalGame4 == true && finalGame5 == true && finalGame6 == true && finalGame7 == true && finalGame8 == true) { trace('teethDone'); subsub.nextFrame(); finalGame1 = false; ++combo; callResponse(true); callTransOut(); cstatus = 0; } else { ++combo; callResponse(true); callTransOut(); cstatus = 0; } } if (gib == false) { coverScreen.play(); combo = 0; loseLife(); if (lives == 0) { cstatus = 10; subsub.removeMovieClip(); stopAllSounds(); runFine = true; trace('DEAD'); _root.g.removeMovieClip(); _root.bar.removeMovieClip(); gotoAndPlay(2892); } else { callResponse(false); callTransOut(); cstatus = 0; if (gameMode == 'boss') { g.removeMovieClip(); } } } } } function loseLife() { --lives; if (_root.lives == 0 && _root.gameMode == 'boss') { _root.cstatus = 10; subsub.removeMovieClip(); stopAllSounds(); runFine = true; trace('DEAD'); _root.g.removeMovieClip(); _root.bar.removeMovieClip(); _root.imaloser = true; _root.goto(9); } switch (lives) { case 0: bar.heart.nextFrame(); break; case 1: bar.heart2.nextFrame(); break; case 2: bar.heart3.nextFrame(); break; case 3: bar.heart4.nextFrame(); break; case 4: bar.heart5.nextFrame(); break; case 5: bar.heart6.nextFrame(); break; case 6: bar.heart7.nextFrame(); break; case 7: bar.heart8.nextFrame(); break; case 8: bar.heart9.nextFrame(); break; case 9: bar.heart10.nextFrame(); } } function chooseGame() { if (gameMode == 'boss') { i = random(megaArray.length); trace('------------------'); trace('Length of array: ' + megaArray.length); trace('Array Choice: ' + i + ' (Game #' + megaArray[i] + ')'); trace('Element ' + i + ' removed...'); gameChoice = megaArray[i]; trace('Game loaded: game' + gameChoice); attachMovie('game' + gameChoice, 'g', gameLevel); megaArray.splice(i, 1); trace('Elements ' + megaArray + ' left'); } else { i = random(games.length); trace('------------------'); trace('Length of array: ' + games.length); trace('Array Choice: ' + i + ' (Game #' + games[i] + ')'); trace('Element ' + i + ' removed...'); gameChoice = games[i]; trace('Game loaded: game' + gameChoice); attachMovie('game' + gameChoice, 'g', gameLevel); games.splice(i, 1); trace('Elements ' + games + ' left'); } } stop(); trace('///////////////////////////////////////////////////////////'); trace('//4 Second Firestorm //'); trace('//By jmtb02, protected by copyright and the CC license //'); trace('//For more information, visit http://www.jmtb02.com/ //'); trace('//Contact John Cooney, jmtb02@gmail.com //'); trace('///////////////////////////////////////////////////////////'); trace(' '); trace(' '); dicko = _root.attachMovie('bar', 'bar', 7); dicko._x = -10; var i = 0; var frameRate = 30; var timeGiven = 4; var b; var bwidth; var counter; var tcounter; var k = 10; var temp = 0; var speed = 1; var jumpX = 1; var cstatus = 0; var rules; var responses; var typeResponses = new Array('Bodacious!', 'Great!', 'Awesome!', 'Fantastic!', 'Brilliant!', 'Wicked!', 'Rockin!', 'Far Out!', ':)'); var badResponses; var typeBadResponses = new Array('Lame...', 'Boo!!!', 'No Good!', 'Awww...', 'How sad!', 'Pshhhhh!', 'You lose!', 'You awake?', ':*('); var gameLevel = 2; var transLevel = 3; var rulesLevel = 4; var transOutLevel = 5; var responsesLevel = 6; var barLevel = 7; var switcherLevel = 8; var selecto = 0; var imaloser = false; var ibx = bar.bar._x; var iby = bar.bar._y; var beatClock; var lives; var totGames; bbpran = false; var w1 = new Sound(); w1.attachSound('good1'); var w2 = new Sound(); w2.attachSound('good2'); var w3 = new Sound(); w3.attachSound('good3'); var w4 = new Sound(); w4.attachSound('good4'); var l1 = new Sound(); l1.attachSound('bad'); var combo = 0; var combo1 = 1; var combo2 = 3; var combo3 = 5; var combo4 = 10; var bossLife = 300; var gameMode = ''; var runFine = false; var totalTime = 0; var currentlyOn = 1; var pp = 300; hearts(); var bottomNum = 1; var curGame; var curGameDisp; if (_root.globalMode == 'original') { trace('================ORIGINAL MODE================='); var games = new Array(1, 2, 3, 4, 6, 9, 12, 14, 16, 17, 18, 19, 20, 21, 26, 32, 33, 34, 38, 39, 41, 42, 43, 45, 49, 54, 55, 56, 57, 58, 59, 60, 61, 63, 66, 67, 68, 69, 70, 72, 74, 78, 79, 80, 81, 82, 83, 84, 85, 88, 89, 92, 93, 101, 104, 105, 106, 115, 116, 118, 119, 120, 122, 123, 124, 125, 127, 132, 133, 134, 135, 136, 138, 139, 141, 142, 143, 146, 147, 148, 149, 150, 151, 152, 153, 156, 158, 159, 160, 162, 165, 168, 169, 170, 180, 184, 187, 190, 191, 204, 205, 206, 207, 208, 209, 210, 211); var maxLength = games.length - 1; curGame = 0; curGameDisp = games[curGame]; trace(games); } if (_root.globalMode == 'mouse') { trace('================MOUSE MODE================='); var games = new Array(5, 7, 8, 10, 11, 13, 15, 31, 35, 36, 37, 40, 47, 50, 52, 53, 64, 71, 73, 77, 86, 90, 91, 94, 96, 97, 98, 99, 100, 102, 103, 107, 117, 121, 128, 131, 137, 140, 144, 154, 157, 161, 164, 173, 174, 175, 176, 177, 178, 179, 181, 182, 183, 186, 188, 192, 195, 196, 197, 201, 202, 203); var maxLength = games.length - 1; curGame = 0; curGameDisp = games[curGame]; } var megaArray = new Array(5, 7, 8, 10, 11, 13, 15, 31, 35, 36, 37, 40, 47, 50, 52, 53, 64, 71, 73, 77, 86, 90, 91, 94, 96, 97, 98, 99, 100, 102, 103, 107, 117, 121, 128, 131, 137, 140, 144, 154, 157, 161, 164, 173, 174, 175, 176, 177, 178, 179, 181, 182, 183, 186, 188, 192, 195, 196, 197, 201, 202, 203); if (globalMode == 'original') { triggerOriginal(); trace('triggering Original'); } else { if (globalMode == 'mouse') { triggerMouse(); trace('triggering Mouse'); } } var xtransin = 3; var xtransout = 2; var sn = 1; text; Array.prototype.randomize = function () { var v2 = this.length; if (v2 == 0) { return undefined; } while (--v2) { var v3 = Math.floor(Math.random() * (v2 + 1)); var v5 = this[v2]; var v4 = this[v3]; this[v2] = v4; this[v3] = v5; } return this; }; games.randomize(); trace(games.length + ' games total.'); trace('Popping ' + (games.length - totGames) + ' games.'); games.splice(1, games.length - totGames); trace(games.length + ' games left.'); trace('Loading games: ' + games); trace(' '); trace('Begin Game----------------->'); tinyInc = games.length; gamesRan = 0; initialBar(); var barInc = 100 / xgames; bar.progressBar._xscale = 0; var barActual = 0; onEnterFrame = function () { if (cstatus == 1) { runningBar(); } if (gameMode == 'finalBoss' && runFine == false) { _root.subsub.chump.life.bar._height = bossLife; if (bossLife <= 0) { runFinal(); } } if (runFine == false) { ++totalTime; } }; stop(); } button 7830 { on (press) { if (_quality == 'HIGH') { _quality = 'MEDIUM'; } else { if (_quality == 'MEDIUM') { _quality = 'LOW'; } else { if (_quality == 'LOW') { _quality = 'HIGH'; } } } } } movieClip 7831 { } instance of movieClip 7831 { onClipEvent (enterFrame) { this.swapDepths(_root.getNextHighestDepth() + 1000); } } frame 2601 { stopAllSounds(); } movieClip 7833 { } movieClip 7836 { } movieClip 7838 { } movieClip 7840 { } movieClip 7843 { frame 1 { stop(); } } movieClip 7846 { } movieClip 7848 { } movieClip 7851 { } movieClip 7853 { } movieClip 7854 { } frame 2890 { gotoAndPlay(2891); } frame 2891 { gspeed = 5; macDir = 'up'; cheers = 0; k = 15; Mouse.hide(); var ffg = false; cursor.startDrag(true); onMouseDown = function () { if (fightMode == true) { tt = attachMovie('troub', '56jh7', _root.k++); tt._x = truck._x + truck.cannon._x; tt._y = truck._y + truck.cannon._y; tt._rotation = truck.cannon._rotation + 90; } }; onEnterFrame = function () { if (cstatus == 1) { bar.progressBar._xscale = barActual; runningBar(); } if (bar.progressBar._xscale < barActual) { ++bar.progressBar._xscale; } if (gameMode == 'finalBoss' && runFine == false) { _root.subsub.chump.life.bar._height = bossLife; if (bossLife <= 0) { runFinal(); } } if (runFine == false) { ++totalTime; } if (meta.gg._xscale <= 0) { coverScreen.stop(); coverScreen.removeMovieClip(); gotoAndPlay(2993); } if (fightMode == true) { if (ffg == true) { ffg = false; } sdv._x += 0.1; ++cheers; if (cheers == 70) { cheers = 0; tt = attachMovie('wafer', 'werwe', _root.k++); tt._x = machine._x + machine.head._x + machine.head.turret._x + 45; tt._y = machine._y + machine.head._y + machine.head.turret._y + 40; tt._rotation = machine.head.turret._rotation + 90; } if (macDir == 'up') { machine._x += 3; if (machine._x >= 600) { macDir = 'down'; } } if (macDir == 'down') { machine._x -= 3; if (machine._x <= 400) { macDir = 'up'; } } circx = _root.truck._x; circy = _root.truck._y; prevx = _root.machine._x + _root.machine.head._x + _root.machine.head.turret._x; prevy = _root.machine._y + _root.machine.head._y + _root.machine.head.turret._y; if (circx < prevx && circy < prevy) { angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx)); degrees = angle * 180 / Math.PI; _root.machine.head.turret._rotation = degrees + 90; } else { if (circx < prevx && circy > prevy) { angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx)); degrees = angle * 180 / Math.PI; _root.machine.head.turret._rotation = 90 - degrees; } else { if (circx > prevx && circy < prevy) { angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy)); degrees = angle * 180 / Math.PI; _root.machine.head.turret._rotation = -(180 - degrees); } else { if (circx > prevx && circy > prevy) { angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx)); degrees = angle * 180 / Math.PI; _root.machine.head.turret._rotation = -(90 - degrees); } } } } if (Key.isDown(37)) { truck._x -= gspeed; if (truck._x < -30) { truck._x = -30; } } else { if (Key.isDown(39)) { truck._x += gspeed; if (truck._x > 220) { truck._x = 220; } } } circx = _root.cursor._x; circy = _root.cursor._y; prevx = _root.truck._x + _root.truck.cannon._x; prevy = _root.truck._y + _root.truck.cannon._y; if (circx < prevx && circy < prevy) { angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx)); degrees = angle * 180 / Math.PI; _root.truck.cannon._rotation = degrees + 90; } else { if (circx < prevx && circy > prevy) { angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx)); degrees = angle * 180 / Math.PI; _root.truck.cannon._rotation = 90 - degrees; } else { if (circx > prevx && circy < prevy) { angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy)); degrees = angle * 180 / Math.PI; _root.truck.cannon._rotation = -(180 - degrees); } else { if (circx > prevx && circy > prevy) { angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx)); degrees = angle * 180 / Math.PI; _root.truck.cannon._rotation = -(90 - degrees); } } } } } }; stop(); } movieClip 7857 { } movieClip 7861 { } movieClip 7864 { } movieClip 7865 { } movieClip 7867 { } movieClip 7869 { } movieClip 7870 { frame 1 { stop(); } } movieClip 7872 { } movieClip 7873 { } movieClip 7877 { } movieClip 7878 { } movieClip 7880 { } movieClip 7881 { frame 1 { stop(); _root.fightMode = true; } frame 2 { _root.fightMode = 'false'; } frame 3 { _root.fightMode = 'false'; } frame 4 { _root.fightMode = 'false'; } frame 10 { stop(); _root.initialBar(); } frame 11 { _root.cursor.startDrag(true); _root.bar._visible = false; } frame 12 { _root.cursor.startDrag(true); _root.bar._visible = false; } frame 13 { _root.cursor.startDrag(true); _root.bar._visible = false; } frame 20 { _root.fightMode = true; } } movieClip 7884 { } movieClip 7885 { } movieClip 7888 { frame 60 { this.stop(); _root.fightMode = true; } } frame 2892 { stopAllSounds(); Mouse.show(); } movieClip 7891 { } frame 2946 { _root.endTime = Math.floor(_root.totalTime / 30); } button 7895 { on (release) { if (_root.storyMode == 'short' && _root.globalMode == 'original') { getURL('http://www.armorbot.com/mytable/?id=451', '_blank'); } if (_root.storyMode == 'short' && _root.globalMode == 'mouse') { getURL('http://www.armorbot.com/mytable/?id=452', '_blank'); } if (_root.storyMode == 'endurance' && _root.globalMode == 'original') { getURL('http://www.armorbot.com/mytable/?id=450', '_blank'); } if (_root.storyMode == 'endurance' && _root.globalMode == 'mouse') { getURL('http://www.armorbot.com/mytable/?id=449', '_blank'); } if (_root.storyMode == 'suddenDeath' && _root.globalMode == 'original') { getURL('http://www.armorbot.com/mytable/?id=454', '_blank'); } if (_root.storyMode == 'suddenDeath' && _root.globalMode == 'mouse') { getURL('http://www.armorbot.com/mytable/?id=453', '_blank'); } } } movieClip 7897 { } movieClip 7900 { } button 7904 { on (release) { gotoAndPlay(728); } } frame 2992 { stop(); } frame 2993 { if (_root.imaloser == true) { gotoAndPlay(2892); } Mouse.show(); } frame 2993 { stopAllSounds(); _root.bar.removeMovieClip(); _root.g.removeMovieClip(); _root.fightMode = false; onEnterFrame = function () {}; onMouseDown = function () {}; } frame 3172 { tt = attachMovie('circlecircle', 'c' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); tt._x = random(machine._width) + (machine._x - machine._width / 2); tt._y = random(machine._height) + (machine._y - machine._height / 2); tt._xscale = 100 + random(300); tt._yscale = tt._xscale; } instance machine of movieClip 7854 { onClipEvent (enterFrame) { this.stop(); } } frame 3180 { tt = attachMovie('circlecircle', 'c' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); tt._x = random(machine._width) + (machine._x - machine._width / 2); tt._y = random(machine._height) + (machine._y - machine._height / 2); tt._xscale = 100 + random(300); tt._yscale = tt._xscale; } frame 3182 { tt = attachMovie('circlecircle', 'c' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); tt._x = random(machine._width) + (machine._x - machine._width / 2); tt._y = random(machine._height) + (machine._y - machine._height / 2); tt._xscale = 100 + random(300); tt._yscale = tt._xscale; } frame 3186 { tt = attachMovie('circlecircle', 'c' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); tt._x = random(machine._width) + (machine._x - machine._width / 2); tt._y = random(machine._height) + (machine._y - machine._height / 2); tt._xscale = 100 + random(300); tt._yscale = tt._xscale; } frame 3194 { tt = attachMovie('circlecircle', 'c' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); tt._x = random(machine._width) + (machine._x - machine._width / 2); tt._y = random(machine._height) + (machine._y - machine._height / 2); tt._xscale = 100 + random(300); tt._yscale = tt._xscale; } frame 3196 { tt = attachMovie('circlecircle', 'c' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); tt._x = random(machine._width) + (machine._x - machine._width / 2); tt._y = random(machine._height) + (machine._y - machine._height / 2); tt._xscale = 100 + random(300); tt._yscale = tt._xscale; } frame 3198 { tt = attachMovie('circlecircle', 'c' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); tt._x = random(machine._width) + (machine._x - machine._width / 2); tt._y = random(machine._height) + (machine._y - machine._height / 2); tt._xscale = 100 + random(300); tt._yscale = tt._xscale; } frame 3200 { tt = attachMovie('circlecircle', 'c' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); tt._x = random(machine._width) + (machine._x - machine._width / 2); tt._y = random(machine._height) + (machine._y - machine._height / 2); tt._xscale = 100 + random(300); tt._yscale = tt._xscale; } frame 3201 { tt = attachMovie('circlecircle', 'c' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); tt._x = random(machine._width) + (machine._x - machine._width / 2); tt._y = random(machine._height) + (machine._y - machine._height / 2); tt._xscale = 100 + random(300); tt._yscale = tt._xscale; } frame 3203 { tt = attachMovie('circlecircle', 'c' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); tt._x = random(machine._width) + (machine._x - machine._width / 2); tt._y = random(machine._height) + (machine._y - machine._height / 2); tt._xscale = 100 + random(300); tt._yscale = tt._xscale; } frame 3204 { onEnterFrame = function () { tt = attachMovie('circlecircle', 'c' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); tt._x = random(machine._width) + (machine._x - machine._width / 2); tt._y = random(machine._height) + (machine._y - machine._height / 2); tt._xscale = 100 + random(300); tt._yscale = tt._xscale; }; } instance machine of movieClip 7854 { onClipEvent (enterFrame) { this.stop(); } } frame 3214 { onEnterFrame = function () { tt = attachMovie('circlecircle', 'c' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); tt._x = random(machine._width) + (machine._x - machine._width / 2); tt._y = random(machine._height) + (machine._y - machine._height / 2); tt._xscale = 100 + random(300); tt._yscale = tt._xscale; tt = attachMovie('circlecircle2', 'c' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); tt._x = random(machine._width) + (machine._x - machine._width / 2); tt._y = random(machine._height) + (machine._y - machine._height / 2); tt._xscale = 100 + random(300); tt._yscale = tt._xscale; }; } frame 3242 { onEnterFrame = function () {}; i = 0; while (i < 15) { tt = attachMovie('circlecircle2', 'c' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); tt._x = random(head._width) + (head._x - head._width / 2); tt._y = random(head._height) + (head._y - head._height / 2); tt._xscale = 100 + random(500); tt._yscale = tt._xscale; ++i; } i = 0; while (i < 15) { tt = attachMovie('circlecircle3', 'c' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); tt._x = random(head._width) + (head._x - head._width / 2); tt._y = random(head._height) + (head._y - head._height / 2); tt._xscale = 100 + random(300); tt._yscale = tt._xscale; tt._rotation = random(180); ++i; } } movieClip 7916 { } movieClip 7918 { } movieClip 7919 { } movieClip 7921 { } frame 3634 { _root.endTime = Math.floor(_root.totalTime / 30); } frame 3634 { _root.endTime = Math.floor(_root.totalTime / 30); } movieClip 7923 { } movieClip 7924 { frame 1000 { stop(); } } button 7927 { on (release) { if (_root.storyMode == 'short' && _root.globalMode == 'original') { ab20_09 = new LoadVars(); ab20_09.z = mynamevar; ab20_09.x = ab20.encodeNum(myscorevar); ab20_09.c = 451; ab20_09.v = 'RGPCHI'; ab20_09.sendAndLoad('http://armorbot.com/s_b', ab20_09, 'POST'); getURL('http://www.armorbot.com/mytable/?id=451', '_blank'); } if (_root.storyMode == 'short' && _root.globalMode == 'mouse') { getURL('http://www.armorbot.com/mytable/?id=452', '_blank'); } if (_root.storyMode == 'endurance' && _root.globalMode == 'original') { getURL('http://www.armorbot.com/mytable/?id=450', '_blank'); } if (_root.storyMode == 'endurance' && _root.globalMode == 'mouse') { getURL('http://www.armorbot.com/mytable/?id=449', '_blank'); } if (_root.storyMode == 'suddenDeath' && _root.globalMode == 'original') { getURL('http://www.armorbot.com/mytable/?id=454', '_blank'); } if (_root.storyMode == 'suddenDeath' && _root.globalMode == 'mouse') { getURL('http://www.armorbot.com/mytable/?id=453', '_blank'); } } } movieClip 7930 { } movieClip 7932 { } button 7933 { on (release) { stopAllSounds(); gotoAndPlay(728); } } button 7934 { on (release) { if (_root.storyMode == 'short' && _root.globalMode == 'original') { ab20_09 = new LoadVars(); ab20_09.z = _root.myName; ab20_09.x = ab20.encodeNum(_root.endTime); ab20_09.c = 451; ab20_09.v = 'RGPCHI'; ab20_09.sendAndLoad('http://armorbot.com/s_b', ab20_09, 'POST'); getURL('http://www.armorbot.com/mytable/?id=451', '_blank'); } if (_root.storyMode == 'short' && _root.globalMode == 'mouse') { ab20_09 = new LoadVars(); ab20_09.z = _root.myName; ab20_09.x = ab20.encodeNum(_root.endTime); ab20_09.c = 452; ab20_09.v = 'AXVBHS'; ab20_09.sendAndLoad('http://armorbot.com/s_b', ab20_09, 'POST'); getURL('http://www.armorbot.com/mytable/?id=452', '_blank'); } if (_root.storyMode == 'endurance' && _root.globalMode == 'original') { ab20_09 = new LoadVars(); ab20_09.z = _root.myName; ab20_09.x = ab20.encodeNum(_root.endTime); ab20_09.c = 450; ab20_09.v = 'NKAMYW'; ab20_09.sendAndLoad('http://armorbot.com/s_b', ab20_09, 'POST'); getURL('http://www.armorbot.com/mytable/?id=450', '_blank'); } if (_root.storyMode == 'endurance' && _root.globalMode == 'mouse') { ab20_09 = new LoadVars(); ab20_09.z = _root.myName; ab20_09.x = ab20.encodeNum(_root.endTime); ab20_09.c = 449; ab20_09.v = 'PCIPMN'; ab20_09.sendAndLoad('http://armorbot.com/s_b', ab20_09, 'POST'); getURL('http://www.armorbot.com/mytable/?id=449', '_blank'); } if (_root.storyMode == 'suddenDeath' && _root.globalMode == 'original') { ab20_09 = new LoadVars(); ab20_09.z = _root.myName; ab20_09.x = ab20.encodeNum(_root.endTime); ab20_09.c = 454; ab20_09.v = 'EQTJFQ'; ab20_09.sendAndLoad('http://armorbot.com/s_b', ab20_09, 'POST'); getURL('http://www.armorbot.com/mytable/?id=454', '_blank'); } if (_root.storyMode == 'suddenDeath' && _root.globalMode == 'mouse') { ab20_09 = new LoadVars(); ab20_09.z = _root.myName; ab20_09.x = ab20.encodeNum(_root.endTime); ab20_09.c = 453; ab20_09.v = 'VGWFIV'; ab20_09.sendAndLoad('http://armorbot.com/s_b', ab20_09, 'POST'); getURL('http://www.armorbot.com/mytable/?id=453', '_blank'); } _root.thisButton._x = 500000; } } frame 5208 { stop(); } frame 5210 { function hearts() { if (storyMode == 'short') { bar.heart8._alpha = 0; bar.heart9._alpha = 0; bar.heart10._alpha = 0; var v1 = 7; } if (storyMode == 'endurance') { v1 = 10; } if (storyMode == 'suddenDeath') { bar.heart2._alpha = 0; bar.heart3._alpha = 0; bar.heart4._alpha = 0; bar.heart5._alpha = 0; bar.heart6._alpha = 0; bar.heart7._alpha = 0; bar.heart8._alpha = 0; bar.heart9._alpha = 0; bar.heart10._alpha = 0; v1 = 1; } if (storyMode == 'sandbox') { bar.heart1._alpha = 0; bar.heart2._alpha = 0; bar.heart3._alpha = 0; bar.heart4._alpha = 0; bar.heart5._alpha = 0; bar.heart6._alpha = 0; bar.heart7._alpha = 0; bar.heart8._alpha = 0; bar.heart9._alpha = 0; bar.heart10._alpha = 0; v1 = 1000000000; } } function callOriginal() { trace('================ORIGINAL MODE================='); var v1 = 1; games = Array(1, 2, 3, 4, 6, 9, 12, 14, 16, 17, 18, 19, 20, 21, 26, 32, 33, 34, 38, 39, 41, 42, 43, 45, 49, 54, 55, 56, 57, 58, 59, 60, 61, 63, 66, 67, 68, 69, 70, 72, 74, 78, 79, 80, 81, 82, 83, 84, 85, 88, 89, 92, 93, 101, 104, 105, 106, 115, 116, 118, 119, 120, 122, 123, 124, 125, 127, 132, 133, 134, 135, 136, 138, 139, 141, 142, 143, 146, 147, 148, 149, 150, 151, 152, 153, 156, 158, 159, 160, 161, 162, 165, 168, 169, 170, 180, 184, 187, 190, 191, 204, 205, 206, 207, 208, 209, 210, 211); var v2 = games.length - 1; curGame = 0; curGameDisp = games[curGame]; trace(games); } function callMouse() { trace('================MOUSE MODE================='); var v1 = 1; games = Array(5, 7, 8, 10, 11, 13, 15, 31, 35, 36, 37, 40, 47, 50, 52, 53, 64, 71, 73, 77, 86, 90, 91, 94, 96, 97, 98, 99, 100, 102, 103, 107, 117, 121, 128, 131, 137, 140, 144, 154, 157, 161, 164, 173, 174, 175, 176, 177, 178, 179, 181, 182, 183, 186, 188, 192, 195, 196, 197, 201, 202, 203); var v2 = games.length - 1; curGame = 0; curGameDisp = games[curGame]; } function runFinal() { cstatus = 10; subsub.removeMovieClip(); stopAllSounds(); gotoAndStop('win'); runFine = true; } function initialBar() { bar._visible = true; b = bar.bar._width; bwidth = b / frameRate * timeGiven; counter = timeGiven * frameRate; tcounter = 100; bar.swapDepths(barLevel); bar.bar._x = ibx; bar.bar._y = iby; callRules(); bar.bar.cautionBar._alpha = 0; bar.four.gotoAndStop(1); bar.two.gotoAndStop(1); bar.zero.gotoAndStop(1); chooseGame(); callTransIn(); bar.progressBar._xscale = barActual; } function runningBar() { if (tcounter <= 50) { bar.bar.cautionBar._alpha += bwidth / 2; } if (tcounter == 100) { bar.four.play(); } if (tcounter == 65) { bar.two.play(); } if (tcounter == 15) { bar.zero.play(); } bar.bar._x -= bwidth; --tcounter; if (tcounter == 0 && beatClock == true) { gameOutcome(false); } if (tcounter == 0 && beatClock == false) { gameOutcome(true); } } function callRules() { rls = attachMovie('loadrules', 'l' + k, rulesLevel); rls._x = 275; rls._y = 125; } function callResponse(cr) { if (cr == true) { rls = attachMovie('loadResponse', 'l', k, responsesLevel); rls._x = 275; rls._y = 125; responses = typeResponses[random(typeResponses.length)]; if (combo > combo4) { w4.start(); trace('Level 4 Sound'); } else { if (combo > combo3) { w3.start(); trace('Level 3 Sound'); } else { if (combo > combo2) { w2.start(); trace('Level 2 Sound'); } else { if (combo > combo1) { w1.start(); trace('Level 1 Sound'); } else { if (combo < combo1) { trace('Level 0 Sound'); } } } } } } if (cr == false) { rls = attachMovie('loadResponse', 'l', k, responsesLevel); rls._x = 275; rls._y = 125; responses = typeBadResponses[random(typeBadResponses.length)]; l1.start(); } } function callTransIn() { temp = random(xtransin) + 1; trace('--Transition ' + temp + ' In-->'); g.attachMovie('Transition_' + temp, 'transrans', translevel); } function callTransOut() { temp = random(xtransout) + 1; g.attachMovie('transOut_' + temp, 'transrans', translevel); trace('--Transition ' + temp + 'Out-->'); } function switchScreens() { g.removeMovieClip(); bar._visible = false; Mouse.show(); if (games.length <= 0 && bbpran == false) { rls = attachMovie('finalswitcher', 'subsub', switcherLevel); gameMode = 'finalBoss'; bbpran = true; trace('====Switched to Boss Mode====='); } else { if (bbpran == true) { subsub._visible = true; _root.continuedBoss = true; trace('====Switched - Continued Boss Mode====='); } else { rls = attachMovie('switcher', 'ssss', switcherLevel); trace('====Switched - Regular====='); } } } function gameOutcome(gib) { jumpX = 3; if (cstatus == 1) { if (gameMode != 'finalBoss') { barActual += barInc; } trace('You have completed ' + barActual + '%'); if (gib == true) { if (_root.gameMode == 'finalBoss') { if (bossMode == 'final') { _root['finalGame' + currentlyOn] = true; trace('finalGame' + currentlyOn + ' = ' + _root['finalGame' + currentlyOn]); } subsub.boss.top[currentlyOn].gotoAndStop(2); subsub.boss.bottom[currentlyOn].gotoAndStop(2); } if (finalGame1 == true && finalGame2 == true && finalGame3 == true && finalGame4 == true && finalGame5 == true && finalGame6 == true && finalGame7 == true && finalGame8 == true) { trace('teethDone'); subsub.nextFrame(); finalGame1 = false; ++combo; callResponse(true); callTransOut(); cstatus = 0; } else { ++combo; callResponse(true); callTransOut(); cstatus = 0; } } if (gib == false) { combo = 0; loseLife(); if (lives == 0) { cstatus = 10; subsub.removeMovieClip(); stopAllSounds(); runFine = true; trace('DEAD'); _root.g.removeMovieClip(); _root.bar.removeMovieClip(); gotoAndStop('died'); } else { callResponse(false); callTransOut(); cstatus = 0; } } } } function loseLife() { --lives; switch (lives) { case 0: bar.heart.nextFrame(); break; case 1: bar.heart2.nextFrame(); break; case 2: bar.heart3.nextFrame(); break; case 3: bar.heart4.nextFrame(); break; case 4: bar.heart5.nextFrame(); break; case 5: bar.heart6.nextFrame(); break; case 6: bar.heart7.nextFrame(); break; case 7: bar.heart8.nextFrame(); break; case 8: bar.heart9.nextFrame(); break; case 9: bar.heart10.nextFrame(); } } function chooseGame() { if (gameMode == 'finalBoss') { attachMovie('game' + (random(totGames) + 1), 'g', gameLevel); } else { i = random(games.length); attachMovie('game' + games[curGame], 'g', gameLevel); } } function increment() { ++_root.curGame; if (_root.curGame >= _root.games.length) { _root.curGame = 0; } _root.curGameDisp = _root.games[_root.curGame]; } function decrement() { --_root.curGame; if (_root.curGame < 0) { _root.curGame = _root.games.length - 1; } _root.curGameDisp = _root.games[_root.curGame]; } stop(); trace('///////////////////////////////////////////////////////////'); trace('//4 Second Firestorm //'); trace('//By jmtb02, protected by copyright and the CC license //'); trace('//For more information, visit http://www.jmtb02.com/ //'); trace('//Contact John Cooney, jmtb02@gmail.com //'); trace('///////////////////////////////////////////////////////////'); trace(' '); trace(' '); dicko = _root.attachMovie('bar', 'bar', 7); dicko._x = -10; var i = 0; var frameRate = 30; var timeGiven = 4; var b; var bwidth; var counter; var tcounter; var k = 10; var temp = 0; var speed = 1; var storyMode; var jumpX = 1; var cstatus = 0; var rules; var responses; var typeResponses = new Array('Bodacious!', 'Great!', 'Awesome!', 'Fantastic!', 'Brilliant!', 'Wicked!', 'Rockin!', 'Far Out!', ':)'); var badResponses; var typeBadResponses = new Array('Lame...', 'Boo!!!', 'No Good!', 'Awww...', 'How sad!', 'Pshhhhh!', 'You lose!', 'You awake?', ':*('); var gameLevel = 2; var transLevel = 3; var rulesLevel = 4; var transOutLevel = 5; var responsesLevel = 6; var barLevel = 7; var switcherLevel = 8; var selecto = 0; var ibx = bar.bar._x; var iby = bar.bar._y; var beatClock; bbpran = false; var w1 = new Sound(); w1.attachSound('good1'); var w2 = new Sound(); w2.attachSound('good2'); var w3 = new Sound(); w3.attachSound('good3'); var w4 = new Sound(); w4.attachSound('good4'); var l1 = new Sound(); l1.attachSound('bad'); var combo = 0; var combo1 = 1; var combo2 = 3; var combo3 = 5; var combo4 = 10; var bossLife = 300; var gameMode = ''; var runFine = false; var totalTime = 0; var currentlyOn = 1; var pp = 300; var bottomNum = 1; var curGame; var curGameDisp; if (_root.globalMode == 'original') { trace('================ORIGINAL MODE================='); var totGames = 1; var games = new Array(1, 2, 3, 4, 6, 9, 12, 14, 16, 17, 18, 19, 20, 21, 26, 32, 33, 34, 38, 39, 41, 42, 43, 45, 49, 54, 55, 56, 57, 58, 59, 60, 61, 63, 66, 67, 68, 69, 70, 72, 74, 78, 79, 80, 81, 82, 83, 84, 85, 88, 89, 92, 93, 101, 104, 105, 106, 115, 116, 118, 119, 120, 122, 123, 124, 125, 127, 132, 133, 134, 135, 136, 138, 139, 141, 142, 143, 146, 147, 148, 149, 150, 151, 152, 153, 156, 158, 159, 160, 162, 165, 168, 169, 170, 180, 184, 187, 190, 191, 204, 205, 206, 207, 208, 209, 210, 211); var maxLength = games.length - 1; curGame = 0; curGameDisp = games[curGame]; trace(games); } if (_root.globalMode == 'mouse') { trace('================MOUSE MODE================='); var totGames = 1; var games = new Array(5, 7, 8, 10, 11, 13, 15, 31, 35, 36, 37, 40, 47, 50, 52, 53, 64, 71, 73, 77, 86, 90, 91, 94, 96, 97, 98, 99, 100, 102, 103, 107, 117, 121, 128, 131, 137, 140, 144, 154, 157, 161, 164, 173, 174, 175, 176, 177, 178, 179, 181, 182, 183, 186, 188, 192, 195, 196, 197, 201, 202, 203); var maxLength = games.length - 1; curGame = 0; curGameDisp = games[curGame]; } var xtransin = 3; var xtransout = 2; var sn = 1; text; Array.prototype.randomize = function () { var v2 = this.length; if (v2 == 0) { return undefined; } while (--v2) { var v3 = Math.floor(Math.random() * (v2 + 1)); var v5 = this[v2]; var v4 = this[v3]; this[v2] = v4; this[v3] = v5; } return this; }; trace(games); trace('Loading games: ' + games); trace(' '); trace('Begin Game----------------->'); initialBar(); var barInc = 100 / xgames; bar.progressBar._xscale = 0; var barActual = 0; onEnterFrame = function () { if (cstatus == 1) { bar.progressBar._xscale = barActual; runningBar(); hearts(); } if (bar.progressBar._xscale < barActual) { ++bar.progressBar._xscale; } if (gameMode == 'finalBoss' && runFine == false) { _root.subsub.chump.life.bar._height = bossLife; if (bossLife <= 0) { runFinal(); } } if (runFine == false) { ++totalTime; } }; stop(); } instance of movieClip 7831 { onClipEvent (enterFrame) { this.swapDepths(_root.getNextHighestDepth() + 1000); } } button 7941 { on (release) { _root.callOriginal(); _root.ddhigh = 211; _root.ddlow = 1; } } button 7945 { on (release) { _root.callMouse(); _root.ddhigh = 203; _root.ddlow = 5; } } button 7948 { on (release) { _root.decrement(); } } button 7949 { on (release) { _root.increment(); } } button 7953 { on (release) { stopAllSounds(); _root.cstatus = 0; _root.g.removeMovieClip(); _root.ssss.removeMovieClip(); _root.transrans.removeMovieClip(); _root.bar.removeMovieClip(); _root.subsub.removeMovieClip(); _root.goto(8); _root.helpy._visible = false; } } movieClip 7954 { frame 1 { _root.ddhigh = 211; _root.ddlow = 1; } } instance helpy of movieClip 7954 { onClipEvent (enterFrame) { this.swapDepths(_root.getNextHighestDepth()); } } frame 5212 { stop(); } frame 5212 { onEnterFrame = function () { Mouse.show(); }; } movieClip 7959 { } button 7960 { on (release) { nextFrame(); } } movieClip 7962 { } button 7964 { on (release) { gotoAndPlay(723); onEnterFrame = function () {}; } } movieClip 7966 { } movieClip 7972 { } movieClip 7975 { } button 7976 { on (release) { _root.getURL('http://www.jmtb02.com/', '_blank'); } } button 7981 { on (release) { prevFrame(); } } button 7984 { on (release) { _root.getURL('http://www.newgrounds.com/audio/view.php?id=525830', '_blank'); } } button 7991 { on (release) { _root.getURL('http://www.wonchop.net/', '_blank'); } } button 7997 { on (release) { _root.getURL('http://re2deemer.deviantart.com/', '_blank'); } } button 8001 { on (release) { _root.getURL('http://rageace.jconserv.net/index.php', '_blank'); } } button 8005 { on (release) { _root.getURL('http://www.glaielgames.com', '_blank'); } } button 8010 { on (release) { _root.getURL('http://www.breakthechair.com', '_blank'); } } button 8023 { on (release) { _root.getURL('http://www.dingoeatingfuzz.com', '_blank'); } } button 8028 { on (release) { _root.getURL('http://www.freewebs.com/rakoslabs', '_blank'); } } button 8033 { on (release) { _root.getURL('http://www.tastylamp.tehelite.org/', '_blank'); } } button 8038 { on (release) { _root.getURL('http://floobieflash.43i.net/', '_blank'); } } button 8043 { on (release) { _root.getURL('http://www.eyefusionproductions.com', '_blank'); } } button 8049 { on (release) { _root.getURL('http://www.doodle-flash.co.uk', '_blank'); } } button 8056 { on (release) { _root.getURL('http://chumba1.sheezyart.com', '_blank'); } } button 8061 { on (release) { _root.getURL('http://ciph3rzer0.blogspot.com/', '_blank'); } } button 8072 { on (release) { _root.getURL('http://www.c404.net/', '_blank'); } } button 8077 { on (release) { _root.getURL('http://www.topaz-games.com/', '_blank'); } } button 8084 { on (release) { _root.getURL('http://maxto.bdsflash.com/', '_blank'); } } button 8092 { on (release) { _root.getURL('http://www.geocities.com/bradnstuff/', '_blank'); } } button 8096 { on (release) { _root.getURL('http://www.moglytom.com', '_blank'); } } button 8099 { on (release) { _root.getURL('http://www.zmarzian.com', '_blank'); } } button 8103 { on (release) { _root.getURL('http://www.jmtb02.com', '_blank'); } } button 8109 { on (release) { _root.getURL('http://www.rtsanimation.com', '_blank'); } } button 8113 { on (release) { _root.getURL('http://www.calyptica.com', '_blank'); } } button 8117 { on (release) { _root.getURL('http://www.sonic-cult.org', '_blank'); } } button 8124 { on (release) { _root.getURL('http://www.freewebs.com/donumaster', '_blank'); } } button 8128 { on (release) { _root.getURL('http://www.orangefoxgames.com', '_blank'); } } button 8135 { on (release) { _root.getURL('http://www.brainwashstudios.com', '_blank'); } } button 8141 { on (release) { _root.getURL('http://www.aciddica.com', '_blank'); } } button 8145 { on (release) { _root.getURL('http://www.bdsflash.com', '_blank'); } } button 8149 { on (release) { _root.getURL('http://www.ra-entertainment.com', '_blank'); } } button 8153 { on (release) { _root.getURL('http://www.bomtoons.com', '_blank'); } } button 8165 { on (release) { _root.getURL('http://www.skinthecow.tk', '_blank'); } } button 8169 { on (release) { _root.getURL('http://www.davidzhut.co.nr', '_blank'); } }




http://swfchan.com/2/9176/info.shtml
Created: 10/6 -2019 06:10:42 Last modified: 10/6 -2019 06:10:42 Server time: 28/04 -2024 09:13:09