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

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

Skinny - save the apocalyptic world in this cool game.swf

This is the info page for
Flash #133945

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


ActionScript [AS1/AS2]
Combined Code
movieClip 8 { } movieClip 9 { } movieClip 10 land990 { frame 1 { surfaceType = 'rock'; } } movieClip 12 { } movieClip 13 { } movieClip 14 permObjbridge { instance of movieClip 13 { onClipEvent (enterFrame) { _root.permanentObjectSolidity.call(this); } } } movieClip 17 permObjcliff { instance hit of movieClip 13 { onClipEvent (enterFrame) { _root.permanentObjectSolidity.call(this); if (_parent._parent._y > 610) { if (_root.skinny.body.hitTest(_parent.hit2)) { _parent._parent._y -= 3; } } else { _parent._parent._y += 0.01; } if (_parent._parent._y < 1600) { if (!_root.skinny.body.hitTest(_parent.hit2)) { _parent._parent._y += 3; } } else { _parent._parent._y -= 0.01; } } } } movieClip 20 landStuff { frame 1 { stop(); } } movieClip 21 forestBg { } movieClip 22 lakeBg { } movieClip 23 uroVillageBg { } movieClip 24 cliffBg { } movieClip 25 bridgeBg { } movieClip 28 { } movieClip 30 { } movieClip 32 land77 { frame 1 { surfaceType = 'rock'; } instance of movieClip 28 { onClipEvent (enterFrame) { _alpha = 90 + random(10); } } } movieClip 36 { } movieClip 37 { } movieClip 38 land76 { frame 1 { surfaceType = 'rock'; } } movieClip 42 land75 { frame 1 { surfaceType = 'rock'; } } movieClip 44 land74 { frame 1 { surfaceType = 'rock'; } } movieClip 47 { } movieClip 48 { instance of movieClip 47 { onClipEvent (enterFrame) { _alpha = 30 + random(80); } } } movieClip 49 land73 { frame 1 { surfaceType = 'rock'; } instance of movieClip 48 { onClipEvent (load) { _rotation = random(90) - random(90); rotateSpeed = 0; } onClipEvent (enterFrame) { if (_root.hook.hitTest(this) && _root.hook.shoot eq true) { _rotation = _rotation - _root.hook.shootSpeed; } _rotation = _rotation + (rotateSpeed + -_rotation / 20); if (this._rotation > 0) { this.rotateSpeed -= 0.5; } if (this._rotation < 0) { this.rotateSpeed += 0.5; } } } } movieClip 51 { } movieClip 52 land72 { frame 1 { surfaceType = 'rock'; } instance of movieClip 51 { onClipEvent (load) { _rotation = random(90) - random(90); rotateSpeed = 0; } onClipEvent (enterFrame) { if (_root.hook.hitTest(this)) { _rotation = _rotation + (random(100) - random(100)); } _rotation = _rotation + (rotateSpeed + -_rotation / 20); if (this._rotation > 0) { this.rotateSpeed -= 0.5; } if (this._rotation < 0) { this.rotateSpeed += 0.5; } } } instance of movieClip 51 { onClipEvent (load) { _rotation = random(90) - random(90); rotateSpeed = 0; } onClipEvent (enterFrame) { if (_root.hook.hitTest(this)) { _rotation = _rotation + (random(100) - random(100)); } _rotation = _rotation + (rotateSpeed + -_rotation / 20); if (this._rotation > 0) { this.rotateSpeed -= 0.5; } if (this._rotation < 0) { this.rotateSpeed += 0.5; } } } instance of movieClip 51 { onClipEvent (load) { _rotation = random(90) - random(90); rotateSpeed = 0; } onClipEvent (enterFrame) { if (_root.hook.hitTest(this)) { _rotation = _rotation + (random(100) - random(100)); } _rotation = _rotation + (rotateSpeed + -_rotation / 20); if (this._rotation > 0) { this.rotateSpeed -= 0.5; } if (this._rotation < 0) { this.rotateSpeed += 0.5; } } } instance of movieClip 51 { onClipEvent (load) { _rotation = random(90) - random(90); rotateSpeed = 0; } onClipEvent (enterFrame) { if (_root.hook.hitTest(this)) { _rotation = _rotation + (random(100) - random(100)); } _rotation = _rotation + (rotateSpeed + -_rotation / 20); if (this._rotation > 0) { this.rotateSpeed -= 0.5; } if (this._rotation < 0) { this.rotateSpeed += 0.5; } } } } movieClip 55 land71 { frame 1 { surfaceType = 'rock'; } } movieClip 57 land70 { frame 1 { surfaceType = 'rock'; } instance hit of movieClip 13 { onClipEvent (enterFrame) { if (_root.skinny.bod.hitTest(this) && _root.skinny.gravity > 3) { i = 0; while (i < 20) { _root.bugCounter += 1; _root.dirt.duplicateMovieClip('dirt' + _root.bugCounter, _root.bugCounter); ++i; } } } } } movieClip 59 { } movieClip 63 { frame 4 { gotoAndPlay(2); } } movieClip 65 land69 { frame 1 { surfaceType = 'rock'; } instance button of movieClip 59 { onClipEvent (load) { buttonNumber = 2; this.sound = new Sound(this); } onClipEvent (enterFrame) { _visible = _root['button' + buttonNumber + 'Visible']; if (_root.hook.hitTest(this) && _root['button' + buttonNumber + 'Visible'] eq true) { this.sound.attachSound('button'); this.sound.setVolume(100); this.sound.start(); eval('_root.button' + this.buttonNumber + 'Visible') = false; } } } instance of movieClip 63 { onClipEvent (enterFrame) { if (_parent.button._visible eq false) { play(); } else { gotoAndStop(1); } } } } movieClip 67 { } movieClip 69 land68 { frame 1 { surfaceType = 'rock'; } instance hit of movieClip 13 { onClipEvent (load) { origXScale = _xscale; origYScale = _yscale; buttonNumber = 2; } onClipEvent (enterFrame) { if (_root['button' + this.buttonNumber + 'Visible'] eq false) { _parent.door._rotation = 105; _xscale = 0; _yscale = 0; } else { _xscale = origXScale; _yscale = origYScale; } } } } movieClip 70 land67 { frame 1 { surfaceType = 'rock'; } instance hit of movieClip 13 { onClipEvent (load) { origXScale = _xscale; origYScale = _yscale; buttonNumber = 1; this.characterNumber = 21; } onClipEvent (enterFrame) { if (_root['character' + this.characterNumber + 'Satisfied'] eq true) { _parent.door._rotation = 74; _xscale = 0; _yscale = 0; } else { _xscale = origXScale; _yscale = origYScale; } } } } movieClip 71 land66 { frame 1 { surfaceType = 'rock'; } instance button of movieClip 59 { onClipEvent (load) { buttonNumber = 1; this.sound = new Sound(this); } onClipEvent (enterFrame) { _visible = _root['button' + buttonNumber + 'Visible']; if (_root.hook.hitTest(this) && _root['button' + buttonNumber + 'Visible'] eq true) { this.sound.attachSound('button'); this.sound.setVolume(100); this.sound.start(); eval('_root.button' + this.buttonNumber + 'Visible') = false; } } } instance of movieClip 63 { onClipEvent (enterFrame) { if (_parent.button._visible eq false) { play(); } else { gotoAndStop(1); } } } } movieClip 94 { frame 1 { stop(); } } movieClip 96 land65 { frame 1 { surfaceType = 'rock'; } instance of movieClip 13 { onClipEvent (enterFrame) { if (_root.skinny.gravity > 5) { if (_root.skinny.bod.hitTest(this)) { _root.skinny._y -= Math.abs(_root.skinny.gravity); _root.skinny.gravity = -_root.skinny.gravity; _parent.rubber.play(); } } } } } movieClip 98 { } movieClip 115 { } movieClip 116 land58 { instance of movieClip 115 { onClipEvent (load) { gotoAndPlay(random(200)); this.setVolume(random(50)); } } } movieClip 118 { } movieClip 120 land56 { instance of movieClip 118 { onClipEvent (enterFrame) { rotateSpeed += -rotateSpeed / 100; _rotation = _rotation + rotateSpeed; if (_root.skinny.bod.hitTest(this)) { rotateSpeed = -_root.skinny.gravity; } if (_root.hook.hitTest(this)) { rotateSpeed += 5; } } } } movieClip 122 land55 { instance of movieClip 118 { onClipEvent (enterFrame) { rotateSpeed += -rotateSpeed / 100; _rotation = _rotation + rotateSpeed; if (_root.skinny.bod.hitTest(this)) { rotateSpeed = -_root.skinny.gravity; } if (_root.hook.hitTest(this)) { rotateSpeed += 5; } } } } movieClip 124 land54 { frame 1 { surfaceType = 'rock'; } } movieClip 126 land53 { frame 1 { surfaceType = 'rock'; } } movieClip 127 land52 { frame 1 { surfaceType = 'rock'; } } movieClip 137 { frame 1 { randomArray = [1, 20]; gotoAndPlay(randomArray[random(2)]); } } movieClip 138 land262 { frame 1 { surfaceType = 'grass'; } } movieClip 139 land254 { frame 1 { surfaceType = 'grass'; } } movieClip 141 land253 { } movieClip 142 land261 { frame 1 { surfaceType = 'grass'; } } movieClip 146 { } movieClip 147 land260 { frame 1 { surfaceType = 'grass'; } instance of movieClip 146 { onClipEvent (enterFrame) { _rotation = _rotation + rotation; rotation += -rotation / 100; if (_root.hook.hitTest(this) && _root.hook.shoot eq true) { _root.permObj.xSpeed = 5; rotation = 10; } } } } movieClip 148 land259 { frame 1 { surfaceType = 'grass'; } } movieClip 149 land258 { frame 1 { surfaceType = 'grass'; } } movieClip 152 { } movieClip 153 { } movieClip 155 { } movieClip 156 { instance of movieClip 153 { onClipEvent (load) { _root.shiverLoad.call(this); } onClipEvent (enterFrame) { _root.shiver.call(this); } } instance of movieClip 155 { onClipEvent (load) { _root.shiverLoad.call(this); } onClipEvent (enterFrame) { _root.shiver.call(this); } } } movieClip 158 { frame 1 { stop(); } } movieClip 159 { instance arrow of movieClip 158 { onClipEvent (enterFrame) { _alpha = _alpha - 5; } } frame 16 { prevFrame(); } } movieClip 160 land257 { frame 1 { surfaceType = 'grass'; } instance character of movieClip 156 { onClipEvent (load) { characterNumber = 21; this.bugWantNumber = 10; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _xscale = 99; _root.characterTalk.call(this); } } instance of movieClip 159 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 161 land256 { frame 1 { surfaceType = 'grass'; } } movieClip 162 land255 { frame 1 { surfaceType = 'grass'; } } movieClip 163 land134 { } movieClip 165 land133 { frame 1 { surfaceType = 'rock'; } } movieClip 166 land132 { } movieClip 167 land131 { } movieClip 168 land130 { } movieClip 169 land129 { } movieClip 170 land128 { } movieClip 171 land127 { instance of movieClip 51 { onClipEvent (load) { _rotation = random(90) - random(90); rotateSpeed = 0; } onClipEvent (enterFrame) { if (_root.hook.hitTest(this)) { _rotation = _rotation + (random(100) - random(100)); } _rotation = _rotation + (rotateSpeed + -_rotation / 20); if (this._rotation > 0) { this.rotateSpeed -= 0.5; } if (this._rotation < 0) { this.rotateSpeed += 0.5; } } } instance of movieClip 51 { onClipEvent (load) { _rotation = random(90) - random(90); rotateSpeed = 0; } onClipEvent (enterFrame) { if (_root.hook.hitTest(this)) { _rotation = _rotation + (random(100) - random(100)); } _rotation = _rotation + (rotateSpeed + -_rotation / 20); if (this._rotation > 0) { this.rotateSpeed -= 0.5; } if (this._rotation < 0) { this.rotateSpeed += 0.5; } } } instance of movieClip 51 { onClipEvent (load) { _rotation = random(90) - random(90); rotateSpeed = 0; } onClipEvent (enterFrame) { if (_root.hook.hitTest(this)) { _rotation = _rotation + (random(100) - random(100)); } _rotation = _rotation + (rotateSpeed + -_rotation / 20); if (this._rotation > 0) { this.rotateSpeed -= 0.5; } if (this._rotation < 0) { this.rotateSpeed += 0.5; } } } } movieClip 172 land126 { } movieClip 173 land125 { } movieClip 174 land124 { } movieClip 175 land123 { } movieClip 176 land122 { } movieClip 177 land121 { } movieClip 178 land120 { } movieClip 179 land230 { frame 1 { rotation = -23.5; } } movieClip 180 land229 { frame 1 { rotation = -23.5; } } movieClip 181 land228 { frame 1 { rotation = -23.5; } } movieClip 182 land227 { frame 1 { rotation = -23.5; } } movieClip 183 land226 { frame 1 { rotation = -23.5; } } movieClip 184 land225 { frame 1 { rotation = -23.5; } } movieClip 185 land97 { } movieClip 188 { } movieClip 190 { instance glow of movieClip 188 { onClipEvent (load) { _root.colorLoad.call(this); } onClipEvent (enterFrame) { _root.transformBugColor.call(this); } } } movieClip 191 land96 { instance of movieClip 190 { onClipEvent (load) { this.alpha = 0; this._alpha = 0; this.characterNumber = 4; } onClipEvent (enterFrame) { _root.symbolBulb.call(this); } } } movieClip 192 land95 { instance of movieClip 190 { onClipEvent (load) { this.alpha = 0; this._alpha = 0; this.characterNumber = 3; } onClipEvent (enterFrame) { _root.symbolBulb.call(this); } } } movieClip 193 land94 { } movieClip 194 land93 { } movieClip 195 land92 { } movieClip 196 land91 { instance of movieClip 190 { onClipEvent (load) { this.alpha = 0; this._alpha = 0; this.characterNumber = 2; } onClipEvent (enterFrame) { _root.symbolBulb.call(this); } } } movieClip 197 land90 { } movieClip 198 land89 { } movieClip 199 land88 { } movieClip 200 land87 { instance of movieClip 190 { onClipEvent (load) { this.alpha = 0; this._alpha = 0; this.characterNumber = 1; } onClipEvent (enterFrame) { _root.symbolBulb.call(this); } } } movieClip 201 land86 { } movieClip 202 land85 { } movieClip 203 land84 { } movieClip 204 land83 { } movieClip 205 land82 { } movieClip 206 land81 { } movieClip 207 land80 { } movieClip 208 land79 { } movieClip 209 land78 { } movieClip 234 { } movieClip 235 land232 { } movieClip 237 land231 { } movieClip 238 land166 { } movieClip 239 land165 { } movieClip 240 land164 { } movieClip 241 land163 { } movieClip 242 land162 { instance of movieClip 190 { onClipEvent (load) { this.alpha = 0; this._alpha = 0; this.characterNumber = 13; } onClipEvent (enterFrame) { _root.symbolBulb.call(this); } } } movieClip 243 land161 { } movieClip 244 land160 { } movieClip 245 land159 { instance of movieClip 190 { onClipEvent (load) { this.alpha = 0; this._alpha = 0; this.characterNumber = 14; } onClipEvent (enterFrame) { _root.symbolBulb.call(this); } } } movieClip 246 land158 { instance of movieClip 190 { onClipEvent (load) { this.alpha = 0; this._alpha = 0; this.characterNumber = 12; } onClipEvent (enterFrame) { _root.symbolBulb.call(this); } } } movieClip 247 land157 { } movieClip 248 land156 { } movieClip 249 land155 { } movieClip 250 land154 { } movieClip 251 land153 { instance of movieClip 190 { onClipEvent (load) { this.alpha = 0; this._alpha = 0; this.characterNumber = 15; } onClipEvent (enterFrame) { _root.symbolBulb.call(this); } } instance of movieClip 190 { onClipEvent (load) { this.alpha = 0; this._alpha = 0; this.characterNumber = 15; } onClipEvent (enterFrame) { _root.symbolBulb.call(this); } } } movieClip 252 land152 { } movieClip 253 land151 { } movieClip 254 land150 { } movieClip 255 land149 { instance of movieClip 190 { onClipEvent (load) { this.alpha = 0; this._alpha = 0; this.characterNumber = 16; } onClipEvent (enterFrame) { _root.symbolBulb.call(this); } } } movieClip 256 land148 { instance of movieClip 190 { onClipEvent (load) { this.alpha = 0; this._alpha = 0; this.characterNumber = 17; } onClipEvent (enterFrame) { _root.symbolBulb.call(this); } } } movieClip 257 land147 { } movieClip 258 land146 { } movieClip 259 land144 { } movieClip 260 land143 { } movieClip 261 land142 { } movieClip 262 land141 { } movieClip 263 land119 { } movieClip 264 land118 { } movieClip 265 land117 { instance of movieClip 159 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 266 land116 { } movieClip 267 land115 { } movieClip 268 land114 { } movieClip 269 land113 { } movieClip 270 land112 { } movieClip 271 land111 { instance of movieClip 190 { onClipEvent (load) { this.alpha = 0; this._alpha = 0; this.characterNumber = 8; } onClipEvent (enterFrame) { _root.symbolBulb.call(this); } } instance of movieClip 51 { onClipEvent (load) { _rotation = random(90) - random(90); rotateSpeed = 0; } onClipEvent (enterFrame) { if (_root.hook.hitTest(this)) { _rotation = _rotation + (random(100) - random(100)); } _rotation = _rotation + (rotateSpeed + -_rotation / 20); if (this._rotation > 0) { this.rotateSpeed -= 0.5; } if (this._rotation < 0) { this.rotateSpeed += 0.5; } } } } movieClip 272 land110 { instance of movieClip 51 { onClipEvent (load) { _rotation = random(90) - random(90); rotateSpeed = 0; } onClipEvent (enterFrame) { if (_root.hook.hitTest(this)) { _rotation = _rotation + (random(100) - random(100)); } _rotation = _rotation + (rotateSpeed + -_rotation / 20); if (this._rotation > 0) { this.rotateSpeed -= 0.5; } if (this._rotation < 0) { this.rotateSpeed += 0.5; } } } instance of movieClip 190 { onClipEvent (load) { this.alpha = 0; this._alpha = 0; this.characterNumber = 8; } onClipEvent (enterFrame) { _root.symbolBulb.call(this); } } } movieClip 273 land109 { } movieClip 274 land108 { instance of movieClip 51 { onClipEvent (load) { _rotation = random(90) - random(90); rotateSpeed = 0; } onClipEvent (enterFrame) { if (_root.hook.hitTest(this)) { _rotation = _rotation + (random(100) - random(100)); } _rotation = _rotation + (rotateSpeed + -_rotation / 20); if (this._rotation > 0) { this.rotateSpeed -= 0.5; } if (this._rotation < 0) { this.rotateSpeed += 0.5; } } } } movieClip 275 land107 { } movieClip 276 land106 { instance of movieClip 190 { onClipEvent (load) { this.alpha = 0; this._alpha = 0; this.characterNumber = 10; } onClipEvent (enterFrame) { _root.symbolBulb.call(this); } } instance of movieClip 190 { onClipEvent (load) { this.alpha = 0; this._alpha = 0; this.characterNumber = 10; } onClipEvent (enterFrame) { _root.symbolBulb.call(this); } } } movieClip 277 land105 { instance of movieClip 190 { onClipEvent (load) { this.alpha = 0; this._alpha = 0; this.characterNumber = 8; } onClipEvent (enterFrame) { _root.symbolBulb.call(this); } } instance of movieClip 190 { onClipEvent (load) { this.alpha = 0; this._alpha = 0; this.characterNumber = 8; } onClipEvent (enterFrame) { _root.symbolBulb.call(this); } } } movieClip 278 land104 { instance of movieClip 190 { onClipEvent (load) { this.alpha = 0; this._alpha = 0; this.characterNumber = 7; } onClipEvent (enterFrame) { _root.symbolBulb.call(this); } } } movieClip 279 land103 { } movieClip 280 land102 { } movieClip 281 land101 { instance of movieClip 190 { onClipEvent (load) { this.alpha = 0; this._alpha = 0; this.characterNumber = 6; } onClipEvent (enterFrame) { _root.symbolBulb.call(this); } } } movieClip 282 land100 { } movieClip 284 land367 { frame 1 { rotation = 0; } } movieClip 288 land366 { frame 1 { rotation = 0; } } movieClip 290 land365 { frame 1 { rotation = 0; } } movieClip 292 land364 { frame 1 { rotation = 0; } } movieClip 296 { } movieClip 297 { } movieClip 298 land363 { frame 1 { rotation = 0; } instance post of movieClip 297 { onClipEvent (enterFrame) { _root.transformBugColor.call(this); _root.post.call(this); } onClipEvent (load) { _root.colorLoad.call(this); } } } movieClip 300 land360 { frame 1 { rotation = -45; } instance post of movieClip 297 { onClipEvent (enterFrame) { _root.transformBugColor.call(this); _root.post.call(this); } onClipEvent (load) { _root.colorLoad.call(this); } } } movieClip 304 land359 { frame 1 { rotation = -45; } } movieClip 307 land358 { frame 1 { rotation = -45; } } movieClip 310 land357 { frame 1 { rotation = -45; } } movieClip 313 land356 { frame 1 { rotation = -45; } } movieClip 315 land354 { frame 1 { surfaceType = 'rock'; } } movieClip 317 { } movieClip 318 { instance of movieClip 317 { onClipEvent (enterFrame) { _rotation = _rotation - 4; } } } movieClip 320 land42 { instance of movieClip 318 { onClipEvent (load) { rotateSpeed = 0; } onClipEvent (enterFrame) { rotateSpeed += (3 - rotateSpeed) / 100; _rotation = _rotation + rotateSpeed; if (_root.hook.hitTest(this)) { rotateSpeed = random(20) - random(20); } } } instance of movieClip 317 { onClipEvent (enterFrame) { _rotation = _rotation + 3; } } } movieClip 322 { } movieClip 323 land433 { instance of movieClip 322 { onClipEvent (load) { this.signRead = 'Uro Village'; } onClipEvent (enterFrame) { if (_root.skinny.hitTest(this) && _root.stats.landName.text !== this.signRead) { _root.treesVisible = true; _root.music.soundVolume = _root.music.soundMax - 1; _root.music.fadeSpeed = -1; _root.redPercent = -46; _root.greenPercent = 0; _root.bluePercent = 0; _root.stats.landName._alpha = -100; _root.stats.alphaVelocity = 1; _root.stats.fader._alpha = -1; _root.stats.faderAlphaVelocity = 1; _root.locArray = 'uroVillage'; _root.where = 'uroVillage'; _root.skinnyRelocateX = 4151; _root.skinnyRelocateY = 2137; _root.bugsVisible = true; _root.stats.landName.text = this.signRead; } } } } // unknown tag 88 length 241 movieClip 327 land422 { instance of movieClip 322 { onClipEvent (load) { this.signRead = 'Lake Electro'; this.locArray = 'lake'; this.skinnyRelocateX = 3282; this.skinnyRelocateY = 2954; this.redPercent = -46; this.greenPercent = 0; this.bluePercent = 0; } onClipEvent (enterFrame) { _root.changeLevel.call(this); } } } movieClip 329 land266 { instance of movieClip 322 { onClipEvent (load) { this.signRead = 'The Cliffs'; } onClipEvent (enterFrame) { if (_root.skinny.hitTest(this) && _root.stats.landName.text !== this.signRead) { _root.treesVisible = false; _root.music.soundVolume = _root.music.soundMax - 1; _root.music.fadeSpeed = -0.2; _root.redPercent = 0; _root.greenPercent = -25; _root.bluePercent = -25; _root.stats.landName._alpha = -100; _root.stats.alphaVelocity = 1; _root.stats.fader._alpha = -1; _root.stats.faderAlphaVelocity = 1; _root.locArray = 'cliff'; _root.where = 'cliff'; _root.skinnyRelocateX = 2550; _root.skinnyRelocateY = 5250; _root.bugsVisible = false; _root.stats.landName.text = this.signRead; } } } } movieClip 330 land181 { instance of movieClip 322 { onClipEvent (load) { this.signRead = 'Rasberry Sky'; } onClipEvent (enterFrame) { if (_root.skinny.hitTest(this) && _root.stats.landName.text !== this.signRead) { _root.music.soundVolume = _root.music.soundMax - 1; _root.music.fadeSpeed = -1; _root.redPercent = 151; _root.greenPercent = 11; _root.bluePercent = -160; _root.stats.landName._alpha = 10; _root.stats.alphaVelocity = 1; _root.stats.landName.text = this.signRead; } } } } movieClip 331 land60 { instance of movieClip 322 { onClipEvent (load) { this.signRead = 'Uro Village'; } onClipEvent (enterFrame) { if (_root.skinny.hitTest(this) && _root.stats.landName.text !== this.signRead) { _root.treesVisible = true; _root.music.soundVolume = _root.music.soundMax - 1; _root.music.fadeSpeed = -1; _root.redPercent = -46; _root.greenPercent = 0; _root.bluePercent = 0; _root.stats.landName._alpha = -100; _root.stats.alphaVelocity = 1; _root.stats.fader._alpha = -1; _root.stats.faderAlphaVelocity = 1; _root.locArray = 'uroVillage'; _root.where = 'uroVillage'; _root.skinnyRelocateX = 1111; _root.skinnyRelocateY = 2264; _root.bugsVisible = true; _root.stats.landName.text = this.signRead; } } } } movieClip 334 land59 { instance of movieClip 322 { onClipEvent (load) { this.signRead = 'Pendleton Fill'; this.locArray = 'forest'; this.skinnyRelocateX = 981; this.skinnyRelocateY = 2594; this.redPercent = -14; this.greenPercent = 0; this.bluePercent = -20; } onClipEvent (enterFrame) { _root.changeLevel.call(this); } } } movieClip 336 land485 { instance of movieClip 322 { onClipEvent (load) { this.signRead = 'Come Pass Bridge'; } onClipEvent (enterFrame) { if (_root.skinny.hitTest(this) && _root.stats.landName.text !== this.signRead) { _root.treesVisible = false; _root.music.soundVolume = _root.music.soundMax - 1; _root.music.fadeSpeed = -0.2; _root.stats.landName._alpha = -100; _root.stats.alphaVelocity = 1; _root.stats.fader._alpha = -1; _root.stats.faderAlphaVelocity = 1; _root.locArray = 'bridge'; _root.where = 'bridge'; _root.skinnyRelocateX = 2927; _root.skinnyRelocateY = 1180; _root.bugsVisible = false; _root.stats.landName.text = this.signRead; } } } } movieClip 337 land183_bodies { } movieClip 344 { } movieClip 346 { frame 1 { stop(); } frame 10 { gotoAndStop(1); } instance of movieClip 344 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _xscale = _xscale - speed; _yscale = _xscale; _x = _x + xSpeed; _y = _y + ySpeed; _rotation = _rotation + rotation; _alpha = _alpha - speed; } } instance of movieClip 344 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _xscale = _xscale - speed; _yscale = _xscale; _x = _x + xSpeed; _y = _y + ySpeed; _rotation = _rotation + rotation; _alpha = _alpha - speed; } } instance of movieClip 344 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _xscale = _xscale - speed; _yscale = _xscale; _x = _x + xSpeed; _y = _y + ySpeed; _rotation = _rotation + rotation; _alpha = _alpha - speed; } } instance of movieClip 344 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _xscale = _xscale - speed; _yscale = _xscale; _x = _x + xSpeed; _y = _y + ySpeed; _rotation = _rotation + rotation; _alpha = _alpha - speed; } } instance of movieClip 344 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _xscale = _xscale - speed; _yscale = _xscale; _x = _x + xSpeed; _y = _y + ySpeed; _rotation = _rotation + rotation; _alpha = _alpha - speed; } } instance of movieClip 344 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _xscale = _xscale - speed; _yscale = _xscale; _x = _x + xSpeed; _y = _y + ySpeed; _rotation = _rotation + rotation; _alpha = _alpha - speed; } } instance of movieClip 344 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _xscale = _xscale - speed; _yscale = _xscale; _x = _x + xSpeed; _y = _y + ySpeed; _rotation = _rotation + rotation; _alpha = _alpha - speed; } } instance of movieClip 344 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _xscale = _xscale - speed; _yscale = _xscale; _x = _x + xSpeed; _y = _y + ySpeed; _rotation = _rotation + rotation; _alpha = _alpha - speed; } } frame 33 { stop(); } } movieClip 347 land442 { frame 1 { surfaceType = 'grass'; } instance of movieClip 346 { onClipEvent (load) { this.health = 10; } onClipEvent (enterFrame) { if (_root.hook.hitTest(this.hit) && _root.hook.shoot eq true && this.health > -1) { this.health -= 2; this.play(); _root.hook.shoot = false; } if (this.health < -1 && _currentframe < 2) { _parent.hit._xscale = 0; this.gotoAndPlay('explode'); } } } } movieClip 350 { frame 1 { stop(); } } movieClip 351 { } movieClip 352 land440 { frame 1 { surfaceType = 'grass'; } instance spinner of movieClip 350 { onClipEvent (load) { this.rotateArray = [0, 90, 180, 270]; this.rotateNumber = _root['spinner' + _parent._parent.column * _parent._parent.row + 'Rotation']; } onClipEvent (enterFrame) { _root.spinner.call(this); } } instance hit of movieClip 351 { onClipEvent (enterFrame) { _rotation = _parent.spinner._rotation; } } } movieClip 353 land439 { frame 1 { surfaceType = 'grass'; } } movieClip 354 land437 { frame 1 { surfaceType = 'grass'; } } movieClip 355 land436 { frame 1 { surfaceType = 'grass'; } instance hit of movieClip 351 { onClipEvent (enterFrame) { _rotation = _parent.spinner._rotation; } } instance spinner of movieClip 350 { onClipEvent (load) { this.rotateArray = [0, 90, 180, 270]; this.rotateNumber = _root['spinner' + _parent._parent.column * _parent._parent.row + 'Rotation']; } onClipEvent (enterFrame) { _root.spinner.call(this); } } } movieClip 356 land435 { frame 1 { surfaceType = 'grass'; } } movieClip 357 land432 { frame 1 { surfaceType = 'grass'; } } movieClip 360 land431 { frame 1 { surfaceType = 'grass'; } } movieClip 361 land430 { frame 1 { surfaceType = 'grass'; } } movieClip 362 land429 { frame 1 { surfaceType = 'grass'; } } movieClip 363 land428 { frame 1 { surfaceType = 'grass'; } } movieClip 364 land427 { frame 1 { surfaceType = 'grass'; } } movieClip 366 { } movieClip 367 land426 { frame 1 { surfaceType = 'grass'; } instance character of movieClip 366 { onClipEvent (load) { characterNumber = 24; this.bugWantNumber = 23; _root.narrativeLoad.call(this); } onClipEvent (enterFrame) { _root.narrativeTalk.call(this); } } instance of movieClip 159 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 368 land425 { frame 1 { surfaceType = 'grass'; } instance character of movieClip 366 { onClipEvent (load) { characterNumber = 23; this.bugWantNumber = 22; _root.narrativeLoad.call(this); } onClipEvent (enterFrame) { _root.narrativeTalk.call(this); } } instance of movieClip 159 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 369 land424 { frame 1 { surfaceType = 'grass'; } instance character of movieClip 366 { onClipEvent (load) { characterNumber = 22; this.bugWantNumber = 20; _root.narrativeLoad.call(this); } onClipEvent (enterFrame) { _root.narrativeTalk.call(this); } } instance of movieClip 159 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 370 land423 { frame 1 { surfaceType = 'grass'; } instance character of movieClip 366 { onClipEvent (load) { characterNumber = 20; this.bugWantNumber = 20; _root.narrativeLoad.call(this); } onClipEvent (enterFrame) { _root.narrativeTalk.call(this); } } instance of movieClip 159 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 371 land420 { frame 1 { surfaceType = 'rock'; } } movieClip 374 land419 { frame 1 { surfaceType = 'grass'; } } movieClip 376 { } movieClip 377 land418 { frame 1 { surfaceType = 'rock'; } } movieClip 378 land417 { frame 1 { surfaceType = 'grass'; } } movieClip 379 land416 { frame 1 { surfaceType = 'grass'; } } movieClip 380 land415 { frame 1 { surfaceType = 'grass'; } instance of movieClip 159 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 381 land414 { frame 1 { surfaceType = 'grass'; } } movieClip 382 land413 { frame 1 { surfaceType = 'grass'; } } movieClip 383 land412 { frame 1 { surfaceType = 'grass'; } } movieClip 384 land411 { frame 1 { surfaceType = 'grass'; } } movieClip 385 land410 { frame 1 { surfaceType = 'grass'; } } movieClip 386 land409 { frame 1 { surfaceType = 'grass'; } } movieClip 387 land408 { frame 1 { surfaceType = 'grass'; } } movieClip 388 land407 { frame 1 { surfaceType = 'grass'; } } movieClip 389 land406 { frame 1 { surfaceType = 'grass'; } } movieClip 390 land405 { frame 1 { surfaceType = 'grass'; } } movieClip 391 land404 { frame 1 { surfaceType = 'grass'; } } movieClip 392 land403 { frame 1 { surfaceType = 'grass'; } } movieClip 393 land402 { frame 1 { surfaceType = 'grass'; } instance of movieClip 9 { onClipEvent (load) { this.signRead = 'Mama\'s Chamber'; } onClipEvent (enterFrame) { if (_root.skinny.body.hitTest(this) && _root.stats.landName.text !== this.signRead) { _root.music.soundVolume = _root.music.soundMax - 1; _root.music.fadeSpeed = -0.2; _root.stats.landName._alpha = -100; _root.stats.alphaVelocity = 1; _root.stats.fader._alpha = -1; _root.stats.faderAlphaVelocity = 1; _root.locArray = 'church'; _root.where = 'church'; _root.skinnyRelocateX = 180; _root.skinnyRelocateY = 900; _root.stats.landName.text = this.signRead; } } } } movieClip 394 land399 { frame 1 { surfaceType = 'grass'; } } movieClip 395 land398 { frame 1 { surfaceType = 'grass'; } } movieClip 396 land397 { frame 1 { surfaceType = 'grass'; } } movieClip 398 land396 { frame 1 { surfaceType = 'grass'; } instance post of movieClip 297 { onClipEvent (enterFrame) { _root.transformBugColor.call(this); _root.post.call(this); } onClipEvent (load) { _root.colorLoad.call(this); } } } movieClip 399 land395 { frame 1 { surfaceType = 'grass'; } } movieClip 400 land394 { frame 1 { surfaceType = 'grass'; } } movieClip 401 land393 { frame 1 { surfaceType = 'grass'; } } movieClip 402 land392 { frame 1 { surfaceType = 'grass'; } } movieClip 403 land391 { frame 1 { surfaceType = 'grass'; } } movieClip 404 land390 { frame 1 { surfaceType = 'grass'; } } movieClip 405 land387 { frame 1 { surfaceType = 'grass'; } } movieClip 406 land386 { frame 1 { surfaceType = 'grass'; } } movieClip 407 land385 { frame 1 { surfaceType = 'grass'; } } movieClip 408 land384 { frame 1 { surfaceType = 'grass'; } } movieClip 411 { } movieClip 412 land383 { frame 1 { surfaceType = 'grass'; } instance of movieClip 411 { onClipEvent (enterFrame) { _root.transformBugColor.call(this); } onClipEvent (load) { _root.colorLoad.call(this); } } } movieClip 413 land382 { frame 1 { surfaceType = 'grass'; } } movieClip 414 land381 { frame 1 { surfaceType = 'grass'; } } movieClip 415 land380 { frame 1 { surfaceType = 'grass'; } } movieClip 416 land379 { frame 1 { surfaceType = 'grass'; } } movieClip 417 land378 { frame 1 { surfaceType = 'grass'; } } movieClip 418 land377 { frame 1 { surfaceType = 'grass'; } } movieClip 419 land376 { frame 1 { surfaceType = 'grass'; } } movieClip 420 land375 { frame 1 { surfaceType = 'grass'; } } movieClip 421 land374 { frame 1 { surfaceType = 'grass'; } instance of movieClip 411 { onClipEvent (enterFrame) { _root.transformBugColor.call(this); } onClipEvent (load) { _root.colorLoad.call(this); } } } movieClip 422 land373 { frame 1 { surfaceType = 'grass'; } } movieClip 423 land372 { frame 1 { surfaceType = 'grass'; } } movieClip 424 land371 { frame 1 { surfaceType = 'grass'; } } movieClip 425 land370 { frame 1 { surfaceType = 'grass'; } } movieClip 426 land369 { frame 1 { surfaceType = 'grass'; } instance of movieClip 411 { onClipEvent (enterFrame) { _root.transformBugColor.call(this); } onClipEvent (load) { _root.colorLoad.call(this); } } } movieClip 429 land353 { frame 1 { surfaceType = 'grass'; } } movieClip 430 land352 { frame 1 { surfaceType = 'grass'; } } movieClip 432 { } movieClip 433 land351 { frame 1 { surfaceType = 'grass'; } } movieClip 435 { } movieClip 438 { } movieClip 439 { instance fairy of movieClip 438 { onClipEvent (enterFrame) { _rotation = _rotation - 5; } } } movieClip 440 land350 { frame 1 { surfaceType = 'grass'; } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance fairy of movieClip 439 { onClipEvent (load) { _visible = _root['fairy' + _root.where + _parent._parent.column * _parent._parent.row + 'Visible']; trace(_root['fairy' + _root.where + _parent._parent.column * _parent._parent.row + 'Visible']); _root.bugLoad.call(this); _root.colorLoad.call(this); } onClipEvent (enterFrame) { _rotation = _rotation + 5; _root.transformBugColor.call(this); _root.bug.call(this); } } } movieClip 441 land349 { frame 1 { surfaceType = 'grass'; } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance fairy of movieClip 439 { onClipEvent (load) { _visible = _root['fairy' + _root.where + _parent._parent.column * _parent._parent.row + 'Visible']; trace(_root['fairy' + _root.where + _parent._parent.column * _parent._parent.row + 'Visible']); _root.bugLoad.call(this); _root.colorLoad.call(this); } onClipEvent (enterFrame) { _rotation = _rotation + 5; _root.transformBugColor.call(this); _root.bug.call(this); } } } movieClip 443 land348 { frame 1 { surfaceType = 'grass'; } } movieClip 444 land347 { frame 1 { surfaceType = 'grass'; } } movieClip 445 land346 { frame 1 { surfaceType = 'grass'; } } movieClip 446 land345 { frame 1 { surfaceType = 'grass'; } } movieClip 447 land344 { frame 1 { surfaceType = 'grass'; } } movieClip 448 land343 { frame 1 { surfaceType = 'grass'; } } movieClip 449 land342 { frame 1 { surfaceType = 'grass'; } } movieClip 450 land341 { frame 1 { surfaceType = 'grass'; } } movieClip 452 { } movieClip 453 { } movieClip 455 land271 { frame 1 { surfaceType = 'grass'; } } movieClip 457 { instance of movieClip 411 { onClipEvent (enterFrame) { _root.transformBugColor.call(this); } onClipEvent (load) { _root.colorLoad.call(this); } } instance of movieClip 411 { onClipEvent (enterFrame) { _root.transformBugColor.call(this); } onClipEvent (load) { _root.colorLoad.call(this); } } instance of movieClip 411 { onClipEvent (enterFrame) { _root.transformBugColor.call(this); } onClipEvent (load) { _root.colorLoad.call(this); } } instance of movieClip 317 { onClipEvent (enterFrame) { _rotation = _rotation + 3; } } instance of movieClip 317 { onClipEvent (enterFrame) { _rotation = _rotation + 3; } } } movieClip 458 land270 { frame 1 { surfaceType = 'grass'; } } movieClip 461 land233 { frame 1 { surfaceType = 'grass'; } } movieClip 462 land223 { frame 1 { surfaceType = 'grass'; } } movieClip 465 { } movieClip 466 land179 { frame 1 { surfaceType = 'rock'; } instance hit of movieClip 465 { onClipEvent (load) { _rotation = _root['spinnerFlat' + _parent._parent.column * _parent._parent.row + 'Rotation']; rotation = 0; rotateNumber = 9.125999999999999; } onClipEvent (enterFrame) { rotation += -rotation / 10; _rotation = _rotation + rotation; if (_root.hook.hitTest(hit1) && _root.hook.shoot eq true && _root.hook.shootSpeed > 0) { rotation = rotateNumber; } if (_root.hook.hitTest(hit2) && _root.hook.shoot eq true && _root.hook.shootSpeed > 0) { rotation = -rotateNumber; } if (_root.hook.hitTest(hit3) && _root.hook.shoot eq true && _root.hook.shootSpeed > 0) { rotation = rotateNumber; } if (_root.hook.hitTest(hit4) && _root.hook.shoot eq true && _root.hook.shootSpeed > 0) { rotation = -rotateNumber; } eval('_root.spinnerFlat' + _parent._parent.column * _parent._parent.row + 'Rotation') = _rotation; } } } movieClip 467 land168 { frame 1 { surfaceType = 'rock'; } instance hit of movieClip 465 { onClipEvent (load) { _rotation = _root['spinner' + _parent._parent.column * _parent._parent.row + 'Rotation']; rotation = 0; rotateNumber = 9.125999999999999; } onClipEvent (enterFrame) { rotation += -rotation / 10; _rotation = _rotation + rotation; if (_root.hook.hitTest(hit1) && _root.hook.shoot eq true && _root.hook.shootSpeed > 0) { rotation = rotateNumber; } if (_root.hook.hitTest(hit2) && _root.hook.shoot eq true && _root.hook.shootSpeed > 0) { rotation = -rotateNumber; } if (_root.hook.hitTest(hit3) && _root.hook.shoot eq true && _root.hook.shootSpeed > 0) { rotation = rotateNumber; } if (_root.hook.hitTest(hit4) && _root.hook.shoot eq true && _root.hook.shootSpeed > 0) { rotation = -rotateNumber; } eval('_root.spinner' + _parent._parent.column * _parent._parent.row + 'Rotation') = _rotation; } } } movieClip 468 land, { frame 1 { surfaceType = 'grass'; } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance of movieClip 435 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent.fairy._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = 30 + random(40); _y = 30 + random(40); } } } instance fairy of movieClip 439 { onClipEvent (load) { _root.bugLoad.call(this); _root.colorLoad.call(this); } onClipEvent (enterFrame) { _rotation = _rotation + 5; _root.transformBugColor.call(this); _root.bug.call(this); } } } movieClip 469 land421 { frame 1 { surfaceType = 'grass'; } } movieClip 470 land299 { frame 1 { surfaceType = 'grass'; } } movieClip 471 land298 { frame 1 { surfaceType = 'grass'; } } movieClip 472 land297 { frame 1 { surfaceType = 'grass'; } } movieClip 473 land296 { frame 1 { surfaceType = 'grass'; } } movieClip 474 land295 { frame 1 { surfaceType = 'grass'; } } movieClip 475 land294 { frame 1 { surfaceType = 'grass'; } } movieClip 476 land293 { frame 1 { surfaceType = 'grass'; } } movieClip 477 land292 { frame 1 { surfaceType = 'grass'; } } movieClip 478 land291 { frame 1 { surfaceType = 'grass'; } } movieClip 479 land290 { frame 1 { surfaceType = 'grass'; } } movieClip 480 land289 { frame 1 { surfaceType = 'grass'; } } movieClip 481 land288 { frame 1 { surfaceType = 'grass'; } } movieClip 482 land287 { frame 1 { surfaceType = 'grass'; } } movieClip 483 land286 { frame 1 { surfaceType = 'grass'; } } movieClip 484 land285 { frame 1 { surfaceType = 'grass'; } } movieClip 485 land284 { frame 1 { surfaceType = 'grass'; } } movieClip 486 land283 { frame 1 { surfaceType = 'grass'; } } movieClip 487 land282 { frame 1 { surfaceType = 'grass'; } } movieClip 488 land281 { frame 1 { surfaceType = 'grass'; } } movieClip 489 land280 { frame 1 { surfaceType = 'grass'; } } movieClip 490 land279 { frame 1 { surfaceType = 'grass'; } } movieClip 491 land278 { frame 1 { surfaceType = 'grass'; } } movieClip 492 land277 { frame 1 { surfaceType = 'grass'; } } movieClip 493 land276 { frame 1 { surfaceType = 'grass'; } } movieClip 494 land275 { frame 1 { surfaceType = 'grass'; } } movieClip 495 land274 { frame 1 { surfaceType = 'grass'; } } movieClip 496 land273 { frame 1 { surfaceType = 'grass'; } } movieClip 497 land272 { frame 1 { surfaceType = 'grass'; } } movieClip 499 { } movieClip 501 { } movieClip 503 { } movieClip 505 { } movieClip 506 { instance of movieClip 499 { onClipEvent (load) { rotateOrig = _rotation; } onClipEvent (enterFrame) { _rotation = rotateOrig + random(5) - random(5); } } instance of movieClip 501 { onClipEvent (load) { rotateOrig = _rotation; } onClipEvent (enterFrame) { _rotation = rotateOrig + random(5) - random(5); } } instance leg1 of movieClip 503 { onClipEvent (load) { rotateOrig = _rotation; } onClipEvent (enterFrame) { _rotation = rotateOrig + random(5) - random(5); } } instance calf2 of movieClip 505 { onClipEvent (load) { rotateOrig = _rotation; } onClipEvent (enterFrame) { _rotation = rotateOrig + random(5) - random(5); } } } movieClip 507 land175 { instance of movieClip 506 { onClipEvent (load) { characterNumber = 18; _root.chief3TalkLoad.call(this); } onClipEvent (enterFrame) { _root.chief3Talk.call(this); } } } movieClip 509 { instance bulb2 of movieClip 190 { onClipEvent (load) { xScale = _xscale; } onClipEvent (enterFrame) { _yscale = _xscale; _xscale = _xscale + (xScale - _xscale) / 20; } } instance bulb1 of movieClip 190 { onClipEvent (load) { xScale = _xscale; } onClipEvent (enterFrame) { _yscale = _xscale; _xscale = _xscale + (xScale - _xscale) / 20; } } } movieClip 510 { instance light of movieClip 509 { onClipEvent (load) { _alpha = -100; alpha = -100; } onClipEvent (enterFrame) { _alpha = _alpha + ((alpha - _alpha) / 10 + random(20)); } } } movieClip 511 land174 { instance character of movieClip 156 { onClipEvent (load) { characterNumber = 17; this.bugWantNumber = 20; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _xscale = 99; _root.characterTalk.call(this); } } instance lamp of movieClip 510 { onClipEvent (enterFrame) { _root.lamp.call(this); } } } movieClip 512 land173 { instance character of movieClip 156 { onClipEvent (load) { characterNumber = 16; this.bugWantNumber = 20; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _xscale = 99; _root.characterTalk.call(this); } } instance lamp of movieClip 510 { onClipEvent (enterFrame) { _root.lamp.call(this); } } } movieClip 513 land172 { instance character of movieClip 156 { onClipEvent (load) { characterNumber = 15; this.bugWantNumber = 20; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _xscale = 99; _root.characterTalk.call(this); } } instance lamp of movieClip 510 { onClipEvent (enterFrame) { _root.lamp.call(this); } } } movieClip 514 land171 { instance character of movieClip 156 { onClipEvent (load) { characterNumber = 14; this.bugWantNumber = 20; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _xscale = 99; _root.characterTalk.call(this); } } instance of movieClip 159 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } instance lamp of movieClip 510 { onClipEvent (enterFrame) { _root.lamp.call(this); } } } movieClip 515 land170 { instance character of movieClip 156 { onClipEvent (load) { characterNumber = 13; this.bugWantNumber = 20; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _xscale = 99; _root.characterTalk.call(this); } } instance of movieClip 159 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } instance lamp of movieClip 510 { onClipEvent (enterFrame) { _root.lamp.call(this); } } } movieClip 516 land169 { instance character of movieClip 156 { onClipEvent (load) { characterNumber = 12; this.bugWantNumber = 20; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _xscale = 99; _root.characterTalk.call(this); } } instance lamp of movieClip 510 { onClipEvent (enterFrame) { _root.lamp.call(this); } } instance of movieClip 159 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 517 { instance of movieClip 499 { onClipEvent (load) { rotateOrig = _rotation; } onClipEvent (enterFrame) { _rotation = rotateOrig + random(5) - random(5); } } instance of movieClip 501 { onClipEvent (load) { rotateOrig = _rotation; } onClipEvent (enterFrame) { _rotation = rotateOrig + random(5) - random(5); } } instance leg1 of movieClip 503 { onClipEvent (load) { rotateOrig = _rotation; } onClipEvent (enterFrame) { _rotation = rotateOrig + random(5) - random(5); } } instance calf2 of movieClip 505 { onClipEvent (load) { rotateOrig = _rotation; } onClipEvent (enterFrame) { _rotation = rotateOrig + random(5) - random(5); } } } movieClip 518 land140 { instance of movieClip 517 { onClipEvent (load) { characterNumber = 11; _root.chief2TalkLoad.call(this); } onClipEvent (enterFrame) { _root.chief2Talk.call(this); } } } movieClip 519 land139 { instance character of movieClip 156 { onClipEvent (load) { characterNumber = 10; this.bugWantNumber = 2; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _xscale = 99; _root.characterTalk.call(this); } } instance of movieClip 159 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } instance lamp of movieClip 510 { onClipEvent (enterFrame) { _root.lamp.call(this); } } } movieClip 520 land138 { instance character of movieClip 156 { onClipEvent (load) { characterNumber = 9; this.bugWantNumber = 2; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _xscale = 99; _root.characterTalk.call(this); } } instance of movieClip 159 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } instance lamp of movieClip 510 { onClipEvent (enterFrame) { _root.lamp.call(this); } } } movieClip 521 land137 { instance character of movieClip 156 { onClipEvent (load) { characterNumber = 8; this.bugWantNumber = 2; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _xscale = 99; _root.characterTalk.call(this); } } instance lamp of movieClip 510 { onClipEvent (enterFrame) { _root.lamp.call(this); } } instance of movieClip 159 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 522 land136 { instance character of movieClip 156 { onClipEvent (load) { characterNumber = 7; this.bugWantNumber = 2; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _xscale = 99; _root.characterTalk.call(this); } } instance of movieClip 159 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } instance lamp of movieClip 510 { onClipEvent (enterFrame) { _root.lamp.call(this); } } } movieClip 523 land135 { instance character of movieClip 156 { onClipEvent (load) { characterNumber = 6; this.bugWantNumber = 2; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _xscale = 99; _root.characterTalk.call(this); } } instance of movieClip 159 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } instance lamp of movieClip 510 { onClipEvent (enterFrame) { _root.lamp.call(this); } } } movieClip 525 { instance of movieClip 411 { onClipEvent (enterFrame) { _root.transformBugColor.call(this); } onClipEvent (load) { _root.colorLoad.call(this); } } instance of movieClip 317 { onClipEvent (enterFrame) { _rotation = _rotation + 3; } } instance of movieClip 317 { onClipEvent (enterFrame) { _rotation = _rotation + 3; } } instance of movieClip 411 { onClipEvent (enterFrame) { _root.transformBugColor.call(this); } onClipEvent (load) { _root.colorLoad.call(this); } } instance of movieClip 411 { onClipEvent (enterFrame) { _root.transformBugColor.call(this); } onClipEvent (load) { _root.colorLoad.call(this); } } } movieClip 526 land269 { } movieClip 528 land268 { } movieClip 529 land267 { } movieClip 530 land265 { instance of movieClip 411 { onClipEvent (enterFrame) { _root.transformBugColor.call(this); } onClipEvent (load) { _root.colorLoad.call(this); } } } movieClip 532 land264 { instance of movieClip 411 { onClipEvent (enterFrame) { _root.transformBugColor.call(this); } onClipEvent (load) { _root.colorLoad.call(this); } } } movieClip 533 land263 { } movieClip 534 land252 { } movieClip 535 land251 { } movieClip 536 land250 { } movieClip 537 land249 { } movieClip 538 land248 { } movieClip 539 land247 { } movieClip 540 land246 { } movieClip 542 { instance of movieClip 411 { onClipEvent (load) { xscale = 40 + random(20); yscale = _yscale; counter = 0; } onClipEvent (enterFrame) { _alpha = random(20) + 40; _xscale = _xscale + (xscale - _xscale) / 10; _yscale = _xscale; counter += 1; if (counter > 10) { counter = 0; xscale = 40 + random(20); } } } } movieClip 543 { instance of movieClip 542 { onClipEvent (load) { friction = 0; gravity = 1; gravity2 = 0; rotation2 = 0; _rotation = 90; windCounter = 0; wind = 90 + random(20); yOrig = _y; } onClipEvent (enterFrame) { windCounter += 1; if (windCounter > 50) { wind = 90 + random(20); windCounter = 0; } if (_rotation > wind) { _rotation = _rotation - 0.11; gravity -= 0.1; } if (_rotation < wind) { _rotation = _rotation + 0.11; gravity += 0.1; } _rotation = _rotation + gravity; } } } movieClip 544 land245 { } movieClip 545 land244 { } movieClip 546 land243 { } movieClip 547 land242 { } movieClip 548 land241 { } movieClip 549 land240 { } movieClip 550 land239 { } movieClip 551 land238 { } movieClip 552 land237 { } movieClip 553 land236 { } movieClip 554 land235 { } movieClip 555 land234 { } movieClip 556 { } movieClip 557 { instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent._parent.orb._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = random(20) - random(20); _y = random(20) - random(20); } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent._parent.orb._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = random(20) - random(20); _y = random(20) - random(20); } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent._parent.orb._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = random(20) - random(20); _y = random(20) - random(20); } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent._parent.orb._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = random(20) - random(20); _y = random(20) - random(20); } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent._parent.orb._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = random(20) - random(20); _y = random(20) - random(20); } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent._parent.orb._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = random(20) - random(20); _y = random(20) - random(20); } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent._parent.orb._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = random(20) - random(20); _y = random(20) - random(20); } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent._parent.orb._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = random(20) - random(20); _y = random(20) - random(20); } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent._parent.orb._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = random(20) - random(20); _y = random(20) - random(20); } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent._parent.orb._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = random(20) - random(20); _y = random(20) - random(20); } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { _visible = _parent._parent.orb._visible; _xscale = 10 + random(60); _yscale = _xscale; _x = random(20) - random(20); _y = random(20) - random(20); } } } } movieClip 558 landx { instance orb of movieClip 439 { onClipEvent (load) { _root.bugLoad.call(this); } onClipEvent (enterFrame) { _rotation = _rotation + 5; _root.bug.call(this); } } } movieClip 559 land$ { instance orb of movieClip 439 { onClipEvent (load) { _visible = _root['fairy' + _root.where + _parent._parent.column * _parent._parent.row + 'Visible']; _root.bugLoad.call(this); } onClipEvent (enterFrame) { _rotation = _rotation + 5; _root.bug.call(this); } } } movieClip 560 land# { instance orb of movieClip 439 { onClipEvent (load) { _visible = _root['fairy' + _root.where + _parent._parent.column * _parent._parent.row + 'Visible']; _root.bugLoad.call(this); } onClipEvent (enterFrame) { _rotation = _rotation + 5; _root.bug.call(this); } } } movieClip 561 land* { instance orb of movieClip 439 { onClipEvent (load) { _visible = _root['fairy' + _root.where + _parent._parent.column * _parent._parent.row + 'Visible']; _root.bugLoad.call(this); } onClipEvent (enterFrame) { _rotation = _rotation + 5; _root.bug.call(this); } } } movieClip 562 land401 { instance of movieClip 9 { onClipEvent (load) { this.signRead = 'Felix\'s Hideout'; } onClipEvent (enterFrame) { if (_root.skinny.body.hitTest(this) && _root.stats.landName.text !== this.signRead && _root.skinnyHeavy eq true) { _root.music.soundVolume = _root.music.soundMax - 1; _root.music.fadeSpeed = -0.2; _root.stats.landName._alpha = -100; _root.stats.alphaVelocity = 1; _root.stats.fader._alpha = -1; _root.stats.faderAlphaVelocity = 1; _root.locArray = 'forest'; _root.where = 'forest'; _root.skinnyRelocateX = 1940; _root.skinnyRelocateY = 1800; _root.stats.landName.text = this.signRead; } } } } movieClip 563 land400 { instance of movieClip 9 { onClipEvent (load) { this.signRead = 'Infected Waterway'; } onClipEvent (enterFrame) { if (_root.skinny.body.hitTest(this) && _root.stats.landName.text !== this.signRead) { _root.music.soundVolume = _root.music.soundMax - 1; _root.music.fadeSpeed = -0.2; _root.stats.landName._alpha = -100; _root.stats.alphaVelocity = 1; _root.stats.fader._alpha = -1; _root.stats.faderAlphaVelocity = 1; _root.locArray = 'caves'; _root.where = 'caves'; _root.skinnyRelocateX = 630; _root.skinnyRelocateY = 2250; _root.stats.landName.text = this.signRead; } } } } movieClip 564 { } movieClip 570 { frame 1 { stop(); } frame 19 { prevFrame(); } } movieClip 571 { instance arrow of movieClip 570 { onClipEvent (enterFrame) { _rotation = _rotation + 5; _alpha = _alpha + (alpha - _alpha) / 5; if (_root.hookAttached eq true && _root.hook.hitTest(this)) { alpha = 100; play(); } else { alpha = 0; gotoAndStop(1); } } } } movieClip 572 land210 { instance post of movieClip 571 { onClipEvent (enterFrame) { _root.post.call(this); } } } movieClip 573 land209 { instance post of movieClip 571 { onClipEvent (enterFrame) { _root.post.call(this); } } } movieClip 577 { } movieClip 578 land219 { instance wheel of movieClip 577 { onClipEvent (load) { y = _y; x = _x; counter = 0; rotateSpeed = 0; spun = false; sound = new Sound(this); } onClipEvent (enterFrame) { if (_root.hook.shoot eq true && _root.hook.hitTest(this) && _root.machine.y > _root.machine.yStart - 200) { this.sound.attachSound('wheelSpin'); this.sound.setVolume(85 + random(5)); this.sound.start(); spun = true; rotateSpeed = 15; _root.machine.y = _root.machine.yStart - 550; _root.hook.shootSpeed = -Math.abs(_root.hook.shootSpeed); } rotateSpeed += -rotateSpeed / 100; _rotation = _rotation + rotateSpeed; } } } movieClip 581 { } movieClip 584 { } movieClip 585 { instance glow of movieClip 584 { onClipEvent (load) { xscale = _xscale; } onClipEvent (enterFrame) { _xscale = _xscale + (xscale - _xscale) / 10; } } } movieClip 586 land215 { instance post of movieClip 585 { onClipEvent (load) { this.glow.alpha = 40; this.colorKey = 'green'; this.timeAdd = 120; } onClipEvent (enterFrame) { _root.postSwitch.call(this); } } } movieClip 587 land213 { instance post of movieClip 585 { onClipEvent (load) { this.glow.alpha = 40; this.colorKey = 'blue'; this.timeAdd = 150; } onClipEvent (enterFrame) { _root.postSwitch.call(this); } } } movieClip 588 land211 { instance post of movieClip 585 { onClipEvent (load) { this.glow.alpha = 40; this.colorKey = 'yellow'; this.timeAdd = 240; } onClipEvent (enterFrame) { _root.postSwitch.call(this); } } } movieClip 591 { } movieClip 594 land218 { instance hit of movieClip 9 { onClipEvent (load) { this.colorKey = 'yellow'; this.xscaleOrig = this._xscale; } onClipEvent (enterFrame) { _root.horizontalDoor.call(this); } } } movieClip 595 land217 { instance hit of movieClip 9 { onClipEvent (load) { this.colorKey = 'blue'; this.xscaleOrig = this._xscale; } onClipEvent (enterFrame) { _root.horizontalDoor.call(this); } } } movieClip 596 { } movieClip 597 land216 { instance door of movieClip 596 { onClipEvent (load) { this.yscaleOrig = this._yscale; this.yscale = 0; this.xscaleOrig = this._xscale; this.colorKey = 'green'; } onClipEvent (enterFrame) { _root.door.call(this); } } } movieClip 599 land214 { instance door of movieClip 596 { onClipEvent (load) { this.yscaleOrig = this._yscale; this.yscale = 0; this.xscaleOrig = this._xscale; this.colorKey = 'blue'; } onClipEvent (enterFrame) { _root.door.call(this); } } } movieClip 600 land212 { instance door of movieClip 596 { onClipEvent (load) { this.yscaleOrig = this._yscale; this.yscale = 0; this.xscaleOrig = this._xscale; this.colorKey = 'yellow'; sound = new Sound(this); this.sound.attachSound('elevatorLoop'); this.sound.setVolume(100); } onClipEvent (enterFrame) { _root.door.call(this); } } } movieClip 605 { } movieClip 607 { frame 1 { stop(); } frame 10 { gotoAndStop(1); } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } frame 46 { stop(); } } movieClip 608 land220 { frame 1 { surfaceType = 'grass'; } instance orb of movieClip 439 { onClipEvent (load) { _visible = _root['fairy' + _root.where + _parent._parent.column * _parent._parent.row + 'Visible']; _root.bugLoad.call(this); } onClipEvent (enterFrame) { _rotation = _rotation + 5; _root.bugHidden.call(this); } } instance box of movieClip 607 { onClipEvent (load) { this.health = 2; _root.boxBreakLoad.call(this); } onClipEvent (enterFrame) { _root.boxBreak.call(this); } } } movieClip 611 { } movieClip 614 { frame 1 { stop(); } frame 10 { gotoAndStop(1); } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } frame 46 { stop(); } } movieClip 615 land208 { frame 1 { surfaceType = 'rock'; } instance of movieClip 614 { onClipEvent (load) { this.health = 0; _root.boxBreakLoad.call(this); } onClipEvent (enterFrame) { _root.boxBreak.call(this); } } } movieClip 621 { frame 1 { stop(); } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } frame 47 { stop(); } } movieClip 622 land207 { frame 1 { surfaceType = 'rock'; } instance orb of movieClip 439 { onClipEvent (load) { _visible = _root['fairy' + _root.where + _parent._parent.column * _parent._parent.row + 'Visible']; _root.bugLoad.call(this); } onClipEvent (enterFrame) { _rotation = _rotation + 5; _root.bugHidden.call(this); } } instance box of movieClip 621 { onClipEvent (load) { this.health = 0; _root.boxBreakLoad.call(this); } onClipEvent (enterFrame) { _root.boxBreak.call(this); } } } movieClip 623 land206 { frame 1 { surfaceType = 'grass'; } instance orb of movieClip 439 { onClipEvent (load) { _visible = _root['fairy' + _root.where + _parent._parent.column * _parent._parent.row + 'Visible']; _root.bugLoad.call(this); } onClipEvent (enterFrame) { _rotation = _rotation + 5; _root.bugHidden.call(this); } } instance box of movieClip 607 { onClipEvent (load) { this.health = 2; _root.boxBreakLoad.call(this); } onClipEvent (enterFrame) { _root.boxBreak.call(this); } } } movieClip 627 { frame 1 { stop(); } frame 10 { gotoAndStop(1); } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } frame 33 { stop(); } } movieClip 628 land205 { frame 1 { surfaceType = 'rock'; } instance orb of movieClip 439 { onClipEvent (load) { _visible = _root['fairy' + _root.where + _parent._parent.column * _parent._parent.row + 'Visible']; _root.bugLoad.call(this); } onClipEvent (enterFrame) { _rotation = _rotation + 5; _root.bugHidden.call(this); } } instance box of movieClip 627 { onClipEvent (load) { this.health = 0; _root.boxBreakLoad.call(this); } onClipEvent (enterFrame) { _root.boxBreak.call(this); } } } movieClip 629 land204 { frame 1 { surfaceType = 'rock'; } instance of movieClip 621 { onClipEvent (load) { this.health = 0; _root.boxBreakLoad.call(this); } onClipEvent (enterFrame) { _root.boxBreak.call(this); } } } movieClip 630 land203 { frame 1 { surfaceType = 'grass'; } instance of movieClip 614 { onClipEvent (load) { this.health = 0; _root.boxBreakLoad.call(this); } onClipEvent (enterFrame) { _root.boxBreak.call(this); } } } movieClip 631 land202 { frame 1 { surfaceType = 'grass'; } instance of movieClip 614 { onClipEvent (load) { this.health = 0; _root.boxBreakLoad.call(this); } onClipEvent (enterFrame) { _root.boxBreak.call(this); } } } movieClip 632 land201 { frame 1 { surfaceType = 'grass'; } instance of movieClip 607 { onClipEvent (load) { this.health = 2; _root.boxBreakLoad.call(this); } onClipEvent (enterFrame) { _root.boxBreak.call(this); } } } movieClip 633 land200 { frame 1 { surfaceType = 'rock'; } instance of movieClip 627 { onClipEvent (load) { this.health = 0; _root.boxBreakLoad.call(this); } onClipEvent (enterFrame) { _root.boxBreak.call(this); } } } movieClip 634 land37 { frame 1 { surfaceType = 'rock'; } } movieClip 635 land36 { frame 1 { surfaceType = 'rock'; } instance of movieClip 411 { onClipEvent (load) { xscale = 40 + random(20); yscale = _yscale; counter = 0; } onClipEvent (enterFrame) { _alpha = random(20) + 40; _xscale = _xscale + (xscale - _xscale) / 10; _yscale = _xscale; counter += 1; if (counter > 10) { counter = 0; xscale = 40 + random(20); } } } } movieClip 638 { } movieClip 643 { } movieClip 644 land34 { frame 1 { surfaceType = 'rock'; } instance of movieClip 411 { onClipEvent (load) { _alpha = 10; alpha = 0; this.characterNumber = 9; } onClipEvent (enterFrame) { _root.caseLight.call(this); } } instance of movieClip 411 { onClipEvent (load) { _alpha = 10; alpha = 0; this.characterNumber = 8; } onClipEvent (enterFrame) { _root.caseLight.call(this); } } instance of movieClip 411 { onClipEvent (load) { _alpha = 10; alpha = 0; this.characterNumber = 7; } onClipEvent (enterFrame) { _root.caseLight.call(this); } } instance of movieClip 411 { onClipEvent (load) { _alpha = 10; alpha = 0; this.characterNumber = 6; } onClipEvent (enterFrame) { _root.caseLight.call(this); } } instance of movieClip 411 { onClipEvent (load) { _alpha = 10; alpha = 0; this.characterNumber = 10; } onClipEvent (enterFrame) { _root.caseLight.call(this); } } instance of movieClip 643 { onClipEvent (load) { this.lightUp = false; _alpha = 0; } onClipEvent (enterFrame) { if (_root.character11Satisfied eq true && _root.skinnyTalking eq true) { this._alpha = 80 + random(20); } else { _alpha = _alpha + (alpha - _alpha) / 10; alpha = random(20); } } } } movieClip 647 land33 { frame 1 { surfaceType = 'rock'; } instance of movieClip 411 { onClipEvent (load) { _alpha = 10; alpha = 0; this.characterNumber = 4; } onClipEvent (enterFrame) { _root.caseLight.call(this); } } instance of movieClip 411 { onClipEvent (load) { _alpha = 10; alpha = 0; this.characterNumber = 3; } onClipEvent (enterFrame) { _root.caseLight.call(this); } } instance of movieClip 411 { onClipEvent (load) { _alpha = 10; alpha = 0; this.characterNumber = 2; } onClipEvent (enterFrame) { _root.caseLight.call(this); } } instance of movieClip 411 { onClipEvent (load) { _alpha = 10; alpha = 0; this.characterNumber = 1; } onClipEvent (enterFrame) { _root.caseLight.call(this); } } instance of movieClip 643 { onClipEvent (load) { this.lightUp = false; _alpha = 0; } onClipEvent (enterFrame) { if (_root.character5Satisfied eq true && _root.skinnyTalking eq true) { this._alpha = 80 + random(20); } else { _alpha = _alpha + (alpha - _alpha) / 10; alpha = random(20); } } } } movieClip 648 { } movieClip 651 { } movieClip 654 { } movieClip 657 { } movieClip 658 land51 { frame 1 { surfaceType = 'rock'; } instance hit of movieClip 648 { onClipEvent (load) { counter = 0; height = _height; sound = new Sound(this); } onClipEvent (enterFrame) { if (_root.skinnyHeavy eq true) { if (counter < 0) { counter += 1; } if (counter eq 0) { _parent.lid.y = 105; this._height = height; } if (_root.skinny._x > _parent._parent._x + _parent._x + 2 && _root.skinny._x < _parent._parent._x + _parent._x + 90 - 2) { if (_root.skinny.body.hitTest(this) && counter eq 0 && _root.skinny.gravity > 1 && _parent.lid.y !== 85) { this.sound.attachSound('down'); this.sound.setVolume(50 + random(20)); this.sound.start(); _parent.lid.y = 140; this._height = height - 25; } } if (this._height eq height - 25) { counter += 1; } if (counter < 0) { counter += 1; } if (counter > 25) { if (_root.skinny.body.hitTest(this)) { _parent.lid.y = 105; _parent.lid._y = _parent.lid.y - 5; _root.skinny._y -= 20; this.sound.attachSound('up'); this.sound.setVolume(40 + random(20)); this.sound.start(); _root.skinny.gravity = -15; this._height = 0; trace('did'); } counter = -15; } } } } instance lid of movieClip 651 { onClipEvent (load) { } onClipEvent (enterFrame) { this._y += (y - _y) / 2; } } instance of movieClip 654 { onClipEvent (enterFrame) { this._height = _y - _parent.lid._y; } } } movieClip 659 { } movieClip 660 land50 { frame 1 { surfaceType = 'rock'; } } movieClip 661 { } movieClip 663 { } movieClip 664 land47 { frame 1 { surfaceType = 'rock'; } instance hit of movieClip 661 { onClipEvent (load) { rotation2 = 0; } onClipEvent (enterFrame) { if (_root.skinny.body.hitTest(this)) { rotation = -20; } else { rotation = 0; } rotation2 += (rotation - rotation2) / 5; _rotation = _rotation + (rotation2 - _rotation) / 5; } } instance of movieClip 663 { onClipEvent (enterFrame) { _rotation = _parent.hit._rotation; } } } movieClip 665 { } movieClip 667 { } movieClip 668 land45 { frame 1 { surfaceType = 'rock'; } instance hit of movieClip 665 { onClipEvent (load) { rotation2 = 0; } onClipEvent (enterFrame) { if (_root.skinny.body.hitTest(this) && _root.skinny.gravity > -0.5) { rotation = 10; } else { rotation = 0; } rotation2 += (rotation - rotation2) / 5; _rotation = _rotation + (rotation2 - _rotation) / 5; } } instance of movieClip 667 { onClipEvent (enterFrame) { _rotation = _parent.hit._rotation; } } } movieClip 670 { } movieClip 671 land44 { frame 1 { surfaceType = 'rock'; } instance hit of movieClip 665 { onClipEvent (load) { rotation2 = 0; } onClipEvent (enterFrame) { if (_root.skinny.body.hitTest(this)) { rotation = 20; } else { rotation = 0; } rotation2 += (rotation - rotation2) / 5; _rotation = _rotation + (rotation2 - _rotation) / 5; } } instance of movieClip 670 { onClipEvent (enterFrame) { _rotation = _parent.hit._rotation; } } } movieClip 672 land43 { frame 1 { surfaceType = 'rock'; } instance hit of movieClip 648 { onClipEvent (load) { counter = 0; height = _height; sound = new Sound(this); } onClipEvent (enterFrame) { if (_root.skinny.body.hitTest(this)) { this.sound.attachSound('up'); this.sound.setVolume(40 + random(20)); this.sound.start(); _root.skinny._x += 10; _root.skinny.shot = true; _root.skinny.gravity = -5; _root.skinny.xSpeed = 25; _parent.lid._x = 50; } } } instance lid of movieClip 651 { onClipEvent (load) { x = _x; } onClipEvent (enterFrame) { this._x += (x - _x) / 10; } } instance of movieClip 654 { onClipEvent (enterFrame) { this._width = _x - _parent.lid._x; } } } movieClip 673 land41 { frame 1 { surfaceType = 'rock'; } instance hit of movieClip 648 { onClipEvent (load) { counter = 0; height = _height; sound = new Sound(this); } onClipEvent (enterFrame) { if (_root.skinny.body.hitTest(this)) { this.sound.attachSound('bigUp'); this.sound.setVolume(40 + random(20)); this.sound.start(); _root.skinny._y += 10; _root.skinny.shot = true; _root.skinny.gravity = 25; _parent.lid._y = 60; } } } instance lid of movieClip 651 { onClipEvent (load) { y = _y; } onClipEvent (enterFrame) { this._y += (y - _y) / 10; } } instance of movieClip 654 { onClipEvent (enterFrame) { this._width = _x - _parent.lid._x; } } } movieClip 674 land40 { frame 1 { surfaceType = 'rock'; } instance hit of movieClip 648 { onClipEvent (load) { counter = 0; height = _height; sound = new Sound(this); } onClipEvent (enterFrame) { if (_root.skinny.body.hitTest(this)) { this.sound.attachSound('up'); this.sound.setVolume(40 + random(20)); this.sound.start(); _root.skinny._x -= 10; _root.skinny.shot = true; _root.skinny.gravity = -15; _root.skinny.xSpeed = -15; _parent.lid._x = 40; } } } instance lid of movieClip 651 { onClipEvent (load) { x = _x; } onClipEvent (enterFrame) { this._x += (x - _x) / 10; } } instance of movieClip 654 { onClipEvent (enterFrame) { this._width = _x - _parent.lid._x; } } } movieClip 675 land39 { frame 1 { surfaceType = 'rock'; } instance hit of movieClip 648 { onClipEvent (load) { counter = 0; height = _height; sound = new Sound(this); } onClipEvent (enterFrame) { if (_root.skinny.body.hitTest(this)) { this.sound.attachSound('up'); this.sound.setVolume(40 + random(20)); this.sound.start(); _root.skinny._x += 10; _root.skinny.shot = true; _root.skinny.gravity = -15; _root.skinny.xSpeed = 15; _parent.lid._x = 50; } } } instance lid of movieClip 651 { onClipEvent (load) { x = _x; } onClipEvent (enterFrame) { this._x += (x - _x) / 10; } } instance of movieClip 654 { onClipEvent (enterFrame) { this._width = _x - _parent.lid._x; } } } movieClip 676 land38 { frame 1 { surfaceType = 'rock'; } instance hit of movieClip 648 { onClipEvent (load) { counter = 0; height = _height; sound = new Sound(this); } onClipEvent (enterFrame) { if (_root.skinnyHeavy eq true) { if (counter < 0) { counter += 1; } if (counter eq 0) { _parent.lid.y = 40; this._height = height; } if (_root.skinny._x > _parent._parent._x + _parent._x + 2 && _root.skinny._x < _parent._parent._x + _parent._x + 90 - 2) { if (_root.skinny.body.hitTest(this) && counter eq 0 && _root.skinny.gravity > 1 && _parent.lid.y !== 85) { this.sound.attachSound('down'); this.sound.setVolume(50 + random(20)); this.sound.start(); _parent.lid.y = 85; this._height = height - 25; } } if (this._height eq height - 25) { counter += 1; } if (counter < 0) { counter += 1; } if (counter > 25) { if (_root.skinny.hitTest(this)) { _parent.lid.y = 40; _parent.lid._y = _parent.lid.y - 5; _root.skinny._y -= 20; this.sound.attachSound('bigUp'); this.sound.setVolume(40 + random(20)); this.sound.start(); _root.skinny.gravity -= 20; this._height = 0; trace('did'); } counter = -15; } } } } instance lid of movieClip 651 { onClipEvent (load) { } onClipEvent (enterFrame) { this._y += (y - _y) / 2; } } instance of movieClip 654 { onClipEvent (enterFrame) { this._height = _y - _parent.lid._y; } } } movieClip 677 land35 { frame 1 { surfaceType = 'rock'; } instance hit of movieClip 648 { onClipEvent (load) { counter = 0; height = _height; sound = new Sound(this); } onClipEvent (enterFrame) { if (_root.skinnyHeavy eq true) { if (counter < 0) { counter += 1; } if (counter eq 0) { _parent.lid.y = 55; this._height = height; } if (_root.skinny._x > _parent._parent._x + _parent._x + 2 && _root.skinny._x < _parent._parent._x + _parent._x + 90 - 2) { if (_root.skinny.body.hitTest(this) && counter eq 0 && _root.skinny.gravity > 1 && _parent.lid.y !== 85) { this.sound.attachSound('down'); this.sound.setVolume(50 + random(20)); this.sound.start(); _parent.lid.y = 85; this._height = height - 25; } } if (this._height eq height - 25) { counter += 1; } if (counter < 0) { counter += 1; } if (counter > 25) { if (_root.skinny.body.hitTest(this)) { _parent.lid.y = 55; _parent.lid._y = _parent.lid.y - 5; _root.skinny._y -= 20; this.sound.attachSound('up'); this.sound.setVolume(40 + random(20)); this.sound.start(); _root.skinny.gravity = -15; this._height = 0; trace('did'); } counter = -15; } } } } instance lid of movieClip 651 { onClipEvent (load) { } onClipEvent (enterFrame) { this._y += (y - _y) / 2; } } instance of movieClip 654 { onClipEvent (enterFrame) { this._height = _y - _parent.lid._y; } } } movieClip 678 land32 { frame 1 { surfaceType = 'rock'; } instance post of movieClip 571 { onClipEvent (enterFrame) { _root.post.call(this); } } } movieClip 679 land29 { frame 1 { surfaceType = 'rock'; } } movieClip 680 land28 { frame 1 { surfaceType = 'rock'; } } movieClip 681 land25 { frame 1 { surfaceType = 'rock'; } } movieClip 682 land24 { frame 1 { surfaceType = 'rock'; } } movieClip 683 land23 { frame 1 { surfaceType = 'rock'; } } movieClip 684 land22 { frame 1 { surfaceType = 'rock'; } } movieClip 686 { } movieClip 687 { } movieClip 688 land21 { frame 1 { surfaceType = 'rock'; } } movieClip 690 { } movieClip 691 { } movieClip 692 land20 { frame 1 { surfaceType = 'rock'; } } movieClip 693 land19 { frame 1 { surfaceType = 'rock'; } } movieClip 695 { } movieClip 696 { } movieClip 697 land18 { frame 1 { surfaceType = 'rock'; } } movieClip 698 land17 { frame 1 { surfaceType = 'rock'; } } movieClip 699 land16 { frame 1 { surfaceType = 'rock'; } } movieClip 700 land15 { frame 1 { surfaceType = 'rock'; } } movieClip 701 land49 { frame 1 { surfaceType = 'grass'; } instance of movieClip 9 { onClipEvent (enterFrame) { if (_root.skinny.body.hitTest(this)) { _root.skinny._x = _root.skinnyRelocateX; _root.skinny._y = _root.skinnyRelocateY; } } } } movieClip 702 land48 { frame 1 { surfaceType = 'grass'; } instance of movieClip 9 { onClipEvent (enterFrame) { if (_root.skinny.hitTest(this)) { _root.camYUp = 2; } } } } movieClip 703 land46 { frame 1 { surfaceType = 'grass'; } instance of movieClip 9 { onClipEvent (enterFrame) { if (_root.skinny.hitTest(this)) { _root.camYUp = 6; } } } } movieClip 704 land31 { frame 1 { surfaceType = 'grass'; } } movieClip 705 land30 { frame 1 { surfaceType = 'grass'; } } movieClip 706 land27 { frame 1 { surfaceType = 'grass'; } } movieClip 707 land26 { frame 1 { surfaceType = 'grass'; } } movieClip 708 land14 { frame 1 { surfaceType = 'grass'; } } movieClip 709 land13 { frame 1 { surfaceType = 'grass'; } } movieClip 710 land12 { frame 1 { surfaceType = 'grass'; } } movieClip 711 land11 { frame 1 { surfaceType = 'grass'; } } movieClip 712 land10 { frame 1 { surfaceType = 'grass'; } } movieClip 713 land9 { frame 1 { surfaceType = 'grass'; } } movieClip 714 land7 { frame 1 { surfaceType = 'grass'; } } movieClip 715 land6 { frame 1 { surfaceType = 'grass'; } } movieClip 716 land5 { frame 1 { surfaceType = 'grass'; } } movieClip 717 land4 { frame 1 { surfaceType = 'grass'; } } movieClip 718 land3 { frame 1 { surfaceType = 'grass'; } } movieClip 719 land2 { frame 1 { surfaceType = 'grass'; } } movieClip 720 land1 { frame 1 { surfaceType = 'grass'; } } movieClip 722 { } movieClip 727 { frame 1 { stop(); } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } frame 54 { stop(); } } movieClip 728 land545 { instance character of movieClip 727 { onClipEvent (load) { broken = _root.saveBallBroken; characterNumber = 40; this.bugWantNumber = 10; if (_root.saveBallBroken eq true) { this.gotoAndStop(10); } _root.gameSaveLoad.call(this); } onClipEvent (enterFrame) { _root.gameSaveTalk.call(this); if (_root.hook.hitTest(this.globe) && _root.hook.shoot eq true && broken eq false) { _root.hook.sound2.stop(); _root.landSave.data.land = _root.where; this.play(1); broken = true; _root.saveBallBroken = true; } } } } movieClip 729 { } movieClip 731 { } movieClip 732 land525 { instance character of movieClip 729 { onClipEvent (load) { characterNumber = 45; this.bugWantNumber = 0; _root.earlyNarrativeLoad.call(this); } onClipEvent (enterFrame) { _root.earlyNarrativeTalk.call(this); } } instance of movieClip 731 { onClipEvent (load) { sound = new Sound(this); sound.attachSound('keyDoorUnlock'); sound.setVolume(50); } onClipEvent (enterFrame) { if (_root.skinny.body.hitTest(this) && _root.hiddenItem1Found eq false) { com.newgrounds.API.unlockMedal('Hidden Item 3'); sound.start(); _root.hiddenItem1Found = true; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_root.hiddenItem3Found eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_root.hiddenItem3Found eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_root.hiddenItem3Found eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_root.hiddenItem3Found eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_root.hiddenItem3Found eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } } movieClip 735 { frame 1 { stop(); } } movieClip 736 { instance of movieClip 735 { onClipEvent (load) { _rotation = -30; rotateSpeed = 0; } onClipEvent (enterFrame) { gotoAndStop(_root.where); _rotation = _rotation + rotateSpeed; if (_rotation < 0) { rotateSpeed += 0.1; } if (_rotation > 0) { rotateSpeed -= 0.1; } } } } movieClip 737 { instance of movieClip 736 { onClipEvent (load) { _rotation = -20; rotateSpeed = 0; } onClipEvent (enterFrame) { _rotation = _rotation + rotateSpeed; if (_rotation < 0) { rotateSpeed += 0.1; } if (_rotation > 0) { rotateSpeed -= 0.1; } } } } movieClip 738 land524 { instance character of movieClip 729 { onClipEvent (load) { characterNumber = 44; this.bugWantNumber = 0; _root.earlyNarrativeLoad.call(this); } onClipEvent (enterFrame) { _root.earlyNarrativeTalk.call(this); } } instance of movieClip 737 { onClipEvent (load) { sound = new Sound(this); sound.attachSound('keyDoorUnlock'); sound.setVolume(50); } onClipEvent (enterFrame) { if (_root.skinny.body.hitTest(this) && _root.hiddenItem2Found eq false) { com.newgrounds.API.unlockMedal('Hidden Item 2'); sound.start(); _root.hiddenItem2Found = true; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_root.hiddenItem2Found eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_root.hiddenItem2Found eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_root.hiddenItem2Found eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_root.hiddenItem2Found eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_root.hiddenItem2Found eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } } movieClip 740 { } movieClip 741 land523 { instance character of movieClip 729 { onClipEvent (load) { characterNumber = 43; this.bugWantNumber = 0; _root.earlyNarrativeLoad.call(this); } onClipEvent (enterFrame) { _root.earlyNarrativeTalk.call(this); } } instance of movieClip 740 { onClipEvent (load) { sound = new Sound(this); sound.attachSound('keyDoorUnlock'); sound.setVolume(50); } onClipEvent (enterFrame) { if (_root.skinny.body.hitTest(this) && _root.hiddenItem1Found eq false) { com.newgrounds.API.unlockMedal('Hidden Item 1'); sound.start(); _root.hiddenItem1Found = true; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { if (_root.hiddenItem1Found eq true) { _visible = false; } counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_parent.door.unlocked eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { if (_root.hiddenItem1Found eq true) { _visible = false; } counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_parent.door.unlocked eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { if (_root.hiddenItem1Found eq true) { _visible = false; } counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_parent.door.unlocked eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { if (_root.hiddenItem1Found eq true) { _visible = false; } counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_parent.door.unlocked eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { if (_root.hiddenItem1Found eq true) { _visible = false; } counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_parent.door.unlocked eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { if (_root.hiddenItem1Found eq true) { _visible = false; } counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_parent.door.unlocked eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } } movieClip 744 { } movieClip 745 { instance of movieClip 744 { onClipEvent (enterFrame) { if (_parent._parent.unlocked eq true) { if (_alpha > -10) { _alpha = _alpha - 10; _xscale = _xscale + 10; _yscale = _yscale + 10; } } } } } movieClip 747 { } movieClip 748 { instance part1 of movieClip 745 { onClipEvent (load) { yGo = -75; } onClipEvent (enterFrame) { if (_parent.unlocked eq true) { _y = _y + (yGo - _y) / 20; } } } instance part2 of movieClip 747 { onClipEvent (load) { yGo = 90; } onClipEvent (enterFrame) { if (_parent.unlocked eq true) { _y = _y + (yGo - _y) / 20; } } } } movieClip 749 land522 { instance door of movieClip 748 { onClipEvent (load) { if (_root.key1DoorUnlocked eq true) { part1._y = -75; part2._y = 90; unlocked = true; } else { unlocked = false; } sound = new Sound(this); sound.attachSound('keyGet'); } onClipEvent (enterFrame) { if (_root.key1Got eq true && unlocked eq false && _root.skinny.body.hitTest(this)) { sound.start(); unlocked = true; _root.key1DoorUnlocked = true; } } } instance hit of movieClip 9 { onClipEvent (enterFrame) { if (_parent.door.unlocked eq true) { this._yscale = 0; this._y = 0; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { if (_parent.door.unlocked eq true) { _visible = false; } counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_parent.door.unlocked eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { if (_parent.door.unlocked eq true) { _visible = false; } counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_parent.door.unlocked eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { if (_parent.door.unlocked eq true) { _visible = false; } counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_parent.door.unlocked eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { if (_parent.door.unlocked eq true) { _visible = false; } counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_parent.door.unlocked eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { if (_parent.door.unlocked eq true) { _visible = false; } counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_parent.door.unlocked eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { if (_parent.door.unlocked eq true) { _visible = false; } counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_parent.door.unlocked eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } instance of movieClip 556 { onClipEvent (load) { alpha = 0; _alpha = 0; counter = random(40); _xscale = random(60); _yscale = _xscale; } onClipEvent (enterFrame) { if (_parent.door.unlocked eq true) { _visible = false; } counter += 1; _alpha = _alpha + (alpha - _alpha) / 5; if (counter > 50) { alpha = 100; } if (_alpha > 90) { alpha = 0; counter = 0; } if (_alpha < 1) { if (_parent.door.unlocked eq true) { _visible = false; } _xscale = 10 + random(60); _yscale = _xscale; } } } } movieClip 755 { frame 1 { stop(); } } movieClip 756 { instance of movieClip 755 { onClipEvent (load) { _rotation = -30; rotateSpeed = 0; } onClipEvent (enterFrame) { gotoAndStop(_root.where); _rotation = _rotation + rotateSpeed; if (_rotation < 0) { rotateSpeed += 0.1; } if (_rotation > 0) { rotateSpeed -= 0.1; } } } } movieClip 757 { instance of movieClip 756 { onClipEvent (load) { _rotation = -20; rotateSpeed = 0; } onClipEvent (enterFrame) { _rotation = _rotation + rotateSpeed; if (_rotation < 0) { rotateSpeed += 0.1; } if (_rotation > 0) { rotateSpeed -= 0.1; } } } } movieClip 758 land521 { instance of movieClip 757 { onClipEvent (load) { if (_root.key1Got eq true) { _visible = false; } else { _visible = true; } sound = new Sound(this); sound.attachSound('keyGet'); } onClipEvent (enterFrame) { if (_root.skinny.body.hitTest(this) && _visible eq true || _root.hook.shoot eq true && _root.hook.hitTest(this) && _visible eq true) { this.sound.start(); _root.key1Got = true; _visible = false; } } } } movieClip 759 land520 { instance character of movieClip 727 { onClipEvent (load) { broken = _root.saveBallBroken; characterNumber = 41; this.bugWantNumber = 10; if (_root.saveBallBroken eq true) { this.gotoAndStop(10); } _root.gameSaveLoad.call(this); } onClipEvent (enterFrame) { _root.gameSaveTalk.call(this); if (_root.hook.hitTest(this.globe) && _root.hook.shoot eq true && broken eq false) { _root.hook.sound2.stop(); _root.landSave.data.land = _root.where; this.play(1); broken = true; _root.saveBallBroken = true; } } } } movieClip 760 land519 { instance character of movieClip 727 { onClipEvent (load) { broken = _root.saveBallBroken; characterNumber = 40; this.bugWantNumber = 10; if (_root.saveBallBroken eq true) { this.gotoAndStop(10); } _root.gameSaveLoad.call(this); } onClipEvent (enterFrame) { _root.gameSaveTalk.call(this); if (_root.hook.hitTest(this.globe) && _root.hook.shoot eq true && broken eq false) { _root.hook.sound2.stop(); _root.landSave.data.land = _root.where; this.play(1); broken = true; _root.saveBallBroken = true; } } } } movieClip 761 land518 { instance character of movieClip 727 { onClipEvent (load) { broken = _root.saveBallBroken; characterNumber = 39; this.bugWantNumber = 10; if (_root.saveBallBroken eq true) { this.gotoAndStop(10); } _root.gameSaveLoad.call(this); } onClipEvent (enterFrame) { _root.gameSaveTalk.call(this); if (_root.hook.hitTest(this.globe) && _root.hook.shoot eq true && broken eq false) { _root.hook.sound2.stop(); _root.landSave.data.land = _root.where; this.play(1); broken = true; _root.saveBallBroken = true; } } } } movieClip 762 land517 { instance character of movieClip 727 { onClipEvent (load) { broken = _root.saveBallBroken; characterNumber = 38; this.bugWantNumber = 10; if (_root.saveBallBroken eq true) { this.gotoAndStop(10); } _root.gameSaveLoad.call(this); } onClipEvent (enterFrame) { _root.gameSaveTalk.call(this); if (_root.hook.hitTest(this.globe) && _root.hook.shoot eq true && broken eq false) { _root.hook.sound2.stop(); _root.landSave.data.land = _root.where; this.play(1); broken = true; _root.saveBallBroken = true; } } } } movieClip 763 land516 { instance of movieClip 9 { onClipEvent (load) { if (_root.savedLevel eq 'beach') { this.signRead = ''; } if (_root.savedLevel eq 'uroVillage') { this.signRead = 'Mama\'s Nest'; } if (_root.savedLevel eq 'caves') { this.signRead = 'Infected Waterway'; } if (_root.savedLevel eq 'forest') { this.signRead = 'Felix\'s Hideout'; } if (_root.savedLevel eq 'church') { this.signRead = 'Mama\'s Chamber'; } } onClipEvent (enterFrame) { if (_root.skinny.body.hitTest(this) && _root.stats.landName.text !== this.signRead) { _root.music.soundVolume = _root.music.soundMax - 1; _root.music.fadeSpeed = -0.2; _root.stats.landName._alpha = -100; _root.stats.alphaVelocity = 1; _root.stats.fader._alpha = 100; _root.stats.faderAlphaVelocity = 1; _root.locArray = _root.savedLevel; _root.where = _root.savedLevel; if (_root.savedLevel eq 'beach') { this.signRead = ''; } if (_root.savedLevel eq 'uroVillage') { _root.skinnyRelocateX = 485; _root.skinnyRelocateY = 1325; } if (_root.savedLevel eq 'caves') { _root.skinnyRelocateX = 630; _root.skinnyRelocateY = 2250; } if (_root.savedLevel eq 'forest') { _root.skinnyRelocateX = 1940; _root.skinnyRelocateY = 1800; } if (_root.savedLevel eq 'church') { _root.skinnyRelocateX = 180; _root.skinnyRelocateY = 900; } _root.stats.landName.text = this.signRead; } } } } movieClip 766 { } movieClip 767 land515 { instance arrow of movieClip 766 { onClipEvent (load) { _alpha = 0; alpha = 0; } onClipEvent (enterFrame) { _alpha = _alpha + (alpha - _alpha) / 10; if (_root.character11Satisfied eq true && _root.skinnyTalking eq false) { alpha = 100; } else { alpha = 0; } } } } movieClip 768 land514 { instance arrow of movieClip 766 { onClipEvent (load) { _alpha = 0; alpha = 0; } onClipEvent (enterFrame) { _alpha = _alpha + (alpha - _alpha) / 10; if (_root.character5Satisfied eq true && _root.skinnyTalking eq false) { alpha = 100; } else { alpha = 0; } } } } movieClip 772 { } movieClip 790 { frame 1 { stop(); } } movieClip 801 { frame 1 { stop(); } } movieClip 802 land513 { instance of movieClip 772 { onClipEvent (enterFrame) { _alpha = random(100); } } instance of movieClip 790 { onClipEvent (load) { counter = 0; } onClipEvent (enterFrame) { _root.spark.call(this); } } instance of movieClip 801 { onClipEvent (load) { counter = 100; } onClipEvent (enterFrame) { _root.spark.call(this); } } } movieClip 804 { } movieClip 805 land512 { instance of movieClip 804 { onClipEvent (load) { _alpha = 0; alpha = 100; if (_root.keysPressed eq true) { _visible = false; _alpha = 0; alpha = 0; } } onClipEvent (enterFrame) { _alpha = _alpha + (alpha - _alpha) / 10; if (Key.isDown(87) || Key.isDown(68) || Key.isDown(65) && _root.keysPressed !== true) { alpha = 0; _root.keysPressed = true; } } } } movieClip 808 { } movieClip 809 { } movieClip 810 { instance bulb2 of movieClip 809 { onClipEvent (load) { xScale = _xscale; } onClipEvent (enterFrame) { _yscale = _xscale; _xscale = _xscale + (xScale - _xscale) / 20; } } instance bulb1 of movieClip 809 { onClipEvent (load) { xScale = _xscale; } onClipEvent (enterFrame) { _yscale = _xscale; _xscale = _xscale + (xScale - _xscale) / 20; } } } movieClip 811 land511 { instance of movieClip 790 { onClipEvent (load) { counter = -100; } onClipEvent (enterFrame) { _root.spark.call(this); } } instance of movieClip 801 { onClipEvent (load) { counter = 200; } onClipEvent (enterFrame) { _root.spark.call(this); } } instance light of movieClip 810 { onClipEvent (enterFrame) { _alpha = 70 + random(30); } } } movieClip 813 { } movieClip 815 { } movieClip 819 { } movieClip 820 { instance of movieClip 819 { onClipEvent (load) { rotateTo = random(60) - random(60); rotateFrom = -130; _rotation = rotateFrom; } onClipEvent (enterFrame) { if (_root.character33Satisfied eq true) { _rotation = _rotation + (rotateTo - _rotation) / 100; } if (_root.stats.fader._alpha > 10) { rotateTo = rotateFrom; speed = 10; } } } } movieClip 821 { instance of movieClip 820 { onClipEvent (load) { rotateTo = random(60) - random(60); rotateFrom = -80; _rotation = rotateFrom; } onClipEvent (enterFrame) { if (_root.character33Satisfied eq true) { _rotation = _rotation + (rotateTo - _rotation) / 100; } if (_root.stats.fader._alpha > 10) { rotateTo = rotateFrom; speed = 10; } } } } movieClip 822 land510 { instance of movieClip 813 { onClipEvent (load) { _alpha = 0; alpha = 0; randomNum = 0; } onClipEvent (enterFrame) { trace(alpha); _alpha = _alpha + ((alpha - _alpha) / 20 + random(randomNum)); if (_root.character33Satisfied eq true && alpha == 0) { this.sound = new Sound(this); this.sound.setVolume(80); this.sound.attachSound('lastChairStart'); this.sound.start(); alpha = 30; randomNum = 10; } } } instance of movieClip 815 { onClipEvent (enterFrame) { _rotation = _parent.chair._y - _parent.chair.yOrig; } } instance of movieClip 815 { onClipEvent (enterFrame) { _rotation = _parent.chair._y - _parent.chair.yOrig; } } instance of movieClip 815 { onClipEvent (enterFrame) { _rotation = _parent.chair._y - _parent.chair.yOrig; } } instance of movieClip 815 { onClipEvent (enterFrame) { _rotation = _parent.chair._y - _parent.chair.yOrig; } } instance of movieClip 821 { onClipEvent (load) { rotateTo = random(100) - random(150); rotateFrom = -60 - random(70); _rotation = rotateFrom; speed = 100; } onClipEvent (enterFrame) { if (_root.character33Satisfied eq true) { _rotation = _rotation + (rotateTo - _rotation) / speed; } if (_root.stats.fader._alpha > 10) { rotateTo = rotateFrom; speed = 10; } } } instance of movieClip 821 { onClipEvent (load) { rotateTo = random(100) - random(150); rotateFrom = -60 - random(70); _rotation = rotateFrom; speed = 100; } onClipEvent (enterFrame) { if (_root.character33Satisfied eq true) { _rotation = _rotation + (rotateTo - _rotation) / speed; } if (_root.stats.fader._alpha > 10) { rotateTo = rotateFrom; speed = 10; } } } instance of movieClip 821 { onClipEvent (load) { rotateTo = random(100) - random(150); rotateFrom = -60 - random(70); _rotation = rotateFrom; speed = 100; } onClipEvent (enterFrame) { if (_root.character33Satisfied eq true) { _rotation = _rotation + (rotateTo - _rotation) / speed; } if (_root.stats.fader._alpha > 10) { rotateTo = rotateFrom; speed = 10; } } } instance of movieClip 821 { onClipEvent (load) { rotateTo = random(100) - random(150); rotateFrom = -60 - random(70); _rotation = rotateFrom; speed = 100; } onClipEvent (enterFrame) { if (_root.character33Satisfied eq true) { _rotation = _rotation + (rotateTo - _rotation) / speed; } if (_root.stats.fader._alpha > 10) { rotateTo = rotateFrom; speed = 10; } } } instance of movieClip 821 { onClipEvent (load) { rotateTo = random(100) - random(150); rotateFrom = -60 - random(70); _rotation = rotateFrom; speed = 100; } onClipEvent (enterFrame) { if (_root.character33Satisfied eq true) { _rotation = _rotation + (rotateTo - _rotation) / speed; } if (_root.stats.fader._alpha > 10) { rotateTo = rotateFrom; speed = 10; } } } instance of movieClip 821 { onClipEvent (load) { rotateTo = random(100) - random(150); rotateFrom = -60 - random(70); _rotation = rotateFrom; speed = 100; } onClipEvent (enterFrame) { if (_root.character33Satisfied eq true) { _rotation = _rotation + (rotateTo - _rotation) / speed; } if (_root.stats.fader._alpha > 10) { rotateTo = rotateFrom; speed = 10; } } } instance of movieClip 821 { onClipEvent (load) { rotateTo = random(100) - random(150); rotateFrom = -60 - random(70); _rotation = rotateFrom; speed = 100; } onClipEvent (enterFrame) { if (_root.character33Satisfied eq true) { _rotation = _rotation + (rotateTo - _rotation) / speed; } if (_root.stats.fader._alpha > 10) { rotateTo = rotateFrom; speed = 10; } } } } movieClip 824 { } movieClip 826 { } movieClip 828 { } movieClip 829 { } movieClip 830 land509 { instance of movieClip 829 { onClipEvent (load) { fly = false; _visible = false; xSpeed = 5 + random(2) + 1 / random(10); ySpeed = 1 / random(20); _xscale = 15 + random(25); _yscale = _xscale; _y = random(90); this.gotoAndPlay(random(10)); } onClipEvent (enterFrame) { xDist = _parent._parent._x + _parent._x - _root.skinny._x; if (xDist > -10 && xDist < 10 && fly eq false) { _x = _x + (Stage.width / 2 + this._width); fly = true; } if (fly eq true) { _x = _x - xSpeed; _y = _y - ySpeed; _visible = true; } else { _visible - false; } } } instance of movieClip 829 { onClipEvent (load) { fly = false; _visible = false; xSpeed = 5 + random(2) + 1 / random(10); ySpeed = 1 / random(20); _xscale = 15 + random(25); _yscale = _xscale; _y = random(90); this.gotoAndPlay(random(10)); } onClipEvent (enterFrame) { xDist = _parent._parent._x + _parent._x - _root.skinny._x; if (xDist > -10 && xDist < 10 && fly eq false) { _x = _x + (Stage.width / 2 + this._width); fly = true; } if (fly eq true) { _x = _x - xSpeed; _y = _y - ySpeed; _visible = true; } else { _visible - false; } } } instance of movieClip 829 { onClipEvent (load) { fly = false; _visible = false; xSpeed = 5 + random(2) + 1 / random(10); ySpeed = 1 / random(20); _xscale = 15 + random(25); _yscale = _xscale; _y = random(90); this.gotoAndPlay(random(10)); } onClipEvent (enterFrame) { xDist = _parent._parent._x + _parent._x - _root.skinny._x; if (xDist > -10 && xDist < 10 && fly eq false) { _x = _x + (Stage.width / 2 + this._width); fly = true; } if (fly eq true) { _x = _x - xSpeed; _y = _y - ySpeed; _visible = true; } else { _visible - false; } } } instance of movieClip 829 { onClipEvent (load) { fly = false; _visible = false; xSpeed = 5 + random(2) + 1 / random(10); ySpeed = 1 / random(20); _xscale = 15 + random(25); _yscale = _xscale; _y = random(90); this.gotoAndPlay(random(10)); } onClipEvent (enterFrame) { xDist = _parent._parent._x + _parent._x - _root.skinny._x; if (xDist > -10 && xDist < 10 && fly eq false) { _x = _x + (Stage.width / 2 + this._width); fly = true; } if (fly eq true) { _x = _x - xSpeed; _y = _y - ySpeed; _visible = true; } else { _visible - false; } } } instance of movieClip 829 { onClipEvent (load) { fly = false; _visible = false; xSpeed = 5 + random(2) + 1 / random(10); ySpeed = 1 / random(20); _xscale = 15 + random(25); _yscale = _xscale; _y = random(90); this.gotoAndPlay(random(10)); } onClipEvent (enterFrame) { xDist = _parent._parent._x + _parent._x - _root.skinny._x; if (xDist > -10 && xDist < 10 && fly eq false) { _x = _x + (Stage.width / 2 + this._width); fly = true; } if (fly eq true) { _x = _x - xSpeed; _y = _y - ySpeed; _visible = true; } else { _visible - false; } } } instance of movieClip 829 { onClipEvent (load) { fly = false; _visible = false; xSpeed = 5 + random(2) + 1 / random(10); ySpeed = 1 / random(20); _xscale = 15 + random(25); _yscale = _xscale; _y = random(90); this.gotoAndPlay(random(10)); } onClipEvent (enterFrame) { xDist = _parent._parent._x + _parent._x - _root.skinny._x; if (xDist > -10 && xDist < 10 && fly eq false) { _x = _x + (Stage.width / 2 + this._width); fly = true; } if (fly eq true) { _x = _x - xSpeed; _y = _y - ySpeed; _visible = true; } else { _visible - false; } } } instance of movieClip 829 { onClipEvent (load) { fly = false; _visible = false; xSpeed = 5 + random(2) + 1 / random(10); ySpeed = 1 / random(20); _xscale = 15 + random(25); _yscale = _xscale; _y = random(90); this.gotoAndPlay(random(10)); } onClipEvent (enterFrame) { xDist = _parent._parent._x + _parent._x - _root.skinny._x; if (xDist > -10 && xDist < 10 && fly eq false) { _x = _x + (Stage.width / 2 + this._width); fly = true; } if (fly eq true) { _x = _x - xSpeed; _y = _y - ySpeed; _visible = true; } else { _visible - false; } } } instance of movieClip 829 { onClipEvent (load) { fly = false; _visible = false; xSpeed = 5 + random(2) + 1 / random(10); ySpeed = 1 / random(20); _xscale = 15 + random(25); _yscale = _xscale; _y = random(90); this.gotoAndPlay(random(10)); } onClipEvent (enterFrame) { xDist = _parent._parent._x + _parent._x - _root.skinny._x; if (xDist > -10 && xDist < 10 && fly eq false) { _x = _x + (Stage.width / 2 + this._width); fly = true; } if (fly eq true) { _x = _x - xSpeed; _y = _y - ySpeed; _visible = true; } else { _visible - false; } } } instance of movieClip 829 { onClipEvent (load) { fly = false; _visible = false; xSpeed = 5 + random(2) + 1 / random(10); ySpeed = 1 / random(20); _xscale = 15 + random(25); _yscale = _xscale; _y = random(90); this.gotoAndPlay(random(10)); } onClipEvent (enterFrame) { xDist = _parent._parent._x + _parent._x - _root.skinny._x; if (xDist > -10 && xDist < 10 && fly eq false) { _x = _x + (Stage.width / 2 + this._width); fly = true; } if (fly eq true) { _x = _x - xSpeed; _y = _y - ySpeed; _visible = true; } else { _visible - false; } } } instance of movieClip 829 { onClipEvent (load) { fly = false; _visible = false; xSpeed = 5 + random(2) + 1 / random(10); ySpeed = 1 / random(20); _xscale = 15 + random(25); _yscale = _xscale; _y = random(90); this.gotoAndPlay(random(10)); } onClipEvent (enterFrame) { xDist = _parent._parent._x + _parent._x - _root.skinny._x; if (xDist > -10 && xDist < 10 && fly eq false) { _x = _x + (Stage.width / 2 + this._width); fly = true; } if (fly eq true) { _x = _x - xSpeed; _y = _y - ySpeed; _visible = true; } else { _visible - false; } } } } movieClip 832 { } movieClip 835 { frame 1 { if (_parent._parent._parent._parent.spider.dead eq true) { stop(); } } frame 121 { if (_parent._parent._parent._parent.spider.dead eq true) { stop(); } } } movieClip 836 { instance of movieClip 835 { onClipEvent (load) { gotoAndPlay(random(65)); } } instance of movieClip 835 { onClipEvent (load) { gotoAndPlay(random(65)); } } } movieClip 837 { instance of movieClip 835 { onClipEvent (load) { gotoAndPlay(random(65)); } } instance of movieClip 835 { onClipEvent (load) { gotoAndPlay(random(65)); } } } movieClip 839 { } movieClip 841 { instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } frame 39 { stop(); } } movieClip 842 { frame 1 { stop(); } instance glow of movieClip 557 { onClipEvent (enterFrame) { if (_parent._parent.spider.dead eq false) { if (_parent._parent.spider.orbAmount > 0) { this._alpha = 100; } else { this._alpha = 0; } } else { this._alpha = 0; } } } frame 2 { stop(); } frame 3 { stop(); } } movieClip 843 land508 { instance orb of movieClip 439 { onClipEvent (load) { _root.bugLoad.call(this); } onClipEvent (enterFrame) { _rotation = _rotation + 5; if (_parent.spider.orbAmount > 0 && _parent.spider.jump eq false) { _root.bugInSpider.call(this); this._alpha = 100; } else { this._alpha = 0; } } } instance spider of movieClip 842 { onClipEvent (load) { this.pieceLocation = _root.cavesArray[0].length * (this._parent._parent.row - 1) + this._parent._parent.column; this.orbAmount = _root['spider' + _root.where + this.pieceLocation + 'Orbs']; trace(this.orbAmount); speedArray = [0, 5, -5]; xSpeed = speedArray[random(3)]; run = false; x = _x; y = _x; room = 50; counter = 0; xSpeed2 = 0; xscale = _xscale; jump = false; if (_root['spider' + _root.where + this.pieceLocation + 'Dead'] eq undefined) { this.dead = false; } else { this.dead = _root['spider' + _root.where + this.pieceLocation + 'Dead']; } if (this.dead eq true) { playDeath = false; } else { playDeath = true; } sound = new Sound(this); sound2 = new Sound(this); sound3 = new Sound(_parent); this.sound3.attachSound('spiderSit'); this.sound3.setVolume(40); sound3Started = false; this.hit = false; trace(this.orbAmount); } onClipEvent (enterFrame) { yDist = -(_root.skinny._y - (_parent._parent._y + _parent._y + _y)) + 200; xDist = _root.skinny._x - (_parent._parent._x + _parent._x + _x); radians = -Math.atan2(xDist, yDist); sound3Volume = Math.sqrt(Math.abs(xDist * xDist + yDist * yDist)); if (sound3Started eq false && this.dead eq false) { sound3.start(0, 99); sound3Started = true; } if (_root.hook.hitTest(_parent.orb) && _root.hook.shoot eq true && this.dead eq false && jump eq false) { this.dead = true; eval('_root.spider' + _root.where + this.pieceLocation + 'Dead') = true; } if (this.dead eq true) { sound3.stop(); sound3Started = false; gotoAndStop(3); if (this.playDeath eq false) { this.dieSequence.gotoAndStop(_totalframes); } } if (jump eq true) { sound3.stop(); sound3Started = false; ySpeed += 1; _x = _x + xSpeed; _y = _y + ySpeed; if (this.hitTest(_root.skinny.body) && this.hit eq false && _root.bugsCaught !== 0) { this.sound.attachSound('fairyLose'); this.sound.setVolume(80 + random(20)); this.sound.start(); this.sound2.attachSound('fairyCrunch'); this.sound2.setVolume(80 + random(20)); this.sound2.start(); this.orbAmount += 1; eval('_root.spider' + _root.where + this.pieceLocation + 'Orbs') = this.orbAmount; eval('_root.fairy' + _root.where + this.pieceLocation + 'Visible') = true; _root.bugsCaught -= 1; hit = true; } } else { if (this.dead eq false) { _xscale = (Math.abs(xDist) / xDist) * xscale; } } if (_root.skinny.hitTest(this) && jump eq false && this.dead eq false) { ySpeed = -(Math.cos(radians) * (Math.abs(yDist) / 15)); xSpeed = -(Math.sin(radians) * (Math.abs(xDist) / 12)); this.sound.attachSound('spiderJump'); this.sound.setVolume(80 + random(20)); this.sound.start(); gotoAndStop(2); jump = true; } } onClipEvent (unload) { sound3.stop(); } } } movieClip 846 { } movieClip 848 { } movieClip 850 { } movieClip 851 land507 { instance of movieClip 846 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 848 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 846 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 848 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 850 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 848 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 848 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 848 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 848 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 848 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 848 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 848 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 848 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 848 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 848 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 848 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } } movieClip 854 { } movieClip 859 { } movieClip 860 { } movieClip 861 { frame 1 { stop(); } frame 55 { prevFrame(); } } movieClip 862 land506 { instance of movieClip 861 { onClipEvent (enterFrame) { if (_root.skinny.hitTest(_parent)) { this.play(); } } } instance character of movieClip 729 { onClipEvent (load) { characterNumber = 32; this.bugWantNumber = 0; _root.earlyNarrativeLoad.call(this); } onClipEvent (enterFrame) { _root.earlyNarrativeTalk.call(this); } } } movieClip 864 { frame 1 { if (_parent._parent._parent._parent.spider.dead eq true) { stop(); } } frame 121 { if (_parent._parent._parent._parent.spider.dead eq true) { stop(); } } } movieClip 865 { instance of movieClip 864 { onClipEvent (load) { gotoAndPlay(random(65)); } } instance of movieClip 864 { onClipEvent (load) { gotoAndPlay(random(65)); } } } movieClip 866 { instance of movieClip 864 { onClipEvent (load) { gotoAndPlay(random(65)); } } instance of movieClip 864 { onClipEvent (load) { gotoAndPlay(random(65)); } } } movieClip 867 { instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } instance of movieClip 839 { onClipEvent (load) { xSpeed = random(5) - random(5); ySpeed = -random(15); gravity = 0; _xscale = random(100); _yscale = _xscale; _alpha = 80 + random(20); alphaSpeed = 5 + random(2); rotationSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _y = _y + ySpeed; ySpeed += 1; _x = _x + xSpeed; _rotation = _rotation + rotationSpeed; _alpha = _alpha - alphaSpeed; } } frame 39 { stop(); } } movieClip 868 { frame 1 { stop(); } instance glow of movieClip 557 { onClipEvent (enterFrame) { if (_parent._parent.spider.dead eq false) { if (_parent._parent.spider.orbAmount > 0) { this._alpha = 100; } else { this._alpha = 0; } } else { this._alpha = 0; } } } frame 2 { stop(); } frame 3 { stop(); } } movieClip 869 { frame 1 { stop(); } frame 10 { gotoAndStop(1); } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } instance of movieClip 605 { onClipEvent (load) { _alpha = 100; _xscale = 50 + random(50); _yscale = _xscale; speed = 1 + random(5); xSpeed = random(3) - random(3); ySpeed = random(3) - random(3); rotation = random(5) - random(5); } onClipEvent (enterFrame) { _root.smoke.call(this); } } frame 46 { stop(); } } movieClip 870 land505 { instance orb of movieClip 439 { onClipEvent (load) { _root.bugLoad.call(this); } onClipEvent (enterFrame) { _rotation = _rotation + 5; if (_parent.spider.orbAmount > 0 && _parent.spider.jump eq false) { _root.bugInSpider.call(this); this._alpha = 100; } else { this._alpha = 0; } } } instance spider of movieClip 868 { onClipEvent (load) { this.pieceLocation = _root.cavesArray[0].length * (this._parent._parent.row - 1) + this._parent._parent.column; this.orbAmount = _root['spider' + _root.where + this.pieceLocation + 'Orbs']; trace(this.orbAmount); speedArray = [0, 5, -5]; xSpeed = speedArray[random(3)]; run = false; x = _x; y = _x; room = 50; counter = 0; xSpeed2 = 0; xscale = _xscale; jump = false; if (_root['spider' + _root.where + this.pieceLocation + 'Dead'] eq undefined) { this.dead = false; } else { this.dead = _root['spider' + _root.where + this.pieceLocation + 'Dead']; } if (this.dead eq true) { playDeath = false; } else { playDeath = true; } sound = new Sound(this); sound2 = new Sound(this); sound3 = new Sound(_parent); this.sound3.attachSound('spiderSit'); this.sound3.setVolume(40); sound3Started = false; hit = false; } onClipEvent (enterFrame) { yDist = -(_root.skinny._y - (_parent._parent._y + _parent._y + _y)) + 200; xDist = _root.skinny._x - (_parent._parent._x + _parent._x + _x); radians = -Math.atan2(xDist, yDist); sound3Volume = Math.sqrt(Math.abs(xDist * xDist + yDist * yDist)); if (sound3Started eq false && this.dead eq false) { sound3.start(0, 99); sound3Started = true; } if (_root.hook.hitTest(_parent.orb) && _root.hook.shoot eq true && this.dead eq false && jump eq false) { this.dead = true; eval('_root.spider' + _root.where + this.pieceLocation + 'Dead') = true; } if (this.dead eq true) { sound3.stop(); sound3Started = false; gotoAndStop(3); if (this.playDeath eq false) { this.dieSequence.gotoAndStop(_totalframes); } } if (jump eq true) { sound3.stop(); sound3Started = false; ySpeed += 1; _x = _x + xSpeed; _y = _y + ySpeed; if (this.hitTest(_root.skinny.body) && this.hit eq false && _root.bugsCaught !== 0) { this.sound.attachSound('fairyLose'); this.sound.setVolume(80 + random(20)); this.sound.start(); this.sound2.attachSound('fairyCrunch'); this.sound2.setVolume(80 + random(20)); this.sound2.start(); this.orbAmount += 1; eval('_root.spider' + _root.where + this.pieceLocation + 'Orbs') = this.orbAmount; eval('_root.fairy' + _root.where + this.pieceLocation + 'Visible') = true; _root.bugsCaught -= 1; hit = true; } } else { if (this.dead eq false) { _xscale = (Math.abs(xDist) / xDist) * xscale; } } if (_root.skinny.hitTest(this) && jump eq false && this.dead eq false && _parent.box.broken eq true) { ySpeed = -(Math.cos(radians) * (Math.abs(yDist) / 15)); xSpeed = -(Math.sin(radians) * (Math.abs(xDist) / 6)); this.sound.attachSound('spiderJump'); this.sound.setVolume(80 + random(20)); this.sound.start(); gotoAndStop(2); jump = true; } } onClipEvent (unload) { sound3.stop(); } } instance box of movieClip 869 { onClipEvent (load) { this.health = 2; _root.boxBreakLoad.call(this); } onClipEvent (enterFrame) { _root.boxBreak.call(this); } } } movieClip 871 land504 { instance orb of movieClip 439 { onClipEvent (load) { _root.bugLoad.call(this); } onClipEvent (enterFrame) { _rotation = _rotation + 5; if (_parent.spider.orbAmount > 0 && _parent.spider.jump eq false) { _root.bugInSpider.call(this); this._alpha = 100; } else { this._alpha = 0; } } } instance spider of movieClip 868 { onClipEvent (load) { this.pieceLocation = _root.cavesArray[0].length * (this._parent._parent.row - 1) + this._parent._parent.column; this.orbAmount = _root['spider' + _root.where + this.pieceLocation + 'Orbs']; trace(this.orbAmount); speedArray = [0, 5, -5]; xSpeed = speedArray[random(3)]; run = false; x = _x; y = _x; room = 50; counter = 0; xSpeed2 = 0; xscale = _xscale; jump = false; if (_root['spider' + _root.where + this.pieceLocation + 'Dead'] eq undefined) { this.dead = false; } else { this.dead = _root['spider' + _root.where + this.pieceLocation + 'Dead']; } if (this.dead eq true) { playDeath = false; } else { playDeath = true; } sound = new Sound(this); sound2 = new Sound(this); sound3 = new Sound(_parent); this.sound3.attachSound('spiderSit'); this.sound3.setVolume(40); sound3Started = false; hit = false; } onClipEvent (enterFrame) { yDist = -(_root.skinny._y - (_parent._parent._y + _parent._y + _y)) + 200; xDist = _root.skinny._x - (_parent._parent._x + _parent._x + _x); radians = -Math.atan2(xDist, yDist); sound3Volume = Math.sqrt(Math.abs(xDist * xDist + yDist * yDist)); if (sound3Started eq false && this.dead eq false) { sound3.start(0, 99); sound3Started = true; } if (_root.hook.hitTest(_parent.orb) && _root.hook.shoot eq true && this.dead eq false && jump eq false) { this.dead = true; eval('_root.spider' + _root.where + this.pieceLocation + 'Dead') = true; } if (this.dead eq true) { sound3.stop(); sound3Started = false; gotoAndStop(3); if (this.playDeath eq false) { this.dieSequence.gotoAndStop(_totalframes); } } if (jump eq true) { sound3.stop(); sound3Started = false; ySpeed += 1; _x = _x + xSpeed; _y = _y + ySpeed; if (this.hitTest(_root.skinny.body) && hit eq false && _root.bugsCaught !== 0) { this.sound.attachSound('fairyLose'); this.sound.setVolume(80 + random(20)); this.sound.start(); this.sound2.attachSound('fairyCrunch'); this.sound2.setVolume(80 + random(20)); this.sound2.start(); this.orbAmount += 1; eval('_root.spider' + _root.where + this.pieceLocation + 'Orbs') = this.orbAmount; eval('_root.fairy' + _root.where + this.pieceLocation + 'Visible') = true; _root.bugsCaught -= 1; this.hit = true; } } else { if (this.dead eq false) { _xscale = (Math.abs(xDist) / xDist) * xscale; } } if (_root.skinny.body.hitTest(this) && jump eq false && this.dead eq false) { ySpeed = -(Math.cos(radians) * (Math.abs(yDist) / 15)); xSpeed = -(Math.sin(radians) * (Math.abs(xDist) / 6)); this.sound.attachSound('spiderJump'); this.sound.setVolume(80 + random(20)); this.sound.start(); gotoAndStop(2); _root.spiderAttacked = true; jump = true; } } onClipEvent (unload) { sound3.stop(); } } } movieClip 872 { } movieClip 874 { frame 1 { stop(); } instance of movieClip 872 { onClipEvent (load) { gotoAndPlay(random(165)); } } frame 39 { prevFrame(); } } movieClip 875 land503 { instance of movieClip 874 { onClipEvent (load) { rotation = -random(15) + random(20); } onClipEvent (enterFrame) { if (_root.skinny.hitTest(this)) { this._rotation = rotation; this.play(); } } } instance of movieClip 874 { onClipEvent (load) { rotation = -random(15) + random(20); } onClipEvent (enterFrame) { if (_root.skinny.hitTest(this)) { this._rotation = rotation; this.play(); } } } instance of movieClip 874 { onClipEvent (load) { rotation = -random(15) + random(20); } onClipEvent (enterFrame) { if (_root.skinny.hitTest(this)) { this._rotation = rotation; this.play(); } } } instance of movieClip 874 { onClipEvent (load) { rotation = -random(15) + random(20); } onClipEvent (enterFrame) { if (_root.skinny.hitTest(this)) { this._rotation = rotation; this.play(); } } } instance of movieClip 874 { onClipEvent (load) { rotation = -random(15) + random(20); } onClipEvent (enterFrame) { if (_root.skinny.hitTest(this)) { this._rotation = rotation; this.play(); } } } } movieClip 876 land502 { instance of movieClip 850 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 848 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 850 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 848 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 850 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 848 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 848 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 848 { onClipEvent (load) { _rotation = random(40) - random(40); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; _x = random(90); } onClipEvent (enterFrame) { _root.grass.call(this); } } } movieClip 878 { instance of movieClip 317 { onClipEvent (enterFrame) { _rotation = _rotation + 4; } } } movieClip 879 { instance of movieClip 878 { onClipEvent (enterFrame) { _rotation = _rotation - 4; } } } movieClip 880 land501 { instance of movieClip 879 { onClipEvent (load) { rotateSpeed = 0; } onClipEvent (enterFrame) { rotateSpeed += (3 - rotateSpeed) / 100; _rotation = _rotation + rotateSpeed; if (_root.hook.hitTest(this)) { rotateSpeed = random(20) - random(20); } } } } movieClip 882 { } movieClip 883 land500 { instance of movieClip 848 { onClipEvent (load) { _rotation = random(20) - random(20); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 882 { onClipEvent (load) { _rotation = random(20) - random(20); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 882 { onClipEvent (load) { _rotation = random(20) - random(20); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 882 { onClipEvent (load) { _rotation = random(20) - random(20); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 882 { onClipEvent (load) { _rotation = random(20) - random(20); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; } onClipEvent (enterFrame) { _root.grass.call(this); } } instance of movieClip 848 { onClipEvent (load) { _rotation = random(20) - random(20); rotation = _rotation; rotateOrig = 0; _height = 40 + random(30); _width = 15 + random(20); height = _height; } onClipEvent (enterFrame) { _root.grass.call(this); } } } movieClip 885 { instance of movieClip 790 { onClipEvent (load) { counter = -100; } onClipEvent (enterFrame) { _root.spark.call(this); } } instance of movieClip 801 { onClipEvent (load) { counter = -150; } onClipEvent (enterFrame) { _root.spark.call(this); } } } movieClip 888 { } movieClip 889 { } movieClip 891 { } movieClip 892 { frame 1 { characterType = 'man1'; } instance of movieClip 889 { onClipEvent (load) { _root.shiverLoad.call(this); } onClipEvent (enterFrame) { _root.shiver.call(this); } } instance of movieClip 891 { onClipEvent (load) { _root.shiverLoad.call(this); } onClipEvent (enterFrame) { _root.shiver.call(this); } } } movieClip 894 { instance light of movieClip 810 { onClipEvent (load) { _alpha = -100; alpha = -100; } onClipEvent (enterFrame) { _alpha = _alpha + ((alpha - _alpha) / 10 + random(20)); } } } // unknown tag 88 length 70 movieClip 897 { } movieClip 898 { frame 1 { stop(); } } movieClip 899 { instance orb of movieClip 438 { onClipEvent (load) { alpha = 0; _alpha = 0; } onClipEvent (enterFrame) { _alpha = _alpha + (alpha - _alpha) / 10; } } instance of movieClip 897 { onClipEvent (load) { part1 = false; _visible = false; this._alpha = 0; this.alpha = 0; } onClipEvent (enterFrame) { _alpha = _alpha + (alpha - _alpha) / 5; if (_root.skinnyTalking eq true) { part1 = true; } if (_root.skinnyTalking eq false && part1 eq true) { _visible = true; } if (_parent._parent.character.satisfied eq false) { if (_parent._parent.character.bugWantNumber > 0 && _parent.orb._alpha < 80) { this.alpha = 100; this.amount.text = _parent._parent.character.bugWantNumber; } else { this.alpha = 0; } } else { this.alpha = 0; } } } frame 16 { prevFrame(); } } movieClip 900 land322 { instance character of movieClip 892 { onClipEvent (load) { characterNumber = 31; this.bugWantNumber = 6; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _root.characterTalk.call(this); } } instance lamp of movieClip 894 { onClipEvent (enterFrame) { _root.lamp.call(this); } } instance arrow of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 902 { } movieClip 905 { } movieClip 906 { frame 33 { stop(); } } movieClip 907 { frame 1 { stop(); } instance of movieClip 905 { onClipEvent (load) { gotoAndPlay(random(15)); } } frame 2 { stop(); } } movieClip 909 { } movieClip 911 { } movieClip 912 { frame 1 { characterType = 'man2'; } instance of movieClip 907 { onClipEvent (enterFrame) { if (_parent.satisfied eq true) { gotoAndStop(2); } } } instance of movieClip 907 { onClipEvent (enterFrame) { if (_parent.satisfied eq true) { gotoAndStop(2); } } } instance of movieClip 909 { onClipEvent (load) { _root.shiverLoad.call(this); } onClipEvent (enterFrame) { _root.shiver.call(this); } } instance of movieClip 911 { onClipEvent (load) { _root.shiverLoad.call(this); } onClipEvent (enterFrame) { _root.shiver.call(this); } } } movieClip 913 land321 { instance character of movieClip 912 { onClipEvent (load) { characterNumber = 30; this.bugWantNumber = 6; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _root.characterTalk.call(this); } } instance lamp of movieClip 894 { onClipEvent (enterFrame) { _root.lamp.call(this); } } instance arrow of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 914 land320 { instance character of movieClip 892 { onClipEvent (load) { characterNumber = 29; this.bugWantNumber = 6; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _root.characterTalk.call(this); } } instance lamp of movieClip 894 { onClipEvent (enterFrame) { _root.lamp.call(this); } } instance arrow of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 917 { } movieClip 919 { } movieClip 921 { } movieClip 922 { frame 1 { characterType = 'boy1'; } } movieClip 924 { } movieClip 926 { } movieClip 927 { instance arrow of movieClip 898 { onClipEvent (enterFrame) { _alpha = _alpha - 5; } } instance spaceBar of movieClip 926 { onClipEvent (load) { alpha = 0; _alpha = 0; } onClipEvent (enterFrame) { if (_root.skinnyTalking == false && _parent.orbNumber._visible eq false && _parent.orb.alpha == 0) { _alpha = _alpha + (100 - _alpha) / 10; } else { _alpha = _alpha + -_alpha / 10; } } } instance orb of movieClip 438 { onClipEvent (load) { alpha = 0; _alpha = 0; } onClipEvent (enterFrame) { _alpha = _alpha + (alpha - _alpha) / 10; } } instance orbNumber of movieClip 897 { onClipEvent (load) { part1 = false; _visible = false; this._alpha = 0; this.alpha = 0; } onClipEvent (enterFrame) { _alpha = _alpha + (alpha - _alpha) / 5; if (_root.skinnyTalking eq true) { part1 = true; } if (_root.skinnyTalking eq false && part1 eq true) { _parent.spaceBar._visible = false; _visible = true; } if (_parent._parent.character.satisfied eq false) { if (_parent._parent.character.bugWantNumber > 0 && _parent.orb._alpha < 80) { this.alpha = 100; this.amount.text = _parent._parent.character.bugWantNumber; } else { this.alpha = 0; } } else { this.alpha = 0; } } } frame 16 { prevFrame(); } } movieClip 928 land319 { instance hit of movieClip 9 { onClipEvent (enterFrame) { if (_parent.character.satisfied eq true) { _y = -1000; } } } instance character of movieClip 922 { onClipEvent (enterFrame) { _root.chief3Talk.call(this); _root.speakerDynamic.call(this); if (this.satisfied eq true && _root.skinnyTalking eq false && soundStarted eq false) { sound.start(); soundStarted = true; } } onClipEvent (load) { characterNumber = 28; _root.chief3TalkLoad.call(this); soundStarted = false; sound = new Sound(this); sound.attachSound('elevatorLoop'); } } instance of movieClip 924 { onClipEvent (load) { yStart = _y; y = yStart; } onClipEvent (enterFrame) { _y = _y + (y - _y) / 25; if (_parent.character.satisfied eq true && y eq yStart && _root.skinnyTalking eq false) { y = yStart - 115 - random(20); } } } instance door of movieClip 924 { onClipEvent (load) { yStart = _y; y = yStart; } onClipEvent (enterFrame) { _y = _y + (y - _y) / 25; if (_parent.character.satisfied eq true && y eq yStart && _root.skinnyTalking eq false) { y = yStart - 115 - random(20); } } } instance of movieClip 924 { onClipEvent (load) { yStart = _y; y = yStart; } onClipEvent (enterFrame) { _y = _y + (y - _y) / 25; if (_parent.character.satisfied eq true && y eq yStart && _root.skinnyTalking eq false) { y = yStart - 115 - random(20); } } } instance of movieClip 924 { onClipEvent (load) { yStart = _y; y = yStart; } onClipEvent (enterFrame) { _y = _y + (y - _y) / 25; if (_parent.character.satisfied eq true && y eq yStart && _root.skinnyTalking eq false) { y = yStart - 115 - random(20); } } } instance arrow of movieClip 927 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 930 { } movieClip 931 { frame 1 { characterType = 'woman2'; } instance of movieClip 907 { onClipEvent (enterFrame) { if (_parent.satisfied eq true) { gotoAndStop(2); } } } instance of movieClip 907 { onClipEvent (enterFrame) { if (_parent.satisfied eq true) { gotoAndStop(2); } } } instance of movieClip 930 { onClipEvent (load) { _root.shiverLoad.call(this); } onClipEvent (enterFrame) { _root.shiver.call(this); } } instance of movieClip 911 { onClipEvent (load) { _root.shiverLoad.call(this); } onClipEvent (enterFrame) { _root.shiver.call(this); } } } movieClip 932 land318 { instance character of movieClip 931 { onClipEvent (load) { characterNumber = 27; this.bugWantNumber = 6; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _root.characterTalk.call(this); } } instance lamp of movieClip 894 { onClipEvent (enterFrame) { _root.lamp.call(this); } } instance arrow of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 933 land317 { instance character of movieClip 912 { onClipEvent (load) { characterNumber = 26; this.bugWantNumber = 6; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _root.characterTalk.call(this); } } instance lamp of movieClip 894 { onClipEvent (enterFrame) { _root.lamp.call(this); } } instance arrow of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 935 { } movieClip 939 { } movieClip 943 { } movieClip 945 { frame 1 { characterType = 'dog'; } } movieClip 946 land330 { instance character of movieClip 945 { onClipEvent (load) { characterNumber = 37; this.bugWantNumber = 0; _root.narrativeLoad.call(this); } onClipEvent (enterFrame) { _root.narrativeTalk.call(this); } } instance arrow of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 949 { } movieClip 950 { } movieClip 952 324 { } movieClip 953 land329 { instance character of movieClip 950 { onClipEvent (load) { characterNumber = 35; this.bugWantNumber = 0; _root.earlyNarrativeLoad.call(this); } onClipEvent (enterFrame) { _root.earlyNarrativeTalk.call(this); } } instance of movieClip 952 324 { onClipEvent (load) { radians = 0; _rotation = 0; rotation = 0; screamed = false; } onClipEvent (enterFrame) { _rotation = _rotation + (rotation - _rotation) / 10; xDist = _parent._parent._x + _parent._x - _root.skinny._x; trace(xDist); if (xDist < 25 && screamed eq false) { this.sound = new Sound(); this.sound.attachSound('scream'); this.sound.start(); screamed = true; } if (_parent.character.satisfied eq true) { rotation = -80; } else { rotation = 0; } } } instance arrow of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 954 land328 { instance character of movieClip 950 { onClipEvent (load) { characterNumber = 34; this.bugWantNumber = 0; _root.earlyNarrativeLoad.call(this); } onClipEvent (enterFrame) { _root.earlyNarrativeTalk.call(this); } } instance of movieClip 952 324 { onClipEvent (load) { radians = 0; _rotation = 0; rotation = 0; screamed = false; } onClipEvent (enterFrame) { _rotation = _rotation + (rotation - _rotation) / 10; xDist = _parent._parent._x + _parent._x - _root.skinny._x; trace(xDist); if (xDist < 25 && screamed eq false) { this.sound = new Sound(); this.sound.attachSound('scream'); this.sound.start(); screamed = true; } if (_parent.character.satisfied eq true) { rotation = -80; } else { rotation = 0; } } } instance arrow of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 955 land326 { instance of movieClip 9 { onClipEvent (enterFrame) { if (_root.skinny.hitTest(this)) { _root.lightning.stormBegins = true; } } } } movieClip 956 land325 { instance character of movieClip 922 { onClipEvent (load) { characterNumber = 33; this.bugWantNumber = 3; _root.characterTalkLoad.call(this); this.head.sound = new Sound(this); this.head.sound.attachSound('engineLoop'); soundStarted = false; counter = 0; } onClipEvent (enterFrame) { _root.characterTalk.call(this); } } instance levelChange of movieClip 9 { onClipEvent (load) { this.signRead = 'Mama\'s Nest'; this.sound = new Sound(this); this.sound.attachSound('engineLoop'); soundStarted = false; counter = 0; creditsStarted = false; } onClipEvent (enterFrame) { volume = 100 - _root.stats.fader._alpha; trace(volume); sound.setVolume(volume); if (volume < 10) { trace('STOPP'); sound.stop(); } if (_parent.character.satisfied eq true) { counter += 1; } if (counter > 100 && soundStarted eq false) { this.sound.start(0, 99); soundStarted = true; } if (_root.skinny.hitTest(this) && _root.stats.landName.text !== this.signRead && _root.skinnyTalking eq false && _root.character33Satisfied eq true) { _root.music.soundVolume = _root.music.soundMax - 1; _root.music.fadeSpeed = -0.2; _root.stats.landName._alpha = -100; _root.stats.alphaVelocity = 1; _root.stats.fader._alpha = -1; _root.stats.faderAlphaVelocity = 1; _root.locArray = 'credits'; _root.where = 'credits'; _root.skinnyRelocateX = 485; _root.skinnyRelocateY = 1334; _root.stats.landName.text = this.signRead; if (creditsStarted eq false) { _root.creditsSong = new Sound(_root); _root.creditsSong.attachSound('creditsTheme'); _root.creditsSong.start(); creditsStarted = true; } } } onClipEvent (unload) { this.sound.stop(); } } instance arrow of movieClip 927 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 957 land324 { instance character of movieClip 950 { onClipEvent (load) { characterNumber = 36; this.bugWantNumber = 0; _root.earlyNarrativeLoad.call(this); } onClipEvent (enterFrame) { _root.earlyNarrativeTalk.call(this); } } instance of movieClip 952 324 { onClipEvent (load) { radians = 0; _rotation = 0; rotation = 0; screamed = false; } onClipEvent (enterFrame) { _rotation = _rotation + (rotation - _rotation) / 10; xDist = _parent._parent._x + _parent._x - _root.skinny._x; trace(xDist); if (xDist < 25 && screamed eq false) { this.sound = new Sound(); this.sound.attachSound('scream'); this.sound.start(); screamed = true; } if (_parent.character.satisfied eq true) { rotation = -80; } else { rotation = 0; } } } instance arrow of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 960 { } movieClip 962 { frame 1 { characterType = 'wife1'; } } movieClip 963 land316 { frame 1 { surfaceType = 'grass'; } instance character of movieClip 729 { onClipEvent (load) { characterNumber = 23; this.bugWantNumber = 0; _root.earlyNarrativeLoad.call(this); } onClipEvent (enterFrame) { _root.earlyNarrativeTalk.call(this); } } instance of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 964 land315 { instance character of movieClip 922 { onClipEvent (load) { characterNumber = 12; this.bugWantNumber = 10; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _root.characterTalk.call(this); if (_root.skinnyTalking eq true && _root.skinny.hitTest(this)) { _root.orbsGettable = true; } } } instance of movieClip 9 { onClipEvent (load) { this.signRead = 'Mama\'s Nest'; } onClipEvent (enterFrame) { if (_root.skinny.hitTest(this) && _root.where eq 'beach' && _root.character12Satisfied eq true && _root.skinnyTalking eq false) { sound = new Sound(this); sound.attachSound('powerDown'); sound.setVolume(70); sound.start(); } if (_root.skinny.hitTest(this) && _root.stats.landName.text !== this.signRead && _root.skinnyTalking eq false && _root.character12Satisfied eq true) { _root.music.soundVolume = _root.music.soundMax - 1; _root.music.fadeSpeed = -0.2; _root.stats.landName._alpha = -100; _root.stats.alphaVelocity = 1; _root.stats.fader._alpha = -1; _root.stats.faderAlphaVelocity = 1; _root.locArray = 'uroVillage'; _root.where = 'uroVillage'; _root.skinnyRelocateX = 485; _root.skinnyRelocateY = 1325; _root.stats.landName.text = this.signRead; } } } instance arrow of movieClip 927 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 967 { instance of movieClip 859 { onClipEvent (load) { radians = 0; _rotation = 0; rotation = 0; atter = 0; } onClipEvent (enterFrame) { _alpha = 50 + random(50); if (_root.skinnyTalking eq true) { adder = 70; } else { adder = 0; } xDist = -(_parent._parent._parent._parent._parent._x + 40 - _root.skinny._x); yDist = -(_parent._parent._parent._parent._parent._y + adder - _root.skinny._y); radians = Math.atan2(xDist, yDist); rotation = radians / 0.0174532925199433; _rotation = _rotation + (rotation - _rotation) / 20; } } } movieClip 969 { frame 20 { stop(); } } movieClip 970 { frame 6 { stop(); } } movieClip 971 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 972 land313 { instance character of movieClip 971 { onClipEvent (enterFrame) { _root.chief2Talk.call(this); _root.speakerDynamic.call(this); } onClipEvent (load) { this.bugWantNumber = 0; characterNumber = 11; _root.chief2TalkLoad.call(this); } } instance of movieClip 927 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrowType2.call(this); } } instance of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrowType3.call(this); } } } movieClip 974 { } movieClip 975 { frame 1 { characterType = 'man1'; } instance of movieClip 974 { onClipEvent (load) { _root.shiverLoad.call(this); } onClipEvent (enterFrame) { _root.shiver.call(this); } } instance of movieClip 891 { onClipEvent (load) { _root.shiverLoad.call(this); } onClipEvent (enterFrame) { _root.shiver.call(this); } } } movieClip 976 { instance arrow of movieClip 898 { onClipEvent (enterFrame) { _alpha = _alpha - 5; } } instance orb of movieClip 438 { onClipEvent (load) { alpha = 0; _alpha = 0; } onClipEvent (enterFrame) { _alpha = _alpha + (alpha - _alpha) / 10; } } instance of movieClip 897 { onClipEvent (load) { part1 = false; _visible = false; this._alpha = 0; this.alpha = 0; } onClipEvent (enterFrame) { _alpha = _alpha + (alpha - _alpha) / 5; if (_root.skinnyTalking eq true) { part1 = true; } if (_root.skinnyTalking eq false && part1 eq true) { _visible = true; } if (_parent._parent.character.satisfied eq false) { if (_parent._parent.character.bugWantNumber > 0 && _parent.orb._alpha < 80) { this.alpha = 100; this.amount.text = _parent._parent.character.bugWantNumber; } else { this.alpha = 0; } } else { this.alpha = 0; } } } frame 16 { prevFrame(); } } movieClip 977 land312 { instance character of movieClip 975 { onClipEvent (load) { characterNumber = 10; this.bugWantNumber = 5; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _root.characterTalk.call(this); } } instance lamp of movieClip 894 { onClipEvent (enterFrame) { _root.lamp.call(this); } } instance arrow of movieClip 976 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 978 land311 { instance character of movieClip 892 { onClipEvent (load) { characterNumber = 9; this.bugWantNumber = 5; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _root.characterTalk.call(this); } } instance lamp of movieClip 894 { onClipEvent (enterFrame) { _root.lamp.call(this); } } instance arrow of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 979 { instance light of movieClip 810 { onClipEvent (load) { _alpha = -100; alpha = -100; } onClipEvent (enterFrame) { _alpha = _alpha + ((alpha - _alpha) / 10 + random(20)); } } instance light of movieClip 810 { onClipEvent (load) { _alpha = -100; alpha = -100; } onClipEvent (enterFrame) { _alpha = _alpha + ((alpha - _alpha) / 10 + random(20)); } } } movieClip 980 land310 { instance character of movieClip 912 { onClipEvent (load) { characterNumber = 8; this.bugWantNumber = 5; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _root.characterTalk.call(this); } } instance lamp of movieClip 979 { onClipEvent (enterFrame) { _root.lamp.call(this); } } instance arrow of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 981 land309 { instance character of movieClip 975 { onClipEvent (load) { characterNumber = 7; this.bugWantNumber = 5; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _root.characterTalk.call(this); } } instance lamp of movieClip 894 { onClipEvent (enterFrame) { _root.lamp.call(this); } } instance arrow of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 983 { } movieClip 984 { frame 1 { characterType = 'woman1'; } instance of movieClip 930 { onClipEvent (load) { _root.shiverLoad.call(this); } onClipEvent (enterFrame) { _root.shiver.call(this); } } instance of movieClip 983 { onClipEvent (load) { _root.shiverLoad.call(this); } onClipEvent (enterFrame) { _root.shiver.call(this); } } } movieClip 985 land308 { instance character of movieClip 984 { onClipEvent (load) { characterNumber = 6; this.bugWantNumber = 5; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _root.characterTalk.call(this); } } instance lamp of movieClip 894 { onClipEvent (enterFrame) { _root.lamp.call(this); } } instance arrow of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 987 land307 { frame 1 { surfaceType = 'grass'; } instance mic of movieClip 971 { onClipEvent (load) { } onClipEvent (enterFrame) { if (_root.skinnyTalking eq true) { this.gotoAndStop('up'); } else { this.gotoAndStop('down'); } } } instance character of movieClip 729 { onClipEvent (load) { characterNumber = 22; this.bugWantNumber = 0; _root.earlyNarrativeLoad.call(this); } onClipEvent (enterFrame) { _root.earlyNarrativeTalk.call(this); } } instance of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 988 land327 { frame 1 { surfaceType = 'grass'; } instance mic of movieClip 971 { onClipEvent (load) { } onClipEvent (enterFrame) { if (_root.skinnyTalking eq true) { this.gotoAndStop('up'); } else { this.gotoAndStop('down'); } } } instance character of movieClip 729 { onClipEvent (load) { characterNumber = 42; this.bugWantNumber = 0; _root.earlyNarrativeLoad.call(this); } onClipEvent (enterFrame) { if (_root.spiderAttacked eq true) { _root.earlyNarrativeTalk.call(this); } } } } movieClip 989 land306 { frame 1 { surfaceType = 'grass'; } instance mic of movieClip 971 { onClipEvent (load) { } onClipEvent (enterFrame) { if (_root.skinnyTalking eq true) { this.gotoAndStop('up'); } else { this.gotoAndStop('down'); } } } instance character of movieClip 729 { onClipEvent (load) { characterNumber = 20; this.bugWantNumber = 0; _root.earlyNarrativeLoad.call(this); } onClipEvent (enterFrame) { _root.earlyNarrativeTalk.call(this); } } instance of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 990 land305 { frame 1 { surfaceType = 'grass'; } instance mic of movieClip 971 { onClipEvent (load) { } onClipEvent (enterFrame) { if (_root.skinnyTalking eq true) { this.gotoAndStop('up'); } else { this.gotoAndStop('down'); } } } instance character of movieClip 729 { onClipEvent (load) { characterNumber = 19; this.bugWantNumber = 0; _root.earlyNarrativeLoad.call(this); step1 = false; } onClipEvent (enterFrame) { if (_root.skinny.hitTest(this) && _root.skinnyTalking eq true) { step1 = true; } if (_root.skinny.hitTest(this) && _root.skinnyTalking eq false && step1 eq true) { _root.armShootable = true; } _root.earlyNarrativeTalk.call(this); } } } movieClip 992 land304 { instance character of movieClip 971 { onClipEvent (enterFrame) { _root.chiefTalk.call(this); _root.speakerDynamic.call(this); if (_root.skinnyTalking eq true && _root.skinny.hitTest(this)) { _root.boxBreakable = true; } } onClipEvent (load) { characterNumber = 5; this.bugWantNumber = 0; _root.chiefTalkLoad.call(this); } } instance of movieClip 927 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrowType2.call(this); } } instance of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrowType3.call(this); } } } movieClip 993 land303 { instance character of movieClip 892 { onClipEvent (load) { characterNumber = 4; this.bugWantNumber = 4; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _root.characterTalk.call(this); } } instance lamp of movieClip 894 { onClipEvent (enterFrame) { _root.lamp.call(this); } } instance arrow of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 994 land302 { instance character of movieClip 975 { onClipEvent (load) { characterNumber = 3; this.bugWantNumber = 4; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _root.characterTalk.call(this); } } instance lamp of movieClip 894 { onClipEvent (enterFrame) { _root.lamp.call(this); } } instance arrow of movieClip 976 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 995 land301 { instance character of movieClip 892 { onClipEvent (load) { characterNumber = 2; this.bugWantNumber = 4; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _root.characterTalk.call(this); } } instance lamp of movieClip 894 { onClipEvent (enterFrame) { _root.lamp.call(this); } } instance arrow of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 996 land300 { instance character of movieClip 984 { onClipEvent (load) { characterNumber = 1; this.bugWantNumber = 4; _root.characterTalkLoad.call(this); } onClipEvent (enterFrame) { _root.characterTalk.call(this); } } instance lamp of movieClip 894 { onClipEvent (enterFrame) { _root.lamp.call(this); } } instance arrow of movieClip 899 { onClipEvent (load) { _root.arrowLoad.call(this); } onClipEvent (enterFrame) { _root.arrow.call(this); } } } movieClip 999 { } movieClip 1001 { } movieClip 1002 { } movieClip 1003 { frame 1 { stop(); } frame 2 { stop(); } instance stand of movieClip 922 { onClipEvent (load) { run = false; this.sound = new Sound(this); } onClipEvent (enterFrame) { trace(_root._currentframe); yDist = Math.abs(_parent._parent._y + _parent._y - (_root.skinny._y - 72)); if (run eq true) { gotoAndStop('run'); _x = _x + 5; } else { gotoAndStop('stand'); } if (yDist < 180 && run eq false) { this.sound.attachSound('laugh' + _root._currentframe - 1); this.sound.setVolume(35 + random(5)); this.sound.start(); run = true; } } } } movieClip 1004 land323 { instance of movieClip 1003 { onClipEvent (load) { run = false; this.sound = new Sound(this); } onClipEvent (enterFrame) { trace(_root._currentframe); yDist = Math.abs(_parent._parent._y + _parent._y - (_root.skinny._y - 72)); if (run eq true) { gotoAndStop('run'); _x = _x + 5; } else { gotoAndStop('stand'); } if (yDist < 180 && run eq false) { this.sound.attachSound('laugh1'); this.sound.setVolume(35 + random(5)); this.sound.start(); run = true; } } } } movieClip 1005 { } movieClip 1008 permObjlake { instance wheel of movieClip 146 { onClipEvent (enterFrame) { if (_root.hook.shoot eq false) { _rotation = _rotation + _parent.xSpeed / 2; } } } instance wheel of movieClip 577 { onClipEvent (enterFrame) { if (_root.hook.shoot eq false) { _rotation = _rotation + _parent.xSpeed; } } } instance hit of movieClip 1005 { onClipEvent (load) { sound = new Sound(this); } onClipEvent (enterFrame) { with (_parent) { if (_root.hook.shoot eq false) { xSpeed2 += (xSpeed - xSpeed2) / 10; _x += xSpeed2; xSpeed += -xSpeed / 100; _rotation = xSpeed2 * 1.4; } if (_x > xMax) { xSpeed += -xSpeed / 2; xSpeed -= (_x - xMax) / 20; } if (_x < xMin) { xSpeed += -xSpeed / 2; xSpeed -= (_x - xMin) / 20; } if (_x < xMax - 10 && _x > xMin + 10) { if (_root.skinny._x < xMin - 100) { xSpeed = -2; } if (_root.skinny._x > xMax + 100) { xSpeed = 2; } } } _root.permanentObjectSolidity.call(this); if (_root.hook.hitTest(_parent.wheel.hit2) && _root.hook.shoot eq true) { this.sound.attachSound('wheelSpin'); this.sound.setVolume(65 + random(5)); this.sound.start(); _parent.xSpeed = -5; _parent._x -= 1; _root.hook.shootSpeed = -Math.abs(_root.hook.shootSpeed); } if (_root.hook.hitTest(_parent.wheel.hit4) && _root.hook.shoot eq true) { this.sound.attachSound('wheelSpin'); this.sound.setVolume(65 + random(5)); this.sound.start(); _parent.xSpeed = -5; _parent._x -= 1; _root.hook.shootSpeed = -Math.abs(_root.hook.shootSpeed); } if (_root.hook.hitTest(_parent.wheel.hit1) && _root.hook.shoot eq true) { this.sound.attachSound('wheelSpin'); this.sound.setVolume(65 + random(5)); this.sound.start(); _parent._x += 1; _parent.xSpeed = 5; _root.hook.shootSpeed = -Math.abs(_root.hook.shootSpeed); } if (_root.hook.hitTest(_parent.wheel.hit3) && _root.hook.shoot eq true) { this.sound.attachSound('wheelSpin'); this.sound.setVolume(65 + random(5)); this.sound.start(); _parent._x += 1; _parent.xSpeed = 5; _root.hook.shootSpeed = -Math.abs(_root.hook.shootSpeed); } } } } movieClip 1009 land0 { } movieClip 1012 { } movieClip 1013 { } movieClip 1014 { } movieClip 1016 { frame 1 { stop(); } } movieClip 1019 { } movieClip 1020 { } movieClip 1023 { } movieClip 1026 { frame 1 { stop(); } } movieClip 1027 Preloader { frame 1 { function enterFrameHandler() { var v2 = 0; v2 = _root.getBytesLoaded() / _root.getBytesTotal(); if (loadingBar) { loadingBar.gotoAndStop(Number(v2 * (loadingBar.totalFrames - 1)) + 1); } if (v2 >= 1) { onEnterFrame = null; gotoAndStop('loaded'); } } stop(); var autoPlay; var className; onEnterFrame = enterFrameHandler; } frame 10 { function _onPlayClick() { _root.nextFrame(); _root.play(); _parent._onLoaded(); } if (playButton) { playButton.onRelease = _onPlayClick; playButton.stop(); } if (autoPlay) { _onPlayClick(null); } } } movieClip 1032 Newgrounds API Classes { #initclip Object.registerClass('Newgrounds API Classes', com.newgrounds.shims.APIShim); #endinitclip } movieClip 1061 { } movieClip 1064 { } movieClip 1069 { } movieClip 1071 { } movieClip 1072 { } movieClip 1073 { } movieClip 1074 FlashAd { #initclip Object.registerClass('FlashAd', com.newgrounds.components.FlashAdBase); #endinitclip frame 1 { stop(); } } movieClip 1075 APIConnector { frame 1 { function _onLoaded() { gotoAndStop('invisible'); if (_redirect) { com.newgrounds.API.loadOfficialVersion(); } } function _apiConnect() { var v2 = com.newgrounds.API; if (v2 && !v2.connected) { if (!apiId) { com.newgrounds.Logger.logError('No API ID entered in the API Connector component.', 'You can create an API ID for this submission at http://newgrounds.com/account/flashapi', 'Enter your API ID into the API Connector using the Component Inspector (Window -> Component Inspector).'); return undefined; } switch (debugMode) { case 'Off': default: v2.debugMode = v2.RELEASE_MODE; goto 1268; case 'Simulate Logged-in User': //Invalid switch } v2.debugMode = v2.DEBUG_MODE_LOGGED_IN; goto 1268; case 'Off': v2.debugMode = v2.DEBUG_MODE_LOGGED_OUT; goto 1268; case 'Simulate Logged-in User': v2.debugMode = v2.DEBUG_MODE_NEW_VERSION; goto 1268; case 'Simulate Logged-out User': v2.debugMode = v2.DEBUG_MODE_HOST_BLOCKED; label 1268: v2.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, _onConnected); v2.connect(_root, apiId, encryptionKey, movieVersion); } } function _onConnected(event) { if (redirectOnNewVersion && event.__get__success() && (event.__get__data()).newVersion) { _redirect = true; } if (redirectOnHostBlocked && !event.__get__success() && event.__get__error() == com.newgrounds.APIEvent.ERROR_HOST_BLOCKED) { _redirect = true; } if (_redirect) { gotoAndStop('adPreloader'); forceAlwaysOnTop(); } } function forceAlwaysOnTop() { var v2 = getNextHighestDepth(); swapDepths(v2); if (Stage) { _x = (Stage.width - _width) / 2; _y = (Stage.height - _height) / 2; _visible = true; } if (_root && _root instanceof MovieClip) { (MovieClip(_root)).stop(); } } stop(); if (_root && _root instanceof MovieClip) { (MovieClip(_root)).stop(); } var apiId; var encryptionKey; var movieVersion; var debugMode; var connectorType; var redirectOnHostBlocked; var redirectOnNewVersion; var _redirect; _x = Number(_x); _y = Number(_y); if (!debugMode) { debugMode = 'Simulate Logged-in User'; } if (!connectorType) { connectorType = 'Flash Ad + Preloader'; } switch (connectorType) { case 'Flash Ad + Preloader': gotoAndStop('adPreloader'); break; case 'Flash Ad Only': gotoAndStop('ad'); break; case 'Invisible': gotoAndStop('invisible'); } _apiConnect(); } instance ad of movieClip 1074 FlashAd { onClipEvent (construct) { apiId = ''; showBorder = true; } } instance loader of movieClip 1027 Preloader { onClipEvent (construct) { autoPlay = false; mainClass = ''; } } } frame 1 { entireMovie = new Sound(); entireMovie.setVolume(0); Stage.showMenu = false; } frame 1 { mochi.as2.MochiAd.showPreGameAd({'id': '506d3d6bc14e15f1', 'res': '620x330', 'no_bg': 'true'}); } movieClip 1039 __Packages.com.newgrounds.APIConnection { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.APIConnection) { var v1 = function () { this.reset(); }; com.newgrounds.APIConnection = v1; var v2 = v1.prototype; v2.__get__hostURL = function () { return this._hostURL; }; v2.__set__hostURL = function (value) { this._hostURL = value; this.hostDomain = null; if (this._hostURL && this._hostURL.indexOf('file://') != -1 || this._hostURL == 'localhost') { this.hostDomain = (this._hostURL.split('/'))[2]; } if (!this.hostDomain) { this.hostDomain = 'localhost'; } return this.__get__hostURL(); }; v2.__get__sandboxType = function () { return System.security.sandboxType; }; v2.__get__isNetworkHost = function () { switch (this.__get__sandboxType()) { return true; case 'localWithFile': case 'localWithNetwork': case 'localTrusted': case 'application': return false; case 'remote': } return true; }; v2.__get__hasUserSession = function () { return this.sessionId != null && this.sessionId != '' && this.publisherId != 0; }; v2.__get__connected = function () { return this.connectionState == com.newgrounds.APIConnection.CONNECTED; }; v2.reset = function () { this.connectionState = com.newgrounds.APIConnection.NOT_CONNECTED; this.encryptionKey = null; this.sessionId = null; this.userEmail = null; this.username = null; this.userId = 0; this.userpageFormat = 0; }; v2.assertInitialized = function () { if (!this.initialized) { com.newgrounds.Logger.logError('You must initialized the API using API.connect() before using this command.'); return false; } return true; }; v2.assertConnected = function () { if (!this.connectionState == com.newgrounds.APIConnection.CONNECTED) { com.newgrounds.Logger.logError('You must establish a connection using API.connect() before using this command.'); return false; } return true; }; v2.sendSimpleCommand = function (command, completeHandler, parameters, secureParameters) { if (parameters == undefined) { parameters = null; } if (secureParameters == undefined) { secureParameters = null; } var v2 = new com.newgrounds.APICommand(command); v2.__set__parameters(parameters); v2.__set__secureParameters(secureParameters); if (completeHandler != null) { v2.addEventListener(com.newgrounds.APIEvent.COMMAND_COMPLETE, completeHandler); } v2.send(this); }; v2.sendCommand = function (command) { command.send(this); }; v2.loadInBrowser = function (command, newWindow, parameters) { if (newWindow == undefined) { newWindow = true; } if (parameters == undefined) { parameters = null; } var v2 = new com.newgrounds.APICommand(command); v2.__set__parameters(parameters); v2.loadInBrowser(this, newWindow); }; v1.NOT_CONNECTED = 'notConnected'; v1.CONNECTING = 'connecting'; v1.CONNECTED = 'connected'; v2.connectionState = com.newgrounds.APIConnection.NOT_CONNECTED; v2.apiURL = 'http://www.ngads.com/gateway_v2.php'; v2.addProperty('connected', v2.__get__connected, function () {}); v2.addProperty('hasUserSession', v2.__get__hasUserSession, function () {}); v2.addProperty('hostURL', v2.__get__hostURL, v2.__set__hostURL); v2.addProperty('isNetworkHost', v2.__get__isNetworkHost, function () {}); v2.addProperty('sandboxType', v2.__get__sandboxType, function () {}); ASSetPropFlags(com.newgrounds.APIConnection.prototype, null, 1); } #endinitclip } movieClip 1034 __Packages.com.newgrounds.EventDispatcher { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.EventDispatcher) { var v1 = function () { this._listeners = {}; }; com.newgrounds.EventDispatcher = v1; var v2 = v1.prototype; v2.addEventListener = function (type, listener) { if (!this._listeners[type]) { this._listeners[type] = []; } if (typeof listener == 'function') { this._listeners[type].push({'target': null, 'func': listener}); } else { this._listeners[type].push(listener); } }; v2.removeEventListener = function (type, listener) { var v3 = this._listeners[type]; if (v3) { var v5 = v3.length; var v2 = 0; while (v2 < v5) { if (v3[v2].func == listener || v3[v2] == listener) { v3.splice(v2, 1); return undefined; } ++v2; } } }; v2.dispatchEvent = function (event) { var v4 = this._listeners[event.__get__type()]; if (v4) { var v5 = v4.length; var v2 = 0; while (v2 < v5) { var v3 = v4[v2]; v3.func.call(v3.target, event); ++v2; } } return true; }; ASSetPropFlags(com.newgrounds.EventDispatcher.prototype, null, 1); } #endinitclip } movieClip 1033 __Packages.com.newgrounds.Event { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.Event) { var v1 = function (type) { this._type = type; }; com.newgrounds.Event = v1; var v2 = v1.prototype; v2.__get__type = function () { return this._type; }; v2.addProperty('type', v2.__get__type, function () {}); ASSetPropFlags(com.newgrounds.Event.prototype, null, 1); } #endinitclip } movieClip 1035 __Packages.com.newgrounds.APIEventDispatcher { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.APIEventDispatcher) { var v1 = function () { super(); }; com.newgrounds.APIEventDispatcher = v1; com.newgrounds.APIEventDispatcher extends com.newgrounds.EventDispatcher; var v2 = v1.prototype; v1.__get__globalDispatcher = function () { return com.newgrounds.APIEventDispatcher._globalDispatcher; }; v1.__set__globalDispatcher = function (value) { com.newgrounds.APIEventDispatcher._globalDispatcher = value; return com.newgrounds.APIEventDispatcher.__get__globalDispatcher(); }; v1.initEventQueue = function () { setInterval(com.newgrounds.APIEventDispatcher.runEventQueue, 50); return []; }; v2.dispatchEvent = function (event) { com.newgrounds.APIEventDispatcher._eventQueue.push({'dispatcher': this, 'event': event}); return true; }; v2.actualDispatchEvent = function (event) { var v3 = super.dispatchEvent(event); if (com.newgrounds.APIEventDispatcher._globalDispatcher && this != com.newgrounds.APIEventDispatcher._globalDispatcher) { com.newgrounds.APIEventDispatcher._globalDispatcher.dispatchEvent(event); } }; v1.runEventQueue = function (event) { var v3 = com.newgrounds.APIEventDispatcher._eventQueue.length; if (v3) { var v4 = com.newgrounds.APIEventDispatcher._eventQueue; com.newgrounds.APIEventDispatcher._eventQueue = []; var v1 = 0; while (v1 < v3) { var v2 = v4[v1]; v2.dispatcher.actualDispatchEvent(v2.event); ++v1; } } }; v1._eventQueue = com.newgrounds.APIEventDispatcher.initEventQueue(); v1.addProperty('globalDispatcher', v1.__get__globalDispatcher, v1.__set__globalDispatcher); ASSetPropFlags(com.newgrounds.APIEventDispatcher.prototype, null, 1); } #endinitclip } movieClip 1038 __Packages.com.newgrounds.encoders.BaseN { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.BaseN) { var v1 = function (hash) { if (hash) { this._hash = hash; } else { this._hash = com.newgrounds.encoders.BaseN.DEFAULT_HASH; } this._base = this._hash.length; this._reverseHash = new Object(); var v2 = 0; while (v2 < this._hash.length) { this._reverseHash[this._hash.charAt(v2)] = v2; ++v2; } }; com.newgrounds.encoders.BaseN = v1; var v2 = v1.prototype; v2.encodeUint = function (number, minimumChars) { if (minimumChars == undefined) { minimumChars = 1; } var v2 = ''; var v3 = number; while (v3 != 0) { v2 = this._hash.charAt(v3 % this._base) + v2; v3 /= this._base; v3 = int(v3); } while (v2.length < minimumChars) { v2 = this._hash.charAt(0) + v2; } return v2; }; v2.decodeUint = function (encodedNumber) { var v3 = 0; var v2 = 0; while (v2 < encodedNumber.length) { v3 *= this._base; v3 += this._reverseHash[encodedNumber.charAt(v2)]; ++v2; } return v3; }; v1.DEFAULT_HASH = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~@#$%^&*()+|;/'; ASSetPropFlags(com.newgrounds.encoders.BaseN.prototype, null, 1); } #endinitclip } movieClip 1043 __Packages.com.newgrounds.APICommand { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.APICommand) { var v1 = function (command) { super(); this._command = command; this._parameters = new Object(); this._secureParameters = new Object(); this._hasTimeout = true; }; com.newgrounds.APICommand = v1; com.newgrounds.APICommand extends com.newgrounds.APIEventDispatcher; var v2 = v1.prototype; v1.stopPendingCommands = function () { for (var v2 in com.newgrounds.APICommand._pendingCommands) { var v1 = com.newgrounds.APICommand._pendingCommands[v2]; v1.close(); } com.newgrounds.APICommand._pendingCommands = []; }; v1.onThrottleTimer = function (event) { if (com.newgrounds.APICommand._throttleCount > 0) { --com.newgrounds.APICommand._throttleCount; } if (com.newgrounds.APICommand._commandQueue.length) { var v1 = com.newgrounds.APICommand._commandQueue.shift(); v1.command.send(v1.connection); } }; v1.encryptHex = function (hexValue) { var v4 = hexValue.length % 6; var v3 = ''; var v1 = 0; while (v1 < hexValue.length) { v3 += com.newgrounds.APICommand._encryptor.encodeUint(int('0x' + hexValue.substr(v1, 6)), 4); v1 += 6; } return v4.toString() + v3; }; v2.__get__command = function () { return this._command; }; v2.__set__command = function (value) { this._command = value; return this.__get__command(); }; v2.__get__hasTimeout = function () { return this._hasTimeout; }; v2.__set__hasTimeout = function (val) { this._hasTimeout = val; return this.__get__hasTimeout(); }; v2.__get__parameters = function () { return this._parameters; }; v2.__set__parameters = function (object) { this._parameters = new Object(); if (object) { for (var v3 in object) { this._parameters[v3] = object[v3]; } } return this.__get__parameters(); }; v2.__get__preventCache = function () { return this._preventCache; }; v2.__set__preventCache = function (value) { this._preventCache = value; return this.__get__preventCache(); }; v2.__get__secureParameters = function () { return this._secureParameters; }; v2.__set__secureParameters = function (object) { this._secureParameters = new Object(); if (object) { for (var v3 in object) { this._secureParameters[v3] = object[v3]; } } return this.__get__secureParameters(); }; v2.__get__hasSecureParameters = function () { for (var v2 in this._secureParameters) { return true; } return false; }; v2.addFile = function (filename, data, dataField, contentType) { if (contentType == undefined) { contentType = 'application/octet-stream'; } if (!this._files) { this._files = new Object(); } var v3 = {'filename': filename, 'data': data, 'dataField': dataField, 'contentType': contentType}; this._files[filename] = v3; }; v2.removeFile = function (filename) { if (this._files) { delete this._files[filename]; } }; v2.clearFiles = function () { this._files = null; }; v2.close = function () { if (this._loader) { clearInterval(this._timeoutTimer); var v2 = 0; while (v2 < com.newgrounds.APICommand._pendingCommands.length) { if (com.newgrounds.APICommand._pendingCommands[v2] == this) { com.newgrounds.APICommand._pendingCommands.splice(v2, 1); break; } ++v2; } this._loader = null; } }; v2.loadInBrowser = function (connection, newWindow) { this._parameters.command_id = this._command; this._parameters.tracker_id = connection.apiId ? connection.apiId : 1; if (connection.debug) { this._parameters.debug = 1; } var v3 = connection.apiURL + '?host=' + escape(connection.hostDomain); for (var v4 in this._parameters) { v3 += '&' + escape(v4) + '=' + escape(this._parameters[v4]); } var v6; if (newWindow) { v6 = '_blank'; } else { v6 = '_top'; } _root.getURL(v3, v6); }; v2.send = function (connection) { if (com.newgrounds.APICommand._throttleCount >= com.newgrounds.APICommand.THROTTLE_THRESHOLD) { com.newgrounds.APICommand._commandQueue.push({'connection': connection, 'command': this}); } else { this.sendInternal(connection); } }; v2.sendInternal = function (connection) { var v4; v4 = new LoadVars(); v4.command_id = this._command; v4.tracker_id = connection.apiId; if (connection.debug) { v4.debug = 1; } if (this._preventCache) { v4.seed = Math.random(); } var v2; var v3; var v7; for (v2 in this._parameters) { v3 = this._parameters[v2]; if (v3 != null) { if (typeof v3 == 'boolean') { v4[v2] = int(v3); } else { v4[v2] = v3; } } } if (this.__get__hasSecureParameters()) { var v6 = new Object(); for (v2 in this._secureParameters) { v3 = this._secureParameters[v2]; if (v3 != null) { if (typeof v3 == 'boolean') { v6[v2] = int(v3); } else { v6[v2] = v3; } } } var v8 = ''; v7 = 0; while (v7 < 16) { v8 += com.newgrounds.APICommand.ENCRYPTOR_RADIX.charAt(int(Math.random() * com.newgrounds.APICommand.ENCRYPTOR_RADIX.length)); ++v7; } v4.command_id = 'securePacket'; v6.command_id = this._command; v6.as_version = 3; v6.session_id = connection.sessionId; v6.user_email = connection.userEmail; v6.publisher_id = connection.publisherId; v6.seed = v8; var v13 = com.newgrounds.crypto.MD5.hash(v8); var v11 = com.newgrounds.crypto.RC4.encrypt(com.newgrounds.encoders.json.JSON.encode(v6), connection.encryptionKey); v4.secure = com.newgrounds.APICommand.encryptHex(v13 + v11); } com.newgrounds.Logger.logInternal('Sending packet:', v4); var v12; v12 = 'application/x-www-form-urlencoded'; for (v2 in v4) { if (typeof v4[v2] == 'object') { v4[v2] = com.newgrounds.encoders.json.JSON.encode(v4[v2]); } } if (this._files) { for (var v10 in this._files) { var v5 = this._files[v10]; if (typeof v5.data == 'string') { v4[v10] = v5.data; } else { v4[v10] = com.newgrounds.encoders.json.JSON.encode(v5.data); } } } com.newgrounds.APICommand._pendingCommands.push(this); ++com.newgrounds.APICommand._throttleCount; this.startLoader(connection.apiURL, v4, v12); }; v2.startLoader = function (url, data, contentType) { this._loader = LoadVars(data); this._loader.onData = this.as2CompleteHandler; this._loader.contentType = contentType; this._loader.sendAndLoad(url, this._loader, 'POST'); if (this._hasTimeout) { setInterval(this, this.onTimeout, com.newgrounds.APICommand.TIMEOUT_INTERVAL); } }; v2.as2CompleteHandler = function (data) { var v3; var v2 = 0; while (v2 < com.newgrounds.APICommand._pendingCommands.length) { if (com.newgrounds.APICommand._pendingCommands[v2]._loader == this) { v3 = com.newgrounds.APICommand._pendingCommands[v2]; break; } ++v2; } v3.onComplete(data); }; v2.onTimeout = function (event) { this.close(); com.newgrounds.Logger.logError('Command timed out.'); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_TIMED_OUT)); }; v2.onError = function (error) { com.newgrounds.Logger.logError('Error when sending command:', error); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_UNKNOWN)); this.close(); }; v2.onComplete = function (data) { try { if (!data || data == '') { throw new Error(); } com.newgrounds.Logger.logInternal('Received packet:', data); var v2 = com.newgrounds.encoders.json.JSON.decode(data); if (!v2) { throw new Error(); } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, v2, (v2 && v2.success) ? com.newgrounds.APIEvent.ERROR_NONE : com.newgrounds.APIEvent.ERROR_COMMAND_FAILED)); } catch (v0) { if (Error(v0) != null) { var e = Error(v0); com.newgrounds.Logger.logError('Invalid response returned from server: ' + data); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_BAD_RESPONSE)); } else { throw v0; } } this.close(); }; v1.TIMEOUT_INTERVAL = 10000; v1.THROTTLE_INTERVAL = 5000; v1.THROTTLE_THRESHOLD = 7; v1._throttleCount = 0; v1._commandQueue = []; v1._throttleTimer = setInterval(com.newgrounds.APICommand.onThrottleTimer, com.newgrounds.APICommand.THROTTLE_INTERVAL); v1.ENCRYPTOR_RADIX = '/g8236klvBQ#&|;Zb*7CEA59%s`Oue1wziFp$rDVY@TKxUPWytSaGHJ>dmoMR^<0~4qNLhc(I+fjn)X'; v1._encryptor = new com.newgrounds.encoders.BaseN(com.newgrounds.APICommand.ENCRYPTOR_RADIX); v1._pendingCommands = []; v1.CRLF = '\r\n'; v2.addProperty('command', v2.__get__command, v2.__set__command); v2.addProperty('hasSecureParameters', v2.__get__hasSecureParameters, function () {}); v2.addProperty('hasTimeout', v2.__get__hasTimeout, v2.__set__hasTimeout); v2.addProperty('parameters', v2.__get__parameters, v2.__set__parameters); v2.addProperty('preventCache', v2.__get__preventCache, v2.__set__preventCache); v2.addProperty('secureParameters', v2.__get__secureParameters, v2.__set__secureParameters); ASSetPropFlags(com.newgrounds.APICommand.prototype, null, 1); } #endinitclip } movieClip 1055 __Packages.com.newgrounds.API { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.API) { var v1 = function () {}; com.newgrounds.API = v1; var v2 = v1.prototype; v1.__get__connected = function () { return com.newgrounds.API._connection.__get__connected(); }; v1.__get__isNetworkHost = function () { return com.newgrounds.API._connection.__get__isNetworkHost(); }; v1.__get__apiId = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.apiId; }; v1.__get__debugMode = function () { return com.newgrounds.API._debugMode; }; v1.__set__debugMode = function (val) { com.newgrounds.API._debugMode = val; return com.newgrounds.API.__get__debugMode(); }; v1.__get__publisherId = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.publisherId; }; v1.__get__sessionId = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.sessionId; }; v1.__get__hostDomain = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.hostDomain; }; v1.__get__hostURL = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.__get__hostURL(); }; v1.__get__isNewgrounds = function () { return com.newgrounds.API._connection.publisherId == 1; }; v1.__get__hasUserSession = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.__get__hasUserSession(); }; v1.__get__username = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.username; }; v1.__get__userId = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.userId; }; v1.assertConnected = function (eventType) { if (eventType == undefined) { eventType = null; } if (com.newgrounds.API._connection.assertConnected()) { return true; } else { if (eventType) { com.newgrounds.API.dispatchEvent(eventType, null, com.newgrounds.APIEvent.ERROR_NOT_CONNECTED); } return false; } }; v1.__get__adsApproved = function () { return com.newgrounds.API._adsApproved; }; v1.__get__adFeedURL = function () { return com.newgrounds.API._adFeedURL; }; v1.__get__medals = function () { return com.newgrounds.API._medalsArray; }; v1.__get__scoreBoards = function () { return com.newgrounds.API._scoreBoardsArray; }; v1.__get__saveGroups = function () { return com.newgrounds.API._saveGroupsArray; }; v1.connect = function (_root, apiId, encryptionKey, movieVersion) { if (encryptionKey == undefined) { encryptionKey = null; } if (movieVersion == undefined) { movieVersion = ''; } com.newgrounds.APIEventDispatcher.__set__globalDispatcher(com.newgrounds.API._dispatcher); System.security.loadPolicyFile('http://apifiles.ngfiles.com/crossdomain.xml'); if (com.newgrounds.API._connection.initialized) { com.newgrounds.Logger.logError('Connection already in progress. Please call API.disconnect() before attempting another connection.'); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_NOT_CONNECTED); return undefined; } if (!apiId || apiId == '') { com.newgrounds.Logger.logError('No apiId given. Please use the API ID from your API settings page.'); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT); return undefined; } com.newgrounds.Logger.logMessage('====== Newgrounds API v' + com.newgrounds.API.VERSION + ' ======'); com.newgrounds.API._connection.connectionState = com.newgrounds.APIConnection.CONNECTING; _root = _root; com.newgrounds.API._movieVersion = movieVersion; com.newgrounds.API._connection.apiId = apiId; var v3 = apiId.indexOf(':'); if (v3 != -1) { com.newgrounds.API._connection.trackerId = int(apiId.substring(0, v3)); } else { com.newgrounds.API._connection.trackerId = int(apiId); } if (!com.newgrounds.API._connection.trackerId) { com.newgrounds.Logger.logError('Invalid API ID: ' + apiId); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT); return undefined; } com.newgrounds.API._connection.encryptionKey = encryptionKey; com.newgrounds.API._connection.initialized = true; com.newgrounds.API._connection.__set__hostURL(_root._url); com.newgrounds.API.doConnect(_root); }; v1.doConnect = function (flashVars) { if (com.newgrounds.API.__get__isNetworkHost() && com.newgrounds.API._debugMode != com.newgrounds.API.RELEASE_MODE) { com.newgrounds.Logger.logMessage('Live file detected, turning off debug mode.'); com.newgrounds.API._debugMode = com.newgrounds.API.RELEASE_MODE; } if (com.newgrounds.API._debugMode == com.newgrounds.API.RELEASE_MODE) { if (flashVars) { if (flashVars.NewgroundsAPI_UserName) { com.newgrounds.API._connection.username = flashVars.NewgroundsAPI_UserName; } if (flashVars.NewgroundsAPI_UserID) { com.newgrounds.API._connection.userId = flashVars.NewgroundsAPI_UserID; } if (flashVars.NewgroundsAPI_PublisherID) { com.newgrounds.API._connection.publisherId = flashVars.NewgroundsAPI_PublisherID; } if (flashVars.NewgroundsAPI_UserpageFormat) { com.newgrounds.API._connection.userpageFormat = flashVars.NewgroundsAPI_UserpageFormat; } if (flashVars.NewgroundsAPI_SessionID) { com.newgrounds.API._connection.sessionId = flashVars.NewgroundsAPI_SessionID; } if (flashVars.NewgroundsAPI_SandboxID) { com.newgrounds.API._bridge = new com.newgrounds.Bridge(flashVars.NewgroundsAPI_SandboxID); } } } else { com.newgrounds.API._connection.debug = true; if (com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_LOGGED_IN || com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_LOGGED_OUT) { com.newgrounds.API._connection.publisherId = 1; } if (com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_LOGGED_IN) { com.newgrounds.API._connection.sessionId = 'D3bu64p1U53R'; com.newgrounds.API._connection.userId = 10; com.newgrounds.API._connection.username = 'API-Debugger'; } } com.newgrounds.API._connection.sendSimpleCommand('connectMovie', com.newgrounds.API.onConnect, {'host': com.newgrounds.API._connection.hostDomain, 'movie_version': com.newgrounds.API._movieVersion}); }; v1.onConnect = function (event) { var v1 = event.__get__data(); if (!event.__get__success()) { com.newgrounds.Logger.logError('Unable to connect to the API.'); com.newgrounds.API._connection.reset(); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, event.__get__data(), event.__get__error()); return undefined; } if (com.newgrounds.API.__get__debugMode() != com.newgrounds.API.RELEASE_MODE) { com.newgrounds.API._adFeedURL = com.newgrounds.API.TEST_AD_FEED_URL; } else { if (v1.ad_url) { com.newgrounds.API._adFeedURL = unescape(v1.ad_url); } } switch (v1.ad_status) { case -1: com.newgrounds.Logger.logWarning('Your movie is not approved to run Flash Ads.'); break; case 0: com.newgrounds.Logger.logWarning('Your movie is still awaiting approval to run Flash Ads.'); case 1: com.newgrounds.Logger.logMessage('Your movie is approved to run Flash Ads!'); } com.newgrounds.API._adsApproved = v1.ad_status == 1; if (com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_HOST_BLOCKED || v1.deny_host) { com.newgrounds.Logger.logWarning(com.newgrounds.API._connection.hostDomain + ' does not have permission to host this movie!', 'Update your API configuration to allow this host.'); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, {'officialURL': unescape(v1.movie_url)}, com.newgrounds.APIEvent.ERROR_HOST_BLOCKED); com.newgrounds.API._connection.reset(); return undefined; } com.newgrounds.API._movieName = v1.movieName ? v1.movieName : ''; com.newgrounds.Logger.logMessage('Connecting to the Newgrounds API Gateway...', '----- ' + v1.movie_name + ' -----'); if (com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_NEW_VERSION) { v1.movie_version = 'Debug Mode'; } if (v1.movie_version) { com.newgrounds.Logger.logMessage('A new version of this movie is available.', 'Current version:\t' + com.newgrounds.API._movieVersion, 'Newest version:\t' + v1.movie_version, 'Use API.loadOfficialVersion() to link to the latest version.'); com.newgrounds.API._newVersion = true; } else { com.newgrounds.API._newVersion = false; } if (v1.request_portal_url) { com.newgrounds.API._connection.sendSimpleCommand('setPortalID', null, {'portal_url': com.newgrounds.API._connection.__get__hostURL()}); } com.newgrounds.API._connection.sendSimpleCommand('preloadSettings', com.newgrounds.API.onMetadataLoaded, {'publisher_id': com.newgrounds.API._connection.publisherId, 'user_id': com.newgrounds.API._connection.userId}); }; v1.onMetadataLoaded = function (event) { var v11 = event.__get__data(); var v1; var v7; if (!event.__get__success()) { com.newgrounds.Logger.logWarning('Unable to load movie metadata.'); com.newgrounds.API.disconnect(); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, null, event.__get__error()); return undefined; } var v10 = 0; if (v11.medals) { v10 = v11.medals.length; var v17; if (com.newgrounds.API.__get__hasUserSession()) { v17 = com.newgrounds.API.loadLocal('medals_unlocked_' + com.newgrounds.API.__get__username()); } else { v17 = com.newgrounds.API.loadLocal('medals_unlocked'); } v1 = 0; while (v1 < v10) { var v6 = v11.medals[v1]; var v14 = v6.medal_unlocked; var v16 = v17 && v17[v6.medal_id]; var v4 = new com.newgrounds.Medal(com.newgrounds.API._connection, v6.medal_id, v6.medal_name, com.newgrounds.API.__get__hasUserSession() ? v14 : v16, v6.medal_value, v6.medal_difficulty, v6.medal_icon); v4.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, com.newgrounds.API.onMedalUnlocked, false, 0, true); v4.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, com.newgrounds.API.onMedalUnlockConfirmed, false, 0, true); com.newgrounds.API._medals[v4.__get__name()] = v4; com.newgrounds.API._medalsArray.push(v4); com.newgrounds.Logger.logMessage(v4); if (com.newgrounds.API.__get__hasUserSession() && v16 && !v14) { com.newgrounds.Logger.logMessage('Server missed the "' + v4.__get__name() + '" unlock. Resending...'); v4.unlock(); } ++v1; } } com.newgrounds.Logger.logMessage(v10 + ' medal' + ((v10 != 1) ? 's' : '') + ' initialized.'); v10 = 0; if (v11.score_boards) { v10 = v11.score_boards.length; v1 = 0; while (v1 < v10) { var v15 = v11.score_boards[v1]; var v9 = new com.newgrounds.ScoreBoard(com.newgrounds.API._connection, v15.name, v15.id); com.newgrounds.API._scoreBoards[v9.__get__name()] = v9; com.newgrounds.API._scoreBoardsArray.push(v9); com.newgrounds.Logger.logMessage(v9); ++v1; } } com.newgrounds.Logger.logMessage(v10 + ' scoreboard' + ((v10 != 1) ? 's' : '') + ' initialized.'); v10 = 0; if (v11.save_groups) { v10 = v11.save_groups.length; v1 = 0; while (v1 < v10) { var v2 = v11.save_groups[v1]; var v13 = []; if (v2.keys) { v7 = 0; while (v7 < v2.keys.length) { var v5 = v2.keys[v7]; v13.push(new com.newgrounds.SaveKey(v5.name, v5.id, v5.type)); ++v7; } } var v12 = []; if (v2.ratings) { v1 = 0; while (v1 < v2.ratings.length) { var v3 = v2.ratings[v1]; v12.push(new com.newgrounds.SaveRating(v3.name, v3.id, v3.float, v3.min, v3.max)); ++v1; } } var v8 = new com.newgrounds.SaveGroup(com.newgrounds.API._connection, v2.group_name, v2.group_id, v2.group_type, v13, v12); com.newgrounds.API._saveGroups[v8.__get__name()] = v8; com.newgrounds.API._saveGroupsArray.push(v8); com.newgrounds.Logger.logMessage(v8); ++v1; } } com.newgrounds.Logger.logMessage(v10 + ' save group' + ((v10 != 1) ? 's' : '') + ' initialized.'); if (v11.save_file_path) { com.newgrounds.API._saveFilePath = v11.save_file_path + '/'; com.newgrounds.SaveFile._saveFilePath = com.newgrounds.API._saveFilePath; com.newgrounds.Logger.logInternal('Save file path: ' + com.newgrounds.API._saveFilePath); } if (v11.image_file_path) { com.newgrounds.API._imageFilePath = v11.image_file_path + '/'; com.newgrounds.SaveFile._imageFilePath = com.newgrounds.API._imageFilePath; com.newgrounds.Logger.logInternal('Image file path: ' + com.newgrounds.API._imageFilePath); } com.newgrounds.Logger.logMessage('Connection complete!'); com.newgrounds.API._connection.connectionState = com.newgrounds.APIConnection.CONNECTED; com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, {'movieName': com.newgrounds.API._movieName, 'newVersion': com.newgrounds.API._newVersion}); }; v1.disconnect = function () { if (!com.newgrounds.API._connection.__get__connected()) { com.newgrounds.Logger.logWarning('The Newgrounds API is already disconnected.'); return undefined; } com.newgrounds.API._connection.reset(); for (var v2 in com.newgrounds.API._medals) { var v1 = com.newgrounds.API._medals[v2]; v1.removeEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, com.newgrounds.API.onMedalUnlocked); v1.removeEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, com.newgrounds.API.onMedalUnlockConfirmed); } com.newgrounds.API._newVersion = false; com.newgrounds.API._medals = new Object(); com.newgrounds.API._medalsArray = []; com.newgrounds.API._scoreBoards = new Object(); com.newgrounds.API._scoreBoardsArray = []; com.newgrounds.API._saveGroups = new Object(); com.newgrounds.API._saveGroupsArray = []; com.newgrounds.API._sharedObjects = new Object(); com.newgrounds.API._imageFilePath = null; com.newgrounds.API._saveFilePath = null; com.newgrounds.Logger.logMessage('Disconnected from the Newgrounds API.'); }; v1.loadNewgrounds = function () { com.newgrounds.API._connection.loadInBrowser('loadNewgrounds'); }; v1.loadOfficialVersion = function () { if (com.newgrounds.API._connection.assertInitialized()) { com.newgrounds.API._connection.loadInBrowser('loadOfficialVersion', false); } }; v1.loadMySite = function () { if (com.newgrounds.API._connection.assertInitialized()) { com.newgrounds.API._connection.loadInBrowser('loadMySite'); } }; v1.loadCustomLink = function (linkName) { if (com.newgrounds.API._connection.assertInitialized()) { com.newgrounds.API._connection.loadInBrowser('loadCustomLink', true, {'link': linkName}); } }; v1.getMedal = function (medalName) { return com.newgrounds.API._medals[medalName]; }; v1.unlockMedal = function (medalName) { if (!com.newgrounds.API.assertConnected()) { return undefined; } var v1 = com.newgrounds.API._medals[medalName]; if (!v1) { com.newgrounds.Logger.logError('No medal named "' + medalName + '" w.'); return undefined; } v1.unlock(); }; v1.onMedalUnlocked = function (event) { if (event.__get__success()) { var v2 = com.newgrounds.Medal(event.__get__data()); var v1; if (com.newgrounds.API.__get__hasUserSession()) { v1 = com.newgrounds.API.loadLocal('medals_unlocked_' + com.newgrounds.API.__get__username()); if (!v1) { v1 = new Object(); } v1[v2.__get__id()] = true; com.newgrounds.API.saveLocal('medals_unlocked_' + com.newgrounds.API.__get__username(), v1); } else { v1 = com.newgrounds.API.loadLocal('medals_unlocked'); if (!v1) { v1 = new Object(); } v1[(com.newgrounds.Medal(event.__get__data())).__get__id()] = true; com.newgrounds.API.saveLocal('medals_unlocked', v1); com.newgrounds.Logger.logMessage('User instanceof not logged in. Medal "' + v2.__get__name() + '" unlocked locally.'); } } }; v1.onMedalUnlockConfirmed = function (event) { if (com.newgrounds.API.__get__hasUserSession()) { var v1 = com.newgrounds.API.loadLocal('medals_unlocked_' + com.newgrounds.API.__get__username()); if (!v1) { v1 = new Object(); } else { delete v1[(com.newgrounds.Medal(event.__get__data())).__get__id()]; } com.newgrounds.API.saveLocal('medals_unlocked_' + com.newgrounds.API.__get__username(), v1); } }; v1.getScoreBoard = function (scoreBoardName) { if (!com.newgrounds.API.assertConnected()) { return null; } return com.newgrounds.API._scoreBoards[scoreBoardName]; }; v1.loadScores = function (scoreBoardName, period, firstResult, numResults, tag) { if (period == undefined) { period = 'All-Time'; } if (firstResult == undefined) { firstResult = 1; } if (numResults == undefined) { numResults = 10; } if (tag == undefined) { tag = null; } if (!com.newgrounds.API.assertConnected()) { return null; } var v1 = com.newgrounds.API._scoreBoards[scoreBoardName]; if (!v1) { com.newgrounds.Logger.logError('No scoreboard named "' + scoreBoardName + '" w.'); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.SCORES_LOADED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT); return null; } v1.__set__period(period); v1.__set__firstResult(firstResult); v1.__set__numResults(numResults); v1.__set__tag(tag); v1.loadScores(); return v1; }; v1.postScore = function (scoreBoardName, numericScore, tag) { if (tag == undefined) { tag = null; } if (!com.newgrounds.API.assertConnected()) { return undefined; } if (!com.newgrounds.API.__get__hasUserSession()) { com.newgrounds.Logger.logError('The user must be logged-in to post a score.'); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.SCORES_LOADED, null, com.newgrounds.APIEvent.ERROR_NOT_LOGGED_IN); return undefined; } var v1 = com.newgrounds.API._scoreBoards[scoreBoardName]; if (!v1) { com.newgrounds.Logger.logError('No scoreboard named "' + scoreBoardName + '" w.'); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.SCORES_LOADED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT); return undefined; } v1.postScore(numericScore, tag); }; v1.getSaveGroup = function (groupName) { if (!com.newgrounds.API.assertConnected()) { return null; } return com.newgrounds.API._saveGroups[groupName]; }; v1.getSaveGroupById = function (id) { for (var v3 in com.newgrounds.API._saveGroups) { var v1 = com.newgrounds.API._saveGroups[v3]; if (v1.__get__id() == id) { return v1; } } return null; }; v1.createSaveFile = function (groupName) { if (!com.newgrounds.API.assertConnected()) { return null; } var v1 = com.newgrounds.API.getSaveGroup(groupName); if (!v1) { com.newgrounds.Logger.logError('The save group "' + groupName + '" w found.'); return null; } return new com.newgrounds.SaveFile(v1); }; v1.loadSaveFile = function (saveId, loadContents) { if (loadContents == undefined) { loadContents = true; } com.newgrounds.API._connection.sendSimpleCommand('loadSaveFile', com.newgrounds.API.onFileLoaded, {'save_id': saveId, 'get_contents': loadContents}); }; v1.onFileLoaded = function (event) { if (event.__get__success()) { var v2 = com.newgrounds.SaveFile.fromObject(com.newgrounds.API.getSaveGroupById((event.__get__data()).group_id), (event.__get__data()).file); if ((event.__get__data()).get_contents) { v2.load(); } else { com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.FILE_LOADED, v2); } } else { com.newgrounds.Logger.logError('Unable to load file:', event.__get__error()); } }; v1.createSaveQuery = function (groupName) { if (!com.newgrounds.API.assertConnected()) { return null; } var v1 = com.newgrounds.API.getSaveGroup(groupName); if (!v1) { com.newgrounds.Logger.logError('The save group "' + groupName + '" w found.'); return null; } var v2 = new com.newgrounds.SaveQuery(v1); return v2; }; v1.createSaveQueryByDate = function (groupName, sortDescending) { if (sortDescending == undefined) { sortDescending = true; } var v1 = com.newgrounds.API.createSaveQuery(groupName); if (!v1) { return null; } v1.sortOn(com.newgrounds.SaveQuery.CREATED_ON, sortDescending); return v1; }; v1.createSaveQueryByName = function (groupName, filename, exactMatch, sortDescending) { if (exactMatch == undefined) { exactMatch = false; } if (sortDescending == undefined) { sortDescending = true; } var v1 = com.newgrounds.API.createSaveQuery(groupName); if (!exactMatch) { v1.addCondition(com.newgrounds.SaveQuery.FILE_NAME, com.newgrounds.SaveQuery.OPERATOR_CONTAINS, filename); return v1; } v1.addCondition(com.newgrounds.SaveQuery.FILE_NAME, com.newgrounds.SaveQuery.OPERATOR_EQUAL, filename); return v1; }; v1.createSaveQueryByRating = function (groupName, ratingName, sortDescending) { if (sortDescending == undefined) { sortDescending = true; } var v1 = com.newgrounds.API.createSaveQuery(groupName); v1.sortOn(ratingName, sortDescending); return v1; }; v1.addEventListener = function (eventType, listener, useCapture, priority, useWeakReference) { if (useCapture == undefined) { useCapture = false; } if (priority == undefined) { priority = 0; } if (useWeakReference == undefined) { useWeakReference = true; } com.newgrounds.API._dispatcher.addEventListener(eventType, listener, useCapture, priority, useWeakReference); }; v1.removeEventListener = function (eventType, listener, useCapture) { if (useCapture == undefined) { useCapture = false; } com.newgrounds.API._dispatcher.removeEventListener(eventType, listener); }; v1.dispatchEvent = function (event, data, error) { if (data == undefined) { data = null; } if (error == undefined) { error = null; } com.newgrounds.API._dispatcher.dispatchEvent(new com.newgrounds.APIEvent(event, data, error)); }; v1.saveLocal = function (saveId, saveData) { try { var v3; var v2 = 'ng_ap_secure_' + com.newgrounds.API._connection.trackerId + '_' + com.newgrounds.crypto.RC4.encrypt(saveId, com.newgrounds.API._connection.encryptionKey); if (!com.newgrounds.API._sharedObjects[saveId]) { com.newgrounds.API._sharedObjects[saveId] = SharedObject.getLocal(v2); } v3 = com.newgrounds.API._sharedObjects[saveId]; v3.data.data = com.newgrounds.API.encodeData(saveData); } catch (v0) { if (Error(v0) != null) { var error = Error(v0); com.newgrounds.Logger.logError('Unable to save local data.', error); return false; return true; } throw v0; } return true; }; v1.loadLocal = function (saveId) { try { var v1; var v3 = 'ng_ap_secure_' + com.newgrounds.API._connection.trackerId + '_' + com.newgrounds.crypto.RC4.encrypt(saveId, com.newgrounds.API._connection.encryptionKey); if (!com.newgrounds.API._sharedObjects[saveId]) { com.newgrounds.API._sharedObjects[saveId] = SharedObject.getLocal(v3); } v1 = com.newgrounds.API._sharedObjects[saveId]; if (v1 && v1.data && v1.data.data) { return com.newgrounds.API.decodeData(v1.data.data); } return null; } catch (v0) { if (Error(v0) != null) { var error = Error(v0); com.newgrounds.Logger.logError('Unable to load local data.', error); return null; } throw v0; } return null; }; v1.logCustomEvent = function (eventName) { if (com.newgrounds.API.assertConnected()) { com.newgrounds.Logger.logMessage('Logged event: ' + eventName); com.newgrounds.API._connection.sendSimpleCommand('logCustomEvent', null, {'event': eventName}); } }; v1.encodeData = function (data) { if (!com.newgrounds.API._connection.assertInitialized()) { return null; } return com.newgrounds.crypto.RC4.encrypt(com.newgrounds.encoders.json.JSON.encode(data), com.newgrounds.API._connection.encryptionKey); }; v1.decodeData = function (data) { if (!com.newgrounds.API._connection.assertInitialized()) { return null; } try { return com.newgrounds.encoders.json.JSON.decode(com.newgrounds.crypto.RC4.decrypt(data, com.newgrounds.API._connection.encryptionKey)); } catch (v0) { if (Error(v0) != null) { var error = Error(v0); return null; } throw v0; } return null; }; v1.stopPendingCommands = function () { com.newgrounds.APICommand.stopPendingCommands(); com.newgrounds.Logger.logMessage('Pending commands stopped.'); }; v1.setFont = function (textField, font) { if (textField && font) { var v2 = textField.getTextFormat(); var v4 = textField.embedFonts; var v3 = new TextFormat(font); textField.setNewTextFormat(v3); textField.setTextFormat(v3); textField.embedFonts = true; if (textField.textWidth == 0) { textField.embedFonts = v4; textField.setTextFormat(v2); textField.setNewTextFormat(v2); } else { textField.antiAliasType = 'advanced'; textField.sharpness = 120; } } }; v1.VERSION = '3.0 beta 3.1 AS2'; v1.RELEASE_MODE = 'releaseMode'; v1.DEBUG_MODE_LOGGED_IN = 'debugModeLoggedIn'; v1.DEBUG_MODE_LOGGED_OUT = 'debugModeLoggedOut'; v1.DEBUG_MODE_NEW_VERSION = 'debugModeNewVersion'; v1.DEBUG_MODE_HOST_BLOCKED = 'debugModeHostBlocked'; v1.TEST_AD_FEED_URL = 'http://www.ngads.com/adtest.php'; v1._dispatcher = new com.newgrounds.APIEventDispatcher(); v1._connection = new com.newgrounds.APIConnection(); v1._debugMode = com.newgrounds.API.DEBUG_MODE_LOGGED_IN; v1._adsApproved = false; v1._medals = new Object(); v1._medalsArray = []; v1._scoreBoards = new Object(); v1._scoreBoardsArray = []; v1._saveGroups = new Object(); v1._saveGroupsArray = []; v1._sharedObjects = new Object(); v1.addProperty('adFeedURL', v1.__get__adFeedURL, function () {}); v1.addProperty('adsApproved', v1.__get__adsApproved, function () {}); v1.addProperty('apiId', v1.__get__apiId, function () {}); v1.addProperty('connected', v1.__get__connected, function () {}); v1.addProperty('debugMode', v1.__get__debugMode, v1.__set__debugMode); v1.addProperty('hasUserSession', v1.__get__hasUserSession, function () {}); v1.addProperty('hostDomain', v1.__get__hostDomain, function () {}); v1.addProperty('hostURL', v1.__get__hostURL, function () {}); v1.addProperty('isNetworkHost', v1.__get__isNetworkHost, function () {}); v1.addProperty('isNewgrounds', v1.__get__isNewgrounds, function () {}); v1.addProperty('medals', v1.__get__medals, function () {}); v1.addProperty('publisherId', v1.__get__publisherId, function () {}); v1.addProperty('saveGroups', v1.__get__saveGroups, function () {}); v1.addProperty('scoreBoards', v1.__get__scoreBoards, function () {}); v1.addProperty('sessionId', v1.__get__sessionId, function () {}); v1.addProperty('userId', v1.__get__userId, function () {}); v1.addProperty('username', v1.__get__username, function () {}); ASSetPropFlags(com.newgrounds.API.prototype, null, 1); } #endinitclip } movieClip 1044 __Packages.com.newgrounds.Bridge { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.Bridge) { var v1 = function (id) { this._widgetId = id; this._inConnection = new LocalConnection(); this._outConnection = new LocalConnection(); this._inConnection.receiveEvent = this.receiveEvent; try { this._inConnection.connect('rec_' + this._widgetId); } com.newgrounds.Logger.addEventListener(com.newgrounds.APIEvent.LOG, {'target': this, 'func': this.onLogMessage}); }; com.newgrounds.Bridge = v1; var v2 = v1.prototype; v2.onLogMessage = function (event) { try { this._outConnection.send(this._widgetId, 'sendEvent', String(event.__get__data()), {}); } }; v2.sendCommand = function (command, parameters) {}; v2.receiveEvent = function (event, parameters) {}; v2.onStatus = function (event) {}; ASSetPropFlags(com.newgrounds.Bridge.prototype, null, 1); } #endinitclip } movieClip 1036 __Packages.com.newgrounds.APIEvent { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.APIEvent) { var v1 = function (type, data, error) { super(type); if (data == undefined) { data = null; } if (error == undefined) { error = null; } if (!error || error == '' || error == com.newgrounds.APIEvent.ERROR_NONE) { this._error = com.newgrounds.APIEvent.ERROR_NONE; this._success = true; } else { this._error = error; this._success = false; } if (data) { this._data = data; } else { this._data = {}; } }; com.newgrounds.APIEvent = v1; com.newgrounds.APIEvent extends com.newgrounds.Event; var v2 = v1.prototype; v2.clone = function () { return new com.newgrounds.APIEvent(this.__get__type(), this._data, this._error); }; v2.__get__success = function () { return this._success; }; v2.__get__data = function () { return this._data; }; v2.__get__error = function () { return this._error; }; v1.COMMAND_COMPLETE = 'commandComplete'; v1.MEDAL_UNLOCK_CONFIRMED = 'medalUnlockConfirmed'; v1.ICON_LOADED = 'iconLoaded'; v1.API_CONNECTED = 'movieConnected'; v1.LOG = 'log'; v1.MEDAL_UNLOCKED = 'medalUnlocked'; v1.SCORES_LOADED = 'scoresLoaded'; v1.SCORE_POSTED = 'scorePosted'; v1.QUERY_COMPLETE = 'queryComplete'; v1.FILE_LOADED = 'fileLoaded'; v1.FILE_SAVED = 'fileSaved'; v1.VOTE_COMPLETE = 'voteComplete'; v1.ERROR_NONE = 'noError'; v1.ERROR_UNKNOWN = 'unknownError'; v1.ERROR_COMMAND_FAILED = 'commandFailed'; v1.ERROR_NOT_CONNECTED = 'notConnected'; v1.ERROR_INVALID_ARGUMENT = 'invalidArgument'; v1.ERROR_TIMED_OUT = 'timedOut'; v1.ERROR_BAD_FILE = 'badFile'; v1.ERROR_BAD_RESPONSE = 'badResponse'; v1.ERROR_SENDING_COMMAND = 'errorSendingCommand'; v1.ERROR_HOST_BLOCKED = 'hostBlocked'; v1.ERROR_ALREADY_VOTED = 'alreadyVoted'; v1.ERROR_NOT_LOGGED_IN = 'notLoggedIn'; v2.addProperty('data', v2.__get__data, function () {}); v2.addProperty('error', v2.__get__error, function () {}); v2.addProperty('success', v2.__get__success, function () {}); ASSetPropFlags(com.newgrounds.APIEvent.prototype, null, 1); } #endinitclip } movieClip 1052 __Packages.com.newgrounds.encoders.ImageScanner { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.ImageScanner) { var v1 = function (hashLength, charsPerPixel) { if (hashLength) { this._hash = com.newgrounds.encoders.ImageScanner.DEFAULT_HASH.substr(0, hashLength); } this._baseN = new com.newgrounds.encoders.BaseN(this._hash); if (charsPerPixel) { this._charsPerPixel = charsPerPixel; } this.__set__encodeAlpha(false); }; com.newgrounds.encoders.ImageScanner = v1; var v2 = v1.prototype; v2.__get__encodeAlpha = function () { return this._encodeAlpha; }; v2.__set__encodeAlpha = function (v) { this._encodeAlpha = v; this._maxPerChannel = int(Math.pow(this._hash.length, this._charsPerPixel / (this._encodeAlpha ? 4 : 3))); if (this._maxPerChannel > 256) { this._maxPerChannel = 256; } return this.__get__encodeAlpha(); }; v2.encode = function (source, callbackFunction, callbackObject) { var v4 = {'callbackFunction': callbackFunction, 'callbackObject': callbackObject, 'source': source, 'x': 0, 'y': 0, 'output': null}; var v2 = source.width.toString(); var v3 = source.height.toString(); while (v2.length < 3) { v2 = '0' + v2; } while (v3.length < 3) { v3 = '0' + v3; } v4.output = v2 + v3; var v6 = setInterval(this, 'doEncode', com.newgrounds.encoders.ImageScanner.WORK_INTERVAL, v4); v4.interval = v6; }; v2.decode = function (source, callbackFunction, callbackObject) { var v2 = {'callbackFunction': callbackFunction, 'callbackObject': callbackObject, 'source': source, 'i': 6, 'x': 0, 'y': 0, 'output': null}; var v5 = int(source.substr(0, 3)); var v6 = int(source.substr(3, 3)); v2.output = new flash.display.BitmapData(v5, v6, this._encodeAlpha); var v4 = setInterval(this, 'doDecode', com.newgrounds.encoders.ImageScanner.WORK_INTERVAL, v2); v2.interval = v4; }; v2.doEncode = function (state) { var v3 = getTimer(); for (;;) { if (!(state.y < state.source.height && getTimer() - v3 < com.newgrounds.encoders.ImageScanner.WORK_INTERVAL)) break; state.output += this.encodePixel(state.source.getPixel32(state.x, state.y)); ++state.x; if (state.x == state.source.width) { state.x = 0; ++state.y; } } if (state.y == state.source.height) { clearInterval(state.interval); state.callbackFunction.call(state.callbackObject, state.output); } }; v2.doDecode = function (state) { var v4 = getTimer(); for (;;) { if (!(state.y < state.output.height && getTimer() - v4 < com.newgrounds.encoders.ImageScanner.WORK_INTERVAL)) break; var v3 = this.decodePixel(state.source.substr(state.i, this._charsPerPixel)); state.output.setPixel32(state.x, state.y, v3); state.i += this._charsPerPixel; ++state.x; if (state.x == state.output.width) { state.x = 0; ++state.y; } } if (state.y == state.output.height) { clearInterval(state.interval); state.callbackFunction.call(state.callbackObject, state.output); } }; v2.encodePixel = function (pixel) { var v3 = pixel >> 24 & 255; var v4 = pixel >> 16 & 255; var v5 = pixel >> 8 & 255; var v2 = pixel & 255; v3 = int((v3 / 256) * this._maxPerChannel); v4 = int((v4 / 256) * this._maxPerChannel); v5 = int((v5 / 256) * this._maxPerChannel); v2 = int((v2 / 256) * this._maxPerChannel); var v7 = v4 * this._maxPerChannel * this._maxPerChannel + v5 * this._maxPerChannel + v2; if (this._encodeAlpha) { v7 += v3 * this._maxPerChannel * this._maxPerChannel * this._maxPerChannel; } return this._baseN.encodeUint(v7, this._charsPerPixel); }; v2.decodePixel = function (encodedPixel) { var v3 = 255; var v5; var v6; var v4; var v7 = 0; var v2 = this._baseN.decodeUint(encodedPixel); v4 = v2 % this._maxPerChannel; v2 /= int(this._maxPerChannel); v6 = v2 % this._maxPerChannel; v2 /= int(this._maxPerChannel); v5 = v2 % this._maxPerChannel; v2 /= int(this._maxPerChannel); if (this._encodeAlpha) { v3 = v2 % this._maxPerChannel; v2 /= int(this._maxPerChannel); } return v3 << 24 | v5 << 16 | v6 << 8 | v4; }; v1.DEFAULT_HASH = '0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ<>?:;-_=+()!&'; v2._hash = com.newgrounds.encoders.ImageScanner.DEFAULT_HASH; v2._charsPerPixel = 2; v1.WORK_INTERVAL = 33.33333333333334; v2.addProperty('encodeAlpha', v2.__get__encodeAlpha, v2.__set__encodeAlpha); ASSetPropFlags(com.newgrounds.encoders.ImageScanner.prototype, null, 1); } #endinitclip } movieClip 1053 __Packages.com.newgrounds.SaveFile { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.SaveFile) { var v1 = function (group) { super(); this._iconLoader = new com.newgrounds.BitmapLoader(com.newgrounds.SaveFile.DEFAULT_ICON, null); this._group = group; }; com.newgrounds.SaveFile = v1; com.newgrounds.SaveFile extends com.newgrounds.APIEventDispatcher; var v2 = v1.prototype; v1.__get__currentFile = function () { return com.newgrounds.SaveFile._currentFile; }; v1.fromObject = function (group, fileData) { var v4 = new com.newgrounds.SaveFile(group); v4._name = fileData.filename; v4._description = fileData.description; v4._id = fileData.save_id; v4._authorId = fileData.user_id; v4._authorName = fileData.user_name; v4._createdDate = fileData.created; v4._modifiedDate = fileData.last_update; v4._views = fileData.views; if (fileData.thumb && fileData.thumb != '') { v4._iconLoader.__set__url(com.newgrounds.SaveFile._imageFilePath + fileData.thumb); } v4._dataURL = com.newgrounds.SaveFile._saveFilePath + fileData.file; v4._fileSize = fileData.file_size; v4._approved = fileData.status != com.newgrounds.SaveFile.STATUS_UNAPPROVED; v4._readOnly = false; v4._public = fileData.status != com.newgrounds.SaveFile.STATUS_PRIVATE && fileData.status != com.newgrounds.SaveFile.STATUS_UNAPPROVED; for (var v8 in fileData.keys) { var v6 = fileData.keys[v8]; var v2 = group.getKeyById(v6.id); if (v2) { v4._keys[v2.__get__name()] = v2.validateValue(v6.value); } } for (var v9 in fileData.ratings) { var v5 = fileData.ratings[v9]; var v3 = group.getRatingById(v5.id); if (v3) { v4._ratings[v3.__get__name()] = v3.validateValue(v5.score); } } return v4; }; v2.__get__group = function () { return this._group; }; v2.__get__name = function () { return this._name; }; v2.__set__name = function (val) { this._name = val; return this.__get__name(); }; v2.__get__description = function () { return this._description; }; v2.__set__description = function (val) { this._description = val; return this.__get__description(); }; v2.__get__id = function () { return this._id; }; v2.__get__data = function () { return this._data; }; v2.__set__data = function (val) { this._data = val; return this.__get__data(); }; v2.__get__bytesLoaded = function () { if (this._data) { return this.__get__bytesTotal(); } else { if (!this._dataLoader) { return 0; } else { return this._dataLoader.getBytesLoaded(); } } }; v2.__get__bytesTotal = function () { return this._fileSize; }; v2.__get__readOnly = function () { return this._readOnly; }; v2.__get__draft = function () { return this._draft; }; v2.__set__draft = function (v) { this._draft = v; return this.__get__draft(); }; v2.__get__authorId = function () { return this._authorId; }; v2.__get__authorName = function () { return this._authorName; }; v2.__get__keys = function () { return this._keys; }; v2.__get__ratings = function () { return this._ratings; }; v2.__get__views = function () { return this._views; }; v2.__get__createdDate = function () { return this._createdDate; }; v2.__get__updatedDate = function () { return this._modifiedDate; }; v2.toString = function () { return 'Save File: ' + this._name; }; v2.__get__icon = function () { return this._iconLoader.__get__bitmapData(); }; v2.__set__icon = function (v) { this.createIcon(v); return this.__get__icon(); }; v2.__get__iconLoaded = function () { return this._iconLoader.__get__loaded(); }; v2.createIcon = function (source) { var v9 = new flash.display.BitmapData(com.newgrounds.SaveFile.ICON_WIDTH, com.newgrounds.SaveFile.ICON_HEIGHT, false, 0); var v6; var v5; var v10 = 0; var v8 = 0; if (source instanceof flash.display.BitmapData) { v6 = source.width; v5 = source.height; } else { if (source instanceof MovieClip) { v6 = source._width; v5 = source._height; var v7 = (MovieClip(source)).getBounds(source); v10 = v7.xMin; v8 = v7.yMin; } } var v3 = new flash.geom.Matrix(); var v4; v4 = Math.min(com.newgrounds.SaveFile.ICON_WIDTH / v6, com.newgrounds.SaveFile.ICON_HEIGHT / v5); v3.translate(-v10, -v8); v3.scale(v4, v4); v3.translate((com.newgrounds.SaveFile.ICON_WIDTH - v6 * v4) / 2, (com.newgrounds.SaveFile.ICON_HEIGHT - v5 * v4) / 2); v9.draw(source, v3); this._iconLoader.__set__bitmapData(v9); }; v2.attachIcon = function (parent) { if (this._iconLoader) { return this._iconLoader.attachBitmap(parent); } com.newgrounds.Logger.logError('No icon available for this sumbission.'); return null; }; v2.save = function () { if (!(this._group.__get__connection()).__get__hasUserSession()) { com.newgrounds.Logger.logError('The user must be logged-in to save a file.'); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, null, com.newgrounds.APIEvent.ERROR_NOT_LOGGED_IN)); return undefined; } ++com.newgrounds.BitmapLoader._cacheSeed; com.newgrounds.SaveFile._currentFile = this; if (this.__get__iconLoaded()) { com.newgrounds.SaveFile.ICON_IMAGE_SCANNER.encode(this.__get__icon(), this.onIconEncoded, this); } else { this.encodeData(true); } }; v2.onIconEncoded = function (encodedIcon) { this._encodedIcon = encodedIcon; this.encodeData(true); }; v2.doSave = function () { var v4 = new com.newgrounds.APICommand('saveFile'); (v4.__get__secureParameters()).group = this._group.id; (v4.__get__secureParameters()).user_name = (this._group.__get__connection()).username; (v4.__get__secureParameters()).filename = this._name; (v4.__get__secureParameters()).description = this._description; if (this._draft) { (v4.__get__secureParameters()).draft = true; } if (this._id && !this._readOnly) { (v4.__get__secureParameters()).overwrite = 1; (v4.__get__secureParameters()).save_id = this._id; } var v8 = []; for (var v9 in this._keys) { var v2 = this._group.getKey(v9); if (v2) { v8.push({'id': v2.__get__id(), 'value': v2.validateValue(this._keys[v9])}); } else { com.newgrounds.Logger.logError('No key named "' + v9 + '" in save group "' + this._group.__get__name() + '".'); } } (v4.__get__secureParameters()).keys = v8; var v7 = []; for (var v10 in this._ratings) { var v3 = this._group.getRating(v10); if (v3) { v7.push({'id': v3.__get__id(), 'value': v3.validateValue(this._ratings[v10])}); } else { com.newgrounds.Logger.logError('No rating named "' + v10 + '" in save group "' + this._group.__get__name() + '".'); } } (v4.__get__secureParameters()).ratings = v7; if (typeof this._encodedData == 'string') { v4.addFile('file', this._encodedData, 'file'); } else { v4.addFile('file', com.newgrounds.encoders.json.JSON.encode(this._encodedData), 'file'); } if (this.__get__iconLoaded()) { v4.addFile('thumbnail', this._encodedIcon, 'thumbnail'); } v4.addEventListener(com.newgrounds.APIEvent.COMMAND_COMPLETE, {'target': this, 'func': this.onSaveComplete}); (this._group.__get__connection()).sendCommand(v4); }; v2.encodeData = function (encode) { this._encoderQueue = []; this._encoding = encode; if (encode) { this._encodedData = this._data; this.preEncodeObject(this, '_encodedData'); } else { this.preEncodeObject(this, '_data'); } this.encodeObject(); }; v2.preEncodeObject = function (parent, property) { var v3 = parent[property]; var v5; try { if (this._encoding) { v5 = v3 instanceof flash.display.BitmapData; } else { v5 = v3.type == '__bitmap'; } } var v2 = v3; var v8; if (v5) { this._encoderQueue.push({'parent': parent, 'property': property}); } else { if (typeof v3 == 'object' && !v8) { if (this._encoding) { if (v3 instanceof Array) { v2 = []; } else { v2 = {}; } for (var v4 in v3) { v2[v4] = v3[v4]; } parent[property] = v2; } for (v4 in v2) { this.preEncodeObject(v2, v4); } } } }; v2.encodeObject = function () { if (!this._encoderQueue.length) { if (this._encoding) { this.doSave(); } else { this._dataLoaded = true; this.checkLoadComplete(); } return undefined; } var v6 = this._encoderQueue.pop(); var v4 = v6.parent; var v3 = v6.property; var v2 = v4[v3]; var v5; if (this._encoding) { v5 = {'type': '__bitmap', 'width': v2.width, 'height': v2.height, 'transparent': v2.transparent}; v4[v3] = v5; this._encodingParent = v5; this._encodingProperty = 'data'; com.newgrounds.SaveFile.DATA_IMAGE_SCANNER.__set__encodeAlpha(v2.transparent); com.newgrounds.SaveFile.DATA_IMAGE_SCANNER.encode(flash.display.BitmapData(v2), this.encodeBitmapComplete, this); } else { this._encodingParent = v4; this._encodingProperty = v3; com.newgrounds.SaveFile.DATA_IMAGE_SCANNER.__set__encodeAlpha(v2.transparent); com.newgrounds.SaveFile.DATA_IMAGE_SCANNER.decode(String(v2.data), this.encodeBitmapComplete, this); } }; v2.encodeBitmapComplete = function (data) { this._encodingParent[this._encodingProperty] = data; this.encodeObject(); }; v2.load = function () { com.newgrounds.SaveFile._currentFile = this; this._dataLoaded = false; this._data = null; if (!this.__get__iconLoaded()) { this._iconLoader.addEventListener(com.newgrounds.APIEvent.ICON_LOADED, {'target': this, 'func': this.onIconLoaded}); this._iconLoader.load(); } this._dataLoader = new LoadVars(); var file = this; this._dataLoader.onData = function (data) { file.onDataLoaded(data); }; this._dataLoader.load(this._dataURL); }; v2.onIconLoaded = function (event) { if (!event.__get__success() && this._iconLoader.__get__url()) { com.newgrounds.Logger.logWarning('Unable to load the icon for this save file.'); } this._iconLoader.removeEventListener(com.newgrounds.APIEvent.ICON_LOADED, this.onIconLoaded); this.checkLoadComplete(); }; v2.checkLoadComplete = function () { if (this._dataLoaded && this.__get__iconLoaded()) { com.newgrounds.Logger.logMessage('Data loaded.'); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this)); } }; v2.onDataLoaded = function (data) { try { if (data) { if (data.charAt(0) == '{') { this._data = com.newgrounds.encoders.json.JSON.decode(String(data)); } else { this._data = String(data); } this.encodeData(false); } } catch (v0) { if (Error(v0) != null) { var error = Error(v0); com.newgrounds.Logger.logError('Error while loading data:', error); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this, com.newgrounds.APIEvent.ERROR_BAD_FILE)); } else { throw v0; } } }; v2.onDataError = function (error) { com.newgrounds.Logger.logError('Unable to load data:', error); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this, com.newgrounds.APIEvent.ERROR_BAD_FILE)); }; v2.onSaveComplete = function (event) { if (event.__get__success()) { com.newgrounds.Logger.logMessage('File "' + this._name + '" saved!'); if (event.__get__data()) { this._id = (event.__get__data()).save_id; this._dataURL = unescape((event.__get__data()).file_url); } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, this)); } else { com.newgrounds.Logger.logError('Error saving file "' + this._name + '":', event.__get__error()); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, this, event.__get__error())); } }; v2.sendVote = function (ratingName, vote) { var v2 = this._group.getRating(ratingName); if (!v2) { com.newgrounds.Logger.logError('No save rating named "' + ratingName + '" exists for this save group.'); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, {}, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT)); return undefined; } vote = v2.validateValue(vote); if (isNaN(vote)) { com.newgrounds.Logger.logError('Invalid vote (' + vote + '). ' + ratingName + ' allows a range of ' + v2.__get__minimum() + '-' + v2.__get__maximum() + '.'); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, {}, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT)); return undefined; } com.newgrounds.Logger.logMessage('Voting ' + vote + ' for ' + ratingName + ' on ' + this._name + '...'); (this._group.__get__connection()).sendSimpleCommand('rateSaveFile', {'target': this, 'func': this.onVoteComplete}, null, {'group': this._group.__get__id(), 'save_id': this._id, 'rating_id': v2.__get__id(), 'vote': vote}); }; v2.onVoteComplete = function (event) { var v2 = event.__get__error(); if ((event.__get__data()).already_voted) { com.newgrounds.Logger.logError('Vote failed. You\'ve already voted on this rating today.'); v2 = com.newgrounds.APIEvent.ERROR_ALREADY_VOTED; } if (v2 == com.newgrounds.APIEvent.ERROR_NONE) { var v3 = this._group.getRatingById((event.__get__data()).rating_id); if (v3) { this._ratings[v3.__get__name()] = v3.validateValue((event.__get__data()).score); } } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, this, v2)); }; v2.clone = function () { var v3 = new com.newgrounds.SaveFile(this._group); v3._data = this._data; v3._description = this._description; v3._draft = this._draft; v3._fileSize = this._fileSize; v3._iconLoader.__set__bitmapData(this._iconLoader.bitmapData); var v2; for (v2 in this._keys) { v3._keys[v2] = this._keys[v2]; } for (v2 in this._ratings) { v3._ratings[v2] = this._ratings[v2]; } v3._name = this._name; return v3; }; v1.ICON_WIDTH = 90; v1.ICON_HEIGHT = 90; v1.DEFAULT_ICON = flash.display.BitmapData.loadBitmap('DefaultSaveIcon'); v1.STATUS_PRIVATE = 0; v1.STATUS_SHARED = 1; v1.STATUS_UNAPPROVED = 2; v1.STATUS_APPROVED = 3; v1._imageFilePath = ''; v1._saveFilePath = ''; v1.ICON_IMAGE_SCANNER = new com.newgrounds.encoders.ImageScanner(); v1.DATA_IMAGE_SCANNER = new com.newgrounds.encoders.ImageScanner(64, 6); v2._keys = new Object(); v2._ratings = new Object(); v2.addProperty('authorId', v2.__get__authorId, function () {}); v2.addProperty('authorName', v2.__get__authorName, function () {}); v2.addProperty('bytesLoaded', v2.__get__bytesLoaded, function () {}); v2.addProperty('bytesTotal', v2.__get__bytesTotal, function () {}); v2.addProperty('createdDate', v2.__get__createdDate, function () {}); v1.addProperty('currentFile', v1.__get__currentFile, function () {}); v2.addProperty('data', v2.__get__data, v2.__set__data); v2.addProperty('description', v2.__get__description, v2.__set__description); v2.addProperty('draft', v2.__get__draft, v2.__set__draft); v2.addProperty('group', v2.__get__group, function () {}); v2.addProperty('icon', v2.__get__icon, v2.__set__icon); v2.addProperty('iconLoaded', v2.__get__iconLoaded, function () {}); v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('keys', v2.__get__keys, function () {}); v2.addProperty('name', v2.__get__name, v2.__set__name); v2.addProperty('ratings', v2.__get__ratings, function () {}); v2.addProperty('readOnly', v2.__get__readOnly, function () {}); v2.addProperty('updatedDate', v2.__get__updatedDate, function () {}); v2.addProperty('views', v2.__get__views, function () {}); ASSetPropFlags(com.newgrounds.SaveFile.prototype, null, 1); } #endinitclip } movieClip 1051 __Packages.com.newgrounds.SaveGroup { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.SaveGroup) { var v1 = function (connection, name, id, type, keys, ratings) { this._connection = connection; this._id = id; this._name = name; this._type = type; this._keysArray = keys; this._ratingsArray = ratings; this._keys = new Object(); this._ratings = new Object(); var v11; for (var v7 in keys) { var v2 = keys[v7]; this._keys[v2.__get__name()] = v2; } for (var v6 in ratings) { var v3 = ratings[v6]; this._ratings[v3.__get__name()] = v3; } }; com.newgrounds.SaveGroup = v1; var v2 = v1.prototype; v2.__get__connection = function () { return this._connection; }; v2.__get__name = function () { return this._name; }; v2.__get__type = function () { return this._type; }; v2.__get__id = function () { return this._id; }; v2.__get__keys = function () { return this._keysArray; }; v2.__get__ratings = function () { return this._ratingsArray; }; v2.getKey = function (name) { return this._keys[name]; }; v2.getRating = function (name) { return this._ratings[name]; }; v2.getKeyById = function (id) { for (var v4 in this._keys) { var v2 = this._keys[v4]; if (v2.__get__id() == id) { return v2; } } return null; }; v2.getRatingById = function (id) { for (var v4 in this._ratings) { var v2 = this._ratings[v4]; if (v2.__get__id() == id) { return v2; } } return null; }; v2.toString = function () { return 'SaveGroup: ' + this.__get__name() + ' Keys: ' + this._keysArray + ' Ratings: ' + this._ratingsArray; }; v1.TYPE_SYSTEM = 0; v1.TYPE_PRIVATE = 1; v1.TYPE_PUBLIC = 2; v1.TYPE_MODERATED = 3; v2.addProperty('connection', v2.__get__connection, function () {}); v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('keys', v2.__get__keys, function () {}); v2.addProperty('name', v2.__get__name, function () {}); v2.addProperty('ratings', v2.__get__ratings, function () {}); v2.addProperty('type', v2.__get__type, function () {}); ASSetPropFlags(com.newgrounds.SaveGroup.prototype, null, 1); } #endinitclip } movieClip 1049 __Packages.com.newgrounds.SaveKey { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.SaveKey) { var v1 = function (name, id, type) { this._name = name; this._id = id; this._type = type; }; com.newgrounds.SaveKey = v1; var v2 = v1.prototype; v2.__get__name = function () { return this._name; }; v2.__get__id = function () { return this._id; }; v2.__get__type = function () { return this._type; }; v2.validateValue = function (value) { switch (this._type) { return null; case com.newgrounds.SaveKey.TYPE_INTEGER: value = Number(value); if (!isNaN(value)) { var v3 = int(value); if (v3 != value) { com.newgrounds.Logger.logWarning('Float value ' + value + ' given for integer key "' + this._name + '". Clamping to ' + v3 + '.'); } return v3; } return null; case com.newgrounds.SaveKey.TYPE_FLOAT: value = Number(value); if (!isNaN(value)) { return isNaN(Number(value)); } return null; case com.newgrounds.SaveKey.TYPE_BOOLEAN: return Boolean(value); return null; case com.newgrounds.SaveKey.TYPE_STRING: return value ? value.toString() : ''; return null; } return null; }; v2.toString = function () { return this._name; }; v1.TYPE_FLOAT = 1; v1.TYPE_INTEGER = 2; v1.TYPE_STRING = 3; v1.TYPE_BOOLEAN = 4; v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('name', v2.__get__name, function () {}); v2.addProperty('type', v2.__get__type, function () {}); ASSetPropFlags(com.newgrounds.SaveKey.prototype, null, 1); } #endinitclip } movieClip 1050 __Packages.com.newgrounds.SaveRating { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.SaveRating) { var v1 = function (name, id, isFloat, minimum, maximum) { this._name = name; this._id = id; this._isFloat = isFloat; this._minimum = minimum; this._maximum = maximum; }; com.newgrounds.SaveRating = v1; var v2 = v1.prototype; v2.__get__name = function () { return this._name; }; v2.__get__id = function () { return this._id; }; v2.__get__isFloat = function () { return this._isFloat; }; v2.__get__minimum = function () { return this._minimum; }; v2.__get__maximum = function () { return this._maximum; }; v2.validateValue = function (value) { var v2 = Number(value); if (isNaN(v2)) { com.newgrounds.Logger.logError('Invalid value for rating "' + this._name + '".'); return NaN; } if (v2 < this._minimum) { com.newgrounds.Logger.logWarning(v2 + ' is out of acceptable range for rating "' + this._name + '". Clamping to ' + this._minimum + '.'); return this._minimum; } if (v2 > this._maximum) { com.newgrounds.Logger.logWarning(v2 + ' is out of acceptable range for rating "' + this._name + '". Clamping to ' + this._maximum + '.'); return this._maximum; } if (!this.__get__isFloat()) { var v3 = int(v2); if (v3 != v2) { com.newgrounds.Logger.logWarning('Float value ' + v2 + ' given for integer rating "' + this._name + '". Clamping to ' + v3 + '.'); } return v3; } return v2; }; v2.toString = function () { return this._name; }; v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('isFloat', v2.__get__isFloat, function () {}); v2.addProperty('maximum', v2.__get__maximum, function () {}); v2.addProperty('minimum', v2.__get__minimum, function () {}); v2.addProperty('name', v2.__get__name, function () {}); ASSetPropFlags(com.newgrounds.SaveRating.prototype, null, 1); } #endinitclip } movieClip 1045 __Packages.com.newgrounds.BitmapLoader { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.BitmapLoader) { var v1 = function (defaultBitmap, url) { super(); this._bitmapData = defaultBitmap; this._url = url; }; com.newgrounds.BitmapLoader = v1; com.newgrounds.BitmapLoader extends com.newgrounds.APIEventDispatcher; var v2 = v1.prototype; v2.__get__url = function () { return this._url; }; v2.__set__url = function (v) { this._loaded = false; this._url = v; return this.__get__url(); }; v2.__get__bitmapData = function () { return this._bitmapData; }; v2.__set__bitmapData = function (v) { this._bitmapData = v; this._loaded = true; return this.__get__bitmapData(); }; v2.__get__loaded = function () { return this._loaded; }; v2.disposeLoader = function () { if (this._loader) { if (this._loaderClip._parent == _root) { this._loader.unloadClip(this._loaderClip.bitmap); this._loaderClip.removeMovieClip(); } this._loader = null; this._loaderClip = null; } }; v2.load = function () { if (!this._url || this._url == '') { this.onLoadComplete(); return undefined; } this._loaded = false; if (this._bitmapData) { this._bitmapData.dispose(); this._bitmapData = null; } this.disposeLoader(); this.attachBitmap(null); }; v2.attachBitmap = function (parent) { if (!parent) { parent = _root; } var v5 = parent.getNextHighestDepth(); var v3 = parent.createEmptyMovieClip('__bitmap' + v5, v5); if (!this._loaded && this._url && this._url != '') { v3.createEmptyMovieClip('bitmap', 0); this._loader = new MovieClipLoader(); this._loaderClip = v3; if (parent == _root) { this._loaderClip._visible = false; } var thisObj = this; this._loaderClip.onEnterFrame = function () { thisObj.pollLoad(); }; this._loader.addListener({'onLoadError': function () { thisObj.onLoadComplete(); }}); this._loader.loadClip(this._url, v3.bitmap); return v3; } v3.attachBitmap(this._bitmapData, 0); return v3; }; v2.pollLoad = function () { if (this._loaderClip._width) { this.onLoadComplete(); } }; v2.onLoadComplete = function () { var v2; if (this._loader && this._loaderClip && this._loaderClip._width) { try { this._loaderClip.onEnterFrame = null; v2 = new flash.display.BitmapData(this._loaderClip._width, this._loaderClip._height, true, 0); v2.draw(this._loaderClip); this._bitmapData = v2; this._loaded = true; } catch (error) { if (v2) { v2.dispose(); } } } this.disposeLoader(); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.ICON_LOADED, this, this._loaded ? null : com.newgrounds.APIEvent.ERROR_BAD_FILE)); }; v1._cacheSeed = 0; v2._loaded = true; v2.addProperty('bitmapData', v2.__get__bitmapData, v2.__set__bitmapData); v2.addProperty('loaded', v2.__get__loaded, function () {}); v2.addProperty('url', v2.__get__url, v2.__set__url); ASSetPropFlags(com.newgrounds.BitmapLoader.prototype, null, 1); } #endinitclip } movieClip 1054 __Packages.com.newgrounds.SaveQuery { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.SaveQuery) { var v1 = function (group) { super(); this._group = group; this._connection = group.connection; this.includeAllFields(); }; com.newgrounds.SaveQuery = v1; com.newgrounds.SaveQuery extends com.newgrounds.APIEventDispatcher; var v2 = v1.prototype; v2.__get__group = function () { return this._group; }; v2.__get__resultsPerPage = function () { return this._resultsPerPage; }; v2.__set__resultsPerPage = function (val) { this._resultsPerPage = Math.min(Math.max(val, 1), 100); return this.__get__resultsPerPage(); }; v2.__get__page = function () { return this._page; }; v2.__set__page = function (val) { this._page = Math.max(val, 1); return this.__get__page(); }; v2.prevPage = function () { this.__set__page(this.__get__page() - 1); }; v2.nextPage = function () { this.__set__page(this.__get__page() + 1); }; v2.__get__isRandomized = function () { return this._isRandomized; }; v2.__set__isRandomized = function (val) { this._isRandomized = val; return this.__get__isRandomized(); }; v2.__get__files = function () { return this._files; }; v2.reset = function () { this._page = 1; this._resultsPerPage = 10; this._isRandomized = false; this._lookupKeys = []; this._lookupRatings = []; this._fileConditions = []; this._keyConditions = []; this._ratingConditions = []; this._files = []; this.includeAllFields(); }; v2.clone = function () { var v2 = new com.newgrounds.SaveQuery(this._group); v2._page = this._page; v2._resultsPerPage = this._resultsPerPage; v2._isRandomized = this._isRandomized; v2._lookupKeys = this._lookupKeys.concat(); v2._lookupRatings = this._lookupRatings.concat(); v2._fileConditions = this._fileConditions.concat(); v2._keyConditions = this._keyConditions.concat(); v2._ratingConditions = this._ratingConditions.concat(); return v2; }; v2.includeAllFields = function () { for (var v5 in this._group.__get__keys()) { var v2 = (this._group.__get__keys())[v5]; this._lookupKeys.push(v2.__get__id()); } for (var v4 in this._group.__get__ratings()) { var v3 = (this._group.__get__ratings())[v4]; this._lookupRatings.push(v3.__get__id()); } }; v2.addCondition = function (field, operator, value) { var v2; v2 = 0; while (v2 < com.newgrounds.SaveQuery.FILE_FIELDS.length) { if (com.newgrounds.SaveQuery.FILE_FIELDS[v2] == field) { break; } ++v2; } if (v2 == com.newgrounds.SaveQuery.FILE_FIELDS.length) { v2 = -1; } if (v2 >= 0) { this._fileConditions.push({'field': v2, 'operator': operator, 'value': value}); } else { var v3 = this._group.getKey(field); if (v3) { value = v3.validateValue(value); this._keyConditions.push({'key_id': v3.__get__id(), 'operator': operator, 'value': value}); return undefined; } var v4 = field.split('.'); var v6 = this._group.getRating(v4[0]); if (v6) { value = v6.validateValue(value); this._ratingConditions.push({'rating_id': v6.__get__id(), 'operator': operator, 'value': value, 'column': v4[1] ? v4[1] : 'score'}); return undefined; } com.newgrounds.Logger.logError('The save group "' + this._group.__get__name() + '" does not have a field named "' + field + '".'); } }; v2.sortOn = function (field, sortDescending) { if (sortDescending == undefined) { sortDescending = false; } var v2; v2 = 0; while (v2 < com.newgrounds.SaveQuery.FILE_FIELDS.length) { if (com.newgrounds.SaveQuery.FILE_FIELDS[v2] == field) { break; } ++v2; } if (v2 == com.newgrounds.SaveQuery.FILE_FIELDS.length) { v2 = -1; } if (v2 >= 0) { this._sortFields.push({'table': com.newgrounds.SaveQuery.TABLE_FILES, 'field': v2, 'desc': sortDescending}); } else { var v5 = this._group.getKey(field); if (v5) { this._sortFields.push({'table': com.newgrounds.SaveQuery.TABLE_KEYS, 'field': v5.__get__id(), 'desc': sortDescending}); return undefined; } var v3 = field.split('.'); var v6 = this._group.getRating(v3[0]); if (v6) { this._sortFields.push({'table': com.newgrounds.SaveQuery.TABLE_RATINGS, 'field': v6.__get__id(), 'desc': sortDescending, 'extra': v3[1] ? v3[1] : 'score'}); return undefined; } com.newgrounds.Logger.logError('The save group "' + this._group.__get__name() + '" does not have a field named "' + field + '".'); } }; v2.execute = function () { var v5 = {}; v5.page = this._page; v5.num_results = this._resultsPerPage; if (this._isRandomized) { v5.randomize = 1; } if (this._lookupKeys && this._lookupKeys.length) { v5.lookup_keys = this._lookupKeys; } if (this._lookupRatings && this._lookupRatings.length) { v5.lookup_ratings = this._lookupRatings; } if (this._fileConditions && this._fileConditions.length) { v5.file_conditions = this._fileConditions; } if (this._keyConditions && this._keyConditions.length) { v5.key_conditions = this._keyConditions; } if (this._ratingConditions && this._ratingConditions.length) { v5.rating_conditions = this._ratingConditions; } if (this._sortFields && this._sortFields.length) { v5.sort_conditions = this._sortFields; } this._connection.sendSimpleCommand('lookupSaveFiles', {'target': this, 'func': this.onQueryComplete}, {'publisher_id': this._connection.publisherId, 'group_id': this._group.__get__id(), 'query': v5}); }; v2.onQueryComplete = function (event) { if (event.__get__success()) { var v4 = event.__get__data(); this._files = []; if (v4.files) { var v2 = 0; while (v2 < v4.files.length) { var v3 = com.newgrounds.SaveFile.fromObject(this._group, v4.files[v2]); if (v3) { this._files.push(v3); } ++v2; } } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.QUERY_COMPLETE, this)); } else { com.newgrounds.Logger.logError('Query failed: ' + event.__get__error()); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.QUERY_COMPLETE, this, event.__get__error())); } }; v1.FILE_ID = 'fileId'; v1.AUTHOR_ID = 'authorId'; v1.AUTHOR_NAME = 'authorName'; v1.FILE_NAME = 'fileName'; v1.CREATED_ON = 'createdOn'; v1.UPDATED_ON = 'updatedOn'; v1.FILE_VIEWS = 'fileViews'; v1.FILE_STATUS = 'fileStatus'; v1.FILE_FIELDS = [com.newgrounds.SaveQuery.FILE_ID, com.newgrounds.SaveQuery.AUTHOR_ID, com.newgrounds.SaveQuery.AUTHOR_NAME, com.newgrounds.SaveQuery.FILE_NAME, com.newgrounds.SaveQuery.CREATED_ON, com.newgrounds.SaveQuery.UPDATED_ON, com.newgrounds.SaveQuery.FILE_VIEWS, com.newgrounds.SaveQuery.FILE_STATUS]; v1.OPERATOR_EQUAL = '='; v1.OPERATOR_LESS_THAN = '<'; v1.OPERATOR_GREATER_THAN = '>'; v1.OPERATOR_NOT_EQUAL = '!='; v1.OPERATOR_LESS_OR_EQUAL = '<='; v1.OPERATOR_GREATER_OR_EQUAL = '>='; v1.OPERATOR_CONTAINS = '*'; v1.OPERATOR_NOT_CONTAINS = '!*'; v1.OPERATOR_NOT_BEGINS_WITH = '!*='; v1.OPERATOR_NOT_ENDS_WITH = '!=*'; v1.OPERATOR_BEGINS_WITH = '*='; v1.OPERATOR_ENDS_WITH = '=*'; v1.TABLE_FILES = 1; v1.TABLE_KEYS = 2; v1.TABLE_RATINGS = 3; v2._page = 1; v2._resultsPerPage = 10; v2._isRandomized = false; v2._files = []; v2._lookupKeys = []; v2._lookupRatings = []; v2._fileConditions = []; v2._keyConditions = []; v2._ratingConditions = []; v2._sortFields = []; v2.addProperty('files', v2.__get__files, function () {}); v2.addProperty('group', v2.__get__group, function () {}); v2.addProperty('isRandomized', v2.__get__isRandomized, v2.__set__isRandomized); v2.addProperty('page', v2.__get__page, v2.__set__page); v2.addProperty('resultsPerPage', v2.__get__resultsPerPage, v2.__set__resultsPerPage); ASSetPropFlags(com.newgrounds.SaveQuery.prototype, null, 1); } #endinitclip } movieClip 1046 __Packages.com.newgrounds.Medal { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.Medal) { var v1 = function (connection, id, name, unlocked, value, difficultyId, iconURL) { super(); this._connection = connection; this._id = id; this._name = name; this._unlocked = unlocked; this._value = value; this._difficulty = com.newgrounds.Medal.DIFFICULTIES[difficultyId]; this._iconLoader = new com.newgrounds.BitmapLoader(com.newgrounds.Medal.DEFAULT_ICON, iconURL); this._iconLoader.load(); }; com.newgrounds.Medal = v1; com.newgrounds.Medal extends com.newgrounds.APIEventDispatcher; var v2 = v1.prototype; v2.__get__difficulty = function () { return this._difficulty; }; v2.__get__icon = function () { return this._iconLoader.__get__bitmapData(); }; v2.__get__id = function () { return this._id; }; v2.__get__name = function () { return this._name; }; v2.__get__unlocked = function () { return this._unlocked; }; v2.__get__value = function () { return this._value; }; v2.toString = function () { if (!this._unlocked) { return 'Medal: ' + this._name + '\t\t(' + 'locked, ' + this._value + 'pts, ' + this._difficulty + ')'; } return 'Medal: ' + this._name + '\t\t(' + 'unlocked, ' + this._value + 'pts, ' + this._difficulty + ')'; }; v2.attachIcon = function (parent) { return this._iconLoader.attachBitmap(parent); }; v2.unlock = function () { if (!this._connection.debug && this._unlocked) { com.newgrounds.Logger.logWarning('Medal "' + this._name + '" is already unlocked.'); return undefined; } com.newgrounds.Logger.logMessage('Unlocking medal "' + this.__get__name() + '"...'); this._unlocked = true; this._connection.sendSimpleCommand('unlockMedal', {'target': this, 'func': this.onUnlockConfirmed}, null, {'medal_id': this.__get__id()}); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.MEDAL_UNLOCKED, this)); }; v2.onUnlockConfirmed = function (event) { if (event.__get__success()) { com.newgrounds.Logger.logMessage('Medal "' + this.__get__name() + '" unlocked.'); } else { com.newgrounds.Logger.logError('Failed to unlock "' + this.__get__name() + '"!'); } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, this, event.__get__error())); }; v1.ICON_WIDTH = 50; v1.ICON_HEIGHT = 50; v1.DEFAULT_ICON = flash.display.BitmapData.loadBitmap('DefaultMedalIcon'); v1.DIFFICULTY_EASY = 'Easy'; v1.DIFFICULTY_MODERATE = 'Moderate'; v1.DIFFICULTY_CHALLENGING = 'Challenging'; v1.DIFFICULTY_DIFFICULT = 'Difficult'; v1.DIFFICULTY_BRUTAL = 'Brutal'; v1.DIFFICULTIES = ['Unknown', com.newgrounds.Medal.DIFFICULTY_EASY, com.newgrounds.Medal.DIFFICULTY_MODERATE, com.newgrounds.Medal.DIFFICULTY_CHALLENGING, com.newgrounds.Medal.DIFFICULTY_DIFFICULT, com.newgrounds.Medal.DIFFICULTY_BRUTAL]; v2.addProperty('difficulty', v2.__get__difficulty, function () {}); v2.addProperty('icon', v2.__get__icon, function () {}); v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('name', v2.__get__name, function () {}); v2.addProperty('unlocked', v2.__get__unlocked, function () {}); v2.addProperty('value', v2.__get__value, function () {}); ASSetPropFlags(com.newgrounds.Medal.prototype, null, 1); } #endinitclip } movieClip 1048 __Packages.com.newgrounds.ScoreBoard { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.ScoreBoard) { var v1 = function (connection, name, id) { super(); this._connection = connection; this._name = name; this._id = id; }; com.newgrounds.ScoreBoard = v1; com.newgrounds.ScoreBoard extends com.newgrounds.APIEventDispatcher; var v2 = v1.prototype; v2.__get__name = function () { return this._name; }; v2.__get__scores = function () { return this._scores; }; v2.__get__period = function () { return this._period; }; v2.__set__period = function (val) { this._period = val; return this.__get__period(); }; v2.__get__firstResult = function () { return this._firstResult; }; v2.__set__firstResult = function (val) { this._firstResult = Math.max(1, val); return this.__get__firstResult(); }; v2.__get__numResults = function () { return this._numResults; }; v2.__set__numResults = function (val) { this._numResults = val; return this.__get__numResults(); }; v2.__get__tag = function () { return this._tag; }; v2.__set__tag = function (val) { this._tag = val; return this.__get__tag(); }; v2.__get__page = function () { return Math.ceil((this._firstResult - 1) / this._numResults) + 1; }; v2.prevPage = function () { if (this.__get__firstResult() > this._numResults) { this.firstResult -= this._numResults; } }; v2.nextPage = function () { this.firstResult += this._numResults; }; v2.loadScores = function () { this._connection.sendSimpleCommand('loadScores', {'target': this, 'func': this.onScoresLoaded}, {'publisher_id': this._connection.publisherId, 'board': this._id, 'page': (this._firstResult - 1) / this._numResults + 1, 'num_results': this._numResults, 'period': this._period, 'tag': this._tag}); }; v2.postScore = function (numericScore, tag) { if (tag == undefined) { tag = null; } if (isNaN(numericScore)) { com.newgrounds.Logger.logError('Cannot post invalid score: ' + numericScore); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORE_POSTED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT)); return undefined; } com.newgrounds.Logger.logMessage('Posting a score of ' + numericScore + ' by ' + this._connection.username + ' to scoreboard "' + this._name + '"...'); this._connection.sendSimpleCommand('postScore', {'target': this, 'func': this.onScorePosted}, null, {'user_name': this._connection.username, 'board': this._id, 'value': numericScore, 'tag': tag}); }; v2.onScoresLoaded = function (event) { var v4 = event.__get__data(); this._scores = []; var v5; if (v4.first_result) { v5 = v4.first_result; } else { v5 = this._firstResult; } if (v4.scores) { var v3 = 0; while (v3 < v4.scores.length) { var v2 = v4.scores[v3]; if (v2) { this._scores[v3] = new com.newgrounds.Score(v5, v2.username, v2.value, v2.numeric_value, v2.tag); } v3++; v5++; } } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORES_LOADED, this)); }; v2.onScorePosted = function (event) { if (event.__get__success()) { com.newgrounds.Logger.logMessage('Score posted!'); var v4 = event.__get__data(); var v2 = {}; v2.score = v4.value; v2.scoreBoard = this; } else { com.newgrounds.Logger.logError('Error posting score: ' + event.__get__error()); } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORE_POSTED, storedv2, event.__get__error())); }; v2.toString = function () { return 'Scoreboard: ' + this._name; }; v1.TODAY = 'Today'; v1.THIS_WEEK = 'This Week'; v1.THIS_MONTH = 'This Month'; v1.THIS_YEAR = 'This Year'; v1.ALL_TIME = 'All-Time'; v2._period = com.newgrounds.ScoreBoard.ALL_TIME; v2._firstResult = 1; v2._numResults = 10; v2.addProperty('firstResult', v2.__get__firstResult, v2.__set__firstResult); v2.addProperty('name', v2.__get__name, function () {}); v2.addProperty('numResults', v2.__get__numResults, v2.__set__numResults); v2.addProperty('page', v2.__get__page, function () {}); v2.addProperty('period', v2.__get__period, v2.__set__period); v2.addProperty('scores', v2.__get__scores, function () {}); v2.addProperty('tag', v2.__get__tag, v2.__set__tag); ASSetPropFlags(com.newgrounds.ScoreBoard.prototype, null, 1); } #endinitclip } movieClip 1037 __Packages.com.newgrounds.Logger { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.Logger) { var v1 = function () {}; com.newgrounds.Logger = v1; var v2 = v1.prototype; v1.logInternal = function () { var v2 = arguments; com.newgrounds.Logger.log(com.newgrounds.Logger.PRIORITY_INTERNAL, v2); }; v1.logMessage = function () { var v2 = arguments; com.newgrounds.Logger.log(com.newgrounds.Logger.PRIORITY_MESSAGE, v2); }; v1.logWarning = function () { var v2 = arguments; com.newgrounds.Logger.log(com.newgrounds.Logger.PRIORITY_WARNING, v2); }; v1.logError = function () { var v2 = arguments; com.newgrounds.Logger.log(com.newgrounds.Logger.PRIORITY_ERROR, v2); }; v1.log = function (priority, messages) { if (priority == undefined) { priority = com.newgrounds.Logger.PRIORITY_MESSAGE; } if (messages == undefined) { messages = null; } if (priority >= com.newgrounds.Logger._messageLevel) { var v1 = 0; while (v1 < messages.length) { trace(com.newgrounds.Logger.HEADER + messages[v1]); com.newgrounds.Logger._eventDispatcher.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.LOG, messages[v1])); ++v1; } } if (priority >= com.newgrounds.Logger._throwLevel) { throw new Error(messages.join('\n')); } }; v1.addEventListener = function (event, listener) { com.newgrounds.Logger._eventDispatcher.addEventListener(event, listener, false, 0, false); }; v1.PRIORITY_INTERNAL = 0; v1.PRIORITY_MESSAGE = 1; v1.PRIORITY_WARNING = 2; v1.PRIORITY_ERROR = 3; v1.PRIORITY_MAX = 4; v1.HEADER = '[Newgrounds API] :: '; v1._eventDispatcher = new com.newgrounds.EventDispatcher(); v1._messageLevel = com.newgrounds.Logger.PRIORITY_INTERNAL; v1._throwLevel = com.newgrounds.Logger.PRIORITY_MAX; ASSetPropFlags(com.newgrounds.Logger.prototype, null, 1); } #endinitclip } movieClip 1359 __Packages.mochi.as2.MochiAd { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiAd) { var v1 = function () {}; mochi.as2.MochiAd = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.showPreGameAd = function (options) { var v27 = {'clip': _root, 'ad_timeout': 3000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showPreloaderAd', 'color': 16747008, 'background': 16777161, 'outline': 13994812, 'no_progress_bar': false, 'ad_started': function () { this.clip.stop(); }, 'ad_finished': function () { this.clip.play(); }, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}, 'ad_progress': function (percent) {}}; options = mochi.as2.MochiAd._parseOptions(options, v27); if ('c862232051e0a94e1c3609b3916ddb17'.substr(0) == 'dfeada81ac97cde83665f81c12da7def') { options.ad_started(); options.ad_finished(); return undefined; } var clip = options.clip; var v24 = 11000; var v19 = options.ad_timeout; if (options.skip) { v19 = 0; } delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!mochi.as2.MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v15 = mochi.as2.MochiAd._getRes(options); var v5 = v15[0]; var v14 = v15[1]; mc._x = v5 * 0.5; mc._y = v14 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk._x = v5 * -0.5; chk._y = v14 * -0.5; var v7 = chk.createEmptyMovieClip('_mochiad_bar', 4); if (options.no_progress_bar) { v7._visible = false; delete options.no_progress_bar; } else { v7._x = 10; v7._y = v14 - 20; } var v23 = options.color; delete options.color; var v21 = options.background; delete options.background; var v25 = options.outline; delete options.outline; var v6 = v7.createEmptyMovieClip('_outline', 1); v6.beginFill(v21); v6.moveTo(0, 0); v6.lineTo(v5 - 20, 0); v6.lineTo(v5 - 20, 10); v6.lineTo(0, 10); v6.lineTo(0, 0); v6.endFill(); var v4 = v7.createEmptyMovieClip('_inside', 2); v4.beginFill(v23); v4.moveTo(0, 0); v4.lineTo(v5 - 20, 0); v4.lineTo(v5 - 20, 10); v4.lineTo(0, 10); v4.lineTo(0, 0); v4.endFill(); v4._xscale = 0; var v8 = v7.createEmptyMovieClip('_outline', 3); v8.lineStyle(0, v25, 100); v8.moveTo(0, 0); v8.lineTo(v5 - 20, 0); v8.lineTo(v5 - 20, 10); v8.lineTo(0, 10); v8.lineTo(0, 0); chk.ad_msec = v24; chk.ad_timeout = v19; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time); if (v2 > 0) { this._parent._alpha = v2; } else { var v3 = this._parent._parent; mochi.as2.MochiAd.unload(v3); delete this.onEnterFrame; } }; var sendHostProgress = false; mc.lc.sendHostLoadProgress = function (lc_name) { sendHostProgress = true; }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var v2 = this.mc._mochiad_wait; v2.server_control = true; v2.started = getTimer(); v2.ad_msec = msec; }; mc.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; chk.onEnterFrame = function () { var v10 = this._parent._parent; var v3 = v10; for (;;) { if (!(!v3.getBytesTotal() && v3)) break; v3 = v3._parent; } if (!v3) { v3 = _root; } var v13 = this._parent._mochiad_ctr; var v7 = getTimer() - this.started; var v5 = false; var v6 = v3.getBytesTotal(); var v9 = v3.getBytesLoaded(); var v4 = 100 * v9 / v6; var v12 = 100 * v7 / chk.ad_msec; var v11 = this._mochiad_bar._inside; var v15 = Math.min(100, Math.min(v4 || 0, v12)); v15 = Math.max(this.last_pcnt, v15); this.last_pcnt = v15; v11._xscale = v15; options.ad_progress(v15); if (sendHostProgress) { mochi.as2.MochiAd.containerNotify(clip, {'id': 'hostLoadPcnt', 'pcnt': v4}, clip._mochiad._containerLCName); if (v4 == 100) { sendHostProgress = false; } } if (!chk.showing) { var v8 = v13.getBytesTotal(); if (v8 > 0 || typeof v8 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v7 > chk.ad_timeout && v4 == 100) { options.ad_failed(); v5 = true; } } } if (v7 > chk.ad_msec) { v5 = true; } if (v6 > 0 && v9 >= v6 && v5) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; }; v1.showClickAwayAd = function (options) { var v10 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showClickAwayAd', 'res': '300x250', 'no_bg': true, 'ad_started': function () {}, 'ad_finished': function () {}, 'ad_loaded': function (width, height) {}, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_skipped': function () {}}; options = mochi.as2.MochiAd._parseOptions(options, v10); var clip = options.clip; var v9 = options.ad_timeout; delete options.ad_timeout; if (!mochi.as2.MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var v3 = clip._mochiad; v3.onUnload = function () { options.ad_finished(); }; var v5 = mochi.as2.MochiAd._getRes(options); var v11 = v5[0]; var v8 = v5[1]; v3._x = v11 * 0.5; v3._y = v8 * 0.5; var chk = v3.createEmptyMovieClip('_mochiad_wait', 3); chk.ad_timeout = v9; chk.started = getTimer(); chk.showing = false; v3.lc.adLoaded = options.ad_loaded; v3.lc.adSkipped = options.ad_skipped; v3.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; v3.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; var v21 = false; chk.onEnterFrame = function () { var v5 = this._parent._mochiad_ctr; var v4 = getTimer() - this.started; var v2 = false; if (!chk.showing) { var v3 = v5.getBytesTotal(); if (v3 > 0 || typeof v3 == 'undefined') { v2 = true; chk.showing = true; chk.started = getTimer(); } else { if (v4 > chk.ad_timeout) { options.ad_failed(); v2 = true; } } } if (v2) { delete this.onEnterFrame; } }; }; v1.showInterLevelAd = function (options) { var v13 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showTimedAd', 'ad_started': function () { this.clip.stop(); }, 'ad_finished': function () { this.clip.play(); }, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}}; options = mochi.as2.MochiAd._parseOptions(options, v13); var clip = options.clip; var v10 = 11000; var v12 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!mochi.as2.MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v5 = mochi.as2.MochiAd._getRes(options); var v14 = v5[0]; var v11 = v5[1]; mc._x = v14 * 0.5; mc._y = v11 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk.ad_msec = v10; chk.ad_timeout = v12; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time); if (v2 > 0) { this._parent._alpha = v2; } else { var v3 = this._parent._parent; mochi.as2.MochiAd.unload(v3); delete this.onEnterFrame; } }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var v2 = this.mc._mochiad_wait; v2.server_control = true; v2.started = getTimer(); v2.ad_msec = msec - 250; }; mc.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; chk.onEnterFrame = function () { var v5 = this._parent._mochiad_ctr; var v4 = getTimer() - this.started; var v2 = false; if (!chk.showing) { var v3 = v5.getBytesTotal(); if (v3 > 0 || typeof v3 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v4 > chk.ad_timeout) { options.ad_failed(); v2 = true; } } } if (v4 > chk.ad_msec) { v2 = true; } if (v2) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; } } }; }; v1.showPreloaderAd = function (options) { trace('[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0'); mochi.as2.MochiAd.showPreGameAd(options); }; v1.showTimedAd = function (options) { trace('[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0'); mochi.as2.MochiAd.showInterLevelAd(options); }; v1._allowDomains = function (server) { var v1 = ((server.split('/'))[2].split(':'))[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain('*'); System.security.allowDomain(v1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain('*'); System.security.allowInsecureDomain(v1); } } return v1; }; v1.load = function (options) { var v12 = {'clip': _root, 'server': 'http://x.mochiads.com/srv/1/', 'method': 'load', 'depth': 10333, 'id': '_UNKNOWN_'}; options = mochi.as2.MochiAd._parseOptions(options, v12); options.swfv = options.clip.getSWFVersion() || 6; options.mav = mochi.as2.MochiAd.getVersion(); var v6 = options.clip; if (!mochi.as2.MochiAd._isNetworkAvailable()) { return null; } if (v6._mochiad_loaded) { return null; } var v11 = options.depth; delete options.depth; var mc = v6.createEmptyMovieClip('_mochiad', v11); var v10 = mochi.as2.MochiAd._getRes(options); options.res = v10[0] + 'x' + v10[1]; options.server += options.id; delete options.id; v6._mochiad_loaded = true; if (v6._url.indexOf('http') != 0) { trace('[MochiAd] NOTE: Security Sandbox Violation errors below are normal'); } var v4 = mc.createEmptyMovieClip('_mochiad_ctr', 1); for (var v7 in options) { v4[v7] = options[v7]; } var v9 = v4.server; delete v4.server; var v13 = mochi.as2.MochiAd._allowDomains(v9); mc.onEnterFrame = function () { if (this._mochiad_ctr._url != this._url) { this.onEnterFrame = function () { if (!this._mochiad_ctr) { delete this.onEnterFrame; mochi.as2.MochiAd.unload(this._parent); } }; } }; var v5 = new Object(); var v8 = ['', Math.floor((new Date()).getTime()), random(999999)].join('_'); v5.mc = mc; v5.name = v8; v5.hostname = v13; v5.allowDomain = function (d) { return true; }; v5.allowInsecureDomain = v5.allowDomain; v5.connect(v8); mc.lc = v5; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; v4.lc = v8; v4.st = getTimer(); if (!options.skip) { v4.loadMovie(v9 + '.swf', 'POST'); } return mc; }; v1.unload = function (clip) { if (typeof clip == 'undefined') { clip = _root; } if (clip.clip && clip.clip._mochiad) { clip = clip.clip; } if (!clip._mochiad) { return false; } mochi.as2.MochiAd.containerNotify(clip, {'id': 'unload'}, clip._mochiad._containerLCName); clip._mochiad.removeMovieClip(); delete clip._mochiad_loaded; delete clip._mochiad; return true; }; v1._isNetworkAvailable = function () { if (System.security) { var v1 = System.security; if (v1.sandboxType == 'localWithFile') { return false; } } return true; }; v1._getRes = function (options) { var v3 = options.clip.getBounds(); var v2 = 0; var v1 = 0; if (typeof options.res != 'undefined') { var v4 = options.res.split('x'); v2 = parseFloat(v4[0]); v1 = parseFloat(v4[1]); } else { v2 = v3.xMax - v3.xMin; v1 = v3.yMax - v3.yMin; } if (v2 == 0 || v1 == 0) { v2 = Stage.width; v1 = Stage.height; } return [v2, v1]; }; v1._parseOptions = function (options, defaults) { var v4 = {}; for (var v8 in defaults) { v4[v8] = defaults[v8]; } if (options) { for (v8 in options) { v4[v8] = options[v8]; } } if (_root.mochiad_options) { var v5 = _root.mochiad_options.split('&'); var v2 = 0; while (v2 < v5.length) { var v3 = v5[v2].split('='); v4[unescape(v3[0])] = unescape(v3[1]); ++v2; } } if (v4.id == 'test') { trace('[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!'); } return v4; }; v1.rpc = function (clip, callbackID, arg) { switch (arg.id) { case 'setValue': mochi.as2.MochiAd.setValue(clip, arg.objectName, arg.value); break; case 'getValue': var v4 = mochi.as2.MochiAd.getValue(clip, arg.objectName); mochi.as2.MochiAd.containerRpcResult(clip, callbackID, v4, clip._mochiad._containerLCName); break; case 'runMethod': var v3 = mochi.as2.MochiAd.runMethod(clip, arg.method, arg.args); mochi.as2.MochiAd.containerRpcResult(clip, callbackID, v3, clip._mochiad._containerLCName); break; default: trace('[mochiads rpc] unknown rpc id: ' + arg.id); } }; v1.setValue = function (base, objectName, value) { var v2 = objectName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } base[v2[v1]] = value; }; v1.getValue = function (base, objectName) { var v2 = objectName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } return base[v2[v1]]; }; v1.runMethod = function (base, methodName, argsArray) { var v2 = methodName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } if (typeof base[v2[v1]] == 'function') { return base[v2[v1]].apply(base, argsArray); } else { return undefined; } }; v1.containerNotify = function (clip, args, lcName) { var v1 = clip._mochiad._mochiad_ctr.ad.app; if (v1.notify) { v1.notify(args); } else { (new LocalConnection()).send(lcName, 'notify', args); } }; v1.containerRpcResult = function (clip, callbackID, val, lcName) { var v1 = clip._mochiad._mochiad_ctr.ad.app; if (v1.rpcResult) { v1.rpcResult(callbackID, val); } else { (new LocalConnection()).send(lcName, 'rpcResult', callbackID, val); } }; ASSetPropFlags(mochi.as2.MochiAd.prototype, null, 1); } #endinitclip } movieClip 1360 __Packages.mochi.as2.MochiEventDispatcher { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiEventDispatcher) { var v1 = function () { this.eventTable = {}; }; mochi.as2.MochiEventDispatcher = v1; var v2 = v1.prototype; v2.buildDelegate = function (thisObject, thatObject) { var v2 = {'thisObject': thisObject, 'thatObject': thatObject}; if (thatObject != undefined) { var funct = (typeof thatObject == 'string') ? thisObject[thatObject] : thatObject; v2.delegate = function (args) { funct.call(thisObject, args); }; return v2; } v2.delegate = thisObject; return v2; }; v2.compareDelegate = function (d_A, d_B) { if (d_A.thisObject != d_B.thisObject || d_A.thatObject != d_B.thatObject) { return false; } return true; }; v2.addEventListener = function (event, thisObject, thatObject) { this.removeEventListener(event, thisObject, thatObject); this.eventTable[event].push(this.buildDelegate(thisObject, thatObject)); }; v2.removeEventListener = function (event, thisObject, thatObject) { var v3 = this.buildDelegate(thisObject, thatObject); if (this.eventTable[event] == undefined) { this.eventTable[event] = []; return undefined; } for (var v4 in this.eventTable[event]) { if (!this.compareDelegate(this.eventTable[event][v4], v3)) { continue; } this.eventTable[event].splice(Number(v4), 1); } }; v2.triggerEvent = function (event, args) { if (this.eventTable[event] == undefined) { return undefined; } for (var v4 in this.eventTable[event]) { this.eventTable[event][v4].delegate(args); } }; ASSetPropFlags(mochi.as2.MochiEventDispatcher.prototype, null, 1); } #endinitclip } movieClip 1361 __Packages.mochi.as2.MochiServices { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiServices) { var v1 = function () {}; mochi.as2.MochiServices = v1; var v2 = v1.prototype; v1.__get__id = function () { return mochi.as2.MochiServices._id; }; v1.__get__clip = function () { return mochi.as2.MochiServices._container; }; v1.__get__childClip = function () { return mochi.as2.MochiServices._clip; }; v1.getVersion = function () { return '3.9.3 as2'; }; v1.allowDomains = function (server) { var v1 = ((server.split('/'))[2].split(':'))[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain('*'); System.security.allowDomain(v1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain('*'); System.security.allowInsecureDomain(v1); } } return v1; }; v1.__get__isNetworkAvailable = function () { if (System.security) { var v1 = System.security; if (v1.sandboxType == 'localWithFile') { return false; } } return true; }; v1.__set__comChannelName = function (val) { if (val != undefined) { if (val.length > 3) { mochi.as2.MochiServices._sendChannelName = val + '_fromgame'; mochi.as2.MochiServices.initComChannels(); } } return mochi.as2.MochiServices.__get__comChannelName(); }; v1.__get__connected = function () { return mochi.as2.MochiServices._connected; }; v1.connect = function (id, clip, onError) { mochi.as2.MochiServices.warnID(id, false); if (!mochi.as2.MochiServices._connected && mochi.as2.MochiServices._clip == undefined) { trace('MochiServices Connecting...'); mochi.as2.MochiServices._connecting = true; mochi.as2.MochiServices.init(id, clip); } if (onError != undefined) { mochi.as2.MochiServices.onError = onError; } else { if (mochi.as2.MochiServices.onError == undefined) { mochi.as2.MochiServices.onError = function (errorCode) { trace(errorCode); }; } } }; v1.disconnect = function () { if (mochi.as2.MochiServices._connected || mochi.as2.MochiServices._connecting) { mochi.as2.MochiServices._connected = false; mochi.as2.MochiServices._connecting = mochi.as2.MochiServices._connected; mochi.as2.MochiServices.flush(true); if (mochi.as2.MochiServices._clip != undefined) { mochi.as2.MochiServices._clip.removeMovieClip(); delete mochi.as2.MochiServices._clip; } mochi.as2.MochiServices._listenChannel.close(); } }; v1.init = function (id, clip) { mochi.as2.MochiServices._id = id; if (clip != undefined) { mochi.as2.MochiServices._container = clip; } else { mochi.as2.MochiServices._container = _root; } mochi.as2.MochiServices.loadCommunicator(id, mochi.as2.MochiServices._container); }; v1.loadCommunicator = function (id, clip) { var v6 = '_mochiservices_com_' + id; var v5 = new MovieClipLoader(); var v3 = {}; if (mochi.as2.MochiServices._clip != null) { return mochi.as2.MochiServices._clip; } if (!mochi.as2.MochiServices.__get__isNetworkAvailable()) { return null; } if ((mochi.as2.MochiServices.urlOptions()).servURL) { mochi.as2.MochiServices._servURL = (mochi.as2.MochiServices.urlOptions()).servURL; } var v4 = mochi.as2.MochiServices._servURL + mochi.as2.MochiServices._services; if ((mochi.as2.MochiServices.urlOptions()).servicesURL) { v4 = (mochi.as2.MochiServices.urlOptions()).servicesURL; } mochi.as2.MochiServices.allowDomains(v4); mochi.as2.MochiServices._clip = clip.createEmptyMovieClip(v6, 10336, false); mochi.as2.MochiServices._listenChannelName += Math.floor((new Date()).getTime()) + '_' + Math.floor(Math.random() * 99999); mochi.as2.MochiServices.listen(); if (v3.waitInterval != null) { clearInterval(v3.waitInterval); } v3.onLoadError = mochi.as2.MochiServices.loadError; v3.onLoadStart = function (target_mc) { this.isLoading = true; }; v3.onLoadComplete = function (target_mc) { target_mc.MochiServices = mochi.as2.MochiServices; }; v3.startTime = getTimer(); v3.wait = function () { if (getTimer() - this.startTime > 10000) { if (!this.isLoading) { mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError.apply(null, ['IOError']); } clearInterval(this.waitInterval); } }; v3.waitInterval = setInterval(v3, 'wait', 1000); v5.addListener(v3); v5.loadClip(v4 + '?listenLC=' + mochi.as2.MochiServices._listenChannelName + '&mochiad_options=' + escape(_root.mochiad_options) + '&api_version=' + mochi.as2.MochiServices.getVersion(), mochi.as2.MochiServices._clip); mochi.as2.MochiServices._sendChannel = new LocalConnection(); mochi.as2.MochiServices._sendChannel._queue = []; return mochi.as2.MochiServices._clip; }; v1.loadError = function (target_mc, errorCode, httpStatus) { trace('MochiServices could not load.'); mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError.apply(null, [errorCode]); }; v1.onStatus = function (infoObject) { if (infoObject.level !== 'error') { } else { mochi.as2.MochiServices._connected = false; mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName); } }; v1.listen = function () { mochi.as2.MochiServices._listenChannel = new LocalConnection(); mochi.as2.MochiServices._listenChannel.handshake = function (args) { mochi.as2.MochiServices.__set__comChannelName(args.newChannel); }; mochi.as2.MochiServices._listenChannel.allowDomain = function (d) { return true; }; mochi.as2.MochiServices._listenChannel.allowInsecureDomain = mochi.as2.MochiServices._listenChannel.allowDomain; mochi.as2.MochiServices._listenChannel._nextcallbackID = 0; mochi.as2.MochiServices._listenChannel._callbacks = {}; mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName); trace('Waiting for MochiAds services to connect...'); }; v1.initComChannels = function () { if (!mochi.as2.MochiServices._connected) { mochi.as2.MochiServices._sendChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'handshakeDone'}); mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'registerGame', 'id': mochi.as2.MochiServices._id, 'version': mochi.as2.MochiServices.getVersion()}); mochi.as2.MochiServices._listenChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; mochi.as2.MochiServices._listenChannel.onReceive = function (pkg) { var v5 = pkg.callbackID; var v4 = this._callbacks[v5]; if (!v4) { return undefined; } var v2 = v4.callbackMethod; var v3 = v4.callbackObject; if (v3 && typeof v2 == 'string') { v2 = v3[v2]; } if (v2 != undefined) { v2.apply(v3, pkg.args); } delete this._callbacks[v5]; }; mochi.as2.MochiServices._listenChannel.onEvent = function (pkg) { switch (pkg.target) { case 'services': mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args); break; case 'events': mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args); break; case 'coins': mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args); break; case 'social': mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args); } }; mochi.as2.MochiServices._listenChannel.onError = function () { mochi.as2.MochiServices.onError.apply(null, ['IOError']); }; trace('[SERVICES_API] connected!'); mochi.as2.MochiServices._connecting = false; mochi.as2.MochiServices._connected = true; while (mochi.as2.MochiServices._sendChannel._queue.length > 0) { mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', mochi.as2.MochiServices._sendChannel._queue.shift()); } } }; v1.flush = function (error) { var v1; var v2; while (mochi.as2.MochiServices._sendChannel._queue.length > 0) { v1 = mochi.as2.MochiServices._sendChannel._queue.shift(); false; if (v1.callbackID != null) { v2 = mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID]; } delete mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID]; if (error) { mochi.as2.MochiServices.handleError(v1.args, v2.callbackObject, v2.callbackMethod); } } }; v1.handleError = function (args, callbackObject, callbackMethod) { if (args != null) { if (args.onError != null) { args.onError.apply(null, ['NotConnected']); } if (args.options != null && args.options.onError != null) { args.options.onError.apply(null, ['NotConnected']); } } if (callbackMethod != null) { args = {}; args.error = true; args.errorCode = 'NotConnected'; if (callbackObject != null && typeof callbackMethod == 'string') { callbackObject[callbackMethod](args); } else { if (callbackMethod != null) { callbackMethod.apply(args); } } } }; v1.send = function (methodName, args, callbackObject, callbackMethod) { if (mochi.as2.MochiServices._connected) { mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID}); } else { if (mochi.as2.MochiServices._clip == undefined || !mochi.as2.MochiServices._connecting) { trace('Error: MochiServices not connected. Please call MochiServices.connect(). Function: ' + methodName); mochi.as2.MochiServices.handleError(args, callbackObject, callbackMethod); mochi.as2.MochiServices.flush(true); return undefined; } else { mochi.as2.MochiServices._sendChannel._queue.push({'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID}); } } mochi.as2.MochiServices._listenChannel._callbacks[mochi.as2.MochiServices._listenChannel._nextcallbackID] = {'callbackObject': callbackObject, 'callbackMethod': callbackMethod}; ++mochi.as2.MochiServices._listenChannel._nextcallbackID; }; v1.urlOptions = function () { var v5 = {}; var v6; if (_root._url.indexOf('mochiad_options') != -1) { var v2 = _root._url.indexOf('mochiad_options') + 'mochiad_options'.length + 1; v6 = _root._url.substr(v2, _root._url.length); } else { if (_root.mochiad_options) { v6 = _root.mochiad_options; } } if (v6) { var v4 = _root.mochiad_options.split('&'); var v2 = 0; while (v2 < v4.length) { var v3 = v4[v2].split('='); v5[unescape(v3[0])] = unescape(v3[1]); ++v2; } } return v5; }; v1.warnID = function (bid, leaderboard) { bid = bid.toLowerCase(); if (bid.length != 16) { trace('WARNING: ' + (leaderboard ? 'board' : 'game') + ' ID is not the appropriate length'); return undefined; } else { if (bid == '1e113c7239048b3f') { if (leaderboard) { trace('WARNING: Using testing board ID'); } else { trace('WARNING: Using testing board ID as game ID'); } return undefined; } else { if (bid == '84993a1de4031cd8') { if (leaderboard) { trace('WARNING: Using testing game ID as board ID'); } else { trace('WARNING: Using testing game ID'); } return undefined; } } } var v1 = 0; while (v1 < bid.length) { switch (bid.charAt(v1)) { if (bid.charAt(v1) !== 'f') { } else { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case 'a': break; case 'b': case 'c': case 'd': case 'e': } default: trace('WARNING: Board ID contains illegal characters: ' + bid); return undefined; } ++v1; } }; v1.addLinkEvent = function (url, burl, btn, onClick) { var timeout = 1500; var t0 = getTimer(); var v2 = new Object(); v2.mav = mochi.as2.MochiServices.getVersion(); v2.swfv = btn.getSWFVersion() || 6; v2.swfurl = btn._url; v2.fv = System.capabilities.version; v2.os = System.capabilities.os; v2.lang = System.capabilities.language; v2.scres = System.capabilities.screenResolutionX + 'x' + System.capabilities.screenResolutionY; var s = '?'; var v3 = 0; for (var v6 in v2) { if (v3 != 0) { s += '&'; } ++v3; s = s + v6 + '=' + escape(v2[v6]); } if (!(mochi.as2.MochiServices.netupAttempted || mochi.as2.MochiServices._connected)) { var ping = btn.createEmptyMovieClip('ping', 777); var v7 = btn.createEmptyMovieClip('nettest', 778); mochi.as2.MochiServices.netupAttempted = true; ping.loadMovie('http://link.mochiads.com/linkping.swf?t=' + getTimer()); v7.onEnterFrame = function () { if (ping._totalframes > 0 && ping._totalframes == ping._framesloaded) { delete this.onEnterFrame; } else { if (getTimer() - t0 > timeout) { delete this.onEnterFrame; mochi.as2.MochiServices.netup = false; } } }; } var v4 = btn.createEmptyMovieClip('clk', 1001); v4._alpha = 0; v4.beginFill(1044735); v4.moveTo(0, 0); v4.lineTo(0, btn._height); v4.lineTo(btn._width, btn._height); v4.lineTo(btn._width, 0); v4.lineTo(0, 0); v4.endFill(); v4.onRelease = function () { if (mochi.as2.MochiServices.netup) { getURL(url + s, '_blank'); } else { getURL(burl, '_blank'); } if (onClick != undefined) { onClick(); } }; }; v1.setContainer = function (clip) {}; v1.stayOnTop = function (clip) {}; v1.addEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiServices._dispatcher.addEventListener(eventType, thisObject, thatObject); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiServices._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiServices._dispatcher.removeEventListener(eventType, thisObject, thatObject); }; v1.CONNECTED = 'onConnected'; v1._servURL = 'http://www.mochiads.com/static/lib/services/'; v1._services = 'services.swf'; v1._mochiLC = 'MochiLC.swf'; v1._listenChannelName = '__ms_'; v1._connecting = false; v1._connected = false; v1.netup = true; v1.netupAttempted = false; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); v1.addProperty('childClip', v1.__get__childClip, function () {}); v1.addProperty('clip', v1.__get__clip, function () {}); v1.addProperty('comChannelName', function () {}, v1.__set__comChannelName); v1.addProperty('connected', v1.__get__connected, function () {}); v1.addProperty('id', v1.__get__id, function () {}); v1.addProperty('isNetworkAvailable', v1.__get__isNetworkAvailable, function () {}); ASSetPropFlags(mochi.as2.MochiServices.prototype, null, 1); } #endinitclip } movieClip 1362 __Packages.mochi.as2.MochiEvents { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiEvents) { var v1 = function () {}; mochi.as2.MochiEvents = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.getAchievements = function (properties) { mochi.as2.MochiServices.send('events_getAchievements', properties); }; v1.unlockAchievement = function (properties) { mochi.as2.MochiServices.send('events_unlockAchievement', properties); }; v1.startSession = function (achievementID) { mochi.as2.MochiServices.send('events_beginSession', {'achievementID': achievementID}, null, null); }; v1.showAwards = function (options) { mochi.as2.MochiServices.send('events_showAwards', options, null, null); }; v1.setNotifications = function (style) { mochi.as2.MochiServices.send('events_setNotifications', style, null, null); }; v1.addEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiEvents._dispatcher.addEventListener(eventType, thisObject, thatObject); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiEvents._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiEvents._dispatcher.removeEventListener(eventType, thisObject, thatObject); }; v1.startPlay = function (tag) { if (tag == undefined) { tag = 'gameplay'; } mochi.as2.MochiServices.send('events_setRoundID', {'tag': String(tag)}, null, null); }; v1.endPlay = function () { mochi.as2.MochiServices.send('events_clearRoundID', null, null, null); }; v1.trackEvent = function (tag, value) { mochi.as2.MochiServices.send('events_trackEvent', {'tag': tag, 'value': value}, null, null); }; v1.ACHIEVEMENTS_OWNED = 'AchievementOwned'; v1.ACHIEVEMENT_NEW = 'AchievementReceived'; v1.GAME_ACHIEVEMENTS = 'GameAchievements'; v1.ERROR = 'Error'; v1.IO_ERROR = 'IOError'; v1.IO_PENDING = 'IOPending'; v1.ALIGN_TOP_LEFT = 'ALIGN_TL'; v1.ALIGN_TOP = 'ALIGN_T'; v1.ALIGN_TOP_RIGHT = 'ALIGN_TR'; v1.ALIGN_LEFT = 'ALIGN_L'; v1.ALIGN_CENTER = 'ALIGN_C'; v1.ALIGN_RIGHT = 'ALIGN_R'; v1.ALIGN_BOTTOM_LEFT = 'ALIGN_BL'; v1.ALIGN_BOTTOM = 'ALIGN_B'; v1.ALIGN_BOTTOM_RIGHT = 'ALIGN_BR'; v1.FORMAT_SHORT = 'ShortForm'; v1.FORMAT_LONG = 'LongForm'; v1.FORMAT_NONE = 'NoForm'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiEvents.prototype, null, 1); } #endinitclip } movieClip 1363 __Packages.mochi.as2.MochiCoins { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiCoins) { var v1 = function () {}; mochi.as2.MochiCoins = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.showStore = function (options) { mochi.as2.MochiServices.send('coins_showStore', {'options': options}, null, null); }; v1.showItem = function (options) { if (options == undefined || typeof options.item != 'string') { trace('ERROR: showItem call must pass an Object with an item key'); return undefined; } mochi.as2.MochiServices.send('coins_showItem', {'options': options}, null, null); }; v1.showVideo = function (options) { if (options == undefined || typeof options.item != 'string') { trace('ERROR: showVideo call must pass an Object with an item key'); return undefined; } mochi.as2.MochiServices.send('coins_showVideo', {'options': options}, null, null); }; v1.getStoreItems = function () { mochi.as2.MochiServices.send('coins_getStoreItems'); }; v1.requestFunding = function (properties) { mochi.as2.MochiServices.send('social_requestFunding', properties); }; v1.addEventListener = function (eventType, delegate) { mochi.as2.MochiCoins._dispatcher.addEventListener(eventType, delegate); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiCoins._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, delegate) { mochi.as2.MochiCoins._dispatcher.removeEventListener(eventType, delegate); }; v1.STORE_SHOW = 'StoreShow'; v1.STORE_HIDE = 'StoreHide'; v1.ITEM_OWNED = 'ItemOwned'; v1.ITEM_NEW = 'ItemNew'; v1.STORE_ITEMS = 'StoreItems'; v1.ERROR = 'Error'; v1.IO_ERROR = 'IOError'; v1.NO_USER = 'NoUser'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiCoins.prototype, null, 1); } #endinitclip } movieClip 1364 __Packages.mochi.as2.MochiSocial { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiSocial) { var v1 = function () {}; mochi.as2.MochiSocial = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.showLoginWidget = function (options) { mochi.as2.MochiServices.setContainer(); mochi.as2.MochiServices.stayOnTop(); mochi.as2.MochiServices.send('social_showLoginWidget', {'options': options}); }; v1.hideLoginWidget = function () { mochi.as2.MochiServices.send('social_hideLoginWidget'); }; v1.requestLogin = function (properties) { mochi.as2.MochiServices.send('social_requestLogin', properties); }; v1.getFriendsList = function (properties) { mochi.as2.MochiServices.send('social_getFriendsList', properties); }; v1.showProfile = function (options) { mochi.as2.MochiServices.setContainer(); mochi.as2.MochiServices.stayOnTop(); mochi.as2.MochiServices.send('social_showProfile', options); }; v1.postToStream = function (properties) { mochi.as2.MochiServices.send('social_postToStream', properties); }; v1.inviteFriends = function (properties) { mochi.as2.MochiServices.send('social_inviteFriends', properties); }; v1.requestFan = function (properties) { mochi.as2.MochiServices.send('social_requestFan', properties); }; v1.saveUserProperties = function (properties) { mochi.as2.MochiServices.send('social_saveUserProperties', properties); }; v1.addEventListener = function (eventType, delegate) { mochi.as2.MochiSocial._dispatcher.addEventListener(eventType, delegate); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiSocial._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, delegate) { mochi.as2.MochiSocial._dispatcher.removeEventListener(eventType, delegate); }; v1.LOGGED_IN = 'LoggedIn'; v1.LOGGED_OUT = 'LoggedOut'; v1.LOGIN_SHOW = 'LoginShow'; v1.LOGIN_HIDE = 'LoginHide'; v1.LOGIN_SHOWN = 'LoginShown'; v1.PROFILE_SHOW = 'ProfileShow'; v1.PROFILE_HIDE = 'ProfileHide'; v1.PROPERTIES_SAVED = 'PropertySaved'; v1.WIDGET_LOADED = 'WidgetLoaded'; v1.FRIEND_LIST = 'FriendsList'; v1.PROFILE_DATA = 'ProfileData'; v1.GAMEPLAY_DATA = 'GameplayData'; v1.ACTION_CANCELED = 'onCancel'; v1.ACTION_COMPLETE = 'onComplete'; v1.USER_INFO = 'UserInfo'; v1.ERROR = 'Error'; v1.IO_ERROR = 'IOError'; v1.NO_USER = 'NoUser'; v1.PROPERTIES_SIZE = 'PropertiesSize'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiSocial.prototype, null, 1); } #endinitclip } movieClip 1056 __Packages.com.newgrounds.components.FlashAdBase { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.components) { _global.com.newgrounds.components = new Object(); } if (!_global.com.newgrounds.components.FlashAdBase) { var v1 = function () { super(); try { System.security.allowDomain('server.cpmstar.com'); System.security.allowInsecureDomain('server.cpmstar.com'); } this._x = int(this._x); this._y = int(this._y); this.stop(); if (this.__get___newgroundsButton()) { (this.__get___newgroundsButton()).onRelease = this.onNGClick; } this.onUnload = this.removeAd; var v4 = this; this._adListener = {'onLoadError': function (target, error, httpStatus) { target._parent.onAdError(target, error, httpStatus); }}; if (com.newgrounds.API.__get__adFeedURL()) { this.loadAdFeed(); } else { com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, {'target': this, 'func': this.loadAdFeed}); } }; com.newgrounds.components.FlashAdBase = v1; com.newgrounds.components.FlashAdBase extends MovieClip; var v2 = v1.prototype; v2.__get___adContainer = function () { return this.adContainer; }; v2.__get___newgroundsButton = function () { return this.newgroundsButton; }; v2.__get__showBorder = function () { return this._showBorder; }; v2.__set__showBorder = function (value) { this._showBorder = value; if (this._showBorder) { if (this._ad) { var v2 = this._ad.getProgress(this.__get___adContainer()); if (v2.bytesLoaded >= v2.bytesTotal) { this.gotoAndStop('loaded'); } else { this.gotoAndStop('loading'); } } else { this.gotoAndStop('idle'); } } else { this.gotoAndStop('noBorder'); } return this.__get__showBorder(); }; v2.loadAdFeed = function (event) { if (event == undefined) { event = null; } this._adFeedLoader = new LoadVars(); var target = this; this._adFeedLoader.onData = function (data) { target.onAdFeedLoaded(data); }; this._adFeedLoader.load(com.newgrounds.API.__get__adFeedURL(), this._adFeedLoader); }; v2.onAdFeedLoaded = function (data) { if (data && data != '') { this.loadAd(data); } else { this.onAdError(); } }; v2.loadAd = function (adURL) { this._ad = new MovieClipLoader(); this._ad.addListener(this._adListener); (this.__get___adContainer())._lockroot = true; this._ad.loadClip(adURL, this.__get___adContainer()); }; v2.removeAd = function () { this._adFeedLoader.onData = null; this._adFeedLoader = null; this._ad.removeListener(this._adListener); if (this.__get___adContainer()) { this._ad.unloadClip(this.__get___adContainer()); } this._ad = null; }; v2.onAdError = function (target, error, httpStatus) { com.newgrounds.Logger.logError('Unable to load ad.'); this.removeAd(); }; v2.onNGClick = function () { com.newgrounds.API.loadNewgrounds(); }; v2.addProperty('_adContainer', v2.__get___adContainer, function () {}); v2.addProperty('_newgroundsButton', v2.__get___newgroundsButton, function () {}); v2.addProperty('showBorder', v2.__get__showBorder, v2.__set__showBorder); ASSetPropFlags(com.newgrounds.components.FlashAdBase.prototype, null, 1); } #endinitclip } movieClip 1028 __Packages.com.newgrounds.shims.APIShim { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.shims) { _global.com.newgrounds.shims = new Object(); } if (!_global.com.newgrounds.shims.APIShim) { var v1 = function () { super(); }; com.newgrounds.shims.APIShim = v1; com.newgrounds.shims.APIShim extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(com.newgrounds.shims.APIShim.prototype, null, 1); } #endinitclip } movieClip 1040 __Packages.com.newgrounds.crypto.MD5 { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.crypto) { _global.com.newgrounds.crypto = new Object(); } if (!_global.com.newgrounds.crypto.MD5) { var v1 = function () {}; com.newgrounds.crypto.MD5 = v1; var v2 = v1.prototype; v1.hash = function (src) { return com.newgrounds.crypto.MD5.hex_md5(src); }; v1.hex_md5 = function (src) { return com.newgrounds.crypto.MD5.binl2hex(com.newgrounds.crypto.MD5.core_md5(com.newgrounds.crypto.MD5.str2binl(src), src.length * 8)); }; v1.core_md5 = function (x, len) { x[len >> 5] |= 128 << len % 32; x[(len + 64 >>> 9 << 4) + 14] = len; var v4 = 1732584193; var v3 = -271733879; var v2 = -1732584194; var v1 = 271733878; var v5 = 0; while (v5 < x.length) { var v10 = v4; var v9 = v3; var v8 = v2; var v7 = v1; v4 = com.newgrounds.crypto.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 0], 7, -680876936); v1 = com.newgrounds.crypto.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 1], 12, -389564586); v2 = com.newgrounds.crypto.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 2], 17, 606105819); v3 = com.newgrounds.crypto.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 3], 22, -1044525330); v4 = com.newgrounds.crypto.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 4], 7, -176418897); v1 = com.newgrounds.crypto.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 5], 12, 1200080426); v2 = com.newgrounds.crypto.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 6], 17, -1473231341); v3 = com.newgrounds.crypto.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 7], 22, -45705983); v4 = com.newgrounds.crypto.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 8], 7, 1770035416); v1 = com.newgrounds.crypto.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 9], 12, -1958414417); v2 = com.newgrounds.crypto.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 10], 17, -42063); v3 = com.newgrounds.crypto.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 11], 22, -1990404162); v4 = com.newgrounds.crypto.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 12], 7, 1804603682); v1 = com.newgrounds.crypto.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 13], 12, -40341101); v2 = com.newgrounds.crypto.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 14], 17, -1502002290); v3 = com.newgrounds.crypto.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 15], 22, 1236535329); v4 = com.newgrounds.crypto.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 1], 5, -165796510); v1 = com.newgrounds.crypto.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 6], 9, -1069501632); v2 = com.newgrounds.crypto.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 11], 14, 643717713); v3 = com.newgrounds.crypto.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 0], 20, -373897302); v4 = com.newgrounds.crypto.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 5], 5, -701558691); v1 = com.newgrounds.crypto.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 10], 9, 38016083); v2 = com.newgrounds.crypto.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 15], 14, -660478335); v3 = com.newgrounds.crypto.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 4], 20, -405537848); v4 = com.newgrounds.crypto.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 9], 5, 568446438); v1 = com.newgrounds.crypto.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 14], 9, -1019803690); v2 = com.newgrounds.crypto.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 3], 14, -187363961); v3 = com.newgrounds.crypto.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 8], 20, 1163531501); v4 = com.newgrounds.crypto.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 13], 5, -1444681467); v1 = com.newgrounds.crypto.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 2], 9, -51403784); v2 = com.newgrounds.crypto.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 7], 14, 1735328473); v3 = com.newgrounds.crypto.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 12], 20, -1926607734); v4 = com.newgrounds.crypto.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 5], 4, -378558); v1 = com.newgrounds.crypto.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 8], 11, -2022574463); v2 = com.newgrounds.crypto.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 11], 16, 1839030562); v3 = com.newgrounds.crypto.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 14], 23, -35309556); v4 = com.newgrounds.crypto.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 1], 4, -1530992060); v1 = com.newgrounds.crypto.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 4], 11, 1272893353); v2 = com.newgrounds.crypto.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 7], 16, -155497632); v3 = com.newgrounds.crypto.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 10], 23, -1094730640); v4 = com.newgrounds.crypto.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 13], 4, 681279174); v1 = com.newgrounds.crypto.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 0], 11, -358537222); v2 = com.newgrounds.crypto.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 3], 16, -722521979); v3 = com.newgrounds.crypto.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 6], 23, 76029189); v4 = com.newgrounds.crypto.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 9], 4, -640364487); v1 = com.newgrounds.crypto.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 12], 11, -421815835); v2 = com.newgrounds.crypto.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 15], 16, 530742520); v3 = com.newgrounds.crypto.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 2], 23, -995338651); v4 = com.newgrounds.crypto.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 0], 6, -198630844); v1 = com.newgrounds.crypto.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 7], 10, 1126891415); v2 = com.newgrounds.crypto.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 14], 15, -1416354905); v3 = com.newgrounds.crypto.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 5], 21, -57434055); v4 = com.newgrounds.crypto.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 12], 6, 1700485571); v1 = com.newgrounds.crypto.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 3], 10, -1894986606); v2 = com.newgrounds.crypto.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 10], 15, -1051523); v3 = com.newgrounds.crypto.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 1], 21, -2054922799); v4 = com.newgrounds.crypto.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 8], 6, 1873313359); v1 = com.newgrounds.crypto.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 15], 10, -30611744); v2 = com.newgrounds.crypto.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 6], 15, -1560198380); v3 = com.newgrounds.crypto.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 13], 21, 1309151649); v4 = com.newgrounds.crypto.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 4], 6, -145523070); v1 = com.newgrounds.crypto.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 11], 10, -1120210379); v2 = com.newgrounds.crypto.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 2], 15, 718787259); v3 = com.newgrounds.crypto.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 9], 21, -343485551); v4 = com.newgrounds.crypto.MD5.safe_add(v4, v10); v3 = com.newgrounds.crypto.MD5.safe_add(v3, v9); v2 = com.newgrounds.crypto.MD5.safe_add(v2, v8); v1 = com.newgrounds.crypto.MD5.safe_add(v1, v7); v5 += 16; } return new Array(v4, v3, v2, v1); }; v1.md5_cmn = function (q, a, b, x, s, t) { return com.newgrounds.crypto.MD5.safe_add(com.newgrounds.crypto.MD5.bit_rol(com.newgrounds.crypto.MD5.safe_add(com.newgrounds.crypto.MD5.safe_add(a, q), com.newgrounds.crypto.MD5.safe_add(x, t)), s), b); }; v1.md5_ff = function (a, b, c, d, x, s, t) { return com.newgrounds.crypto.MD5.md5_cmn(b & c | ~b & d, a, b, x, s, t); }; v1.md5_gg = function (a, b, c, d, x, s, t) { return com.newgrounds.crypto.MD5.md5_cmn(b & d | c & ~d, a, b, x, s, t); }; v1.md5_hh = function (a, b, c, d, x, s, t) { return com.newgrounds.crypto.MD5.md5_cmn(b ^ c ^ d, a, b, x, s, t); }; v1.md5_ii = function (a, b, c, d, x, s, t) { return com.newgrounds.crypto.MD5.md5_cmn(c ^ (b | ~d), a, b, x, s, t); }; v1.bit_rol = function (num, cnt) { return num << cnt | num >>> 32 - cnt; }; v1.safe_add = function (x, y) { var v1 = (x & 65535) + (y & 65535); var v2 = (x >> 16) + (y >> 16) + (v1 >> 16); return v2 << 16 | v1 & 65535; }; v1.str2binl = function (str) { var v3 = new Array(); var v4 = 255; var v1 = 0; while (v1 < str.length * 8) { v3[v1 >> 5] |= (str.charCodeAt(v1 / 8) & v4) << v1 % 32; v1 += 8; } return v3; }; v1.binl2hex = function (binarray) { var v4 = new String(''); var v3 = new String('0123456789abcdef'); var v1 = 0; while (v1 < binarray.length * 4) { v4 += v3.charAt(binarray[v1 >> 2] >> (v1 % 4) * 8 + 4 & 15) + v3.charAt(binarray[v1 >> 2] >> (v1 % 4) * 8 & 15); ++v1; } return v4; }; ASSetPropFlags(com.newgrounds.crypto.MD5.prototype, null, 1); } #endinitclip } movieClip 1041 __Packages.com.newgrounds.crypto.RC4 { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.crypto) { _global.com.newgrounds.crypto = new Object(); } if (!_global.com.newgrounds.crypto.RC4) { var v1 = function () {}; com.newgrounds.crypto.RC4 = v1; var v2 = v1.prototype; v1.encrypt = function (src, key) { var v3 = com.newgrounds.crypto.RC4.strToChars(src); var v1 = com.newgrounds.crypto.RC4.strToChars(key); var v2 = com.newgrounds.crypto.RC4.calculate(v3, v1); return com.newgrounds.crypto.RC4.charsToHex(v2); }; v1.encryptbin = function (src, key) { var v3 = com.newgrounds.crypto.RC4.strToChars(src); var v1 = com.newgrounds.crypto.RC4.strToChars(key); var v2 = com.newgrounds.crypto.RC4.calculate(v3, v1); return v2; }; v1.decrypt = function (src, key) { var v3 = com.newgrounds.crypto.RC4.hexToChars(src); var v1 = com.newgrounds.crypto.RC4.strToChars(key); var v2 = com.newgrounds.crypto.RC4.calculate(v3, v1); return com.newgrounds.crypto.RC4.charsToStr(v2); }; v1.initialize = function (pwd) { var v2 = 0; var v3; var v4 = pwd.length; var v1 = 0; while (v1 <= 255) { com.newgrounds.crypto.RC4.mykey[v1] = pwd[v1 % v4]; com.newgrounds.crypto.RC4.sbox[v1] = v1; ++v1; } v1 = 0; while (v1 <= 255) { v2 = (v2 + com.newgrounds.crypto.RC4.sbox[v1] + com.newgrounds.crypto.RC4.mykey[v1]) % 256; v3 = com.newgrounds.crypto.RC4.sbox[v1]; com.newgrounds.crypto.RC4.sbox[v1] = com.newgrounds.crypto.RC4.sbox[v2]; com.newgrounds.crypto.RC4.sbox[v2] = v3; ++v1; } }; v1.calculate = function (plaintxt, psw) { com.newgrounds.crypto.RC4.initialize(psw); var v1 = 0; var v2 = 0; var v9 = new Array(); var v7; var v5; var v6; var v3 = 0; while (v3 < plaintxt.length) { v1 = (v1 + 1) % 256; v2 = (v2 + com.newgrounds.crypto.RC4.sbox[v1]) % 256; v5 = com.newgrounds.crypto.RC4.sbox[v1]; com.newgrounds.crypto.RC4.sbox[v1] = com.newgrounds.crypto.RC4.sbox[v2]; com.newgrounds.crypto.RC4.sbox[v2] = v5; var v4 = (com.newgrounds.crypto.RC4.sbox[v1] + com.newgrounds.crypto.RC4.sbox[v2]) % 256; v7 = com.newgrounds.crypto.RC4.sbox[v4]; v6 = plaintxt[v3] ^ v7; v9.push(v6); ++v3; } return v9; }; v1.charsToHex = function (chars) { var v4 = new String(''); var v3 = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'); var v1 = 0; while (v1 < chars.length) { v4 += v3[chars[v1] >> 4] + v3[chars[v1] & 15]; ++v1; } return v4; }; v1.hexToChars = function (hex) { var v3 = new Array(); var v1 = (hex.substr(0, 2) == '0x') ? 2 : 0; while (v1 < hex.length) { v3.push(parseInt(hex.substr(v1, 2), 16)); v1 += 2; } return v3; }; v1.charsToStr = function (chars) { var v3 = new String(''); var v1 = 0; while (v1 < chars.length) { v3 += String.fromCharCode(chars[v1]); ++v1; } return v3; }; v1.strToChars = function (str) { var v3 = new Array(); var v1 = 0; while (v1 < str.length) { v3.push(str.charCodeAt(v1)); ++v1; } return v3; }; v1.sbox = new Array(255); v1.mykey = new Array(255); ASSetPropFlags(com.newgrounds.crypto.RC4.prototype, null, 1); } #endinitclip } movieClip 1042 __Packages.com.newgrounds.encoders.json.JSON { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.json) { _global.com.newgrounds.encoders.json = new Object(); } if (!_global.com.newgrounds.encoders.json.JSON) { var v1 = function () {}; com.newgrounds.encoders.json.JSON = v1; var v2 = v1.prototype; v1.encode = function (arg, noquotes) { var v3; var v2; var v6; var v1 = ''; var v4; if (arg.isSServerVar()) { var v8 = 'sservervariable'; } else { var v8 = typeof arg; } switch (v8) { return 'null'; case 'sservervariable': return '?' + arg.getEncodedValue(); break; case 'object': if (arg) { if (arg instanceof Array) { v2 = 0; while (v2 < arg.length) { v4 = com.newgrounds.encoders.json.JSON.encode(arg[v2]); if (v1) { v1 += ','; } v1 += v4; ++v2; } return '[' + v1 + ']'; } else { if (typeof arg.toString != 'undefined') { for (v2 in arg) { v4 = arg[v2]; if (typeof v4 != 'undefined' && typeof v4 != 'function') { v4 = com.newgrounds.encoders.json.JSON.encode(v4); if (v1) { v1 += ','; } v1 += com.newgrounds.encoders.json.JSON.encode(v2) + ':' + v4; } } return '{' + v1 + '}'; } } } return 'null'; case 'number': return isFinite(arg) ? String(arg) : 'null'; case 'string': v6 = arg.length; if (noquotes) { var v7 = ''; } else { var v7 = '"'; } v1 = v7; v2 = 0; while (v2 < v6) { v3 = arg.charAt(v2); if (v3 >= ' ') { if (v3 == '\\' || v3 == '"') { v1 += '\\'; } v1 += v3; } else { switch (v3) { case '\b': v1 += '\\b'; break; case '\f': v1 += '\\f'; break; case '\n': v1 += '\\n'; break; case '\r': v1 += '\\r'; break; case '\t': v1 += '\\t'; break; default: v3 = v3.charCodeAt(); v1 += '\\u00' + (Math.floor(v3 / 16)).toString(16) + (v3 % 16).toString(16); } } v2 += 1; } return v1 + v7; case 'boolean': return String(arg); default: return 'null'; } }; v1.background_encode = function (arg, callback) { if (com.newgrounds.encoders.json.JSON.busy) { trace('[Newgrounds Encoder] :: Cannot encode a new file until the previous file is completed'); return false; } else { if (!callback) { trace('[Newgrounds Encoder] :: Missing a callback function, skipping encode'); return false; } } com.newgrounds.encoders.json.JSON.busy = true; var v2 = new Date(); com.newgrounds.encoders.json.JSON.start = v2.getTime(); com.newgrounds.encoders.json.JSON.cache = {'busy': false, 'complete': false, 'arg': arg, 'target': arg, 'parents': [], 'encoded': '', 'callback': callback, 'encode_chunk': function () { com.newgrounds.encoders.json.JSON.encode_chunk(); }}; if (com.newgrounds.encoders.json.JSON.getType(arg) == 'object') { com.newgrounds.encoders.json.JSON.cache.encoded = '{'; com.newgrounds.encoders.json.JSON.interval = setInterval(com.newgrounds.encoders.json.JSON.cache, 'encode_chunk', 25); return true; } if (com.newgrounds.encoders.json.JSON.getType(arg) == 'array') { com.newgrounds.encoders.json.JSON.cache.encoded = '['; } com.newgrounds.encoders.json.JSON.interval = setInterval(com.newgrounds.encoders.json.JSON.cache, 'encode_chunk', 25); return true; }; v1.background_decode = function (arg, callback) { if (com.newgrounds.encoders.json.JSON.busy) { trace('[Newgrounds Encoder] :: Cannot decode a new file until the previous file is completed'); return false; } else { if (!callback) { trace('[Newgrounds Encoder] :: Missing a callback function, skipping decode'); return false; } } com.newgrounds.encoders.json.JSON.busy = true; var v1 = new Date(); com.newgrounds.encoders.json.JSON.start = v1.getTime(); com.newgrounds.encoders.json.JSON.cache = {'busy': false, 'callback': callback, 'complete': false, 'arg': arg, 'pos': 0, 'parents': ['root'], 'target': null, 'scratch': '', 'decode_chunk': function () { com.newgrounds.encoders.json.JSON.decode_chunk(); }}; com.newgrounds.encoders.json.JSON.interval = setInterval(com.newgrounds.encoders.json.JSON.cache, 'decode_chunk', 25); return true; }; v1.decode = function (text) { var at = 0; var ch = ' '; var _value; var _error = function (m) { throw {'name': 'JSONError', 'message': m, 'at': at - 1, 'text': text}; }; var _next = function () { ch = text.charAt(at); at += 1; return ch; }; var _white = function () { while (ch) { if (ch <= ' ') { _next(); } else { if (ch == '/') { switch (_next()) { case '/': for (;;) { if (!(_next() && ch != '\n' && ch != '\r')) break; } break; case '*': _next(); for (;;) { if (ch) { if (ch == '*') { if (_next() == '/') { _next(); break; } } else { _next(); } continue; } _error('Unterminated comment'); } break; default: _error('Syntax error'); } } else { break; } } } }; var _string = function () { var v4; var v1 = ''; var v3; var v2; var v5 = false; if (ch == '"') { while (_next()) { if (ch == '"') { _next(); return v1; } else { if (ch == '\\') { switch (_next()) { case 'b': v1 += '\b'; break; case 'f': v1 += '\f'; break; case 'n': v1 += '\n'; break; case 'r': v1 += '\r'; break; case 't': v1 += '\t'; break; case 'u': v2 = 0; v4 = 0; while (v4 < 4) { v3 = parseInt(_next(), 16); if (!isFinite(v3)) { v5 = true; break; } v2 = v2 * 16 + v3; v4 += 1; } if (v5) { v5 = false; } else { v1 += String.fromCharCode(v2); break; default: v1 += ch; } } } else { v1 += ch; } } } } _error('Bad string'); }; var _array = function () { var v1 = []; if (ch == '[') { _next(); _white(); if (ch == ']') { _next(); return v1; } while (ch) { v1.push(_value()); _white(); if (ch == ']') { _next(); return v1; } else { if (ch != ',') { break; } } _next(); _white(); } } _error('Bad array'); }; var _object = function () { var v2; var v1 = {}; if (ch == '{') { _next(); _white(); if (ch == '}') { _next(); return v1; } while (ch) { v2 = _string(); _white(); if (ch != ':') { break; } _next(); v1[v2] = _value(); _white(); if (ch == '}') { _next(); return v1; } else { if (ch != ',') { break; } } _next(); _white(); } } _error('Bad object'); }; var _number = function () { var v1 = ''; var v2; if (ch == '-') { v1 = '-'; _next(); } for (;;) { if (!(ch >= '0' && ch <= '9')) break; v1 += ch; _next(); } if (ch == '.') { v1 += '.'; for (;;) { if (!(_next() && ch >= '0' && ch <= '9')) break; v1 += ch; } } v2 = 1 * v1; if (!isFinite(v2)) { _error('Bad number'); } else { return v2; } }; var _word = function () { switch (ch) { case 't': if (_next() == 'r' && _next() == 'u' && _next() == 'e') { _next(); return true; } break; case 'f': if (_next() == 'a' && _next() == 'l' && _next() == 's' && _next() == 'e') { _next(); return false; } break; case 'n': if (_next() == 'u' && _next() == 'l' && _next() == 'l') { _next(); return null; } } _error('Syntax error'); }; _value = function () { _white(); switch (ch) { case '{': return _object(); case '[': return _array(); case '"': return _string(); case '-': return _number(); } return (ch >= '0' && ch <= '9') ? _number() : _word(); }; return _value(); }; v1.getType = function (v) { if (v instanceof Array) { return 'array'; } else { return typeof v; } }; v1.decode_chunk = function () { if (!com.newgrounds.encoders.json.JSON.cache.busy && !com.newgrounds.encoders.json.JSON.cache.complete) { com.newgrounds.encoders.json.JSON.cache.busy = true; var v1 = 0; while (v1 < com.newgrounds.encoders.json.JSON.decode_chunks) { com.newgrounds.encoders.json.JSON.chunk_decoder(); if (com.newgrounds.encoders.json.JSON.cache.complete) { break; } ++v1; } trace(Math.round((com.newgrounds.encoders.json.JSON.cache.pos / com.newgrounds.encoders.json.JSON.cache.arg.length) * 100) + '% decoded'); com.newgrounds.encoders.json.JSON.cache.busy = false; } if (com.newgrounds.encoders.json.JSON.cache.complete) { var v2 = new Date(); com.newgrounds.encoders.json.JSON.busy = false; clearInterval(com.newgrounds.encoders.json.JSON.interval); com.newgrounds.encoders.json.JSON.cache.callback(com.newgrounds.encoders.json.JSON.cache.root, v2.getTime() - com.newgrounds.encoders.json.JSON.start); com.newgrounds.encoders.json.JSON.cache.arg = ''; } }; v1.encode_chunk = function () { if (!com.newgrounds.encoders.json.JSON.cache.busy && !com.newgrounds.encoders.json.JSON.cache.complete) { com.newgrounds.encoders.json.JSON.cache.busy = true; var v1 = 0; while (v1 < com.newgrounds.encoders.json.JSON.encode_chunks) { com.newgrounds.encoders.json.JSON.chunk_encoder(); if (com.newgrounds.encoders.json.JSON.cache.complete) { break; } ++v1; } com.newgrounds.encoders.json.JSON.cache.busy = false; } if (com.newgrounds.encoders.json.JSON.cache.complete) { var v3 = new Date(); var v2 = v3.getTime(); com.newgrounds.encoders.json.JSON.busy = false; clearInterval(com.newgrounds.encoders.json.JSON.interval); com.newgrounds.encoders.json.JSON.cache.callback(com.newgrounds.encoders.json.JSON.cache.encoded, v2 - com.newgrounds.encoders.json.JSON.start); com.newgrounds.encoders.json.JSON.cache.encoded = ''; } }; v1.chunk_decoder = function () { function _object() { var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (!com.newgrounds.encoders.json.JSON.cache.mode) { com.newgrounds.encoders.json.JSON.cache.mode = 'object'; ++com.newgrounds.encoders.json.JSON.cache.pos; v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (v1 != '"') { throw 'Malformed object key in encoded string. Keys must be wrapped in quotes ("")'; } com.newgrounds.encoders.json.JSON.cache.scratch = ''; _setTargetValue({}); } else { if (v1 == ',') { ++com.newgrounds.encoders.json.JSON.cache.pos; v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (v1 != '"') { throw 'Malformed object key in encoded string. Keys must be wrapped in quotes ("")'; } com.newgrounds.encoders.json.JSON.cache.scratch = ''; } else { if (v1 == '}') { _useParent(); } else { if (v1 == '"') { ++com.newgrounds.encoders.json.JSON.cache.pos; v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (v1 != ':') { throw 'Malformed object notation. Object keys and values must be separated by colons(:)'; } _addParent(com.newgrounds.encoders.json.JSON.cache.scratch); com.newgrounds.encoders.json.JSON.cache.mode = null; } else { if (v1 == '\\') { ++com.newgrounds.encoders.json.JSON.cache.pos; v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); } com.newgrounds.encoders.json.JSON.cache.scratch += v1; } } } } ++com.newgrounds.encoders.json.JSON.cache.pos; } function _array() { var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (!com.newgrounds.encoders.json.JSON.cache.mode) { com.newgrounds.encoders.json.JSON.cache.mode = 'array'; ++com.newgrounds.encoders.json.JSON.cache.pos; v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); _setTargetValue([]); if (v1 != ']') { _addArrayKey(); } else { _useParent(); } return undefined; } else { if (v1 == ',') { _addArrayKey(); } else { if (v1 == ']') { _useParent(); } } } ++com.newgrounds.encoders.json.JSON.cache.pos; } function _boolean() { var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (v1 == 't') { _setTargetValue(true); com.newgrounds.encoders.json.JSON.cache.pos += 3; } else { if (v1 == 'f') { _setTargetValue(false); com.newgrounds.encoders.json.JSON.cache.pos += 4; } else { throw 'Bool values must be true or false'; } } _useParent(); } function _null() { var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (v1 == 'n') { _setTargetValue(null); com.newgrounds.encoders.json.JSON.cache.pos += 2; } else { throw 'Null values must be null'; } _useParent(); } function _string() { var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (!com.newgrounds.encoders.json.JSON.cache.mode) { if (v1 != '"') { throw 'Strings must be wrapped in quotes ("")'; } com.newgrounds.encoders.json.JSON.cache.scratch = ''; com.newgrounds.encoders.json.JSON.cache.mode = 'string'; } else { if (v1 == '"') { _setTargetValue(com.newgrounds.encoders.json.JSON.cache.scratch); _useParent(); } else { if (v1 == '\\') { ++com.newgrounds.encoders.json.JSON.cache.pos; v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); switch (v1) { case 'n': v1 = '\n'; break; case 'r': v1 = '\n'; break; case 't': v1 = '\t'; break; case 'u': v1 = '\\' + v1; } } com.newgrounds.encoders.json.JSON.cache.scratch += v1; } } ++com.newgrounds.encoders.json.JSON.cache.pos; } function _number() { var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); var v2 = '01234567890.-'; if (!com.newgrounds.encoders.json.JSON.cache.mode) { com.newgrounds.encoders.json.JSON.cache.mode = 'number'; com.newgrounds.encoders.json.JSON.cache.scratch = ''; } if (v2.indexOf(v1) < 0) { _setTargetValue(Number(com.newgrounds.encoders.json.JSON.cache.scratch)); _useParent(); } else { com.newgrounds.encoders.json.JSON.cache.scratch += v1; ++com.newgrounds.encoders.json.JSON.cache.pos; } } function _setTargetValue(newval) { var v2 = (_getParent()).obj; var v1 = com.newgrounds.encoders.json.JSON.cache.parents[com.newgrounds.encoders.json.JSON.cache.parents.length - 1]; v2[v1] = newval; } function _useParent() { com.newgrounds.encoders.json.JSON.cache.mode = com.newgrounds.encoders.json.JSON.getType((_getParent()).obj); com.newgrounds.encoders.json.JSON.cache.parents.pop(); } function _getParent() { var v2 = com.newgrounds.encoders.json.JSON.cache; var v1 = 0; while (v1 < com.newgrounds.encoders.json.JSON.cache.parents.length - 1) { v2 = v2[com.newgrounds.encoders.json.JSON.cache.parents[v1]]; ++v1; } return {'obj': v2, 'name': com.newgrounds.encoders.json.JSON.cache.parents[v1]}; } function _getCurrent() { var v2 = com.newgrounds.encoders.json.JSON.cache; var v1 = 0; while (v1 < com.newgrounds.encoders.json.JSON.cache.parents.length) { v2 = v2[com.newgrounds.encoders.json.JSON.cache.parents[v1]]; ++v1; } return {'obj': v2, 'name': com.newgrounds.encoders.json.JSON.cache.parents[v1]}; } function _addParent(child) { com.newgrounds.encoders.json.JSON.cache.parents.push(child); } function _addArrayKey() { var v1 = (_getCurrent()).obj.length; com.newgrounds.encoders.json.JSON.cache.parents.push(v1); com.newgrounds.encoders.json.JSON.cache.mode = null; } if (com.newgrounds.encoders.json.JSON.cache.pos >= com.newgrounds.encoders.json.JSON.cache.arg.length) { com.newgrounds.encoders.json.JSON.cache.complete = true; return undefined; } else { if (com.newgrounds.encoders.json.JSON.cache.mode) { ('_' + com.newgrounds.encoders.json.JSON.cache.mode)(); } else { var char = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); switch (char) { case '{': _object(); break; case '[': _array(); break; case '"': _string(); break; case 'n': _null(); break; case 't': _boolean(); break; case 'f': _boolean(); break; default: _number(); } } } }; v1.chunk_encoder = function () { if (com.newgrounds.encoders.json.JSON.cache.complete) { return undefined; } var v2 = com.newgrounds.encoders.json.JSON.getType(com.newgrounds.encoders.json.JSON.cache.target); switch (v2) { case 'number': com.newgrounds.encoders.json.JSON.cache.encoded += com.newgrounds.encoders.json.JSON.cache.target; com.newgrounds.encoders.json.JSON.getParent(); break; case 'string': com.newgrounds.encoders.json.JSON.cache.encoded += '"' + (com.newgrounds.encoders.json.JSON.cache.target.split('"')).join('\\"') + '"'; com.newgrounds.encoders.json.JSON.getParent(); break; case 'boolean': com.newgrounds.encoders.json.JSON.cache.encoded += (com.newgrounds.encoders.json.JSON.cache.target == true) ? 'true' : 'false'; com.newgrounds.encoders.json.JSON.getParent(); break; case 'null': com.newgrounds.encoders.json.JSON.cache.encoded += 'null'; com.newgrounds.encoders.json.JSON.getParent(); break; case 'array': if (com.newgrounds.encoders.json.JSON.cache.target.length < 1) { com.newgrounds.encoders.json.JSON.cache.encoded += ']'; com.newgrounds.encoders.json.JSON.getParent(); } else { com.newgrounds.encoders.json.JSON.cache.parents.push(com.newgrounds.encoders.json.JSON.cache.target); com.newgrounds.encoders.json.JSON.cache.target = com.newgrounds.encoders.json.JSON.cache.target[0]; if (com.newgrounds.encoders.json.JSON.getType(com.newgrounds.encoders.json.JSON.cache.target) == 'array') { com.newgrounds.encoders.json.JSON.cache.encoded += '['; } else { if (com.newgrounds.encoders.json.JSON.getType(com.newgrounds.encoders.json.JSON.cache.target) == 'object') { com.newgrounds.encoders.json.JSON.cache.encoded += '{'; } } } break; case 'object': for (var v1 in com.newgrounds.encoders.json.JSON.cache.target) { break; } if (v1 === undefined) { com.newgrounds.encoders.json.JSON.cache.encoded += '}'; com.newgrounds.encoders.json.JSON.getParent(); } else { com.newgrounds.encoders.json.JSON.cache.parents.push(com.newgrounds.encoders.json.JSON.cache.target); com.newgrounds.encoders.json.JSON.cache.target = com.newgrounds.encoders.json.JSON.cache.target[v1]; com.newgrounds.encoders.json.JSON.cache.encoded += '"' + (v1.split('"')).join('\\"') + '":'; if (com.newgrounds.encoders.json.JSON.getType(com.newgrounds.encoders.json.JSON.cache.target) == 'array') { com.newgrounds.encoders.json.JSON.cache.encoded += '['; } else { if (com.newgrounds.encoders.json.JSON.getType(com.newgrounds.encoders.json.JSON.cache.target) == 'object') { com.newgrounds.encoders.json.JSON.cache.encoded += '{'; } } } break; default: com.newgrounds.encoders.json.JSON.cache.encoded += 'null'; com.newgrounds.encoders.json.JSON.getParent(); } }; v1.getParent = function () { if (com.newgrounds.encoders.json.JSON.cache.parents.length > 0) { var v1 = com.newgrounds.encoders.json.JSON.cache.parents.pop(); if (com.newgrounds.encoders.json.JSON.getType(v1) == 'array') { v1.shift(); } else { for (var v3 in v1) { delete v1[v3]; break; } } if (com.newgrounds.encoders.json.JSON.getType(v1) == 'object' or com.newgrounds.encoders.json.JSON.getType(v1) == 'array') { for (var v2 in v1) { break; } if (v2 !== undefined) { com.newgrounds.encoders.json.JSON.cache.encoded += ','; } } com.newgrounds.encoders.json.JSON.cache.target = v1; } else { com.newgrounds.encoders.json.JSON.cache.complete = true; } }; v1.encode_chunks = 20000; v1.decode_chunks = 20000; v1.busy = false; ASSetPropFlags(com.newgrounds.encoders.json.JSON.prototype, null, 1); } #endinitclip } movieClip 1047 __Packages.com.newgrounds.Score { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.Score) { var v1 = function (rank, username, score, numericValue, tag) { this._rank = rank; this._username = username; this._score = score; this._numericValue = numericValue; this._tag = tag; }; com.newgrounds.Score = v1; var v2 = v1.prototype; v2.__get__numericValue = function () { return this._numericValue; }; v2.__get__rank = function () { return this._rank; }; v2.__get__score = function () { return this._score; }; v2.__get__tag = function () { return this._tag; }; v2.__get__username = function () { return this._username; }; v2.toString = function () { return this._rank + '.\t' + this._username + '\t' + this._score; }; v2.addProperty('numericValue', v2.__get__numericValue, function () {}); v2.addProperty('rank', v2.__get__rank, function () {}); v2.addProperty('score', v2.__get__score, function () {}); v2.addProperty('tag', v2.__get__tag, function () {}); v2.addProperty('username', v2.__get__username, function () {}); ASSetPropFlags(com.newgrounds.Score.prototype, null, 1); } #endinitclip } frame 2 { stopAllSounds(); } frame 3 { entireMovie.setVolume(100); } frame 3 { } frame 4 { function onMedalUnlocked(event) { if (event.__get__success()) { var v1 = (event.__get__data()).medal; trace('You unlocked \'' + v1.__get__name() + '\'! (value: ' + v1.__get__value() + ' points)'); } } com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked, this); } movieClip 1143 { } movieClip 1144 { } movieClip 1145 { } instance of movieClip 1145 { onClipEvent (enterFrame) { _alpha = 94 + random(6); } } button 1146 { on (release) { getURL('http://atmosgames.com/', '_new', 'GET'); } } frame 168 { stop(); landSave = SharedObject.getLocal('user'); if (landSave.data.land !== 'beach' && landSave.data.land !== 'uroVillage' && landSave.data.land !== 'caves' && landSave.data.land !== 'forest' && landSave.data.land !== 'church' || landSave.data.land eq 'beach') { _root.continueButton._visible = false; landSave.data.land = 'beach'; } savedLevel = landSave.data.land; } movieClip 1149 { } movieClip 1150 { frame 48 { stop(); } } button 1152 { on (release) { play(); } } movieClip 1155 { } movieClip 1156 { frame 40 { stop(); } } button 1158 { on (release) { _root.landSave.data.land = 'beach'; savedLevel = landSave.data.land; _root.skinnyStartY = 881; _root.skinnyStartX = 1702; _root.skinnyRelocateY = skinnyStartY; _root.skinnyRelocateX = skinnyStartX; play(); } } instance of movieClip 1075 APIConnector { onClipEvent (construct) { apiId = '18336:oWfymFgG'; connectorType = 'Invisible'; debugMode = 'Simulate Logged-in User'; encryptionKey = 'QRUHpVUg5uJXzlFOkw8HToBBXaez8WoO'; movieVersion = ''; redirectOnHostBlocked = true; redirectOnNewVersion = true; } } movieClip 1160 { } movieClip 1161 { } movieClip 1163 { } movieClip 1165 { } movieClip 1168 { } button 1169 { on (release) { getURL('http://www.mochimedia.com/games/coma/', '_new', 'GET'); } } movieClip 1172 { } instance of movieClip 1172 { onClipEvent (enterFrame) { _alpha = _alpha - 1; } } frame 211 { beachArray = [[49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 'x', 0, 1, 1], [1, 1, 1, 1, 0, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1], [1, 1, 1, 1, 0, 1, 1, 11, 0, 0, 0, 0, 0, 1, 22, 22, 22, 22, 0, 0, 512, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1], [1, 1, 1, 1, 0, 1, 1, 11, 0, 'x', 0, 0, 0, 1, 'x', 0, 'x', 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 4, 5, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 'x', 4, 22, 22, 1, 20, 516, 316, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 11, 'x', 0, 509, 22, 5, 24, 24, 24, 24, 24, 24, 24, 24, 500, 0, 0, 330, 36, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 11, 37, 0, 0, 0, 0, 'x', 0, 36, 500, 0, 4, 22, 5, 1, 21, 22, 22, 19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 11, 0, 315, 501, 36, 4, 22, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, '#', '#', 7, 0, 24, '*', '*', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49]]; } frame 211 { uroVillageArray = [[49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 0, 0, 0, 0, 0, 0, 0, 49, 49, 49, 49, 49, 1, 0, 0, 0, 0, 49, 49, 49, 49], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 46, 46, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 'x', 302, 46, 210, 0, 0, 0, 0, 0, 0, 1, 0, 323, 502, 400, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 22, 22, 22, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 29, 0, 0, 48, 0, 0, 521, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 48, 48, 48, 48, 48, 48, 'x', 12, 12, 'x', 48, 210, 48, 48, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, 17, 1, 1, 15, 12, 15, 15, 16, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 0, 'x', 0, 0, 206, 0, 15, 12, 0, 0, 11, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 0, 24, 24, 24, 24, 0, 15, 12, 304, 24, 11, 0, 0, 206, 502, 13, 'x', 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, '#', '#', 22, 15, 12, 0, 33, 11, 210, 0, 1, 1, 2, 502, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 0, 46, 0, 0, 0, 0, 0, 514, 17, 1, 1, 1, 208, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 6, 7, 0, 0, 209, 0, 0, 0, 0, 48, 0, 0, 46, 17, 15, 15, 208, 15, 15, 15, 1, 1, 1, 209, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 13, 13, 13, 0, 11, 0, 0, 0, 0, 306, 502, 17, 990, 'x', 0, 0, 17, 12, 517, 1, 1, 1, 1, 208, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 511, 0, 502, 305, 11, 502, 503, 4, 5, 1, 1, 1, 1, 208, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 'x', 1, 1, 1, 0, 502, 31, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 328, 3, 1, 0, 1, 207, 24, 15, 2, 303, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 48, 1, 48, 1, 1, 1, 0, 1, 24, 206, 1, 15, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 209, 502, 502, 3, 1, 1, 1, 26, 0, 0, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 15, 15, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 'x', 'x', 0, 0, 210, 46, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 9, 9, 0, 15, 15, 208, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 523, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 301, 0, 206, 0, 502, 48, 27, 1, 1, 0, 0, 300, 0, 0, 522, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 15, 15, 15, 15, 15, 15, 1, 1, 1, 15, 15, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49]]; } frame 211 { cavesArray = [[49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 215, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 213, 'x', 'x', 1, 1, 30, 521, 0, 323, 0, 401, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 312, 0, 0, 0, 15, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 211, 1, 1, 0, 1, 22, 0, 0, 515, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 217, 1, 1, 0, 0, 0, 0, 0, 35, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 506, 0, 1, 1, 215, 0, 0, 1, 1, 0, 0, 0, 18, 19, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 205, 1, 1, 311, 0, 503, 0, 216, 17, 15, 15, 15, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 310, 'x', 505, 206, 206, 0, 0, 24, 1, 1, 15, 0, 15, 15, 15, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 15, 15, 15, 15, 15, 15, 16, 0, 1, 1, 1, 218, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 30, 0, 1, 1, 1, 1, 1, 1, 1, 213, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 210, 0, 0, 0, 0, 0, 1, 1, 1, 308, 207, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 15, 24, 24, 0, 0, 0, 213, 0, 0, 1, 1, 24, 24, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 518, 0, 0, 0, 0, 0, 0, 0, 214, 203, 0, 0, 504, 212, 'x', 0, 211, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 'x', 1, 1, 0, 0, 'x', 0, 211, 327, 0, 17, 15, 15, 15, 15, 15, 15, 15, 0, 15, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 313, 1, 1, 'x', 0, 22, 22, 22, 22, 19, 1, 1, 1, 1, 1, 1, 1, 1, 217, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 34, 0, 504, 0, 0, 204, 0, 11, 206, 'x', 207, 'x', 1, 1, 1, 1, 1, 213, 1, 'x', 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 15, 15, 15, 15, 0, 15, 15, 15, 15, 201, 1, 1, 1, 1, 1, 218, 1, 0, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 'x', 1, 1, 1, 1, 'x', 1, 0, 0, 0, 0, 0, 0, 'x', 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 201, 309, 0, 0, 0, 0, 0, 0, 17, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 'x', 1, 1, 1, 1, 15, 15, 0, 0, 0, 15, 15, 15, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 207, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 46, 307, 46, 0, 0, 0, 48, 211, 0, 0, 1, 1, 1, 1, 1, 1, 16, 'x', 'x', 329, 211, 0, 0, 522, 0, 0, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 15, 16, 'x', 0, 0, 48, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 15, 15, 15, 15, 1, 1, 1, 1, 0, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 16, 'x', 48, 212, 17, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 524, 0, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 15, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49]]; } frame 211 { forestArray = [[49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 43, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 521, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'x', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 0, 0, 'x', 0, 0, 0, 0, 0, 0, 0, 47, 22, 22, 22, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 0, 22, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 211, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 522, 0, 0, 1, 1, 1], [1, 1, 1, 1, 318, 0, 212, 0, 0, 'x', 0, 0, 0, 0, 0, 0, 22, 22, 22, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 503, 206, 322, 0, 0, 'x', 1, 1, 1, 0, 525, 1, 1], [1, 1, 1, 1, 1, 1, 1, 6, 10, 7, 0, 0, 0, 0, 0, 509, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 24, 24, 24, 24, 201, 206, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 39, 0, 209, 0, 'x', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 24, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 'x', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'x', 0, 'x', 0, 'x', 0, 213, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 48, 212, 508, 0, 0, 0, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 219, 22, 22, 22, 217, 22, 22, 22, 1, 0, 211, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 51, 0, 0, 0, 0, 0, 0, 545, 'x', 'x', 'x', 'x', 'x', 0, 0, 0, 0, 'x', 0, 0, 0, 0, 216, 215, 212, 'x', 319, 0, 102, 402, 1], [1, 1, 1, 1, 1, 1, 1, 1, 'x', 1, 1, 10, 10, 7, 0, 513, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 321, 11, 215, 4, 10, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 0, 46, 0, 1, 1, 1, 1, 1, 1, 6, 7, 0, 0, 0, 0, 0, 'x', 0, 0, 10, 10, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 0, 'x', 102, 46, 102, 0, 'x', 211, 1, 1, 1, 1, 1, 2, 206, 0, 0, 0, 0, 'x', 40, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 317, 3, 1, 208, 1, 2, 0, 508, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 503, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 38, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 102, 324, 4, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49], [49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49], [49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49]]; } frame 211 { churchArray = [[49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1], [1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 46, 210, 46, 213, 520, 0, 0, 1, 1, 0, 0, 1], [1, 'x', 508, 201, 0, 'x', 0, 212, 0, 'x', 508, 0, 211, 214, 326, 326, 0, 0, 22, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1], [1, 24, 24, 24, 0, 24, 24, 24, 0, 24, 24, 0, 24, 24, 24, 24, 0, 0, 0, 48, 510, 325, 0, 0, 1, 1, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 48, 48, 18, 19, 15, 15, 15, 15, 1, 1, 0, 0, 1], [1, 0, 0, 0, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 18, 19, 15, 15, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1], [1, 48, 48, 48, 18, 19, 15, 15, 15, 15, 15, 15, 15, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 15, 15, 15, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49]]; } frame 211 { diologue1 = ['Get back! Get back! ', 'Who are you... you... skinny...', 'FREAK! ', 'Get away! Get away! ', 'Get me 4 batteries. Just do something!', 'STOP', 'We\'ve been here how long, sweetie?', 'Yes! And the city lights still shine as bright as they did when we were dating...', 'STOP']; diologue2 = ['Oh, heaven\'s name! What are you?', 'Does Mama know about you?', 'Did she send you? ', 'She did? Go get me my batteries! 4 batteries!', 'If you don\'t I\'ll die! I\'ll die! Did you hear me?', 'STOP', 'Dad! Look! The dolphins are jumping into the clouds!', 'I love you. Oh, Pappy. I love you...', 'STOP']; diologue3 = ['Your legs look like...', 'Spider legs... ', 'Get those things away from me!', 'While you\'re at it, go get me 4 batteries.', 'STOP', 'I want two. Two quesadillas. Can you manage that Beatrice?', 'I\'ll go pick up the boys from soccer and you can get the ice-cream!', 'STOP']; diologue4 = ['That brat came through and took my batteries!', 'What\'s he got against me?', 'Can you get them back?', 'STOP', 'Yes... I know...', 'The business market is very, very dry.', 'But your favorite boss is here and everything ever will be fine because I\'m powerful.', 'STOP']; diologue5 = ['So listen up, Skinny...', 'I have had it up to here with these ankle-biters...', 'A brat named Felix stole the batteries from my little-ones.', 'However Felix is clumsy...', 'I need you to obtain the batteries he dropped and give them to my little-ones.They should not be too far...', 'There are 4 people to save. If you notice...', 'On the LEFT SIDE OF YOUR SCREEN, you can see how many people you have saved.', 'Hurry back, love. I will have a special treat awaiting you.', 'Oh! And remember...', 'Sometimes breaking things with your hook is the only way down...', 'STOP', 'Skinny, dear. You have done what Mama has asked.', 'Because of you my little-ones can be safe from this polluted planet.', 'As a reward I have given you new legs.', 'Try them out on that chimney behind me.', 'JUMP and PRESS OVER at the same time to jump from wall to wall.', 'Honey, it gets easier after a while.', 'Take your delicate time and meet me at the cave entrance.', 'STOP']; diologue22 = ['Skinny... I\'m sure you are a tired little sweetie...', 'But Felix has come through here too!', 'Yes I know baby, but it will all be over soon...', 'A sincere word of caution...', 'Look out for spiders. They think the batteries are their children...', 'STOP']; diologue6 = ['Cold! Cold wind! Cold, cold wind!', 'It\'s blasting through something!', 'It is my very own ventricles! Get rid of the radioactive wind!', 'Get me 5 batteries! Please!', 'STOP', 'An absolutely astounding baseball game!', 'Janice! Janice! Bring me a beer!', 'No! No! ', 'Bigger! ', 'STOP']; diologue7 = ['Get me out of this chair or in it!', 'My brain is frying!', 'Radioactive material is not good for nutritional consumption!', 'I think that little boy took 5...', '5 batteries... ', 'STOP', 'And the president says that this nation will last forever!', 'You know he is more right than he has ever been.', 'Let us celebrate our nation\'s deserved prosperity and play golf at Misty Valley...', 'STOP']; diologue8 = ['My body itches all over!', 'It\'s the radioactive steam!', 'Get me my batteries or I will get cancer! Cancer I tell you!', 'STOP', 'And today\'s message is about your enslaved minds!', 'Yes, yes. I know you have heard this before. But I am the BEST preacher in Auldendale...', 'Do you know where the devil lives?', 'TELEVISION! ', 'STOP']; diologue9 = ['A little goblin came through and stole my bowling balls!', 'Now the radioactive waste will fall into my eyes...', 'And I will see the devil!', 'Please get me them. There are five...', 'STOP', 'Nice one! What about Brant? Does he want to play?', 'STOP']; diologue10 = ['A radical change is happening...', 'I am now melting into a pile of potatoes...', 'Please help. A boy took my tomatoes...', 'STOP', 'I love this weather!', 'Infinite Spring! Aside from the allergies... this world is...', 'Well frankly, Frank... this world is heaven!', 'STOP']; diologue11 = ['Now listen, doll... ', 'After the... national... radioactive... power... war... spiders have been acting rather bitter...', 'And looking rather bigger...', 'If you are careful enough you can rescue my little-ones again.', 'Without The System I put in place they would be helpless...', 'Come back and I\'ll give you another treat.', 'STOP', 'Goooooooooood.......', 'You are such a good pet...', 'Soon my little-one will be just like you.', 'I mean... they will like you...', 'Um... but look at yourself!', 'You are much heavier now. You should be able to utilize Felix\'s jump pads.', 'So run along, dear. I saw Felix run to his hide-out...', 'Hurry or my little-ones will die a horrible death!', 'STOP']; diologue12 = ['Hey dad! I lost my marbles.', 'Since you are so amazing, I think you should get them for me.', 'Remember Dad, it\'s always good to exercise.', 'So just go find me them. There are 10.', 'Press SPACE when you find them. You will see a marble icon above my head, meaning you have found enough.', 'STOP', 'Thanks Daddio! You are the absolute best man in the world!', 'You ever think about running for p-r-s-e-d-i-n-e-t?', 'Or would you just l-k-i-e-t-o g-o-f-s-h-i-n-g?', 'System Error Report #14154: It appears that you are no longer connected to The System.', 'Shut down in 3... ', '2... ', '1... ', 'STOP']; diologue13 = ['Skinny 2...Oh! Ouch! I want...Twenty... fire flies...', 'STOP', 'Oh! YES! The revivation has begun! Thank you, Skinny.', 'STOP']; diologue14 = ['Skinny 3...Ouchy! 20... fire flies...', 'STOP', 'LALA! Oh! The revivation has begun! Thank you, Skinny.', 'STOP']; diologue15 = ['Skinny 4...A hundred... fire flies...', 'STOP', 'Oh! The revivation has begun! Thank you, Skinny.', 'STOP']; diologue16 = ['Skinny 5...A freaking...20... fire flies...', 'STOP', 'YES!! The revivation has begun! Thank you, Skinny.', 'STOP']; diologue17 = ['Skinny 6...AGGGG!..Twenty fireflies.', 'STOP', 'YES!! Im so warm', 'STOP']; diologue18 = ['I am the old sage. This land is dead...', 'STOP', 'YES!! This skinny land can flourish again!', 'STOP']; diologue19 = ['Sorry, but I had to wake you sweetie.', 'Was my little one having sweet dreams?', 'I hope so... Because while you were sleeping I was building your new arms...', 'Use your mouse to aim and shoot up to that black nest lookin\' thing...', 'STOP']; diologue20 = ['Looking good, Skinny!', 'Mama\'s given you a pretty cool trick, huh?', 'Meet me in the back room of the house behind me.', 'I need your help with something...', 'STOP']; diologue23 = ['It\'s a great evening... (press SPACE)', 'The sunset reminds me of you.', 'Just look! See how the sun bulges like your muscles?', 'You are perfect. You are. You are just perfect!', 'Anyways, your son wants to see you.', 'I think he lost his marbles again.', 'Press SPACE to talk to him.', 'STOP']; diologue24 = ['Skinny woke up. (PRESS SPACE) ', 'It was colder than usual out... and his bride was missing.', 'Maybe she\'s just catching todays breakfast...', 'STOP']; diologue25 = ['Skinny\'s almost forgot... ', 'He remembered he could click the mouse and hook onto Color Fairy nests.', 'STOP']; diologue26 = ['Get back! Get back! ', 'Oh wait, you don\'t look very different from me. Look at our arms! Is that titanium alloy?', 'I think I might just want those things...', 'Quick! Get me 6 batteries!', 'STOP', 'Life is great, Mark!', 'Want to play a video game or go fly a kite? Maybe when Dad gets home we can watch The Smoker Alarm Gang.', 'I like that show. I wish I could stop everyone from smoking too...', 'STOP']; diologue27 = ['Back! Back or I\'ll eat you!', 'You monster! Did Mama send you?', 'I don\'t want to be in this chair anymore!', 'It\'s gonna turn me into a beast like you!', 'STOP', 'Cynthia! I want pankakes!', 'Blueberry! ', 'STOP']; diologue28 = ['So you finally found me!', 'Big whoop! ', 'The real challenge is getting rid of these crazy people.', 'You see, I was a bad boy and stole all the batteries from their chairs...', 'I didn\'t know the grown-ups would try and eat me though!', 'So can you make them go back to sleep? If you do I\'ll let you into a secret chamber I found!', 'STOP', 'Did you do it? You did! You did!', 'Meet me inside my hide-out!', 'I know a game we can play.', 'It\'s called \'Kill The Mama\'. Pretty cool name huh? I made it up myself...', 'STOP']; diologue29 = ['I never wanted to be put in these bear traps...', 'Get me out, get me out!', 'Wait! Did Mama send you?', 'She did! No! Don\'t! Don\'t! If you send me back into my chair she\'ll have her way!', 'I don\'t want to end up looking like YOU!', 'STOP', 'I...do... feel...beeettteeeerr....', 'Martha, want to dance?', 'I know I\'m manly but golly...', 'You don\'t have to kiss me in such a way!', 'O Martha! You are the woman every man wants but can\'t have because they are not me!', 'STOP']; diologue30 = ['Oh no! I look like you don\'t I!', 'Please rescue me! Get me out of this chair!', 'You see... I never knew the air was fresh. It\'s so fresh!', 'So please! Get me out of this chair!', 'STOP', 'Jane. I had a strange dream... ', 'I dreamt I was living in a world where the air smelled like trees.', 'Trees? Well... I don\'t recall what trees are but I do know they smell nice.', 'Now that I think about it... you look better than trees smell...', 'Stupid dream...................', 'STOP']; diologue31 = ['Hey you! It\'s me! It\'s me, your brother Blake!', 'Listen I don\'t care what happens to me...', 'Just listen to Felix. He knows where Mama lives...', 'As for me I\'m toast. Recently I have been having fits of rage. I almost bit off Felix\'s head...', 'So it\'s best if I just go back into my chair...', 'For now just get me my batteries so I can go back to sleep.', 'STOP', 'James! James come here!', 'It\'s a big one! ', 'Help me reel it in! That\'s right! That\'s right!', 'STOP']; diologue34 = ['Oh my goshess! You really are a creepy looking man...', 'But actually... you\'re kinda cute.......', 'Your name should be Skinny Knees!', 'My name is Shirley. ', 'So Skinny Knees, whatcha up to?', 'Trying to catch Felix?', 'You never will. He knows this place like the back of his hand...', 'Oh! I have a thought! Listen! It\'s very important to know if you are trying to catch Felix!', 'If you break Mama\'s globes she will save the level you are on...', 'STOP']; diologue35 = ['You always scare me!', 'You should stop sneaking up on people...', 'You\'re just like Mama...', 'She just pops out of the ground and tells people what to do...', 'Did you know she actually controls this whole world now?', 'Ya... that\'s what my dad told me before she strapped him into The System...', 'How evil! And are you really helping her? She really just needs to be killed...', 'But I\'m not even sure she even lives in this world though!', 'Felix thinks she lives in The System...', 'STOP']; diologue36 = ['Skinny Knees! You scared me again!', 'Hey! Let me tell you something about being scared...', 'The grown-ups got scared when Mama told them about the radiation...', 'So they all got strapped into her System so they wouldn\'t die of the cancers.', 'But look at me? Do I have the cancers?', 'I bet you Mama lied about the radiation so she could turn the grown-ups into slaves like you...', 'But then again... you\'re not so bad, are you Skinny Knees?', 'Anyway, Felix said he wants to play hide-and-seek.', 'But I\'m too scared! The grown-ups are mean in this forest.', 'Can you find him for me? He\'s probably in his fort.', 'STOP']; diologue32 = ['Oh, sorry. Mama was just looking for Cory.', 'I must have misplaced him. Or maybe he got away...', 'Try and find him for Mama, OK?', 'Oh... and don\'t be alarmed when you see him.', 'Sometimes we have to restrain the more...', '...incompetent ones... ', 'STOP']; diologue33 = ['Cool place, huh?', 'Look at this thing behind me...', 'It was Mama\'s first creation...', 'And I think this is where she lives too...', 'Do you think she is a real woman?', 'I guess we\'ll have to find out...', 'But we can\'t until we have 3 batteries. Just three!', 'But you chased me down and I couldn\'t get enough batteries...', 'But wait! I did see something glowing in the rafters of this place though!', 'Want to go check it out? ', 'STOP', 'Finally! I finally got enough batteries!', 'Mama\'s chair is now ours to explore...', 'So do you want to play the game?', 'Awesome! Well... don\'t be shy...', 'Step into The System...', 'STOP']; diologue37 = ['Hello! How are you? ', 'I mean... Woof! Woof! ', 'Pant pant pant pant pant pant pant pant.', 'STOP']; diologue38 = ['Game saved... ', 'STOP']; diologue39 = ['Game saved... ', 'STOP']; diologue40 = ['Game saved... ', 'STOP']; diologue41 = ['Game saved... ', 'STOP']; diologue42 = ['Having trouble getting your batteries back from those spiders?', 'Once they jump at your face, they will only come back to where they were if you leave them alone...', 'Then kill them and get your batteries back!', 'STOP']; diologue43 = ['Hidden Item #1 Found!', 'It looks like some sort of cage.', 'A bird cage? ', 'STOP']; diologue44 = ['Hidden Item #2 Found!', 'Why a fish hook?', 'Of all things to make a secret item...... ', 'Sometimes I just don\'t get people...... ', 'STOP']; diologue45 = ['Hidden Item #3 Found!', 'The tomb seems to have an engraving on the front:', '\'Here lies Pete, my one and only son,\' ', '\'May his body rest in this very church, but his heart remain in heaven.\'', 'STOP']; } frame 211 { stop(); _root.stats.landName.text = ''; diologueCounter = 0; permanentXlake = 4400; permanentYlake = 3150; permanentXcliff = 1810; permanentYcliff = 1430; permanentXbridge = 3030; permanentYbridge = 1410; skinnyTalking = false; stageWidth = 630; stageHeight = 360; pieceWidth = 90; jumpPower = -10; treeCount = 0; skinnyStartY = 881; skinnyStartX = 1702; skinnyRelocateY = skinnyStartY; skinnyRelocateX = skinnyStartX; skinnyHeavy = false; bugCounter = 0; bugsCaught = 0; characterNumber = 1; armStrength = 3; sp = 1; treesVisible = true; bugsVisible = true; surfaceType = 'grass'; where = 'beach'; locArray = where; yellowTimer = 0; blueTimer = 0; greenTimer = 0; pieceArray = _root[_root.where + 'Array']; _root.redPercent = -46; _root.greenPercent = 0; _root.bluePercent = 0; cranLakeChrome = 0; uroVillageChrome = 0; forestChrome = 0; bridgeChrome = 0; cliffChrome = 0; _root.darkness = 100; _root.skinnyWallJumpable = false; skinnyXSpeedAdd = 0; _root.armShootable = false; lasersOn = true; snowCounter = 0; pieceArrayArea = _root.uroVillageArray.length * _root.uroVillageArray[1].length; _root.smokeObject = 'hook'; characterAmount = 1; charactersSaved = 0; _root.showCharacterHud = false; boxBreakable = false; orbsGettable = false; _root.camYUp = 2; _root.saveBallBroken = false; i = 0; while (i < pieceArrayArea + 1) { eval('character' + i + 'Talkable') = true; eval('character' + i + 'F') = 0; eval('character' + i + 'Satisfied') = false; eval('spinner' + i + 'Rotation') = 0; ++i; } i = 0; while (i < pieceArrayArea + 1) { eval('fairybeach' + i + 'Visible') = true; eval('fairyuroVillage' + i + 'Visible') = true; eval('fairycaves' + i + 'Visible') = true; eval('fairyforest' + i + 'Visible') = true; eval('fairychurch' + i + 'Visible') = true; eval('boxuroVillage' + i + 'Broken') = false; eval('spidercaves' + i + 'Orbs') = 0; eval('spiderforest' + i + 'Orbs') = 0; eval('spiderchurch' + i + 'Orbs') = 0; ++i; } characterSaveSatisfied = false; key1Got = false; hiddenItem1Found = false; hiddenItem2Found = false; hiddenItem3Found = false; } frame 211 { function characterTalkLoad() { this.satisfied = _root['character' + this.characterNumber + 'Satisfied']; this.f = _root['character' + this.characterNumber + 'F']; this.screamed = false; } function characterTalk() { if (_root.skinny.body.hitTest(this) && this.screamed eq false && Key.isDown(32)) { this.sound = new Sound(); this.sound.attachSound(this.characterType); this.sound.start(); this.screamed = true; } if (_root.hook.shoot eq false && _root.skinny.onGround eq true) { this.talkable = _root['character' + this.characterNumber + 'Talkable']; if (this.talkable eq false) { _root.diologueCounter += 1; } if (!_root.skinny.body.hitTest(this) || _root.diologueCounter > 20) { if (_root.bugsCaught >= this.bugWantNumber && this.satisfied eq false && _root['character' + this.characterNumber + 'F'] > 0) { this._parent.arrow.orb.alpha = 100; eval('_root.character' + this.characterNumber + 'Talkable') = true; } } if (_root.skinny.body.hitTest(this) && this.satisfied eq false && _root.skinnyTalking eq false && this.talkable eq false && Key.isDown(32) && _root.stats.diologue.remindDone eq false) { trace('remind sequcne begins'); _root.characterNumber = this.characterNumber; _root.diologueNumber = this.characterNumber; _root.stats.diologue.f = _root['character' + this.characterNumber + 'F'] - 1; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.skinnyTalking = true; } if (_root.skinny.body.hitTest(this)) { } else { _root.stats.diologue.remindDone = false; } if (_root.skinny.body.hitTest(this) && _root.skinnyTalking eq false && this.talkable eq true && Key.isDown(32)) { trace('new sequence begins'); if (this.satisfied eq false && _root.bugsCaught >= this.bugWantNumber && _root['character' + this.characterNumber + 'F'] > 0) { eval('_root.character' + this.characterNumber + 'F') = _root['character' + this.characterNumber + 'F'] + 1; _root.bugsCaught -= this.bugWantNumber; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.stats.spLogo._alpha = 100; this.sound = new Sound(this); this.sound.setVolume(50); this.sound.attachSound('lampLight'); _root.charactersSaved += 1; this.sound.start(); this._parent.lamp.light.bulb1._xscale *= 2; this._parent.lamp.light.bulb2._xscale = this._parent.lamp.light.bulb1._xscale * 2; this.satisfied = true; eval('character' + this.characterNumber + 'Satisfied') = true; } _root.characterNumber = this.characterNumber; _root.diologueNumber = this.characterNumber; _root.stats.diologue.f = _root['character' + this.characterNumber + 'F']; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.skinnyTalking = true; } } } function characterForceTalk() { if (_root.hook.shoot eq false && _root.skinny.onGround eq true) { this.talkable = _root['character' + this.characterNumber + 'Talkable']; if (this.talkable eq false) { _root.diologueCounter += 1; } if (!_root.skinny.body.hitTest(this) || _root.diologueCounter > 20) { if (_root.bugsCaught >= this.bugWantNumber && this.satisfied eq false && _root['character' + this.characterNumber + 'F'] > 0) { this._parent.arrow.orb.alpha = 100; eval('_root.character' + this.characterNumber + 'Talkable') = true; } } if (_root.skinny.body.hitTest(this) && this.satisfied eq false && _root.skinnyTalking eq false && this.talkable eq false && Key.isDown(32) && _root.stats.diologue.remindDone eq false) { trace('remind sequcne begins'); _root.characterNumber = this.characterNumber; _root.diologueNumber = this.characterNumber; _root.stats.diologue.f = _root['character' + this.characterNumber + 'F'] - 1; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.skinnyTalking = true; } if (_root.skinny.body.hitTest(this)) { } else { _root.stats.diologue.remindDone = false; } if (_root.skinny.body.hitTest(this) && _root.skinnyTalking eq false && this.talkable eq true) { trace('new sequence begins'); if (this.satisfied eq false && _root.bugsCaught >= this.bugWantNumber && _root['character' + this.characterNumber + 'F'] > 0) { eval('_root.character' + this.characterNumber + 'F') = _root['character' + this.characterNumber + 'F'] + 1; _root.bugsCaught -= this.bugWantNumber; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.stats.spLogo._alpha = 100; this.sound = new Sound(this); this.sound.setVolume(20); this.sound.attachSound('lampLight'); _root.charactersSaved += 1; this.sound.start(); this._parent.lamp.light.bulb1._xscale *= 2; this._parent.lamp.light.bulb2._xscale = this._parent.lamp.light.bulb1._xscale * 2; this.satisfied = true; eval('character' + this.characterNumber + 'Satisfied') = true; } _root.characterNumber = this.characterNumber; _root.diologueNumber = this.characterNumber; _root.stats.diologue.f = _root['character' + this.characterNumber + 'F']; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.skinnyTalking = true; } } } function earlyNarrativeLoad() { this.satisfied = _root['character' + this.characterNumber + 'Satisfied']; this.f = _root['character' + this.characterNumber + 'F']; } function earlyNarrativeTalk() { if (_root.hook.shoot eq false && _root.skinny.onGround eq true) { this.talkable = _root['character' + this.characterNumber + 'Talkable']; if (_root.skinny.body.hitTest(this) && _root.skinnyTalking eq false && this.talkable eq true) { trace('new sequence begins'); this.satisfied = true; eval('character' + this.characterNumber + 'Satisfied') = true; if (this.satisfied eq false && _root['character' + this.characterNumber + 'F'] > 0) { eval('_root.character' + this.characterNumber + 'F') = _root['character' + this.characterNumber + 'F'] + 1; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.stats.spLogo._alpha = 100; } _root.characterNumber = this.characterNumber; _root.diologueNumber = this.characterNumber; _root.stats.diologue.f = _root['character' + this.characterNumber + 'F']; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.skinnyTalking = true; } } } function narrativeLoad() { this.satisfied = _root['character' + this.characterNumber + 'Satisfied']; this.f = _root['character' + this.characterNumber + 'F']; this.screamed = false; } function narrativeTalk() { if (_root.skinny.body.hitTest(this) && this.screamed eq false && Key.isDown(32)) { this.sound = new Sound(); this.sound.attachSound(this.characterType); this.sound.start(); this.screamed = true; } this.talkable = _root['character' + this.characterNumber + 'Talkable']; trace('new sequence begins'); if (_root.hook.shoot eq false && _root.skinny.onGround eq true) { if (_root.skinny.body.hitTest(this) && _root.skinnyTalking eq false && this.talkable eq true && Key.isDown(32)) { trace('new sequence begins'); this.satisfied = true; eval('character' + this.characterNumber + 'Satisfied') = true; if (this.satisfied eq false && _root['character' + this.characterNumber + 'F'] > 0) { eval('_root.character' + this.characterNumber + 'F') = _root['character' + this.characterNumber + 'F'] + 1; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.stats.spLogo._alpha = 100; this.satisfied = true; eval('character' + this.characterNumber + 'Satisfied') = true; } _root.characterNumber = this.characterNumber; _root.diologueNumber = this.characterNumber; _root.stats.diologue.f = _root['character' + this.characterNumber + 'F']; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.skinnyTalking = true; } } } function chiefTalkLoad() { this.satisfied = _root['character' + this.characterNumber + 'Satisfied']; this.f = _root['character' + this.characterNumber + 'F']; this.spAdd = 0.8; } function chiefTalk() { if (_root.hook.shoot eq false && _root.skinny.onGround eq true) { this.talkable = _root['character' + this.characterNumber + 'Talkable']; if (_root.character1Satisfied eq true && _root.character2Satisfied eq true && _root.character3Satisfied eq true && _root.character4Satisfied eq true && this.satisfied eq false) { eval('_root.character' + this.characterNumber + 'Talkable') = true; } if (_root.skinny.body.hitTest(this.hit) && this.satisfied eq false && _root.skinnyTalking eq false && this.talkable eq false && Key.isDown(32) && _root.stats.diologue.remindDone eq false) { trace('remind sequcne begins'); _root.characterNumber = this.characterNumber; _root.diologueNumber = this.characterNumber; _root.stats.diologue.f = _root['character' + this.characterNumber + 'F'] - 1; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.skinnyTalking = true; } if (_root.skinny.body.hitTest(this.hit)) { } else { _root.showCharacterHud = true; _root.stats.diologue.remindDone = false; } if (_root.skinny.body.hitTest(this.hit) && _root.skinnyTalking eq false && this.talkable eq true && Key.isDown(32)) { trace('new sequence begins'); if (this.satisfied eq false && _root.character1Satisfied eq true && _root.character2Satisfied eq true && _root.character3Satisfied eq true && _root.character4Satisfied eq true && _root['character' + this.characterNumber + 'F'] > 0) { eval('_root.character' + this.characterNumber + 'F') = _root['character' + this.characterNumber + 'F'] + 1; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.stats.spLogo._alpha = 100; _root.armStrength += this.spAdd; _root.sp += 1; _root.skinnyWallJumpable = true; this.sound = new Sound(this); this.sound.setVolume(80); this.sound.attachSound('powerUp'); this.sound.start(); this.satisfied = true; eval('character' + this.characterNumber + 'Satisfied') = true; } _root.characterNumber = this.characterNumber; _root.diologueNumber = this.characterNumber; _root.stats.diologue.f = _root['character' + this.characterNumber + 'F']; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.skinnyTalking = true; } } } function chief2TalkLoad() { this.satisfied = _root['character' + this.characterNumber + 'Satisfied']; this.f = _root['character' + this.characterNumber + 'F']; this.spAdd = 0.5; } function chief2Talk() { if (_root.hook.shoot eq false && _root.skinny.onGround eq true) { this.talkable = _root['character' + this.characterNumber + 'Talkable']; _root.showCharacterHud = true; if (_root.character6Satisfied eq true && _root.character7Satisfied eq true && _root.character8Satisfied eq true && _root.character9Satisfied eq true && _root.character10Satisfied eq true && this.satisfied eq false) { eval('_root.character' + this.characterNumber + 'Talkable') = true; } if (_root.skinny.body.hitTest(this) && this.satisfied eq false && _root.skinnyTalking eq false && this.talkable eq false && Key.isDown(32) && _root.stats.diologue.remindDone eq false) { trace('remind sequcne begins'); _root.characterNumber = this.characterNumber; _root.diologueNumber = this.characterNumber; _root.stats.diologue.f = _root['character' + this.characterNumber + 'F'] - 1; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.skinnyTalking = true; } if (_root.skinny.body.hitTest(this)) { } else { _root.stats.diologue.remindDone = false; } if (_root.skinny.body.hitTest(this) && _root.skinnyTalking eq false && this.talkable eq true && Key.isDown(32)) { trace('new sequence begins'); if (this.satisfied eq false && _root.character6Satisfied eq true && _root.character7Satisfied eq true && _root.character8Satisfied eq true && _root.character9Satisfied eq true && _root.character10Satisfied eq true && _root['character' + this.characterNumber + 'F'] > 0) { eval('_root.character' + this.characterNumber + 'F') = _root['character' + this.characterNumber + 'F'] + 1; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.stats.spLogo._alpha = 100; _root.armStrength += this.spAdd; _root.sp += 1; _root.skinnyHeavy = true; _root.lasersOn = false; _root.forestChrome = 1; this.sound = new Sound(this); this.sound.setVolume(80); this.sound.attachSound('powerUp'); this.sound.start(); _root.skinnyWallJumpable = true; this.satisfied = true; eval('character' + this.characterNumber + 'Satisfied') = true; } _root.characterNumber = this.characterNumber; _root.diologueNumber = this.characterNumber; _root.stats.diologue.f = _root['character' + this.characterNumber + 'F']; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.skinnyTalking = true; } } } function chief3TalkLoad() { this.satisfied = _root['character' + this.characterNumber + 'Satisfied']; this.f = _root['character' + this.characterNumber + 'F']; this.spAdd = 0.5; } function chief3Talk() { if (_root.hook.shoot eq false && _root.skinny.onGround eq true) { this.talkable = _root['character' + this.characterNumber + 'Talkable']; _root.showCharacterHud = true; if (_root.character27Satisfied eq true && _root.character26Satisfied eq true && _root.character30Satisfied eq true && _root.character31Satisfied eq true && this.satisfied eq false) { eval('_root.character' + this.characterNumber + 'Talkable') = true; } if (_root.skinny.body.hitTest(this) && this.satisfied eq false && _root.skinnyTalking eq false && this.talkable eq false && Key.isDown(32) && _root.stats.diologue.remindDone eq false) { trace('remind sequcne begins'); _root.characterNumber = this.characterNumber; _root.diologueNumber = this.characterNumber; _root.stats.diologue.f = _root['character' + this.characterNumber + 'F'] - 1; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.skinnyTalking = true; } if (_root.skinny.body.hitTest(this)) { } else { _root.stats.diologue.remindDone = false; } if (_root.skinny.body.hitTest(this) && _root.skinnyTalking eq false && this.talkable eq true && Key.isDown(32)) { trace('new sequence begins'); if (this.satisfied eq false && _root.character27Satisfied eq true && _root.character26Satisfied eq true && _root.character30Satisfied eq true && _root.character31Satisfied eq true && _root['character' + this.characterNumber + 'F'] > 0) { eval('_root.character' + this.characterNumber + 'F') = _root['character' + this.characterNumber + 'F'] + 1; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.stats.spLogo._alpha = 100; _root.armStrength += this.spAdd; _root.sp += 1; this.satisfied = true; eval('character' + this.characterNumber + 'Satisfied') = true; } _root.characterNumber = this.characterNumber; _root.diologueNumber = this.characterNumber; _root.stats.diologue.f = _root['character' + this.characterNumber + 'F']; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.skinnyTalking = true; } } } function gameSaveLoad() { this.satisfied = _root['character' + this.characterNumber + 'Satisfied']; this.f = _root['character' + this.characterNumber + 'F']; } function gameSaveTalk() { this.talkable = _root['character' + this.characterNumber + 'Talkable']; if (_root.hook.hitTest(this.globe) && _root.hook.shoot eq true && _root.skinnyTalking eq false && this.talkable eq true) { trace('new sequence begins'); this.satisfied = true; eval('character' + this.characterNumber + 'Satisfied') = true; if (this.satisfied eq false && _root['character' + this.characterNumber + 'F'] > 0) { eval('_root.character' + this.characterNumber + 'F') = _root['character' + this.characterNumber + 'F'] + 1; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.stats.spLogo._alpha = 100; } _root.characterNumber = this.characterNumber; _root.diologueNumber = this.characterNumber; _root.stats.diologue.f = _root['character' + this.characterNumber + 'F']; _root.stats.diologue.text = _root['diologue' + _root.diologueNumber][_root.stats.diologue.f]; _root.skinnyTalking = true; } } } frame 211 { function pieceLoad() { this.startRow = 0; this.startCol = 0; this.row = this._x / _root.pieceWidth + this.startRow; this.column = this._y / _root.pieceWidth + this.startCol; this.attachMovie('land' + _root.pieceArray[this.column][this.row], 'land', 1); } function permanentObjectSolidity() { if (this.hitTest(_root.skinny._x + _root.skinny.bod._width / 2, _root.skinny._y, true)) { _root.skinny.shot = false; _root.skinny._x -= Math.abs(_root.skinny.xSpeed / 1.8); _root.skinny.xSpeed = 0; } if (this.hitTest(_root.skinny._x - _root.skinny.bod._width / 2, _root.skinny._y, true)) { _root.skinny.shot = false; _root.skinny._x += Math.abs(_root.skinny.xSpeed / 1.8); _root.skinny.xSpeed = 0; } while (this.hitTest(_root.skinny._x, _root.skinny._y + _root.skinny.bod._height / 2, true)) { _root.skinny._x = _root.permObj._x + this.skinnyDist; _root.skinny.shot = false; _root.surfaceType = this.land.surfaceType; _root.skinny.leg1.rotation = 0; _root.skinny.gravity = 0; _root.skinny.onGroundCounter += 1; _root.skinny._y -= 0.5; _root.skinny.onGround = true; } if (this.hitTest(_root.skinny._x, _root.skinny._y - _root.skinny.bod._height / 2, true)) { _root.skinny.shot = false; _root.skinny._y += 0.5; _root.skinny.gravity = 0; } if (this.hitTest(_root.skinny) && _root.skinny._x < this._parent.xMax + 60 && _root.skinny._x > this._parent.xMin - 60) { _root.skinnyXSpeedAdd = this._parent.xSpeed2; } else { _root.skinnyXSpeedAdd += -_root.skinnyXSpeedAdd / 10; } } function piece() { this.land.hit._visible = false; if (_root.stats.fader.reloadPieces eq true) { this.attachMovie('land' + _root.pieceArray[this.column][this.row], 'land', 1); } if (this._x < -_level0._x - _root.pieceWidth * 2) { this._x += _root.pieceWidth * 2 + _root.stageWidth; this.row = this._x / _root.pieceWidth; this.column = this._y / _root.pieceWidth; this.attachMovie('land' + _root.pieceArray[this.column][this.row], 'land', 1); } if (this._x > -_level0._x + _root.stageWidth + _root.pieceWidth) { this._x -= _root.stageWidth + _root.pieceWidth * 2; this.row = this._x / _root.pieceWidth; this.column = this._y / _root.pieceWidth; this.attachMovie('land' + _root.pieceArray[this.column][this.row], 'land', 1); } if (this._y < -_level0._y - _root.pieceWidth * 2) { this._y += _root.pieceWidth * 2 + _root.stageHeight; this.row = this._x / _root.pieceWidth; this.column = this._y / _root.pieceWidth; this.attachMovie('land' + _root.pieceArray[this.column][this.row], 'land', 1); } if (this._y > -_level0._y + _root.stageHeight + _root.pieceWidth) { this._y -= _root.stageHeight + _root.pieceWidth * 2; this.row = this._x / _root.pieceWidth; this.column = this._y / _root.pieceWidth; this.attachMovie('land' + _root.pieceArray[this.column][this.row], 'land', 1); } if (this.land.hit.hitTest(_root.hook._x, _root.hook._y, true)) { if (_root.hook.shoot eq true) { this.sound = new Sound(this); this.sound.attachSound('rock2'); this.sound.setVolume(100); this.sound.stop(); this.sound.start(); } _root.hook.shootSpeed = -Math.abs(_root.hook.shootSpeed); } if (_root.hookAttached eq false) { if (this.land.hit.hitTest(_root.skinny)) { if (this.land.hit.hitTest(_root.skinny._x + _root.skinny.body._width / 2, _root.skinny._y, true)) { if (Key.isDown(68)) { } else { if (Key.isDown(87) && Key.isDown(65) && _root.skinnyWallJumpable eq true && _root.skinny.shot eq false) { _root.skinny._x -= 6; _root.skinny.gravity = -10; _root.skinny.leg1.rotation = -90; _root.skinnyarm1.rotation = 90; _root.skinnyarm2.rotation = -90; _root.skinnyarm1.rotateSpeed = 0; _root.skinnyarm2.rotateSpeed = 0; _root.skinny.xSpeed = -9; _root.skinny.shot = true; this.sound = new Sound(this); this.sound.attachSound('rock1'); this.sound.setVolume(100); this.sound.start(); i = 0; while (i < 20) { _root.bugCounter += 1; _root.dirt.duplicateMovieClip('dirt' + _root.bugCounter, _root.bugCounter); ++i; } } } } if (this.land.hit.hitTest(_root.skinny._x - _root.skinny.body._width / 2, _root.skinny._y, true)) { if (Key.isDown(65)) { } else { if (Key.isDown(87) && Key.isDown(68) && _root.skinnyWallJumpable eq true && _root.skinny.shot eq false) { _root.skinny._x += 6; _root.skinny.gravity = -10; _root.skinny.leg1.rotation = -90; _root.skinnyarm1.rotation = 90; _root.skinnyarm2.rotation = -90; _root.skinnyarm1.rotateSpeed = 0; _root.skinnyarm2.rotateSpeed = 0; _root.skinny.xSpeed = 9; _root.skinny.shot = true; this.sound = new Sound(this); this.sound.attachSound('rock2'); this.sound.setVolume(100); this.sound.stop(); this.sound.start(); i = 0; while (i < 20) { _root.bugCounter += 1; _root.dirt.duplicateMovieClip('dirt' + _root.bugCounter, _root.bugCounter); ++i; } } } } if (this.land.hit.hitTest(_root.skinny._x + _root.skinny.bod._width, _root.skinny._y - 10, true)) { _root.skinny.shot = false; _root.skinny._x -= Math.abs(_root.skinny.xSpeed / 2); _root.skinny.xSpeed = 0; } if (this.land.hit.hitTest(_root.skinny._x - _root.skinny.bod._width, _root.skinny._y - 10, true)) { _root.skinny.shot = false; _root.skinny._x += Math.abs(_root.skinny.xSpeed / 2); _root.skinny.xSpeed = 0; } while (this.land.hit.hitTest(_root.skinny._x, _root.skinny._y + _root.skinny.bod._height / 2, true)) { _root.skinny.shot = false; _root.surfaceType = this.land.surfaceType; _root.skinny.leg1.rotation = 0; _root.skinny.gravity = 0; _root.skinny.onGroundCounter += 1; _root.skinny._y -= 0.5; _root.skinny.onGround = true; } if (this.land.hit.hitTest(_root.skinny._x, _root.skinny._y - _root.skinny.bod._height / 2 - 10, true)) { _root.skinny.shot = false; _root.skinny._y += 0.5; _root.skinny.gravity = 0; } } } } function post() { this.glow._alpha = 50 + random(50); if (_root.hookAttached eq false && _root.hook.shoot eq true) { if (_root.hook.hitTest(this.glow)) { this.sound = new Sound(this); this.sound.setVolume(80); this.sound.attachSound('hookAttach'); this.sound.start(); _root.hookAttached = true; } } } function postSwing() { if (_root.hookAttached eq false && _root.hook.shoot eq true) { if (_root.hook.hitTest(this)) { _root.hookAttached = true; _root.skinny.swinging = true; } } } function skinnyArm() { if (_root.skinny.shot eq true) { this.rotateSpeed = _root.skinny.xSpeed; } this._rotation += this.rotateSpeed + (rotation - this._rotation) / 50 + _root.skinny.xSpeed / 2; if (_root.skinny.onGround eq true) { rotation = 0; } else { rotation = 180; } if (this._rotation > 0) { this.rotateSpeed -= 0.5; } if (this._rotation < 0) { this.rotateSpeed += 0.5; } } function treeLoad() { this.red = 0; this.green = 0; this.blue = 0; this._x = -_level0._x + random(Stage.width) - random(Stage.width); this.xAdd = this._x; this.yAdd = this._y; this.speed = 50; this._y = -_level0._y; _root.treeCount += 1; this.bod._width = 20 + _root.treeCount; this.c = new Color(this); this.botScreen = _root.skinnyStartY; this.yFall = 0; } function tree() { if (_root.stats.fader._alpha > 100) { this._visible = _root.treesVisible; } this.darkness = 100 - this.bod._width * 2.8; this.trans = {'ra': this.darkness, 'rb': 0, 'ga': this.darkness, 'gb': 0, 'ba': this.darkness, 'bb': 0}; this.c.setTransform(this.trans); this._y = -_level0._y / (this.bod._width / 8) + _root.skinnyStartY + this.yAdd; this._x = -_level0._x / (this.bod._width / 8) + this.xAdd; if (this._x < -_level0._x - this._width) { this.xAdd += Stage.width * 1.2; } if (this._x > -_level0._x + this._width + Stage.width) { this.xAdd -= Stage.width * 1.2; } if (this._y > -_level0._y + 330 + 330) { this.yAdd -= 330; } if (this._y < -_level0._y + 330) { this.yAdd += 330; } } function treeForegroundLoad() { this._x = -_level0._x + random(Stage.width); this.xAdd = this._x; this.yAdd = this._y; this._y = -_level0._y; this.bod._width = 60 + random(50); this.botScreen = _root.skinnyStartY; this.yFall = 0; var v3 = new BlurFilter(10, 10, 1); this.filters = [v3]; } function treeForeground() { this._y = _level0._y * 1.05 + _root.skinnyStartY + this.yAdd; this._x = _level0._x * 1.05 + this.xAdd; if (this._x < -_level0._x - 2000) { this.xAdd += Stage.width + 2000 + random(1000); } if (this._x > -_level0._x + Stage.width + 2000) { this.xAdd -= Stage.width + 2000 + random(1000); } if (this._y > -_level0._y + 330 + 330) { this.yAdd -= 330; } if (this._y < -_level0._y + 330) { this.yAdd += 330; } } function snowLoad() { this._rotation; this.scaleOrig = this._xscale; this._xscale = 10 + random(120); this._yscale = this._xscale; this.ySpeed = this._xscale / 50; this.rotateSpeed = random(50) - random(50); this.xSpeed = this._xscale / 50; this.randRotate = 1 + random(5) - random(5); this._y = -_level0._y + random(Stage.height); this._x = -_level0._x + random(Stage.width); this._alpha = this._xscale; } function snow() { if (_root.snowCounter < 1000 + this._xscale * 4 && _root.snowCounter > this._xscale * 4) { if (this._y < -_level0._y - 100) { this._y = -_level0._y + Stage.height + 100; this._x = -_level0._x + random(600); } if (this._y > -_level0._y + Stage.height + 100) { this._y = -_level0._y - 100; this._x = -_level0._x + random(600); } if (this._x < -_level0._x - 100) { this._y = -_level0._y + random(400); this._x = -_level0._x + Stage.width + 100; } if (this._x > -_level0._x + Stage.width + 100) { this._y = -_level0._y + random(400); this._x = -_level0._x - 100; } } this._rotation += randRotate; this._x += this.xSpeed; this._y += this.ySpeed; this._rotation += this.randRotate; } function bugLoad() { this.pieceLocation = _root[_root.where + 'Array'][0].length * (this._parent._parent.row - 1) + this._parent._parent.column; this._visible = _root['fairy' + _root.where + this.pieceLocation + 'Visible']; if (_root.orbsGettable eq false) { this._alpha = 0; } else { this._alpha = 100; } this.worth = 1; this.sound = new Sound(this); this.soundAmount = 3; this.type = 'fairy'; } function bug() { this._alpha += (this.alpha - this._alpha) / 10; if (_root.orbsGettable eq false) { this.alpha = 0; } else { this.alpha = 100; } if (this.alpha eq 100 && _root.hook.hitTest(this) && this._alpha > 50 && this._visible eq true && _root.hook.shoot eq true || _root.skinny.body.hitTest(this) && this._visible eq true && this.alpha eq 100) { _root.hookHitX = this._x; _root.hookHitY = this._y; _root.stats.fairy._alpha = 100; _root.bugsCaught += this.worth; _root.bugCounter += 1; _root.stats.special._alpha = 100; eval('_root.fairy' + _root.where + this.pieceLocation + 'Visible') = false; this.randomNum = 1 + random(this.soundAmount); this.sound = new Sound(this); this.sound.setVolume(5 + random(5)); this.sound.attachSound(this.type + this.randomNum); this.sound.start(); if (_root.skinny.body.hitTest(this) && this._visible eq true) { this.sound.attachSound('fairyCrunch'); this.sound.setVolume(20 + random(20)); this.sound.start(); this.i = 0; while (this.i < 20) { _root.bugCounter += 1; _root.sprinkle.duplicateMovieClip('sprinkle' + _root.bugCounter, _root.bugCounter); ++this.i; } } this._visible = false; } } function bugInSpider() { if (_root.hook.hitTest(this) && this._alpha > 50 && this._visible eq true && _root.hook.shoot eq true || _root.skinny.body.hitTest(this) && this._visible eq true) { _root.hookHitX = this._x; _root.hookHitY = this._y; _root.stats.fairy._alpha = 100; _root.bugsCaught += this._parent.spider.orbAmount; _root.bugCounter += this._parent.spider.orbAmount; _root.stats.special._alpha = 100; eval('_root.fairy' + _root.where + this.pieceLocation + 'Visible') = false; this.randomNum = 1 + random(this.soundAmount); this.sound = new Sound(this); this.sound.setVolume(5 + random(5)); this.sound.attachSound(this.type + this.randomNum); this.sound.start(); if (_root.skinny.body.hitTest(this) && this._visible eq true) { this.sound.attachSound('fairyCrunch'); this.sound.setVolume(20 + random(20)); this.sound.start(); this.i = 0; while (this.i < 20) { _root.bugCounter += 1; _root.sprinkle.duplicateMovieClip('sprinkle' + _root.bugCounter, _root.bugCounter); ++this.i; } } this._visible = false; } } function bugHidden() { if (this._parent.box._currentframe > 9) { if (_root.hook.hitTest(this) && this._alpha > 50 && this._visible eq true && _root.hook.shoot eq true || _root.skinny.body.hitTest(this) && this._visible eq true) { _root.hookHitX = this._x; _root.hookHitY = this._y; _root.stats.fairy._alpha = 100; _root.bugsCaught += this.worth; _root.bugCounter += 1; _root.stats.special._alpha = 100; eval('_root.fairy' + _root.where + this.pieceLocation + 'Visible') = false; this.randomNum = 1 + random(this.soundAmount); this.sound = new Sound(this); this.sound.setVolume(5 + random(5)); this.sound.attachSound(this.type + this.randomNum); this.sound.start(); if (_root.skinny.body.hitTest(this) && this._visible eq true) { this.sound.attachSound('fairyCrunch'); this.sound.setVolume(20 + random(20)); this.sound.start(); this.i = 0; while (this.i < 20) { _root.bugCounter += 1; _root.sprinkle.duplicateMovieClip('sprinkle' + _root.bugCounter, _root.bugCounter); ++this.i; } } this._visible = false; } } } function walkGrass() { if (Math.abs(_root.skinny.xSpeed) > 1 && _root.skinny.onGround eq true) { this.randomNum = 1 + random(3); this.grass = new Sound(this); this.grass.attachSound(_root.surfaceType + this.randomNum); this.grass.setVolume(60 + random(20)); this.grass.start(); } } function colorLoad() { this.darkness = 0; this.red = 0; this.green = 0; this.blue = 0; this.speed = 100; } function transformColor() { this.darkness = 100; this.red += (_root.redPercent * _root[_root.where + 'Chrome'] - this.red) / this.speed; this.green += (_root.greenPercent * _root[_root.where + 'Chrome'] - this.green) / this.speed; this.blue += (_root.bluePercent * _root[_root.where + 'Chrome'] - this.blue) / this.speed; if (Math.abs(this.red) < Math.abs(_root.redPercent - 2)) { this.c = new Color(this); this.trans = {'ra': this.darkness, 'rb': this.red, 'ga': this.darkness, 'gb': this.green, 'ba': this.darkness, 'bb': this.blue}; this.c.setTransform(this.trans); } } function transformBugColor() { this.red += (_root.redPercent - this.red) / this.speed; this.green += (_root.greenPercent - this.green) / this.speed; this.blue += (_root.bluePercent - this.blue) / this.speed; if (Math.abs(this.red) < Math.abs(_root.redPercent - 10)) { this.c = new Color(this); this.trans = {'ra': 100, 'rb': this.red * 5, 'ga': 100, 'gb': this.green * 5, 'ba': 100, 'bb': this.blue * 5}; this.c.setTransform(this.trans); } } function lamp() { if (this._parent.character.satisfied eq true) { this.light.alpha = 80; } } function lampFinal() { if (_root.character33Satisfied eq true && this.light.alpha !== 80) { this.sound = new Sound(this); this.sound.setVolume(80); this.sound.attachSound('lastChairStart'); this.sound.start(); this.alpha = 80; } } function symbolBulb() { this._alpha += (this.alpha - this._alpha) / 40; if (_root['character' + this.characterNumber + 'Satisfied'] eq true) { this.alpha = 100; this._alpha = 100; } } function shiverLoad() { this.rotateOrig = this._rotation; } function shiver() { if (this._parent.satisfied !== true) { this._rotation = this.rotateOrig + random(6) - random(6); } } function arrowLoad() { this._alpha = 0; this.alpha = 0; } function arrow() { this._alpha += (this.alpha - this._alpha) / 20; if (this._parent.character.satisfied eq false) { this.alpha = 100; if (_root.skinny._x < this._parent._parent._x + 200 && _root.skinny._x > this._parent._parent._x - 200 && this._parent.character.satisfied eq false) { this.play(); } else { this.gotoAndStop(1); } } else { this.alpha = 0; } } function arrowType2() { this._alpha += (this.alpha - this._alpha) / 20; if (_root.skinnyTalking eq false && this._parent.character.satisfied eq false) { this.alpha = 100; if (_root.skinny._x < this._parent._parent._x + 200 && _root.skinny._x > this._parent._parent._x - 200 && this._parent.character.satisfied eq false) { this.play(); } else { this.gotoAndStop(1); } } else { this.alpha = 0; } } function arrowType3() { this._alpha += (this.alpha - this._alpha) / 20; if (this._parent.character.satisfied eq false && _root.skinnyTalking eq true) { this.alpha = 100; this.play(); } else { this.alpha = 0; this.gotoAndStop(1); } } function changeLevel() { if (_root.skinny.hitTest(this) && _root.stats.landName.text !== this.signRead) { _root.treesVisible = true; _root.music.soundVolume = _root.music.soundMax - 1; _root.music.fadeSpeed = -1; _root.redPercent = this.redPercent; _root.greenPercent = this.greenPercent; _root.bluePercent = this.bluePercent; _root.stats.landName._alpha = -100; _root.stats.alphaVelocity = 1; _root.stats.fader._alpha = -1; _root.stats.faderAlphaVelocity = 1; _root.locArray = this.locArray; _root.where = this.locArray; _root.skinnyRelocateX = this.skinnyRelocateX; _root.skinnyRelocateY = this.skinnyRelocateY; _root.bugsVisible = true; _root.stats.landName.text = this.signRead; } } function speakerDynamic() { if (_root.skinnyTalking eq true) { this.gotoAndStop('up'); } else { this.gotoAndStop('down'); } } function spinner() { this.rotation = this.rotateArray[Math.abs(this.rotateNumber)]; this._rotation = this.rotation; if (this.rotateNumber > 3) { this.rotateNumber = 0; } if (this.rotateNumber < 0) { this.rotateNumber = 3; } if (_root.hook.hitTest(this.spinner.hit1) || _root.hook.hitTest(this.spinner.hit2) || _root.hook.hitTest(this.spinner.hit3) || _root.hook.hitTest(this.spinner.hit4)) { if (_root.hook.shoot eq true) { this.play(); _root.hook.shoot = false; } } eval('_root.spinner' + this._parent._parent.column * this._parent._parent.row + 'Rotation') = this.rotateNumber; } function boxBreakLoad() { this.pieceLocation = _root[_root.where + 'Array'][0].length * (this._parent._parent.row - 1) + this._parent._parent.column; this.broken = _root['box' + _root.where + this.pieceLocation + 'Broken']; if (this.broken eq true) { this._parent.hit._yscale = 0; this._parent.hit._xscale = 0; this.gotoAndStop(this._totalframes); } } function boxBreak() { this.broken = _root['box' + _root.where + this.pieceLocation + 'Broken']; if (this.broken eq true) { this._parent.hit._yscale = 0; this._parent.hit._xscale = 0; } if (_root.hook.hitTest(this) && _root.hook.shoot eq true && this.health > -1 && this._currentframe < 2) { if (_root.boxBreakable eq true) { this.health -= 2; this.play(); } _root.hook.shootSpeed = -Math.abs(_root.hook.shootSpeed); } if (this.health < -1 && this._currentframe < 2) { this.gotoAndPlay('explode'); eval('_root.box' + _root.where + this.pieceLocation + 'Broken') = true; } } function smoke() { this._xscale -= this.speed; this._yscale = this._xscale; this._x += this.xSpeed; this._y += this.ySpeed; this._rotation += this.rotation; if (this._alpha > -10) { this._alpha -= this.speed * 2; } } function caseLight() { this._alpha += (this.alpha - this._alpha) / 10; if (_root['character' + this.characterNumber + 'Satisfied'] eq true) { this.alpha = 60 + random(40); } else { this.alpha = random(30); } } function spinnerButton() { this.button._x += (this.button.x - this.button._x) / 25; if (_root.hook.hitTest(this) && _root.hook.shoot eq true) { this.button._x = this.button.x + 10; } } function postSwitch() { this.glow._alpha += this.glow.alpha - this.glow._alpha; if (_root[this.colorKey + 'Timer'] < 0) { this.soundStarted = false; this.glow.alpha = 0; } else { this.glow.alpha = 100; } if (_root.hook.hitTest(this) && _root.hook.shoot eq true) { this.soundStarted = true; this.glow._xscale = this.glow.xscale + 50; this.sound = new Sound(this); this.sound.attachSound('laser'); this.sound.setVolume(100); this.sound.start(); _root.hook.shootSpeed = -Math.abs(_root.hook.shootSpeed); eval('_root.' + this.colorKey + 'Timer') = this.timeAdd; } } function machineSwitch() { if (_root.hook.shoot eq true && _root.hook.hitTest(this)) { _root.machine.y = 2500; } } function doorXSolid() { if (_root.skinny.bod.hitTest(this.left)) { _root.skinny.shot = false; _root.skinny.xSpeed = -5; } if (_root.skinny.bod.hitTest(this.right)) { _root.skinny.shot = false; _root.skinny.xSpeed = 5; } } function door() { if (_root.lasersOn eq true) { this._parent.graphic._xscale = 50 + random(50); this._parent.graphic._alpha = 50 + random(50); if (_root.hook.shoot eq false) { this._yscale += (this.yscale - this._yscale) / 10; if (this._yscale > this.yscale / 1.2) { this._xscale = 0; this._parent.hit._yscale = this.yscaleOrig; } else { _root.doorXSolid.call(this); this.doorheight = 90; this._parent.hit._yscale = 0; this._xscale = this.xscaleOrig; } if (_root[this.colorKey + 'Timer'] > 0) { this.doorheight = 0; this._parent.graphic._visible = false; this.yscale = 0; this._yscale = 0; this._parent.hit._yscale = 0; } else { this._parent.graphic._visible = true; this.yscale = this.yscaleOrig; } } } else { this.doorheight = 0; this._parent.graphic._visible = false; this.yscale = 0; this._yscale = 0; this._parent.hit._yscale = 0; } } function horizontalDoor() { if (_root.lasersOn eq true) { this._parent.graphic._xscale = 50 + random(50); this._parent.graphic._alpha = 50 + random(50); if (_root.hook.shoot eq false) { if (_root[this.colorKey + 'Timer'] > 0) { this._parent.graphic._visible = false; this._xscale = 0; } else { this._parent.graphic._visible = true; this._xscale = this.xscaleOrig; } } } else { this._parent.graphic._visible = false; this._xscale = 0; } } function grass() { this._rotation += (this.rotation - this._rotation) / 20; if (_root.skinny.body.hitTest(this)) { this.rotation += _root.skinny.xSpeed; } else { this.rotation = this.rotateOrig; } } function fireflyLoad() { this._x = random(Stage.width); this._y = random(Stage.height); this.randRotate = random(5) - random(5); this.rotateCounter = -random(100); this.alphaCounter = random(50); this._xscale = 50 + random(150); this._yscale = this._xscale; } function firefly() { if (this._y < -_level0._y - 100) { this._y = -_level0._y + Stage.height + 100; } if (this._y > -_level0._y + Stage.height + 100) { this._y = -_level0._y - 100; } if (this._x < -_level0._x - 100) { this._x = -_level0._x + Stage.width + 100; } if (this._x > -_level0._x + Stage.width + 100) { this._x = -_level0._x - 100; } this._x += this.xSpeed; this._y += this.ySpeed; this._rotation += this.randRotate; this.rotateCounter += 1; if (this.rotateCounter > 200 + random(30)) { this.randRotate = random(5) - random(5); this.rotateCounter = 0; } this.radians = this._rotation * Math.PI / 180; this.xSpeed = Math.cos(this.radians) * 1.3; this.ySpeed = Math.sin(this.radians) * 1.3; } function mothLoad() { this._x = random(Stage.width); this._y = random(Stage.height); this.randRotate = random(5) - random(5); this.rotateCounter = -random(100); this._xscale = 20 + random(5); this._yscale = this._xscale; } function moth() { if (this._y < -_level0._y - 100) { this._y = -_level0._y + Stage.height + 100; } if (this._y > -_level0._y + Stage.height + 100) { this._y = -_level0._y - 100; } if (this._x < -_level0._x - 100) { this._x = -_level0._x + Stage.width + 100; } if (this._x > -_level0._x + Stage.width + 100) { this._x = -_level0._x - 100; } this._x += this.xSpeed; this._y += this.ySpeed; this._rotation += this.randRotate; this.rotateCounter += 1; if (this.rotateCounter > 200 + random(30)) { this.randRotate = random(5) - random(5); this.rotateCounter = 0; } this.radians = (this._rotation - 90) * Math.PI / 180; this.xSpeed = Math.cos(this.radians) * 1.3; this.ySpeed = Math.sin(this.radians) * 1.3; } function hookSmoke() { this._visible = false; this._xscale = 70 + random(50); this._alpha = 80 + random(20); this._visible = true; this._x = _root.skinny._x + _root.hook.xSpeed * _root.hook.shootSpeed; this._y = _root.skinny._y - 50 + _root.hook.ySpeed * _root.hook.shootSpeed; this.xSpeed = _root.hook.xSpeed * _root.hook.shootSpeed / (3 + random(9)) + random(10) / 10 - random(10) / 10; this.ySpeed = _root.hook.ySpeed * _root.hook.shootSpeed / (3 + random(9)) + random(10) / 10 - random(10) / 10; this.alphaSpeed = 6; this.rototeSpeed = random(15) - random(15); this._visible = true; if (this._name eq smoke) { this._visible = false; } } function skinnySmoke() { this._xscale = 70 + random(50); this._yscale = _xscale; this._alpha = 80 + random(20); this._visible = true; this._x = _root.skinny._x; this._y = _root.skinny._y - 50; this.xSpeed = 0; this.ySpeed = 0; this.alphaSpeed = 6; this.rototeSpeed = random(15) - random(15); if (this._name eq smoke) { this._visible = false; } } function soundScapeLoad() { this.soundScape = new Sound(this); this.soundScape.attachSound(_root.where + 'SoundScape'); this.soundScape.setVolume(100); this.soundScape.start(0, 99); this.soundScape.setVolume(0); this.frameName = _root.where; this.volume = 0; this.volume2 = 0; } function soundScape() { this.volume2 += (this.volume - this.volume2) / 20; if (_root.stats.fader._alpha > 5) { this.volume = 0; } else { this.volume = 100; } if (this.frameName !== _root.where && _root.stats.fader._alpha > 145) { this.soundScape.stop(); } this.soundScape.setVolume(this.volume2); } function characterHudBall() { if (_root.charactersSaved > this.number - 1) { this.center._alpha = 100; } else { this.center._alpha = 0; } this.visible = _root.characterAmount - this.number; if (this.visible < 0) { this._visible = 0; } else { this._visible = 1; } } function musicLoad() { this.soundScape = new Sound(this); this.soundScape.attachSound(_root.where + 'Theme'); this.soundScape.setVolume(100); this.soundScape.setVolume(0); this.frameName = _root.where; this.volume = 0; this.volume2 = 0; this.counter = 4500; } function music() { this.counter += 1; if (this.counter > 5500) { this.soundScape.start(); this.counter = 0; } this.volume2 += (this.volume - this.volume2) / 10; if (_root.stats.fader._alpha > 5) { this.volume = 0; } else { this.volume = this.volumeReset; } if (this.frameName !== _root.where && _root.stats.fader._alpha > 145) { this.soundScape.stop(); } this.soundScape.setVolume(this.volume2); } function spark() { if (this.counter > 150 + random(200) && this._parent._parent._parent.character.satisfied !== true) { this.play(); this.counter = 0; } this.counter += 1; } function lightningBugLoad() { this._x = random(Stage.width); this._y = random(Stage.height); this.randRotate = random(5) - random(5); this.rotateCounter = -random(100); this._xscale = 20 + random(5); this._yscale = this._xscale; this.light._alpha = 0; this.alpha = 0; } function lightningBug() { if (this._y < -_level0._y - 100) { this._y = -_level0._y + Stage.height + 100; } if (this._y > -_level0._y + Stage.height + 100) { this._y = -_level0._y - 100; } if (this._x < -_level0._x - 100) { this._x = -_level0._x + Stage.width + 100; } if (this._x > -_level0._x + Stage.width + 100) { this._x = -_level0._x - 100; } this._x += this.xSpeed; this._y += this.ySpeed; this._rotation += this.randRotate; this.light._alpha += -this.light._alpha / 10; this.rotateCounter += 1; if (this.rotateCounter > 50 + random(30)) { this.light._alpha = 100; this.randRotate = random(5) - random(5); this.rotateCounter = 0; } this.radians = (this._rotation - 90) * Math.PI / 180; this.xSpeed = Math.cos(this.radians) * 1.3; this.ySpeed = Math.sin(this.radians) * 1.3; } hookAttached = false; chainNumber = 0; trace('ALL FUNCTIONS LOADED'); } movieClip 1175 { } instance background of movieClip 1175 { onClipEvent (load) { } onClipEvent (enterFrame) { this._x = -_level0._x; this._y = -_level0._y; } } movieClip 1178 { } instance of movieClip 1178 { onClipEvent (load) { distance = 2; this._x = -_level0._x / distance; this._y = -_level0._y / distance; xSpace = 40; ySpace = 470; } onClipEvent (enterFrame) { this._x = -_level0._x / distance - xSpace; this._y = -_level0._y / distance - ySpace; } } movieClip 1180 { } movieClip 1182 { frame 1 { stop(); } frame 2 { stop(); } } instance hook of movieClip 1182 { onClipEvent (load) { shoot = false; shootSpeed = 0; elasticity = 0; sound = new Sound(this); sound2 = new Sound(hook); } onClipEvent (enterFrame) { if (_root.armShootable eq true) { this.gotoAndStop(1); shootSpeedMax = 20; elasticity = 3.3 / _root.armStrength; radians = -Math.atan2(xDist, yDist); if (_root.skinnyTalking eq false) { if (_root.hookAttached eq false) { xSpeed = Math.cos((_rotation + 90) * 0.0174532925199433); ySpeed = Math.sin((_rotation + 90) * 0.0174532925199433); xDist = _root._xmouse - _x; yDist = _root._ymouse - _y; if (shoot eq false) { _visible = false; _rotation = radians / 0.0174532925199433; _x = _root.skinny._x; _y = _root.skinny._y - 45; this.onMouseDown = function () { if (shoot eq false && _root.skinnyTalking eq false) { this.sound.attachSound('hookShoot'); this.sound.setVolume(60 + random(5)); this.sound.start(); this.sound2.attachSound('chain'); this.sound2.setVolume(35 + random(5)); this.sound2.start(0, 99); _rotation = radians / 0.0174532925199433; i = 0; while (i < 6) { _root.smokeObject = 'hook'; _root.bugCounter += 1; _root.sprink.duplicateMovieClip('sprink' + _root.bugCounter, _root.bugCounter); ++i; } _visible = true; _x = _root.skinny._x + Math.cos(_rotation) * 0.0174532925199433; _y = _root.skinny._y - 45; shootSpeed = shootSpeedMax; _x = _x + xSpeed * shootSpeed; _y = _y + ySpeed * shootSpeed; _root.armShoot._x = _root.hook._x; _root.armShoot._y = _root.hook._y; fairyNum = _root.bugsCaught; shoot = true; } }; } else { this.onMouseDown = function () { shootSpeed = -Math.abs(_root.hook.shootSpeed); }; shootSpeed -= elasticity; _x = _x + xSpeed * shootSpeed; _y = _y + ySpeed * shootSpeed; if (fairyNum < _root.bugsCaught) { this.gotoAndStop(2); _root.bugCounter += 1; _root.sprinkle.duplicateMovieClip('sprinkle' + _root.bugCounter, _root.bugCounter); } if (shootSpeed < -20) { if (fairyNum < _root.bugsCaught) { _root.skinny.lantern.light._alpha = 100; this.sound.attachSound('fairyCrunch'); this.sound.setVolume(20 + random(20)); this.sound.start(); i = 0; while (i < 20 * (_root.bugsCaught - fairyNum)) { _root.bugCounter += 1; _root.sprinkle.duplicateMovieClip('sprinkle' + _root.bugCounter, _root.bugCounter); ++i; } } shootSpeed = shootSpeedMax; this.sound2.stop(); this.sound2.attachSound('hookRetract'); this.sound2.setVolume(20 + random(20)); this.sound2.start(); shoot = false; } } } } } } } movieClip 1184 { } movieClip 1185 { } instance armShoot of movieClip 1185 { onClipEvent (enterFrame) { if (_root.skinnyTalking eq false) { xDist = _root.hook._x - _x; yDist = _root.hook._y - _y; _rotation = -(Math.atan2(xDist, yDist) / 0.0174532925199433); if (_root.hook.shoot eq false) { _visible = false; arm._height = 20; } else { _visible = true; _x = _root.skinny._x; _y = _root.skinny._y - 45; if (_root.hookAttached eq false) { arm._height = Math.sqrt(xDist * xDist + yDist * yDist) + _root.hook.shootSpeed; } else { arm._height = Math.sqrt(xDist * xDist + yDist * yDist) - _root.hook.shootSpeed; } } } } } movieClip 1186 { } instance of movieClip 1186 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.skinnyTalking eq false) { xDist = _root.hook._x - _root.armShoot._x; yDist = _root.hook._y - _root.armShoot._y; _x = _root.armShoot._x + xDist / 2; _y = _root.armShoot._y + yDist / 2; if (_root.hook.shoot eq false) { _visible = false; } else { _visible = true; } } } } movieClip 1187 { } movieClip 1189 { instance light of movieClip 1187 { onClipEvent (load) { alpha = 4; } onClipEvent (enterFrame) { if (_root.bugsCaught * 3 < 100) { _alpha = alpha + _root.bugsCaught * 8 + random(20); } else { _alpha = 100; } _xscale = _alpha + random(10); _yscale = _alpha + random(10); } } } movieClip 1190 { } movieClip 1191 { frame 2 { if (Math.abs(_root.skinny.xSpeed) < 1.5) { gotoAndPlay(1); } if (_root.hook.shoot eq true) { gotoAndPlay(1); } } frame 3 { _root.walkGrass.call(this); } frame 9 { if (Math.abs(_root.skinny.xSpeed) < 1.5) { gotoAndPlay(1); } } frame 11 { _root.walkGrass.call(this); } } movieClip 1193 { } movieClip 1194 { instance of movieClip 501 { onClipEvent (load) { yOrig = _y; } onClipEvent (enterFrame) { _y = _y + ((yOrig - _y) / 10 - _root.skinny.gravity / 2); if (_y < yOrig - 20) { _y = _y + 1; } xDist = _root._xmouse - _root.skinny._x; yDist = _root._ymouse - _root.skinny._y; } } instance rotater of movieClip 1193 { onClipEvent (enterFrame) { _rotation = _rotation + _root.skinny.xSpeed * 5; } } } movieClip 1195 { instance legs of movieClip 1191 { onClipEvent (enterFrame) { if (_root.skinny.onGround eq false) { _visible = false; } else { _visible = true; } } } instance body of movieClip 1194 { onClipEvent (load) { yOrig = _y; } onClipEvent (enterFrame) { radians = rotater._rotation * 0.0174532925199433; _y = yOrig + Math.sin(radians) * 15; } } } movieClip 1197 { } movieClip 1198 { instance lantern of movieClip 1189 { onClipEvent (load) { _rotation = random(90) - random(90); rotateSpeed = 0; } onClipEvent (enterFrame) { this.radians = _root.skinny.wrist1._rotation * 0.0174532925199433; this._y = _root.skinny.wrist1._y + Math.cos(this.radians) * 15; this._x = _root.skinny.wrist1._x + Math.sin(-this.radians) * 15; _root.skinnyArm.call(this); } } instance bod of movieClip 1190 { onClipEvent (enterFrame) { radians = _root.Link._rotation * 0.0174532925199433; } } instance hit of movieClip 1190 { onClipEvent (enterFrame) { radians = _root.Link._rotation * 0.0174532925199433; } } instance body of movieClip 1195 { onClipEvent (load) { yOrig = _y; origxScale = _xscale; } onClipEvent (enterFrame) { var myBevelFilter = new flash.filters.BevelFilter(2, (_parent.arm1._rotation - 90) * (Math.abs(_parent._xscale) / _parent._xscale), 16777215, 1, 0, 0, 10, 10, _root.skinny.lantern.light._alpha / 100, 0, 'inner', false); this.filters = [myBevelFilter]; _y = _y + (yOrig - _y) / 10; } } instance arm1 of movieClip 503 { onClipEvent (load) { _rotation = 90; rotateSpeed = 0; origHeight = _yscale; } onClipEvent (enterFrame) { _root.skinnyArm.call(this); } } instance arm2 of movieClip 503 { onClipEvent (load) { _rotation = 90; rotateSpeed = 0; origHeight = _yscale; } onClipEvent (enterFrame) { if (_root.hook.shoot eq true) { _visible = false; } else { _visible = true; } _root.skinnyArm.call(this); } } instance wrist1 of movieClip 503 { onClipEvent (load) { _rotation = random(90) - random(90); rotateSpeed = 0; } onClipEvent (enterFrame) { this.radians = _root.skinny.arm1._rotation * 0.0174532925199433; this._y = _root.skinny.arm1._y + Math.cos(this.radians) * 20; this._x = _root.skinny.arm1._x + Math.sin(-this.radians) * 20; _root.skinnyArm.call(this); } } instance of movieClip 1197 { onClipEvent (load) { _rotation = random(90) - random(90); rotateSpeed = 0; } onClipEvent (enterFrame) { if (_root.hook.shoot eq true) { _visible = false; } else { _visible = true; } this.radians = _root.skinny.arm2._rotation * 0.0174532925199433; this._y = _root.skinny.arm2._y + Math.cos(this.radians) * _root.skinny.arm2.origHeight; this._x = _root.skinny.arm2._x + Math.sin(-this.radians) * _root.skinny.arm2.origHeight; _root.skinnyArm.call(this); } } instance leg1 of movieClip 503 { onClipEvent (enterFrame) { rotation2 = rotation * Math.abs(_parent.body._xscale) / _parent.body._xscale; _rotation = _rotation + (rotation2 - _rotation) / 10; if (_root.skinny.body.legs._visible == true) { _visible = false; _parent.leg2._visible = false; _parent.calf1._visible = false; _parent.calf2._visible = false; } else { _visible = true; _parent.leg2._visible = true; _parent.calf1._visible = true; _parent.calf2._visible = true; } } } instance leg2 of movieClip 503 { onClipEvent (load) { rotateOrig = _rotation; } onClipEvent (enterFrame) { _rotation = _rotation + (rotation - _rotation) / 10; if (_root.skinny.onGround eq false) { rotation = (_parent.leg1.rotation + 60) * Math.abs(_parent.body._xscale) / _parent.body._xscale; } else { rotation = rotateOrig; } } } instance calf1 of movieClip 505 { onClipEvent (load) { _rotation = random(90) - random(90); rotateSpeed = 0; } onClipEvent (enterFrame) { this.radians = _root.skinny.leg1._rotation * 0.0174532925199433; this._y = _root.skinny.leg1._y + Math.cos(this.radians) * 26.8; this._x = _root.skinny.leg1._x + Math.sin(-this.radians) * 26.8; _root.skinnyArm.call(this); } } instance calf2 of movieClip 505 { onClipEvent (load) { _rotation = random(90) - random(90); rotateSpeed = 0; } onClipEvent (enterFrame) { this.radians = _root.skinny.leg2._rotation * 0.0174532925199433; this._y = _root.skinny.leg2._y + Math.cos(this.radians) * 26.8; this._x = _root.skinny.leg2._x + Math.sin(-this.radians) * 26.8; _root.skinnyArm.call(this); } } } instance skinny of movieClip 1198 { onClipEvent (load) { _visible = false; origScale = _xscale; gravity = 0; weight = 0.5; xRate = 1.3; xSpeed = 0; onGround = false; onGroundCounter = 0; swinging = false; _y = _root.skinnyStartY; _x = _root.skinnyStartX; _level0._x = Stage.width / 2 - _x; _level0._y = Stage.height / 1.5 - _y; shot = false; _root.colorLoad.call(_root); camSlow2 = 0; sound = new Sound(this); soundStarted = false; _visible = true; } onClipEvent (enterFrame) { actualSpeed = Math.sqrt(xSpeed * xSpeed + gravity * gravity); if (Math.abs(actualSpeed) > 15) { _root.smokeObject = 'skinny'; _root.bugCounter += 1; _root.sprink.duplicateMovieClip('sprink' + _root.bugCounter, _root.bugCounter); } yLocation.text = _y; xLocation.text = _x; _root.snowCounter += 1; if (Math.abs(gravity) > 10) { camSlow = 1.1; } else { camSlow = 5; } camSlow2 += (camSlow - camSlow2) / 15; if (_root.snowCounter > 2000) { _root.snowCounter = 0; } _level0._y += (camY - _level0._y) / camSlow2; _level0._x += (camX - _level0._x) / 5; _root.stats._x = -_level0._x; _root.stats._y = -_level0._y; _root.background._x = -_level0._x; _root.background._y = -_level0._y; _root.glow._x = -_level0._x; _root.glow._y = -_level0._y; if (_root.skinnyTalking eq false) { if (_root.hook.shoot !== true) { _root.yellowTimer -= 1; _root.blueTimer -= 1; _root.greenTimer -= 1; xMouseDiff = _root._xmouse - _x; yMouseDiff = _root._ymouse - _y; radians = Math.atan2(xMouseDiff, yMouseDiff); arm._rotation = -(radians / 0.0174532925199433) * (Math.abs(_root.skinny._xscale) / _root.skinny._xscale); head._rotation = arm._rotation + 90; camX = Stage.width / 2 - _x; camY = Stage.height / (1 + _root.camYUp / 10) - _y + gravity; if (gravity < 20) { gravity += weight; } _y = _y + gravity; body._xscale = (Math.abs(xSpeed) / xSpeed) * body.origxScale; _x = _x + (xSpeed + _root.skinnyXSpeedAdd); if (shot eq false) { xSpeed += -xSpeed / 5; xRate = 1.7; } else { xSpeed += -xSpeed / 100; xRate = 0; } if (Key.isDown(68)) { if (Math.abs(xSpeed) < 7) { shot = false; } this.legs._xscale = 150 * (Math.abs(_root.skinny._xscale) / _root.skinny._xscale); xSpeed += xRate; } if (Key.isDown(65)) { if (Math.abs(xSpeed) < 7) { shot = false; } this.legs._xscale = -150 * (Math.abs(_root.skinny._xscale) / _root.skinny._xscale); xSpeed -= xRate; } if (onGround eq true && Key.isDown(87)) { this.sound.attachSound('skinnyJump'); this.sound.setVolume(35 + random(5)); this.sound.start(); gravity = 0; _y = _y - 10; body._y += 10; leg1.rotation = -90; arm1.rotation = 90; arm2.rotation = -90; arm1.rotateSpeed = 0; arm2.rotateSpeed = 0; gravity = _root.jumpPower; onGround = false; } if (Math.abs(gravity) > 2) { onGround = false; } } else { body._xscale = -(_root.hook._rotation / Math.abs(_root.hook._rotation)) * body.origxScale; if (_root.hookAttached !== true) { xSpeed = 0; gravity = 0; camX = Stage.width / 2 - _root.hook._x; camY = Stage.height / 2 - _root.hook._y; } else { camX = Stage.width / 2 - _x; camY = Stage.height / 2 - _y; xSpeed += 1; _x = _x + Math.cos((_root.hook._rotation + 90) * 0.0174532925199433) * xSpeed; _y = _y + Math.sin((_root.hook._rotation + 90) * 0.0174532925199433) * xSpeed; onGround = false; if (_root.hook.hitTest(this.hit)) { shot = true; xSpeed = Math.cos((_root.hook._rotation + 90) * 0.0174532925199433) * 10; gravity = Math.sin((_root.hook._rotation + 90) * 0.0174532925199433) * 10; _root.hook.sound2.stop(); _root.hook.shootSpeed = _root.hook.shootSpeedMax; _root.hook.shoot = false; _root.hookAttached = false; } } } } else { if (_root.skinnyTalking eq false) { if (gravity < 20) { gravity += weight; } _y = _y + gravity; } xSpeed += -xSpeed / 10; } } } movieClip 1200 { } instance sprinkle of movieClip 1200 { onClipEvent (load) { _x = _root.hook._x; _y = _root.hook._y; _alpha = 50 + random(50); gravity = 1 + (random(5) - random(5)) + random(10) / 10 + random(10) / 100; alphaSpeed = random(5); rotateSpeed = random(10) - random(10); } onClipEvent (enterFrame) { _rotation = _rotation + rotateSpeed; gravity += 0.4; _y = _y + gravity; _x = _x + (random(10) - random(10)); _alpha = _alpha - (alphaSpeed - random(10) + random(10)); if (_root.ground.hitTest(_x, _y, true)) { _alpha = -0.3; } if (_alpha < 0) { this.removeMovieClip(); } } } instance dirt of movieClip 1200 { onClipEvent (load) { _xscale = 60 + random(200); _yscale = _xscale; _alpha = 30 + random(70); _x = _root.skinny._x; _y = _root.skinny._y; gravity = _root.skinny.gravity / 2 + random(5) - random(5); xSpeed = _root.skinny.xSpeed / 2 + (random(3) - random(3)) + random(10) / 10 - random(10) / 10; ySpeed = 0.3; alphaSpeed = 1 + random(10) - random(10); } onClipEvent (enterFrame) { gravity += ySpeed; xSpeed += -xSpeed / 50; _x = _x + xSpeed; _y = _y + gravity; _alpha = _alpha - 0.5; if (_alpha < 0) { this.removeMovieClip(); } } } movieClip 1201 { } movieClip 1202 { } instance sprink of movieClip 1202 { onClipEvent (load) { if (_name eq 'sprink') { _visible = false; } _root[_root.smokeObject + 'Smoke'].call(this); } onClipEvent (enterFrame) { if (_name !== 'sprink') { _visible = true; _xscale = _xscale + alphaSpeed / 2; _yscale = _xscale; _x = _x + xSpeed; _y = _y + ySpeed; _rotation = _rotation + rotateSpeed; if (_alpha > -10) { _alpha = _alpha - alphaSpeed; } if (_alpha < 0) { this.removeMovieClip(); } } } } movieClip 1203 { instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } instance of movieClip 1009 land0 { onClipEvent (load) { _root.pieceLoad.call(this); } onClipEvent (enterFrame) { _root.piece.call(this); } } } movieClip 1206 { } instance bug of movieClip 1206 { onClipEvent (load) { _root.fireflyLoad.call(this); } onClipEvent (enterFrame) { _root.firefly.call(this); } } instance bug of movieClip 1206 { onClipEvent (load) { _root.fireflyLoad.call(this); } onClipEvent (enterFrame) { _root.firefly.call(this); } } instance bug of movieClip 1206 { onClipEvent (load) { _root.fireflyLoad.call(this); } onClipEvent (enterFrame) { _root.firefly.call(this); } } instance bug of movieClip 1206 { onClipEvent (load) { _root.fireflyLoad.call(this); } onClipEvent (enterFrame) { _root.firefly.call(this); } } instance bug of movieClip 1206 { onClipEvent (load) { _root.fireflyLoad.call(this); } onClipEvent (enterFrame) { _root.firefly.call(this); } } instance bug of movieClip 1206 { onClipEvent (load) { _root.fireflyLoad.call(this); } onClipEvent (enterFrame) { _root.firefly.call(this); } } instance bug of movieClip 1206 { onClipEvent (load) { _root.fireflyLoad.call(this); } onClipEvent (enterFrame) { _root.firefly.call(this); } } instance bug of movieClip 1206 { onClipEvent (load) { _root.fireflyLoad.call(this); } onClipEvent (enterFrame) { _root.firefly.call(this); } } instance bug of movieClip 1206 { onClipEvent (load) { _root.fireflyLoad.call(this); } onClipEvent (enterFrame) { _root.firefly.call(this); } } instance bug of movieClip 1206 { onClipEvent (load) { _root.fireflyLoad.call(this); } onClipEvent (enterFrame) { _root.firefly.call(this); } } instance bug of movieClip 1206 { onClipEvent (load) { _root.fireflyLoad.call(this); } onClipEvent (enterFrame) { _root.firefly.call(this); } } movieClip 1209 { } movieClip 1212 { } instance forground of movieClip 1212 { onClipEvent (load) { _visible = false; _root.soundScapeLoad.call(this); } onClipEvent (enterFrame) { _root.soundScape.call(this); if (_root.stats.fader._alpha < 100) { _visible = true; } else { _visible = false; } } } movieClip 1215 { } instance glow of movieClip 1215 { onClipEvent (load) { gotoAndPlay(random(20)); } onClipEvent (enterFrame) { this._x = -_level0._x; this._y = -_level0._y; } } movieClip 1218 { } movieClip 1221 { } movieClip 1223 { } movieClip 1224 { } movieClip 1225 { instance of movieClip 1221 { onClipEvent (enterFrame) { widthInit = _parent.character1._visible + _parent.character2._visible + _parent.character3._visible + _parent.character4._visible + _parent.character5._visible; _width = widthInit * 31; } } instance character1 of movieClip 1224 { onClipEvent (load) { number = 1; } onClipEvent (enterFrame) { _root.characterHudBall.call(this); } } instance character2 of movieClip 1224 { onClipEvent (load) { number = 2; } onClipEvent (enterFrame) { _root.characterHudBall.call(this); } } instance character3 of movieClip 1224 { onClipEvent (load) { number = 3; } onClipEvent (enterFrame) { _root.characterHudBall.call(this); } } instance character4 of movieClip 1224 { onClipEvent (load) { number = 4; } onClipEvent (enterFrame) { _root.characterHudBall.call(this); } } instance character5 of movieClip 1224 { onClipEvent (load) { number = 5; } onClipEvent (enterFrame) { _root.characterHudBall.call(this); } } } movieClip 1227 { } movieClip 1229 { } movieClip 1231 { } movieClip 1234 { } movieClip 1236 { } movieClip 1238 { instance bgBox of movieClip 1234 { onClipEvent (enterFrame) { _height = _parent.box.bottomScroll * 36 + 16; } } instance flash of movieClip 1236 { onClipEvent (load) { sound = new Sound(this); sound.attachSound('fairy1'); sound.setVolume(100); } onClipEvent (enterFrame) { _y = _parent.bgBox._y; _height = _parent.bgBox._height; _alpha = _alpha + (alpha - _alpha) / 5; if (_root.skinnyTalking eq true) { if (_parent.q >= _parent.text.length) { if (Key.isDown(32)) { _alpha = 30; this.sound.start(); } } else { alpha = 0; } } else {} } } } movieClip 1240 { } // unknown tag 88 length 296 movieClip 1243 Newgrounds API Font { } movieClip 1246 { } movieClip 1249 { } movieClip 1252 { } // unknown tag 88 length 75 movieClip 1258 { } movieClip 1260 { } movieClip 1262 { } movieClip 1264 { } movieClip 1266 { } movieClip 1267 MedalPopup { frame 1 { function onMedalUnlocked(event) { if (event.__get__success()) { _medalQueue.push(event.__get__data()); showNextUnlock(); } } function showNextUnlock() { if (_unlockedMedal) { return undefined; } if (!_medalQueue.length) { gotoAndStop('hidden'); onEnterFrame = null; return undefined; } _unlockedMedal = com.newgrounds.Medal(_medalQueue.shift()); gotoAndPlay('medalUnlocked'); } gotoAndStop('hidden'); com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked); var alwaysOnTop; _x = Number(_x); _y = Number(_y); var _unlockedMedal; var _medalQueue = []; var _alwaysOnTop = true; if (alwaysOnTop) { _alwaysOnTop = alwaysOnTop == 'true'; } } frame 15 { function medalPopupEnterFrame() { if (_alwaysOnTop) { var v1 = getNextHighestDepth(); swapDepths(v1); } if (_medalScrollRect) { _medalScrollRect.offset(2, 0); medalNameClip.scrollRect = _medalScrollRect; if (_medalScrollRect.left >= medalNameClip.textField.textWidth + 10) { _medalScrollRect = null; play(); } } } var _medalScrollRect; if (_unlockedMedal) { if (medalNameClip && medalNameClip.textField) { medalNameClip.textField.text = _unlockedMedal.name; com.newgrounds.API.setFont(medalNameClip.textField, 'Pakenham'); } if (medalPointsText) { medalPointsText.text = _unlockedMedal.value.toString(); } if (medalNameClip.textField.textWidth > medalNameClip._width) { _medalScrollRect = new flash.geom.Rectangle(-medalNameClip._width, 0, medalNameClip._width, medalNameClip._height); medalNameClip.textField._width = 1000; medalNameClip.scrollRect = _medalScrollRect; } onEnterFrame = medalPopupEnterFrame; } } frame 23 { if (_unlockedMedal && medalIcon) { _unlockedMedal.attachIcon(medalIcon); } } frame 84 { if (_medalScrollRect) { stop(); } } frame 105 { stop(); _unlockedMedal = null; showNextUnlock(); } } movieClip 1268 { instance fairy of movieClip 1218 { onClipEvent (load) { alpha = 20; _alpha = alpha; } onClipEvent (enterFrame) { _alpha = _alpha + (alpha - _alpha) / 10; } } instance characters of movieClip 1225 { onClipEvent (load) { xOrig = _x; yOrig = _y; _x = _x - 300; x = _x; _y = 313.55; } onClipEvent (enterFrame) { if (_root.showCharacterHud eq true) { x = xOrig; _visible = true; _alpha = _alpha + (alpha - _alpha) / 10; xDist = _root._xmouse - (_root.stats._x + _x); if (xDist < 100) { alpha = 10; } else { alpha = 100; } } else { _visible = false; _x = -300; x = -300; } _x = _x + (x - _x) / 10; } } instance of movieClip 1227 { onClipEvent (load) { _alpha = 0; alpha = 0; } onClipEvent (enterFrame) { _xscale = _xscale + (100 - _xscale) / 10; _yscale = _xscale; _alpha = _alpha + (alpha - _alpha) / 10; if (_root.armShootable eq true && _alpha eq 0) { _xscale = 500; alpha = 100; } } } instance of movieClip 1229 { onClipEvent (load) { _alpha = 0; alpha = 0; } onClipEvent (enterFrame) { _xscale = _xscale + (100 - _xscale) / 10; _yscale = _xscale; _alpha = _alpha + (alpha - _alpha) / 10; if (_root.skinnyWallJumpable eq true && _alpha eq 0) { _xscale = 500; alpha = 100; } } } instance of movieClip 1231 { onClipEvent (load) { _alpha = 0; alpha = 0; } onClipEvent (enterFrame) { _xscale = _xscale + (100 - _xscale) / 10; _yscale = _xscale; _alpha = _alpha + (alpha - _alpha) / 10; if (_root.skinnyHeavy eq true && _alpha eq 0) { _xscale = 500; alpha = 100; } } } instance diologue of movieClip 1238 { onClipEvent (load) { q = 0; f = 0; text = ''; box._visible = false; remindDone = true; this.sound = new Sound(this); yEnd = _y; y = -90; _y = y; yStart = y; accel = 0; } onClipEvent (enterFrame) { accel += -accel / 20; _y = _y + ((y - _y) / 5 + accel); if (text eq undefined) { flash._alpha = 100; flash.alpha = 100; box._visible = false; } else { box._visible = true; } if (q < text.length) { this.randomNum = 1 + random(5); this.sound.attachSound('letter' + this.randomNum); this.sound.setVolume(10 + random(7)); this.sound.start(); y = yEnd; q += 2; if (Key.isDown(32) && q > text.length / 2) { q += 2.5; } } else { if (Key.isDown(32) && remindDone == false && text !== undefined && _root.skinnyTalking eq true && _root['character' + _root.characterNumber + 'Talkable'] eq false && _root['character' + _root.characterNumber + 'F'] < _root['diologue' + _root.characterNumber].length - 1) { trace('DID WHEN OLD'); q = 0; f += 1; text = _root['diologue' + _root.diologueNumber][f]; _root.diologueCounter = 0; remindDone = true; } if (Key.isDown(32) && text !== undefined && _root.skinnyTalking eq true && _root['character' + _root.characterNumber + 'Talkable'] eq true && _root['character' + _root.characterNumber + 'F'] < _root['diologue' + _root.characterNumber].length - 1) { trace('DID WHEN NEW'); q = 0; f += 1; text = _root['diologue' + _root.diologueNumber][f]; } if (text eq 'STOP') { accel = 50; y = yStart; eval('_root.character' + _root.characterNumber + 'F') = f; q = 0; remindDone = true; _root.skinnyTalking = false; _root.diologueCounter = 0; eval('_root.character' + _root.characterNumber + 'Talkable') = false; text = ''; } } diologue = text.substring(0, q); } } instance of movieClip 1267 MedalPopup { onClipEvent (construct) { alwaysOnTop = 'true'; } } } instance stats of movieClip 1268 { onClipEvent (load) { landName._alpha = 0; alphaVelocity = 1; fader._alpha = 151; fader.reloadPieces = false; this.special._alpha = 0; } onClipEvent (enterFrame) { fader.reloadPieces = false; trace('WHERE=' + _root.where); if (fader._alpha > 150) { _root.pieceArray = _root[_root.locArray + 'Array']; _root.skinny._y = _root.skinnyRelocateY; _root.skinny._x = _root.skinnyRelocateX; _y = Math.round(_root.skinny.camY); _x = Math.round(_root.skinny.camX); faderAlphaVelocity = -1; fader.reloadPieces = true; _root.gotoAndStop(_root.where); } if (fader._alpha < -1) { fader._alpha = -1; } landName._alpha += alphaVelocity; fader._alpha += faderAlphaVelocity * 2; this.special._alpha += -this.special._alpha / 10; this.special.text = _root.specialArray[_root.bugsCaught - _root.hook.fairyNum]; this.armStrength.text = _root.sp; if (landName._alpha > 100) { alphaVelocity = -1; } if (landName._alpha < -100) { landName._alpha = -100; } if (_root.bugsCaught > -1) { this.bugsCaught.text = _root.bugsCaught; } } } frame 212 { characterAmount = 4; charactersSaved = 0; _root.showCharacterHud = false; orbsGettable = true; _root.saveBallBroken = false; bugsCaught = 0; key1Got = false; key1DoorUnlocked = false; hiddenItem1Found = false; hiddenItem2Found = false; hiddenItem3Found = false; } instance background of movieClip 1163 { onClipEvent (load) { } onClipEvent (enterFrame) { this._x = -_level0._x; this._y = -_level0._y; } } movieClip 1271 { } instance of movieClip 1271 { onClipEvent (load) { distance = 2; this._x = -_level0._x / distance; this._y = -_level0._y / distance; xSpace = 40; ySpace = 510; } onClipEvent (enterFrame) { this._x = -_level0._x / distance - xSpace; this._y = -_level0._y / distance - ySpace; } } movieClip 1274 { } instance of movieClip 1274 { onClipEvent (load) { this.volumeReset = 35; _root.musicLoad.call(this); } onClipEvent (enterFrame) { _root.music.call(this); } } movieClip 1277 { } instance bug of movieClip 1277 { onClipEvent (load) { _root.mothLoad.call(this); } onClipEvent (enterFrame) { _root.moth.call(this); } } movieClip 1280 { } instance forground of movieClip 1280 { onClipEvent (load) { _root.soundScapeLoad.call(this); } onClipEvent (enterFrame) { _root.soundScape.call(this); } } frame 213 { characterAmount = 5; charactersSaved = 0; _root.showCharacterHud = false; _root.skinnyWallJumpable = true; _root.armShootable = true; boxBreakable = true; orbsGettable = true; sp = 2; bugsCaught = 0; armStrength = 3.8; _root.saveBallBroken = false; key1Got = false; key1DoorUnlocked = false; hiddenItem1Found = false; hiddenItem2Found = false; hiddenItem3Found = false; } movieClip 1283 { } instance background of movieClip 1283 { onClipEvent (load) { } onClipEvent (enterFrame) { this._x = -_level0._x; this._y = -_level0._y; } } movieClip 1286 { } instance of movieClip 1286 { onClipEvent (load) { distance = 2; this._x = -_level0._x / distance; this._y = -_level0._y / distance; xSpace = 40; ySpace = 250; } onClipEvent (enterFrame) { this._x = -_level0._x / distance - xSpace; this._y = -_level0._y / distance + ySpace; } } movieClip 1289 { } instance of movieClip 1289 { onClipEvent (load) { distance = 4; this._x = -_level0._x / distance; this._y = -_level0._y / distance; xSpace = -250; ySpace = 550; } onClipEvent (enterFrame) { this._alpha = 45 - this.alphaSubtract; this._x = -_level0._x / distance - xSpace; this._y = -_level0._y / distance + ySpace; } } movieClip 1292 { } instance of movieClip 1292 { onClipEvent (load) { this.volumeReset = 80; _root.musicLoad.call(this); } onClipEvent (enterFrame) { _root.music.call(this); } } movieClip 1295 { instance hit of movieClip 9 { onClipEvent (load) { _parent._x = 1346; _parent._y = 2335; yBottom = 2343; yTop = 1698; speed = 3; sound = new Sound(this); this.sound.attachSound('elevatorLoop'); this.sound.setVolume(100); soundStarted = false; } onClipEvent (enterFrame) { _root.permanentObjectSolidity.call(this); if (_parent._y > yTop) { if (_root.skinny.body.hitTest(_parent.hit2) && _root.skinny._x > _parent._x && _root.skinny._x < _parent._x + _parent._width) { _parent.wheel._rotation += speed; _parent._y -= speed; if (this.soundStarted eq false) { this.sound.start(0, 99); this.soundStarted = true; } } } else { _parent._y += 0.01; this.sound.stop(); this.soundStarted = false; } if (_parent._y < yBottom) { if (!_root.skinny.body.hitTest(_parent.hit2)) { _parent.wheel._rotation -= speed; _parent._y += speed; this.sound.stop(); this.soundStarted = false; } } else { _parent._y -= 0.01; } } } } movieClip 1297 { } instance of movieClip 1297 { onClipEvent (load) { _x = -_level0._x + random(Stage.width); _y = -_level0._y; gravity = 0; } onClipEvent (enterFrame) { gravity += 1; _y = _y + gravity; if (_y > -_level0._y + Stage.height) { _x = -_level0._x + random(Stage.width) * 1.3; _y = -_level0._y; gravity = 0; } } } instance of movieClip 1297 { onClipEvent (load) { _x = -_level0._x + random(Stage.width); _y = -_level0._y - random(100); gravity = 0; } onClipEvent (enterFrame) { gravity += 1; _y = _y + gravity; if (_y > -_level0._y + Stage.height) { _x = -_level0._x + random(Stage.width) * 1.3; _y = -_level0._y; gravity = 0; } } } movieClip 1300 { } instance forground of movieClip 1300 { onClipEvent (load) { this.soundScape = new Sound(this); this.soundScape.attachSound(_root.where + 'SoundScape'); this.soundScape.setVolume(100); this.soundScape.start(0, 99); this.soundScape.setVolume(0); this.frameName = _root.where; this.volume = 0; this.volume2 = 0; } onClipEvent (enterFrame) { this.volume2 += (this.volume - this.volume2) / 20; if (_root.stats.fader._alpha > 5) { this.volume = 0; } else { this.volume = 100; } if (this.frameName !== _root.where && _root.stats.fader._alpha > 145) { this.soundScape.stop(); } this.soundScape.setVolume(this.volume2); } } frame 214 { characterAmount = 4; charactersSaved = 0; _root.skinnyWallJumpable = true; skinnyHeavy = true; _root.armShootable = true; _root.showCharacterHud = true; boxBreakable = true; orbsGettable = true; lasersOn = true; sp = 3; bugsCaught = 0; armStrength = 4.3; _root.saveBallBroken = false; key1Got = false; key1DoorUnlocked = false; hiddenItem1Found = false; hiddenItem2Found = false; hiddenItem3Found = false; } movieClip 1303 { } instance background of movieClip 1303 { onClipEvent (load) { } onClipEvent (enterFrame) { this._x = -_level0._x; this._y = -_level0._y; } } movieClip 1306 { } instance of movieClip 1306 { onClipEvent (load) { distance = 1.16; this._x = -_level0._x / distance; this._y = -_level0._y / distance; xSpace = 100; ySpace = 100; } onClipEvent (enterFrame) { this._x = -_level0._x / distance + xSpace; this._y = -_level0._y / distance + ySpace; } } movieClip 1309 { } instance of movieClip 1309 { onClipEvent (load) { distance = 1.3; this._x = -_level0._x / distance; this._y = -_level0._y / distance; xSpace = 200; ySpace = 100; } onClipEvent (enterFrame) { this._x = -_level0._x / distance + xSpace; this._y = -_level0._y / distance + ySpace; } } movieClip 1312 { } instance of movieClip 1312 { onClipEvent (load) { this.volumeReset = 100; _root.musicLoad.call(this); } onClipEvent (enterFrame) { _root.music.call(this); } } instance machine of movieClip 1008 permObjlake { onClipEvent (load) { _x = 1890; _y = 1260; yStart = _y; y = _y; xMin = _x; xMax = 2340; xSpeed = 0; xSpeed2 = 0; } onClipEvent (enterFrame) { _y = _y + (y - _y) / 100; if (_root.character26Satisfied eq true && _root.character27Satisfied eq true && _root.character30Satisfied eq true && _root.character31Satisfied eq true) { _root.lasersOn = false; } } } movieClip 1314 { } movieClip 1315 { } instance of movieClip 1315 { onClipEvent (load) { _x = _root.machine._x - 130; _y = _root.machine._y - 670; widthOrig = wire._width; } onClipEvent (enterFrame) { xDist = _root.machine._x - _x; yDist = _root.machine._y - _y; radians = Math.atan2(xDist, yDist); rotation = radians / 0.0174532925199433; _rotation = -rotation + 90; wireWidth = Math.sqrt(xDist * xDist + yDist * yDist); wire._width = wireWidth; } } instance rope2 of movieClip 1315 { onClipEvent (load) { _x = _root.machine.xMax + 100; _y = _root.machine._y - 670; widthOrig = wire._width; } onClipEvent (enterFrame) { xDist = _x - _root.machine._x; yDist = _y - _root.machine._y; radians = Math.atan2(xDist, yDist); rotation = radians / 0.0174532925199433; _rotation = -rotation - 90; wireWidth = Math.sqrt(xDist * xDist + yDist * yDist); wire._width = wireWidth; } } instance of movieClip 1315 { onClipEvent (load) { _x = 2570; _y = 1305; widthOrig = wire._width; } onClipEvent (enterFrame) { xDist = _x - _root.rope2._x; yDist = _y - _root.rope2._y; radians = Math.atan2(xDist, yDist); rotation = radians / 0.0174532925199433; _rotation = -rotation - 90; wireWidth = Math.sqrt(xDist * xDist + yDist * yDist); wire._width = wireWidth; } } instance bug of movieClip 1277 { onClipEvent (load) { _root.mothLoad.call(this); } onClipEvent (enterFrame) { _root.moth.call(this); } } movieClip 1319 { } movieClip 1320 { } instance bug of movieClip 1320 { onClipEvent (load) { _root.lightningBugLoad.call(this); } onClipEvent (enterFrame) { _root.lightningBug.call(this); } } instance bug of movieClip 1320 { onClipEvent (load) { _root.lightningBugLoad.call(this); } onClipEvent (enterFrame) { _root.lightningBug.call(this); } } instance bug of movieClip 1320 { onClipEvent (load) { _root.lightningBugLoad.call(this); } onClipEvent (enterFrame) { _root.lightningBug.call(this); } } movieClip 1323 { } instance forground of movieClip 1323 { onClipEvent (load) { _root.soundScapeLoad.call(this); } onClipEvent (enterFrame) { _root.soundScape.call(this); } } frame 215 { _root.showCharacterHud = false; _root.armShootable = true; _root.skinnyWallJumpable = true; skinnyHeavy = true; boxBreakable = true; orbsGettable = true; lasersOn = true; sp = 4; armStrength = 4.8; _root.saveBallBroken = false; bugsCaught = 0; _root.stats.characters._y = 1000000; } movieClip 1326 { } instance background of movieClip 1326 { onClipEvent (load) { } onClipEvent (enterFrame) { this._x = -_level0._x; this._y = -_level0._y; } } movieClip 1329 { } instance of movieClip 1329 { onClipEvent (load) { distance = 2.5; this._x = -_level0._x / distance; this._y = -_level0._y / distance; xSpace = 0; ySpace = -250; } onClipEvent (enterFrame) { this._x = -_level0._x / distance + xSpace; this._y = -_level0._y / distance + ySpace; } } movieClip 1332 { } instance of movieClip 1332 { onClipEvent (load) { distance = 2.9; this._x = -_level0._x / distance; this._y = -_level0._y / distance; xSpace = 0; ySpace = -50; } onClipEvent (enterFrame) { this._x = -_level0._x / distance + xSpace; this._y = -_level0._y / distance + ySpace; } } movieClip 1335 { } instance of movieClip 1335 { onClipEvent (load) { distance = 3.3; this._x = -_level0._x / distance; this._y = -_level0._y / distance; xSpace = 0; ySpace = 165; sound = new Sound(this); sound.attachSound('metalHand'); soundStarted = false; } onClipEvent (enterFrame) { this._x = -_level0._x / distance + xSpace; this._y = -_level0._y / distance - ySpace; if (_root.stats.fader._alpha > 10 && _root.character33Satisfied eq true && soundStarted eq false) { sound.start(); soundStarted = true; } } } movieClip 1338 { } instance forground of movieClip 1338 { onClipEvent (load) { _root.soundScapeLoad.call(this); } onClipEvent (enterFrame) { _root.soundScape.call(this); } } movieClip 1340 { } instance lightning of movieClip 1340 { onClipEvent (load) { counter = 300; _alpha = 100; alpha = 100; divider = 10; counterNumber = 0; stormBegins = false; this.sound = new Sound(this); sound.attachSound(thunderArray[random(1)]); sound.setVolume(100); thunderVolume = 50 + random(50); thunderArray = ['thunder1', 'thunder2']; stormStop = false; } onClipEvent (enterFrame) { this._x = _root.skinny._x; this._y = _root.skinny._y - 15; _xscale = 95 + random(5); _yscale = 95 + random(5); if (_root.bugsCaught > 2) { stormStop = true; } if (stormBegins eq true && stormStop eq false) { counter += 1; _alpha = _alpha + (alpha + 5 - _alpha) / divider; if (counter > 280 + random(200)) { if (counterNumber eq 0) { sound.attachSound(thunderArray[random(2)]); thunderVolume = 50 + random(50); this.sound.setVolume(thunderVolume); this.sound.start(); counterNumber = counter; } alpha = random(100); divider = random(10); if (counter > counterNumber + 80 + random(100)) { alpha = 100; divider = 10; counter = 0; counterNumber = 0; } } } else { _alpha = _alpha + -_alpha / 20; } } } frame 216 { stop(); _level0._x = 0; _level0._y = 0; } movieClip 1342 { } movieClip 1345 { } movieClip 1347 { } movieClip 1349 { } // unknown tag 88 length 104 button 1352 { on (release) { getURL('http://wittyhobos.newgrounds.com/news/post/570411', '_new', 'GET'); } } movieClip 1353 { } button 1356 { on (release) { _root.landSave.data.land = 'beach'; gotoAndPlay(1537); } } movieClip 1358 { frame 1536 { stop(); } frame 1561 { stop(); _root.creditsDone = true; _root.stopAllSounds(); } } instance of movieClip 1358 { onClipEvent (enterFrame) { if (_root.creditsDone eq true) { trace('CREDITS DONE'); _root.play(); } } }




http://swfchan.com/27/133945/info.shtml
Created: 10/2 -2019 03:01:46 Last modified: 10/2 -2019 03:01:46 Server time: 04/05 -2024 05:34:29