Frame 2
var BlurBitmap = (new flash.display.BitmapData(Stage.width, Stage.height, true, 0));
var Filter = (new flash.filters.BlurFilter(8, 8, 1));
Blur.attachBitmap(BlurBitmap, Blur.getNextHighestDepth());
var Radians = (Math.PI/180);
var Temp = 0;
var Tempx = 0;
var Tempy = 0;
var Temp2 = 0;
var Temp3 = 0;
var Blink = false;
var Spd = 0;
var Col = 0;
var Firework1 = new Sound();
Firework1.attachSound("Firework1");
var Firework2 = new Sound();
Firework2.attachSound("Firework2");
var Firework3 = new Sound();
Firework3.attachSound("Firework3");
var Firework4 = new Sound();
Firework4.attachSound("Firework4");
var Firework5 = new Sound();
Firework5.attachSound("Firework5");
var M80 = new Sound();
M80.attachSound("M80");
Frame 3
BlurBitmap.draw(Sparks);
BlurBitmap.applyFilter(BlurBitmap, BlurBitmap.rectangle, BlurPoint, Filter);
if (Math.random() < 0.4) {
Col = Math.ceil(Math.random() * 6);
Spd = Math.random() * 10;
Tempx = Math.random() * Stage.width;
Tempy = Math.random() * Stage.height;
Temp2 = Math.ceil(10 + (Math.random() * 10));
if (Math.random() < 0.5) {
Blink = true;
} else {
Blink = false;
}
a = 0;
while (a < Temp2) {
Temp = Sparks.attachMovie("WanderingSpark", Sparks.getNextHighestDepth(), Sparks.getNextHighestDepth());
Temp._x = Tempx + (Math.random() * 10);
Temp._y = Tempy + (Math.random() * 10);
Temp.Gfx._xscale = Temp.Gfx._xscale * Spd;
a++;
}
Temp = Sparks.attachMovie("Blink", Sparks.getNextHighestDepth(), Sparks.getNextHighestDepth());
Temp._x = Tempx;
Temp._y = Tempy;
Temp._xscale = Spd * 10;
Temp._yscale = Temp._xscale;
Temp3 = Math.ceil(Math.random() * 6);
switch (Temp3) {
case 1 :
Firework1.start();
break;
case 2 :
Firework2.start();
break;
case 3 :
Firework3.start();
break;
case 4 :
Firework4.start();
break;
case 5 :
Firework5.start();
}
}
if (Math.random() < 0.005) {
Temp = Sparks.attachMovie("Blink", Sparks.getNextHighestDepth(), Sparks.getNextHighestDepth());
Temp._x = Math.random() * Stage.width;
Temp._y = Math.random() * Stage.height;
Temp._xscale = 600;
Temp._yscale = Temp._xscale;
M80.start();
}
Frame 4
gotoAndPlay ("Main");
Symbol 9 MovieClip Frame 1
if (_root.Col == 2) {
gotoAndPlay ("Alt1");
}
if (_root.Col == 3) {
gotoAndPlay ("Alt2");
}
if (_root.Col == 4) {
gotoAndPlay ("Alt3");
}
if (_root.Col == 5) {
gotoAndPlay ("Alt4");
}
if (_root.Col == 6) {
var Temp = Math.floor(Math.random() * 5);
gotoAndPlay("Alt" + Temp);
}
Symbol 9 MovieClip Frame 23
this._parent.removeMovieClip();
stop();
Symbol 9 MovieClip Frame 48
this._parent.removeMovieClip();
stop();
Symbol 9 MovieClip Frame 73
this._parent.removeMovieClip();
stop();
Symbol 9 MovieClip Frame 98
this._parent.removeMovieClip();
stop();
Symbol 9 MovieClip Frame 123
this._parent.removeMovieClip();
stop();
Symbol 10 MovieClip [WanderingSpark] Frame 1
var Speed = (_root.Spd + (Math.random() * 5));
var Angle = (Math.random() * 360);
var Grav = 0;
var TrueAngle = 0;
var SlowDown = (Math.random() / 2);
this._xscale = 50;
this._yscale = this._xscale;
Symbol 10 MovieClip [WanderingSpark] Frame 2
Angle = Angle + ((Math.random() * 20) - (Math.random() * 20));
this._rotation = Angle;
this._x = this._x + (Math.cos(Angle * _root.Radians) * Speed);
this._y = this._y + (Math.sin(Angle * _root.Radians) * Speed);
if (Speed > 0) {
Speed = Speed - SlowDown;
}
this._xscale = this._xscale - 1;
this._yscale = this._xscale;
Symbol 10 MovieClip [WanderingSpark] Frame 3
gotoAndPlay ("Main");
Symbol 12 MovieClip [Blink] Frame 2
this.removeMovieClip();
Symbol 51 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 60 Button
on (release) {
startMovie();
}
Symbol 62 MovieClip Frame 1
function timerHandler() {
if (!loadingComplete) {
var _local4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * _local4;
if (_local4 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop ("loaded");
}
return(undefined);
}
}
dt = getTimer() - time;
time = time + dt;
frameAccum = frameAccum + dt;
var _local3 = 0;
while ((frameAccum >= FRAME_TIME) && (_local3 < MAX_FRAME_SKIP)) {
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
(frameAccum = frameAccum - FRAME_TIME);
_local3++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return(undefined);
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (childName in clip) {
if (typeof(clip[childName]) == "movieclip") {
advanceFrame(clip[childName], recurse, loop);
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.play();
}
_root.stop();
stop();
var FRAME_TIME = 33.3333333333333;
var AUTO_PLAY = false;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
Symbol 62 MovieClip Frame 2
stop();