Combined Code
movieClip 10 {
}
movieClip 11 {
}
movieClip 12 {
}
movieClip 15 {
}
movieClip 16 {
}
movieClip 18 {
}
movieClip 20 {
}
movieClip 24 {
}
movieClip 27 {
}
movieClip 28 {
}
movieClip 31 {
}
movieClip 33 {
}
movieClip 36 {
}
movieClip 37 {
}
movieClip 38 {
}
movieClip 40 {
}
movieClip 41 {
}
movieClip 46 {
}
movieClip 53 {
}
movieClip 54 {
}
movieClip 62 {
}
movieClip 66 {
}
movieClip 69 {
}
movieClip 73 {
frame 40 {
stop();
}
}
movieClip 86 {
}
button 88 {
on (press) {
_root.play();
}
}
movieClip 89 {
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 {
}
}