Combined Code
frame 1 {
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
this.loadBar._width = getPercent * 200;
this.loadText = Math.round(getPercent * 100) + '%';
if (bytes_loaded == bytes_total) {
gotoAndStop(3);
}
}
movieClip 5 {
}
movieClip 12 {
}
movieClip 14 {
}
// unknown tag 88 length 94
frame 2 {
this.gotoAndPlay(1);
}
frame 3 {
stop();
}
movieClip 27 {
}
movieClip 28 {
}
instance of movieClip 28 {
onClipEvent (press) {
_root.gotoAndStop(4);
}
}
movieClip 30 {
}
movieClip 31 {
}
instance of movieClip 31 {
onClipEvent (press) {
_root.gotoAndStop(5);
}
}
// unknown tag 88 length 100
movieClip 41 {
}
movieClip 45 {
}
frame 4 {
stop();
_root.already = 0;
_root.nohealth = 0;
_root.cturn = 1;
_root.dturn = 0;
_root.dheal = 2;
_root.chit = 0;
}
movieClip 49 {
frame 1 {
stop();
}
frame 3 {
stop();
_root.nohealth = 1;
}
}
movieClip 52 {
}
instance b1 of movieClip 52 {
onClipEvent (press) {
if (_root.already == 0) {
_root.p1.gotoAndStop(2);
_root.turn.nextFrame();
}
}
onClipEvent (enterFrame) {
if (_root.already == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
movieClip 55 {
}
instance b2 of movieClip 55 {
onClipEvent (press) {
if (_root.already == 0) {
_root.p1.gotoAndStop(3);
_root.turn.nextFrame();
}
}
onClipEvent (enterFrame) {
if (_root.already == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
movieClip 58 {
}
instance b3 of movieClip 58 {
onClipEvent (press) {
if (_root.already == 0 && _root.nohealth == 0) {
_root.p1.gotoAndStop(4);
_root.turn.nextFrame();
}
}
onClipEvent (enterFrame) {
if (_root.already == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.nohealth == 1) {
this.gotoAndStop(2);
}
}
}
movieClip 63 {
}
movieClip 64 {
frame 1 {
stop();
}
frame 20 {
_root.p1.gotoAndStop(6);
}
instance of movieClip 63 {
onClipEvent (enterFrame) {
_root.b1.unloadMovie();
_root.b2.unloadMovie();
_root.b3.unloadMovie();
_root.bar.unloadMovie();
_root.p1.gotoAndStop(6);
}
}
}
movieClip 74 {
}
movieClip 76 {
frame 1 {
stop();
}
frame 20 {
stop();
}
instance of movieClip 63 {
onClipEvent (enterFrame) {
_root.ai.unloadMovie();
_root.p2.gotoAndStop(6);
}
}
}
movieClip 82 {
}
movieClip 85 {
}
movieClip 87 {
frame 1 {
stop();
}
instance of movieClip 85 {
onClipEvent (enterFrame) {
_root.already = 0;
_root.cturn = 1;
_root.dturn = 0;
}
}
frame 2 {
stop();
}
instance of movieClip 85 {
onClipEvent (enterFrame) {
_root.already = 1;
_root.cturn = 0;
_root.dturn = 1;
}
}
}
movieClip 90 {
instance of movieClip 85 {
onClipEvent (enterFrame) {
a = random(3);
if (a == 0) {
_root.p2.gotoAndStop(2);
}
if (a == 1) {
_root.p2.gotoAndStop(3);
}
if (a == 2 && _root.dheal >= 0) {
_root.p2.gotoAndStop(4);
}
if (a == 2 && _root.dheal == -1) {
_root.p2.gotoAndStop(2);
}
}
}
frame 53 {
_root.turn.prevFrame();
}
}
movieClip 91 {
frame 1 {
stop();
}
}
instance ai of movieClip 91 {
onClipEvent (enterFrame) {
if (_root.dturn == 1) {
this.gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
movieClip 93 {
}
movieClip 117 {
frame 20 {
this._parent.gotoAndStop(1);
}
}
movieClip 118 {
frame 20 {
this._parent.gotoAndStop(1);
}
}
movieClip 130 {
}
movieClip 140 {
frame 1 {
_root.p2bar.gotoAndStop(1);
}
frame 20 {
this._parent.gotoAndStop(1);
}
}
movieClip 143 {
instance of movieClip 85 {
onClipEvent (enterFrame) {
if (_root.chit == 1) {
_root.p2bar.nextFrame();
}
}
onClipEvent (enterFrame) {
if (_root.chit == 2) {
_root.p2bar.nextFrame();
_root.p2bar.nextFrame();
}
}
}
frame 20 {
this._parent.gotoAndStop(1);
}
}
movieClip 153 {
frame 20 {
stop();
_root.gotoAndStop(6);
}
}
movieClip 154 {
frame 1 {
stop();
_root.already = 0;
_root.blocked = 0;
}
frame 2 {
_root.already = 1;
_root.chit = 1;
}
frame 3 {
_root.already = 1;
_root.chit = 2;
}
frame 4 {
_root.already = 1;
_root.dheal -= 1;
}
frame 6 {
_root.already = 1;
}
}
instance p2 of movieClip 154 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.p1.chit)) {
this.gotoAndStop(5);
}
}
}
movieClip 163 {
}
movieClip 168 {
frame 20 {
this._parent.gotoAndStop(1);
}
}
movieClip 169 {
frame 20 {
this._parent.gotoAndStop(1);
}
}
movieClip 173 {
}
movieClip 182 {
frame 1 {
_root.p1bar.gotoAndStop(1);
}
frame 20 {
this._parent.gotoAndStop(1);
}
}
movieClip 184 {
}
movieClip 188 {
instance of movieClip 85 {
onClipEvent (enterFrame) {
if (_root.chit == 1) {
_root.p1bar.nextFrame();
}
}
onClipEvent (enterFrame) {
if (_root.chit == 2) {
_root.p1bar.nextFrame();
_root.p1bar.nextFrame();
}
}
}
frame 20 {
this._parent.gotoAndStop(1);
}
}
movieClip 190 {
}
movieClip 201 {
frame 20 {
_root.gotoAndStop(7);
}
}
movieClip 202 {
frame 1 {
stop();
_root.blocked = 0;
}
frame 1 {
_root.chit = 0;
}
frame 2 {
_root.already = 1;
_root.chit = 1;
}
frame 3 {
_root.already = 1;
_root.chit = 2;
}
frame 4 {
_root.already = 1;
_root.bar.nextFrame();
}
}
instance p1 of movieClip 202 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.p2.dhit)) {
this.gotoAndStop(5);
}
}
}
frame 5 {
stop();
_root.already = 0;
_root.nohealth = 0;
_root.cturn = 1;
_root.dturn = 0;
_root.dheal = 2;
_root.chit = 0;
}
movieClip 205 {
frame 1 {
stop();
}
frame 3 {
stop();
_root.nohealth = 1;
}
}
movieClip 212 {
frame 1 {
stop();
}
instance of movieClip 85 {
onClipEvent (enterFrame) {
_root.already = 0;
_root.cturn = 0;
_root.dturn = 1;
}
}
frame 2 {
stop();
}
instance of movieClip 85 {
onClipEvent (enterFrame) {
_root.already = 1;
_root.cturn = 1;
_root.dturn = 0;
}
}
}
movieClip 214 {
instance of movieClip 85 {
onClipEvent (enterFrame) {
a = random(3);
if (a == 0) {
_root.p2.gotoAndStop(2);
}
if (a == 1) {
_root.p2.gotoAndStop(3);
}
if (a == 2 && _root.dheal >= 0) {
_root.p2.gotoAndStop(4);
}
if (a == 2 && _root.dheal == -1) {
_root.p2.gotoAndStop(2);
}
}
}
frame 53 {
_root.turn.prevFrame();
}
}
movieClip 215 {
frame 1 {
stop();
}
}
instance ai of movieClip 215 {
onClipEvent (enterFrame) {
if (_root.cturn == 1) {
this.gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
movieClip 217 {
frame 1 {
_root.p2bar.gotoAndStop(1);
}
frame 20 {
this._parent.gotoAndStop(1);
}
}
movieClip 218 {
instance of movieClip 85 {
onClipEvent (enterFrame) {
if (_root.chit == 1) {
_root.p2bar.nextFrame();
}
}
onClipEvent (enterFrame) {
if (_root.chit == 2) {
_root.p2bar.nextFrame();
_root.p2bar.nextFrame();
}
}
}
frame 20 {
this._parent.gotoAndStop(1);
}
}
movieClip 219 {
frame 20 {
_root.gotoAndStop(7);
}
}
movieClip 220 {
frame 1 {
stop();
_root.already = 0;
_root.blocked = 0;
}
frame 2 {
_root.already = 1;
_root.chit = 1;
}
frame 3 {
_root.already = 1;
_root.chit = 2;
}
frame 4 {
_root.already = 1;
_root.dheal -= 1;
}
}
instance p2 of movieClip 220 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.p1.dhit)) {
this.gotoAndStop(5);
}
}
}
movieClip 222 {
frame 1 {
_root.p1bar.gotoAndStop(1);
}
frame 20 {
this._parent.gotoAndStop(1);
}
}
movieClip 223 {
instance of movieClip 85 {
onClipEvent (enterFrame) {
if (_root.chit == 1) {
_root.p1bar.nextFrame();
}
}
onClipEvent (enterFrame) {
if (_root.chit == 2) {
_root.p1bar.nextFrame();
_root.p1bar.nextFrame();
}
}
}
frame 20 {
this._parent.gotoAndStop(1);
}
}
movieClip 228 {
frame 20 {
stop();
_root.gotoAndStop(6);
}
}
movieClip 229 {
frame 1 {
stop();
_root.blocked = 0;
}
frame 1 {
_root.chit = 0;
}
frame 2 {
_root.already = 1;
_root.chit = 1;
}
frame 3 {
_root.already = 1;
_root.chit = 2;
}
frame 4 {
_root.already = 1;
_root.bar.nextFrame();
}
frame 6 {
_root.already = 1;
}
}
instance p1 of movieClip 229 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.p2.chit)) {
this.gotoAndStop(5);
}
}
}
frame 6 {
stop();
}
movieClip 234 {
}
movieClip 238 {
}
movieClip 245 {
}
button 248 {
on (press) {
_root.gotoAndStop(2);
}
}
frame 7 {
stop();
}
movieClip 253 {
}
movieClip 258 {
}
button 260 {
on (press) {
_root.gotoAndStop(2);
}
}