Frame 1
function fun() {
getURL ("http://www.freewebs.com/hork-bajir/");
}
var con = new ContextMenu();
con.hideBuiltInItems();
var new_menu = new ContextMenuItem("Kwing's Site", fun);
con.customItems.push(new_menu);
_root.menu = con;
Frame 2
magic = 100;
health = 100;
enemyhp = 10;
stop();
Frame 3
vcam.score = 0;
Instance of Symbol 52 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.attack.lightning)) {
unloadMovie (this);
}
}
Instance of Symbol 68 MovieClip "player" in Frame 3
onClipEvent (enterFrame) {
if (this._y > 300) {
this._x = 18;
this._y = 148;
}
}
onClipEvent (load) {
var grav = 0;
var speed = 10;
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 = 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(1))) && (!Key.isDown(32))) {
this.gotoAndStop(3);
}
if ((((Key.isDown(1) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(32))) {
this.gotoAndStop(5);
}
if (((Key.isDown(32) && (_root.magic > 0)) && (!Key.isDown(87))) && (!Key.isDown(1))) {
this.gotoAndStop(4);
grav = grav - 2;
_root.magic = _root.magic - 1;
}
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;
}
}
Instance of Symbol 73 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.magic = 100;
}
}
Instance of Symbol 73 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.magic = 100;
}
}
Instance of Symbol 98 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.nextFrame();
}
}
Instance of Symbol 100 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.vcam.score = _root.vcam.score + 1;
unloadMovie (this);
}
}
Instance of Symbol 100 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.vcam.score = _root.vcam.score + 1;
unloadMovie (this);
}
}
Instance of Symbol 100 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.vcam.score = _root.vcam.score + 1;
unloadMovie (this);
}
}
Instance of Symbol 100 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.vcam.score = _root.vcam.score + 1;
unloadMovie (this);
}
}
Instance of Symbol 111 MovieClip "vcam" in Frame 3
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - _y) / 4));
_x = (_x + ((_root.player._x - _x) / 4));
}
Instance of Symbol 68 MovieClip "player" in Frame 4
onClipEvent (load) {
this._x = -37;
this._y = -800;
}
onClipEvent (enterFrame) {
if (_root.health < 1) {
_root.health = 100;
this._x = -37;
this._y = -800;
}
if (this._y > 130) {
this._x = -37;
this._y = -800;
}
}
onClipEvent (load) {
var grav = 0;
var speed = 10;
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 = 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(1))) && (!Key.isDown(32))) {
this.gotoAndStop(3);
}
if ((((Key.isDown(1) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(32))) {
this.gotoAndStop(5);
}
if (((Key.isDown(32) && (_root.magic > 0)) && (!Key.isDown(87))) && (!Key.isDown(1))) {
this.gotoAndStop(4);
grav = grav - 2;
_root.magic = _root.magic - 1;
}
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;
}
}
Instance of Symbol 114 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.health = _root.health - 1;
}
if (this.hitTest(_root.player.attack.lightning)) {
unloadMovie (this);
}
}
Instance of Symbol 68 MovieClip "player" in Frame 5
onClipEvent (load) {
this._x = -25;
this._y = -7;
}
onClipEvent (enterFrame) {
if (_root.health < 1) {
_root.health = 100;
this._x = -25;
this._y = -7;
}
if (this._y > 300) {
this._x = -25;
this._y = -7;
}
}
onClipEvent (load) {
var grav = 0;
var speed = 10;
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 = 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(1))) && (!Key.isDown(32))) {
this.gotoAndStop(3);
}
if ((((Key.isDown(1) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(32))) {
this.gotoAndStop(5);
}
if (((Key.isDown(32) && (_root.magic > 0)) && (!Key.isDown(87))) && (!Key.isDown(1))) {
this.gotoAndStop(4);
grav = grav - 2;
_root.magic = _root.magic - 1;
}
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;
}
}
Instance of Symbol 98 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.nextFrame();
}
}
Instance of Symbol 73 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.magic = 100;
}
}
Instance of Symbol 73 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.magic = 100;
}
}
Instance of Symbol 73 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.magic = 100;
}
}
Instance of Symbol 114 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.health = _root.health - 1;
}
if (this.hitTest(_root.player.attack.lightning)) {
unloadMovie (this);
}
}
Instance of Symbol 114 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.health = _root.health - 1;
}
if (this.hitTest(_root.player.attack.lightning)) {
unloadMovie (this);
}
}
Instance of Symbol 114 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.health = _root.health - 1;
}
if (this.hitTest(_root.player.attack.lightning)) {
unloadMovie (this);
}
}
Instance of Symbol 68 MovieClip "player" in Frame 6
onClipEvent (load) {
this._x = 2145;
this._y = 50;
}
onClipEvent (enterFrame) {
if (_root.health < 1) {
_root.health = 100;
this._x = 2145;
this._y = 50;
}
if (this._y > 530) {
this._x = 2145;
this._y = 50;
}
}
onClipEvent (load) {
var grav = 0;
var speed = 10;
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 = 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(1))) && (!Key.isDown(32))) {
this.gotoAndStop(3);
}
if ((((Key.isDown(1) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(32))) {
this.gotoAndStop(5);
}
if (((Key.isDown(32) && (_root.magic > 0)) && (!Key.isDown(87))) && (!Key.isDown(1))) {
this.gotoAndStop(4);
grav = grav - 2;
_root.magic = _root.magic - 1;
}
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;
}
}
Instance of Symbol 98 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.nextFrame();
}
}
Instance of Symbol 100 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.vcam.score = _root.vcam.score + 1;
unloadMovie (this);
}
}
Instance of Symbol 100 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.vcam.score = _root.vcam.score + 1;
unloadMovie (this);
}
}
Instance of Symbol 100 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.vcam.score = _root.vcam.score + 1;
unloadMovie (this);
}
}
Instance of Symbol 100 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.vcam.score = _root.vcam.score + 1;
unloadMovie (this);
}
}
Instance of Symbol 100 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.vcam.score = _root.vcam.score + 1;
unloadMovie (this);
}
}
Instance of Symbol 100 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.vcam.score = _root.vcam.score + 1;
unloadMovie (this);
}
}
Instance of Symbol 100 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.vcam.score = _root.vcam.score + 1;
unloadMovie (this);
}
}
Instance of Symbol 68 MovieClip "player" in Frame 7
onClipEvent (load) {
this._x = -300;
this._y = -570;
}
onClipEvent (enterFrame) {
if (_root.health < 1) {
_root.health = 100;
this._x = -300;
this._y = -570;
}
if (this._y > -300) {
this._x = -300;
this._y = -570;
}
}
onClipEvent (load) {
var grav = 0;
var speed = 10;
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 = 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(1))) && (!Key.isDown(32))) {
this.gotoAndStop(3);
}
if ((((Key.isDown(1) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(32))) {
this.gotoAndStop(5);
}
if (((Key.isDown(32) && (_root.magic > 0)) && (!Key.isDown(87))) && (!Key.isDown(1))) {
this.gotoAndStop(4);
grav = grav - 2;
_root.magic = _root.magic - 1;
}
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;
}
}
Instance of Symbol 73 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.magic = 100;
}
}
Instance of Symbol 52 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.health = _root.health - 1;
}
if (this.hitTest(_root.player.attack.lightning)) {
this._x = 1156;
}
this._x = this._x - 10;
if (this._x < -700) {
this._x = 1156;
}
}
Instance of Symbol 123 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.player._x > this._x) {
this._x = this._x + 5;
this.gotoAndStop(2);
}
if (_root.player._y > this._y) {
this._y = this._y + 5;
}
if (_root.player._x < this._x) {
this._x = this._x - 5;
this.gotoAndStop(1);
}
if (_root.player._y < this._y) {
this._y = this._y - 5;
}
if (this.hitTest(_root.player)) {
_root.health = _root.health - 2;
}
}
Instance of Symbol 68 MovieClip "player" in Frame 8
onClipEvent (load) {
_root.magic = 100;
this._x = 1177;
this._y = -566;
}
onClipEvent (enterFrame) {
if (_root.health < 1) {
_root.health = 100;
this._x = 1177;
this._y = -566;
}
if (this._y > -300) {
this._x = 1177;
this._y = -566;
}
}
onClipEvent (load) {
var grav = 0;
var speed = 10;
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 = 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(1))) && (!Key.isDown(32))) {
this.gotoAndStop(3);
}
if ((((Key.isDown(1) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(32))) {
this.gotoAndStop(5);
}
if (((Key.isDown(32) && (_root.magic > 0)) && (!Key.isDown(87))) && (!Key.isDown(1))) {
this.gotoAndStop(4);
grav = grav - 2;
}
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;
}
}
Instance of Symbol 132 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
nextFrame();
_root.enemyhp = _root.enemyhp - 1;
}
if (_root.enemyhp < 1) {
_root.nextFrame();
}
}
Instance of Symbol 68 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (Key.isDown(2)) {
_root.gotoAndStop(2);
}
}
Symbol 25 MovieClip Frame 40
stop();
Symbol 36 Button
on (release) {
_root.play();
}
Symbol 37 MovieClip Frame 1
function onEnterFrame() {
if (!loaded) {
var _local3 = _root.getBytesLoaded() / _root.getBytesTotal();
if (_local3 >= 1) {
play();
bar._x = initX;
loaded = true;
} else {
bar._x = initX + ((_local3 - 1) * bar._width);
}
}
var _local4 = getTimer() - time;
timeAccum = timeAccum + _local4;
while (timeAccum >= FRAME_TIME) {
var _local2 = 0;
while (_local2 < timeClips.length) {
if (timeClips[_local2]._currentframe < timeClips[_local2]._totalframes) {
timeClips[_local2].nextFrame();
} else {
timeClips[_local2].gotoAndStop(1);
}
_local2++;
}
if (loaded && (_currentframe < _totalframes)) {
nextFrame();
}
timeAccum = timeAccum - FRAME_TIME;
}
time = time + _local4;
}
stop();
_root.stop();
var initX = bar._x;
var time = getTimer();
var FRAME_TIME = 33.3333333333333;
var timeAccum = 0;
var loaded = false;
timeClips = [bargfx, tank.mc0, tank.mc1, tank.mc2, tank.mc3, tank.mc4, tank.mc4.mc0, tank.mc4.mc1, tank.mc4.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc0.mc2, tank.mc4.mc0.mc0.mc0.mc3, tank.mc4.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc2, tank.mc5.mc0];
var i = 0;
while (i < timeClips.length) {
timeClips[i].stop();
i++;
}
Symbol 37 MovieClip Frame 51
Symbol 42 Button
on (release) {
nextFrame();
}
Symbol 111 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_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 Symbol 103 MovieClip in Symbol 111 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.magic;
}
Instance of Symbol 105 MovieClip in Symbol 111 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.health;
}
Instance of Symbol 52 MovieClip in Symbol 114 MovieClip Frame 60
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.attack.lightning)) {
unloadMovie (this);
}
}
Symbol 123 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 6
gotoAndStop (1);