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

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

Bday by Ridgeline.swf

This is the info page for
Flash #203159

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


ActionScript [AS1/AS2]
Combined Code
frame 1 { stop(); } movieClip 2 { } button 5 { on (keyPress '<Right>') { _root.Symbol24.gotoAndPlay(2); } } movieClip 7 { } movieClip 11 { } movieClip 14 { } movieClip 19 { } movieClip 32 { } movieClip 36 { } movieClip 37 { frame 1 { stop(); } } button 42 { on (press) { gotoAndPlay(2); } } movieClip 89 { } movieClip 91 { } movieClip 93 { } movieClip 95 { } movieClip 97 { } movieClip 99 { } movieClip 101 { } movieClip 103 { } movieClip 105 { } movieClip 107 { } movieClip 109 { } movieClip 142 { frame 133 { stop(); } } button 143 { on (press) { _root.play(); } } movieClip 145 { } movieClip 147 { } movieClip 148 { frame 1 { stop(); } frame 4367 { stop(); } } movieClip 149 { } movieClip 150 { frame 107 { stop(); } } movieClip 151 { } movieClip 159 { } movieClip 162 { } movieClip 163 { frame 1 { a = eye1._y - _ymouse; b = eye1._x - _xmouse; angleA = Math.atan2(a, b); degrees = angleA / 0.0174532925199433; eye1._rotation = degrees; a2 = eye2._y - _ymouse; b2 = eye2._x - _xmouse; angleA2 = Math.atan2(a2, b2); degrees2 = angleA2 / 0.0174532925199433; eye2._rotation = degrees2; } frame 2 { gotoAndPlay(1); } } movieClip 164 { } instance player of movieClip 164 { onClipEvent (load) { var grav = 0; var speed = 15; var jumpHeight = 20; var slow = 0.7; var slowspd = speed / 1.5; var setspeed = speed; var scale = _xscale; var ex = 5; this.gotoAndStop(2); } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_root.water.hitTest(_x, _y, true)) { if (grav > 0) { grav *= slow; } speed = slowspd; } else { speed = setspeed; } if (Key.isDown(68)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (Key.isDown(65)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(79) && !Key.isDown(73)) { this.gotoAndStop(3); } } } if (Key.isDown(79) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(73)) { this.gotoAndStop(5); } if (Key.isDown(73) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(4); } if (Key.isDown(87) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(2); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (enterFrame) { if (Key.isDown(83)) { attacked = true; this.gotoAndStop(4); } } onClipEvent (enterFrame) { if (Key.isDown(shiftkey)) { attacked = false; this.gotoAndStop(5); if (this.hitTest(_root.enemy)) { _root.enemy.gotoAndPlay(2); } } } onClipEvent (enterFrame) { if (Key.isDown(40)) { attacked = false; this.gotoAndStop(6); if (this.hitTest(_root.enemy)) { _root.enemy.gotoAndPlay(2); } } } } movieClip 191 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } } movieClip 192 { } movieClip 193 { frame 1 { function camControl() { parentColor.setTransform(camColor.getTransform()); var v4 = sX / this._width; var v3 = sY / this._height; _parent._x = cX - this._x * v4; _parent._y = cY - this._y * v3; _parent._xscale = 100 * v4; _parent._yscale = 100 * v3; } function resetStage() { var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; parentColor.setTransform(v2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } parentColor.setTransform(camColor.getTransform()); this._visible = true; var oldMode = Stage.scaleMode; Stage.scaleMode = 'exactFit'; var cX = Stage.width / 2; var cY = Stage.height / 2; var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage; } } instance of movieClip 193 { onClipEvent (enterFrame) { _y = _y + (_root.player._y - _y) / 4; _x = _x + (_root.player._x - _x) / 4; } } movieClip 198 { } frame 2 { stop(); } movieClip 228 { } movieClip 229 { } movieClip 230 { } movieClip 231 { } movieClip 237 { } movieClip 259 { } movieClip 260 { } movieClip 261 { } movieClip 262 { frame 1 { function camControl() { parentColor.setTransform(camColor.getTransform()); var v4 = sX / this._width; var v3 = sY / this._height; _parent._x = cX - this._x * v4; _parent._y = cY - this._y * v3; _parent._xscale = 100 * v4; _parent._yscale = 100 * v3; } function resetStage() { var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; parentColor.setTransform(v2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } parentColor.setTransform(camColor.getTransform()); this._visible = true; var oldMode = Stage.scaleMode; Stage.scaleMode = 'exactFit'; var cX = Stage.width / 2; var cY = Stage.height / 2; var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage; } } instance of movieClip 262 { onClipEvent (enterFrame) { _y = _y + (_root.player._y - _y) / 4; _x = _x + (_root.player._x - _x) / 4; } } movieClip 263 { } instance player of movieClip 164 { onClipEvent (load) { var grav = 0; var speed = 15; var jumpHeight = 15; var slow = 0.7; var slowspd = speed / 1.5; var setspeed = speed; var scale = _xscale; var ex = 5; this.gotoAndStop(2); } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_root.water.hitTest(_x, _y, true)) { if (grav > 0) { grav *= slow; } speed = slowspd; } else { speed = setspeed; } if (Key.isDown(68)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (Key.isDown(65)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(79) && !Key.isDown(73)) { this.gotoAndStop(3); } } } if (Key.isDown(79) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(73)) { this.gotoAndStop(5); } if (Key.isDown(73) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(4); } if (Key.isDown(87) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(2); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (enterFrame) { if (Key.isDown(83)) { attacked = true; this.gotoAndStop(4); } } onClipEvent (enterFrame) { if (Key.isDown(37)) { attacked = false; this.gotoAndStop(5); if (this.hitTest(_root.enemy)) { _root.enemy.gotoAndPlay(2); } } } onClipEvent (enterFrame) { if (Key.isDown(40)) { attacked = false; this.gotoAndStop(6); if (this.hitTest(_root.enemy)) { _root.enemy.gotoAndPlay(2); } } } } instance player of movieClip 164 { onClipEvent (load) { var grav = 0; var speed = 15; var jumpHeight = 15; var slow = 0.7; var slowspd = speed / 1.5; var setspeed = speed; var scale = _xscale; var ex = 5; this.gotoAndStop(2); } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_root.water.hitTest(_x, _y, true)) { if (grav > 0) { grav *= slow; } speed = slowspd; } else { speed = setspeed; } if (Key.isDown(68)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (Key.isDown(65)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(79) && !Key.isDown(73)) { this.gotoAndStop(3); } } } if (Key.isDown(79) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(73)) { this.gotoAndStop(5); } if (Key.isDown(73) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(4); } if (Key.isDown(87) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(2); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (enterFrame) { if (Key.isDown(83)) { attacked = true; this.gotoAndStop(4); } } onClipEvent (enterFrame) { if (Key.isDown(37)) { attacked = false; this.gotoAndStop(5); if (this.hitTest(_root.enemy)) { _root.enemy.gotoAndPlay(2); } } } onClipEvent (enterFrame) { if (Key.isDown(40)) { attacked = false; this.gotoAndStop(6); if (this.hitTest(_root.enemy)) { _root.enemy.gotoAndPlay(2); } } } } instance player of movieClip 164 { onClipEvent (load) { var grav = 0; var speed = 15; var jumpHeight = 15; var slow = 0.7; var slowspd = speed / 1.5; var setspeed = speed; var scale = _xscale; var ex = 5; this.gotoAndStop(2); } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_root.water.hitTest(_x, _y, true)) { if (grav > 0) { grav *= slow; } speed = slowspd; } else { speed = setspeed; } if (Key.isDown(68)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (Key.isDown(65)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(79) && !Key.isDown(73)) { this.gotoAndStop(3); } } } if (Key.isDown(79) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(73)) { this.gotoAndStop(5); } if (Key.isDown(73) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(4); } if (Key.isDown(87) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(2); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (enterFrame) { if (Key.isDown(83)) { attacked = true; this.gotoAndStop(4); } } onClipEvent (enterFrame) { if (Key.isDown(37)) { attacked = false; this.gotoAndStop(5); if (this.hitTest(_root.enemy)) { _root.enemy.gotoAndPlay(2); } } } onClipEvent (enterFrame) { if (Key.isDown(40)) { attacked = false; this.gotoAndStop(6); if (this.hitTest(_root.enemy)) { _root.enemy.gotoAndPlay(2); } } } } instance player of movieClip 164 { onClipEvent (load) { var grav = 0; var speed = 15; var jumpHeight = 15; var slow = 0.7; var slowspd = speed / 1.5; var setspeed = speed; var scale = _xscale; var ex = 5; this.gotoAndStop(2); } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_root.water.hitTest(_x, _y, true)) { if (grav > 0) { grav *= slow; } speed = slowspd; } else { speed = setspeed; } if (Key.isDown(68)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (Key.isDown(65)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(79) && !Key.isDown(73)) { this.gotoAndStop(3); } } } if (Key.isDown(79) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(73)) { this.gotoAndStop(5); } if (Key.isDown(73) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(4); } if (Key.isDown(87) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(2); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (enterFrame) { if (Key.isDown(83)) { attacked = true; this.gotoAndStop(4); } } onClipEvent (enterFrame) { if (Key.isDown(37)) { attacked = false; this.gotoAndStop(5); if (this.hitTest(_root.enemy)) { _root.enemy.gotoAndPlay(2); } } } onClipEvent (enterFrame) { if (Key.isDown(40)) { attacked = false; this.gotoAndStop(6); if (this.hitTest(_root.enemy)) { _root.enemy.gotoAndPlay(2); } } } } instance player of movieClip 164 { onClipEvent (load) { var grav = 0; var speed = 15; var jumpHeight = 15; var slow = 0.7; var slowspd = speed / 1.5; var setspeed = speed; var scale = _xscale; var ex = 5; this.gotoAndStop(2); } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_root.water.hitTest(_x, _y, true)) { if (grav > 0) { grav *= slow; } speed = slowspd; } else { speed = setspeed; } if (Key.isDown(68)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (Key.isDown(65)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(79) && !Key.isDown(73)) { this.gotoAndStop(3); } } } if (Key.isDown(79) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(73)) { this.gotoAndStop(5); } if (Key.isDown(73) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(4); } if (Key.isDown(87) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(2); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (enterFrame) { if (Key.isDown(83)) { attacked = true; this.gotoAndStop(4); } } onClipEvent (enterFrame) { if (Key.isDown(37)) { attacked = false; this.gotoAndStop(5); if (this.hitTest(_root.enemy)) { _root.enemy.gotoAndPlay(2); } } } onClipEvent (enterFrame) { if (Key.isDown(40)) { attacked = false; this.gotoAndStop(6); if (this.hitTest(_root.enemy)) { _root.enemy.gotoAndPlay(2); } } } } instance player of movieClip 164 { onClipEvent (load) { var grav = 0; var speed = 15; var jumpHeight = 15; var slow = 0.7; var slowspd = speed / 1.5; var setspeed = speed; var scale = _xscale; var ex = 5; this.gotoAndStop(2); } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_root.water.hitTest(_x, _y, true)) { if (grav > 0) { grav *= slow; } speed = slowspd; } else { speed = setspeed; } if (Key.isDown(68)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (Key.isDown(65)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(79) && !Key.isDown(73)) { this.gotoAndStop(3); } } } if (Key.isDown(79) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(73)) { this.gotoAndStop(5); } if (Key.isDown(73) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(4); } if (Key.isDown(87) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(2); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (enterFrame) { if (Key.isDown(83)) { attacked = true; this.gotoAndStop(4); } } onClipEvent (enterFrame) { if (Key.isDown(37)) { attacked = false; this.gotoAndStop(5); if (this.hitTest(_root.enemy)) { _root.enemy.gotoAndPlay(2); } } } onClipEvent (enterFrame) { if (Key.isDown(40)) { attacked = false; this.gotoAndStop(6); if (this.hitTest(_root.enemy)) { _root.enemy.gotoAndPlay(2); } } } } instance player of movieClip 164 { onClipEvent (load) { var grav = 0; var speed = 15; var jumpHeight = 15; var slow = 0.7; var slowspd = speed / 1.5; var setspeed = speed; var scale = _xscale; var ex = 5; this.gotoAndStop(2); } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_root.water.hitTest(_x, _y, true)) { if (grav > 0) { grav *= slow; } speed = slowspd; } else { speed = setspeed; } if (Key.isDown(68)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (Key.isDown(65)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(79) && !Key.isDown(73)) { this.gotoAndStop(3); } } } if (Key.isDown(79) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(73)) { this.gotoAndStop(5); } if (Key.isDown(73) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(4); } if (Key.isDown(87) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(2); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (enterFrame) { if (Key.isDown(83)) { attacked = true; this.gotoAndStop(4); } } onClipEvent (enterFrame) { if (Key.isDown(37)) { attacked = false; this.gotoAndStop(5); if (this.hitTest(_root.enemy)) { _root.enemy.gotoAndPlay(2); } } } onClipEvent (enterFrame) { if (Key.isDown(40)) { attacked = false; this.gotoAndStop(6); if (this.hitTest(_root.enemy)) { _root.enemy.gotoAndPlay(2); } } } } instance player of movieClip 164 { onClipEvent (load) { var grav = 0; var speed = 15; var jumpHeight = 15; var slow = 0.7; var slowspd = speed / 1.5; var setspeed = speed; var scale = _xscale; var ex = 5; this.gotoAndStop(2); } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_root.water.hitTest(_x, _y, true)) { if (grav > 0) { grav *= slow; } speed = slowspd; } else { speed = setspeed; } if (Key.isDown(68)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (Key.isDown(65)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(79) && !Key.isDown(73)) { this.gotoAndStop(3); } } } if (Key.isDown(79) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(73)) { this.gotoAndStop(5); } if (Key.isDown(73) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(4); } if (Key.isDown(87) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(2); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (enterFrame) { if (Key.isDown(83)) { attacked = true; this.gotoAndStop(4); } } onClipEvent (enterFrame) { if (Key.isDown(37)) { attacked = false; this.gotoAndStop(5); if (this.hitTest(_root.enemy)) { _root.enemy.gotoAndPlay(2); } } } onClipEvent (enterFrame) { if (Key.isDown(40)) { attacked = false; this.gotoAndStop(6); if (this.hitTest(_root.enemy)) { _root.enemy.gotoAndPlay(2); } } } } instance player of movieClip 164 { onClipEvent (load) { var grav = 0; var speed = 15; var jumpHeight = 15; var slow = 0.7; var slowspd = speed / 1.5; var setspeed = speed; var scale = _xscale; var ex = 5; this.gotoAndStop(2); } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_root.water.hitTest(_x, _y, true)) { if (grav > 0) { grav *= slow; } speed = slowspd; } else { speed = setspeed; } if (Key.isDown(68)) { _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (Key.isDown(65)) { _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true)) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (_root.ground.hitTest(_x, _y + 3, true) && !Key.isDown(79) && !Key.isDown(73)) { this.gotoAndStop(3); } } } if (Key.isDown(79) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(73)) { this.gotoAndStop(5); } if (Key.isDown(73) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { this.gotoAndStop(4); } if (Key.isDown(87) && _root.ground.hitTest(_x, _y + 3, true)) { grav = -jumpHeight; _y = _y - 4; this.gotoAndStop(2); } if (_root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height / 6, true) || _root.ground.hitTest(_x + _width / 2 + ex, _y - _height, true)) { _x = _x - speed; } if (_root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height / 6, true) || _root.ground.hitTest(_x - _width / 2 - ex, _y - _height, true)) { _x = _x + speed; } if (_root.ground.hitTest(_x, _y - _height - 15, true)) { grav = 1; } } onClipEvent (enterFrame) { if (Key.isDown(83)) { attacked = true; this.gotoAndStop(4); } } onClipEvent (enterFrame) { if (Key.isDown(37)) { attacked = false; this.gotoAndStop(5); if (this.hitTest(_root.enemy)) { _root.enemy.gotoAndPlay(2); } } } onClipEvent (enterFrame) { if (Key.isDown(40)) { attacked = false; this.gotoAndStop(6); if (this.hitTest(_root.enemy)) { _root.enemy.gotoAndPlay(2); } } } }




http://swfchan.com/41/203159/info.shtml
Created: 11/10 -2018 05:55:05 Last modified: 11/10 -2018 05:55:05 Server time: 26/04 -2024 11:56:03