Combined Code
movieClip 12 {
}
movieClip 13 {
}
movieClip 14 {
}
movieClip 17 {
}
movieClip 18 {
}
movieClip 20 {
}
movieClip 22 {
}
movieClip 26 {
}
movieClip 29 {
}
movieClip 30 {
}
movieClip 33 {
}
movieClip 35 {
}
movieClip 38 {
}
movieClip 39 {
}
movieClip 40 {
}
movieClip 42 {
}
movieClip 43 {
}
movieClip 48 {
}
movieClip 55 {
}
movieClip 56 {
}
movieClip 64 {
}
movieClip 68 {
}
movieClip 71 {
}
movieClip 75 {
frame 40 {
stop();
}
}
movieClip 87 {
}
button 89 {
on (press) {
_root.play();
}
}
movieClip 90 {
frame 1 {
function onEnterFrame() {
if (!loaded) {
var percentLoaded = _root.getBytesLoaded() / _root.getBytesTotal();
if (percentLoaded >= 1) {
if (firstframe) {
gotoAndStop('loaded');
} else {
play();
bar._x = initX;
}
loaded = true;
} else {
bar._x = initX + (percentLoaded - 1) * bar._width;
}
}
var dt = getTimer() - time;
timeAccum += dt;
while (timeAccum >= FRAME_TIME) {
var i = 0;
while (i < timeClips.length) {
if (timeClips[i]._currentframe < timeClips[i]._totalframes) {
timeClips[i].nextFrame();
} else {
timeClips[i].gotoAndStop(1);
}
++i;
}
if (loaded && _currentframe < _totalframes) {
nextFrame();
}
timeAccum -= FRAME_TIME;
}
time += dt;
firstframe = false;
}
stop();
_root.stop();
var initX = bar._x;
var time = getTimer();
var FRAME_TIME = 33.33333333333334;
var timeAccum = 0;
var firstframe = true;
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;
}
}
frame 53 {
}
}