Combined Code
frame 1 {
_root.aj_health = new Number(100);
_root.rd_health = new Number(100);
}
movieClip 3 {
}
movieClip 6 {
}
movieClip 8 {
}
movieClip 10 {
}
movieClip 15 {
}
movieClip 17 {
}
movieClip 19 {
}
movieClip 21 {
}
movieClip 23 {
}
movieClip 25 {
}
movieClip 27 {
}
movieClip 29 {
}
movieClip 31 {
}
movieClip 33 {
}
movieClip 38 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 43 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 45 {
instance of movieClip 38 {
onClipEvent (enterFrame) {
this.gotoAndPlay(Math.round(_root.aj_health / 25));
}
}
instance cum_on_aj of movieClip 43 {
onClipEvent (enterFrame) {
this.gotoAndPlay(Math.round(_root.rd_health / 20));
}
}
}
movieClip 47 {
}
movieClip 49 {
}
movieClip 51 {
}
movieClip 55 {
}
movieClip 59 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 60 {
instance of movieClip 59 {
onClipEvent (enterFrame) {
this.gotoAndPlay(Math.round(_root.aj_health / 20));
}
}
}
movieClip 62 {
}
movieClip 64 {
}
movieClip 66 {
}
movieClip 68 {
}
movieClip 73 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 75 {
instance of movieClip 73 {
onClipEvent (enterFrame) {
this.gotoAndPlay(Math.round(_root.rd_health / 25));
}
}
instance cum_on_aj of movieClip 43 {
onClipEvent (enterFrame) {
this.gotoAndPlay(Math.round(_root.aj_health / 20));
}
}
}
movieClip 77 {
}
movieClip 80 {
}
movieClip 82 {
}
movieClip 84 {
}
movieClip 86 {
}
movieClip 88 {
}
movieClip 90 {
}
movieClip 92 {
}
frame 2 {
function m_health(a, b) {
if (a == 'rd') {
_root.rd_health -= b;
if (_root.rd_health < 0) {
_root.rd_health = 0;
gotoAndPlay(71);
} else {
_root.rd_health -= b;
}
} else {
_root.aj_health -= b;
if (_root.aj_health < 0) {
_root.aj_health = 0;
gotoAndPlay(63);
} else {
_root.aj_health -= b;
}
}
}
}
movieClip 96 {
}
movieClip 99 {
}
movieClip 101 {
}
movieClip 104 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 105 {
instance of movieClip 104 {
onClipEvent (enterFrame) {
this.gotoAndPlay(Math.round(_root.rd_health / 25));
}
}
}
button 107 {
on (press) {
gotoAndPlay(2);
}
}
button 109 {
on (press) {
gotoAndPlay(23);
}
}
button 111 {
on (press) {
gotoAndPlay(32);
}
}
button 113 {
on (press) {
gotoAndPlay(53);
}
}
movieClip 115 {
}
instance of movieClip 115 {
onClipEvent (enterFrame) {
this._width = _root.aj_health * 2;
}
}
movieClip 117 {
}
instance rd_health_bar of movieClip 117 {
onClipEvent (enterFrame) {
this._width = _root.rd_health * 2;
}
}
movieClip 119 {
}
frame 12 {
m_health('rd', 1);
}
frame 22 {
gotoAndPlay(2);
}
frame 27 {
m_health('rd', 1);
}
frame 31 {
gotoAndPlay(23);
}
frame 42 {
m_health('aj', 1);
}
frame 52 {
gotoAndPlay(32);
}
frame 57 {
m_health('aj', 1);
}
frame 61 {
gotoAndPlay(53);
}
frame 62 {
play();
}
button 124 {
on (press) {
_root.aj_health = 50;
gotoAndPlay(23);
}
}
frame 70 {
gotoAndPlay(62);
}
frame 71 {
play();
}
button 129 {
on (press) {
_root.rd_health = 50;
gotoAndPlay(53);
}
}
frame 79 {
gotoAndPlay(71);
}