Frame 1
_root.credits.gotoAndPlay(2);
customization = 0;
function drawReflection() {
mat = new flash.geom.Matrix();
mat.scale(1, -0.6);
mat.translate(0, obj._height - 550);
ref.draw(_root.obj, mat);
}
ref = new flash.display.BitmapData(reflection.backdrop._width, reflection.backdrop._height, false, 0);
reflection.attachBitmap(ref, 1);
per = new flash.display.BitmapData(688, reflection.backdrop._height, false, 16777215);
var randSeed = (Math.random() * 100);
randSeed = (randSeed << 1) | (randSeed >> 1);
per.perlinNoise(120, 30, 8, randomSeed, true, true, 3, false);
var ang = 0;
_root.onEnterFrame = function () {
drawReflection();
ang = ang + 8;
ang = ang % 360;
xi = (Math.cos((ang * Math.PI) / 180) * 40) + 200;
yi = (Math.sin((ang * Math.PI) / 180) * 40) + 200;
bmp_displace = new flash.filters.DisplacementMapFilter(per, new flash.geom.Point(0, 0), 1, 2, xi / 4, yi / 8, "clamp");
reflection.filters = new Array(bmp_displace);
};
Symbol 3 MovieClip [p] Frame 1
if (colour == 0) {
var c = new Color(this);
c.setRGB(14764104);
}
if (colour == 1) {
var c = new Color(this);
c.setRGB(4556516);
}
if (colour == 2) {
var c = new Color(this);
c.setRGB(5824840);
}
if (colour == 3) {
var c = new Color(this);
c.setRGB(15461157);
}
if (colour == 4) {
var c = new Color(this);
c.setRGB(16777215);
}
Symbol 7 MovieClip [fw_rocket] Frame 1
function updatePosition(xp, yp) {
var _local1 = {x:xp, y:yp};
var _local2 = prev_positions.length;
if (_local2 < (max_positions - 1)) {
prev_positions.unshift(_local1);
} else {
prev_positions.unshift(_local1);
prev_positions.pop();
}
}
function drawTrail() {
this.clear();
var _local2 = 0;
while ((_local2 < (max_positions - 1)) && (_local2 < (prev_positions.length - 1))) {
var _local3 = 1 / max_positions;
_local3 = _local3 * (max_positions - _local2);
var _local5 = ((trail_color & 16711680) >> 16) * _local3;
var _local7 = ((trail_color & 65280) >> 8) * _local3;
var _local4 = (trail_color & 255) * _local3;
var _local6 = ((_local5 << 16) | (_local7 << 8)) | _local4;
this.lineStyle(1, _local6);
this.moveTo(prev_positions[_local2].x - this._x, prev_positions[_local2].y - this._y);
this.lineTo(prev_positions[_local2 + 1].x - this._x, prev_positions[_local2 + 1].y - this._y);
_local2++;
}
}
alive = true;
timer = 40;
prev_positions = new Array();
max_positions = 20;
trail_color = 14940592 /* 0xE3F9B0 */;
this.onEnterFrame = function () {
if (this.alive) {
this._x = this._x + this.xv;
this._y = this._y + this.yv;
this.yv = this.yv + 0.2;
this.timer--;
if (this.timer < 0) {
this.alive = false;
this.explode(this._x, this._y);
}
updatePosition(this._x, this._y);
drawTrail();
} else {
prev_positions.pop();
prev_positions.pop();
drawTrail();
if (prev_positions.length == 0) {
this.removeMovieClip();
}
}
};
Symbol 9 MovieClip Frame 1
if (colour == 0) {
var c = new Color(this);
c.setRGB(14764104);
}
if (colour == 1) {
var c = new Color(this);
c.setRGB(4556516);
}
if (colour == 2) {
var c = new Color(this);
c.setRGB(5824840);
}
if (colour == 3) {
var c = new Color(this);
c.setRGB(15461157);
}
if (colour == 4) {
var c = new Color(this);
c.setRGB(16777215);
}
Symbol 13 MovieClip [amaaxla] Frame 1
stop();
var fired = false;
var num = 0;
var pnum = 0;
var g = 0.1;
var fire = true;
var total = 0;
var sMod = (middle / 220);
NewF = function () {
var _local2 = this.attachMovie("head", "head" + num, num);
_local2._y = middle;
_local2._x = random(Stage.width);
_local2.life = 36;
_local2.xs = (Math.random() * 6) - 3;
_local2.ys = ((-Math.random(4)) - 5) * sMod;
_local2.dead = false;
_local2.c = random(4);
_local2.deadX = _local2._x + (_local2.xs * _local2.life);
_local2.vs = _local2.ys + (g * _local2.life);
_local2.deadY = 220 + (((_local2.vs * _local2.vs) - (_local2.ys * _local2.ys)) / (2 * g));
if (((_local2.deadX < 0) || (_local2.deadX > Stage.width)) || (_local2.deadY < 0)) {
gotoAndStop (3);
}
total++;
num++;
};
exPlosion = function (x, y, c) {
var _local4 = random(50) + 25;
var _local1 = 0;
while (_local1 < _local4) {
particles.attachMovie("p", "p" + pnum, pnum);
particles["p" + pnum]._x = x;
particles["p" + pnum]._y = y;
particles["p" + pnum].xs = (Math.random() * 6) - 3;
particles["p" + pnum].ys = (Math.random() * 6) - 3;
particles["p" + pnum].colour = c;
total++;
pnum++;
_local1++;
}
_local1 = 0;
while (_local1 < 15) {
particles.attachMovie("p", "p" + pnum, pnum);
particles["p" + pnum]._x = x;
particles["p" + pnum]._y = y;
particles["p" + pnum].xs = (Math.random() * 6) - 3;
particles["p" + pnum].ys = (Math.random() * 6) - 3;
particles["p" + pnum].colour = 4;
total++;
pnum++;
_local1++;
}
total--;
};
this.onEnterFrame = function () {
if (total < 0) {
gotoAndStop (2);
}
if ((fire == true) & (fired == false)) {
NewF();
fire = false;
fired = true;
}
var _local3 = 0;
while (_local3 < num) {
if (this["head" + _local3].life > 0) {
this["head" + _local3]._x = this["head" + _local3]._x + this["head" + _local3].xs;
this["head" + _local3]._y = this["head" + _local3]._y + this["head" + _local3].ys;
this["head" + _local3].ys = this["head" + _local3].ys + g;
this["head" + _local3].life--;
particles.attachMovie("p", "p" + pnum, pnum);
particles["p" + pnum]._x = this["head" + _local3]._x;
particles["p" + pnum]._y = this["head" + _local3]._y;
particles["p" + pnum].xs = ((this["head" + _local3].xs / 10) - (Math.random() / 2)) - 0.25;
particles["p" + pnum].ys = ((this["head" + _local3].ys / 10) + (Math.random() / 2)) - 0.25;
particles["p" + pnum].colour = this["head" + _local3].c;
total++;
pnum++;
}
if ((this["head" + _local3].life <= 0) && (this["head" + _local3].life != undefined)) {
if (this["head" + _local3].dead == false) {
exPlosion(this["head" + _local3]._x, this["head" + _local3]._y, this["head" + _local3].c);
this["head" + _local3].dead = true;
removeMovieClip(this["head" + _local3]);
total--;
}
}
_local3++;
}
var _local2 = 0;
while (_local2 < pnum) {
particles["p" + _local2]._x = particles["p" + _local2]._x + particles["p" + _local2].xs;
particles["p" + _local2]._y = particles["p" + _local2]._y + particles["p" + _local2].ys;
particles["p" + _local2].ys = particles["p" + _local2].ys + (g / 2);
particles["p" + _local2]._rotation = (Math.atan2(particles["p" + _local2].ys, particles["p" + _local2].xs) / (Math.PI/180)) - 90;
particles["p" + _local2]._yscale = Math.sqrt((particles["p" + _local2].xs * particles["p" + _local2].xs) + (particles["p" + _local2].ys * particles["p" + _local2].ys)) * 200;
particles["p" + _local2]._alpha--;
if ((((particles["p" + _local2]._x < -10) || (particles["p" + _local2]._x > (Stage.width + 10))) || (particles["p" + _local2]._y > middle)) || (particles["p" + _local2]._alpha <= 0)) {
if (particles["p" + _local2] != undefined) {
total--;
removeMovieClip(particles["p" + _local2]);
}
}
_local2++;
}
};
Symbol 13 MovieClip [amaaxla] Frame 2
var a = random(100);
this.onEnterFrame = function () {
a--;
if (a <= 0) {
gotoAndStop (1);
}
};
Symbol 13 MovieClip [amaaxla] Frame 3
gotoAndStop (1);
Symbol 32 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(loading_bar, _xscale , PercentLoaded);
} else {
gotoAndStop (3);
}
Symbol 32 MovieClip Frame 2
gotoAndPlay (1);
Symbol 32 MovieClip Frame 3
this._parent.gotoAndStop("menu");
Symbol 38 Button
on (release) {
_root.obj.gotoAndStop("show");
_root.customization = 0;
trace(_root.customization);
}
Symbol 41 Button
on (release) {
_root.obj.gotoAndStop("customize");
_root.customization = 1;
trace(_root.customization);
}
Symbol 59 Button
on (release) {
_root.obj.gotoAndStop("show");
_root.customization = 1;
}
Symbol 62 MovieClip Frame 1
stop();
Symbol 66 Button
on (release) {
_root.obj.gotoAndStop(2);
}
Symbol 68 MovieClip Frame 119
_root.obj.count++;
Symbol 68 MovieClip Frame 142
_root.obj.count++;
Symbol 68 MovieClip Frame 310
_root.obj.count++;
Symbol 68 MovieClip Frame 335
_root.obj.count++;
Symbol 68 MovieClip Frame 492
_root.obj.count++;
Symbol 68 MovieClip Frame 585
_root.obj.count++;
Symbol 68 MovieClip Frame 737
_root.obj.count++;
Symbol 68 MovieClip Frame 823
_root.obj.count++;
Symbol 68 MovieClip Frame 860
_root.obj.count++;
Symbol 68 MovieClip Frame 903
_root.obj.count++;
Symbol 68 MovieClip Frame 945
_root.obj.count++;
Symbol 68 MovieClip Frame 980
_root.obj.count++;
Symbol 68 MovieClip Frame 1004
_root.obj.count++;
Symbol 68 MovieClip Frame 1085
_root.obj.count++;
Symbol 68 MovieClip Frame 1159
_root.obj.count++;
Symbol 68 MovieClip Frame 1178
_root.obj.count++;
Symbol 68 MovieClip Frame 1195
_root.obj.count++;
Symbol 68 MovieClip Frame 1212
_root.obj.count++;
Symbol 68 MovieClip Frame 1229
_root.obj.count++;
Symbol 68 MovieClip Frame 1246
_root.obj.count++;
Symbol 68 MovieClip Frame 1261
_root.obj.count++;
Symbol 68 MovieClip Frame 1277
_root.obj.count++;
Symbol 68 MovieClip Frame 1341
_root.obj.count++;
Symbol 68 MovieClip Frame 1406
_root.obj.count++;
Symbol 68 MovieClip Frame 1475
_root.obj.count++;
Symbol 68 MovieClip Frame 1565
_root.obj.count++;
Symbol 68 MovieClip Frame 1646
_root.obj.count++;
Symbol 68 MovieClip Frame 1745
_root.obj.count++;
Symbol 68 MovieClip Frame 1870
_root.obj.count++;
Symbol 68 MovieClip Frame 1971
_root.obj.count++;
Symbol 68 MovieClip Frame 2126
_root.obj.count++;
Symbol 68 MovieClip Frame 2225
_root.obj.count++;
Symbol 68 MovieClip Frame 2382
_root.obj.count++;
Symbol 68 MovieClip Frame 2439
_root.obj.count++;
Symbol 68 MovieClip Frame 2471
_root.obj.count++;
Symbol 68 MovieClip Frame 2501
_root.obj.count++;
Symbol 68 MovieClip Frame 2589
_root.obj.count++;
Symbol 68 MovieClip Frame 2736
_root.obj.count++;
Symbol 68 MovieClip Frame 2845
_root.obj.count++;
Symbol 68 MovieClip Frame 2943
_root.obj.count++;
Symbol 68 MovieClip Frame 3006
_root.obj.count++;
Symbol 68 MovieClip Frame 3182
_root.obj.count++;
Symbol 68 MovieClip Frame 3211
_root.obj.count++;
Symbol 68 MovieClip Frame 3236
_root.obj.count++;
Symbol 68 MovieClip Frame 3319
_root.obj.count++;
Symbol 68 MovieClip Frame 3346
_root.obj.count++;
Symbol 68 MovieClip Frame 3376
_root.obj.count++;
Symbol 68 MovieClip Frame 3399
_root.obj.count++;
Symbol 68 MovieClip Frame 3427
_root.obj.count++;
Symbol 68 MovieClip Frame 3452
_root.obj.count++;
Symbol 68 MovieClip Frame 3545
_root.obj.count++;
Symbol 68 MovieClip Frame 3699
_root.obj.count++;
Symbol 68 MovieClip Frame 3810
_root.obj.count++;
Symbol 68 MovieClip Frame 3837
_root.obj.count++;
Symbol 68 MovieClip Frame 3868
_root.obj.count++;
Symbol 68 MovieClip Frame 3951
_root.obj.count++;
Symbol 68 MovieClip Frame 4113
_root.obj.count++;
Symbol 68 MovieClip Frame 4167
_root.obj.count++;
Symbol 68 MovieClip Frame 4239
_root.obj.count++;
Symbol 68 MovieClip Frame 4311
_root.obj.count++;
Symbol 68 MovieClip Frame 4384
_root.obj.count++;
Symbol 68 MovieClip Frame 4403
_root.obj.count++;
Symbol 68 MovieClip Frame 4475
_root.obj.count++;
Symbol 68 MovieClip Frame 4544
_root.obj.count++;
Symbol 68 MovieClip Frame 4615
_root.obj.count++;
Symbol 68 MovieClip Frame 4685
_root.obj.count++;
Symbol 68 MovieClip Frame 4759
_root.obj.count++;
Symbol 68 MovieClip Frame 4783
_root.obj.count++;
Symbol 68 MovieClip Frame 4798
_root.obj.count++;
Symbol 68 MovieClip Frame 4815
_root.obj.count++;
Symbol 68 MovieClip Frame 4824
_root.obj.count++;
Symbol 68 MovieClip Frame 4890
_root.obj.count++;
Symbol 68 MovieClip Frame 4957
_root.obj.count++;
Symbol 68 MovieClip Frame 5006
_root.obj.count++;
Symbol 68 MovieClip Frame 5021
_root.obj.count++;
Symbol 68 MovieClip Frame 5037
_root.obj.count++;
Symbol 68 MovieClip Frame 5053
_root.obj.count++;
Symbol 68 MovieClip Frame 5069
_root.obj.count++;
Symbol 68 MovieClip Frame 5085
_root.obj.count++;
Symbol 68 MovieClip Frame 5100
_root.obj.count++;
Symbol 68 MovieClip Frame 5115
_root.obj.count++;
Symbol 68 MovieClip Frame 5130
_root.obj.count++;
Symbol 68 MovieClip Frame 5145
_root.obj.count++;
Symbol 68 MovieClip Frame 5177
_root.obj.count++;
Symbol 68 MovieClip Frame 5208
_root.obj.count++;
Symbol 68 MovieClip Frame 5239
_root.obj.count++;
Symbol 68 MovieClip Frame 5272
_root.obj.count++;
Symbol 68 MovieClip Frame 5346
_root.obj.count++;
Symbol 68 MovieClip Frame 5389
_root.obj.count++;
trace(_root.obj.count);
Symbol 68 MovieClip Frame 5426
_root.obj.count++;
trace(_root.obj.count);
Symbol 68 MovieClip Frame 5472
_root.obj.count++;
trace(_root.obj.count);
Symbol 68 MovieClip Frame 5518
_root.obj.count++;
trace(_root.obj.count);
Symbol 68 MovieClip Frame 5567
_root.obj.count++;
trace(_root.obj.count);
Symbol 68 MovieClip Frame 5636
_root.obj.count++;
trace(_root.obj.count);
Symbol 68 MovieClip Frame 5691
_root.obj.count++;
trace(_root.obj.count);
Symbol 68 MovieClip Frame 6055
_root.obj.gotoAndStop(2);
Symbol 84 MovieClip Frame 46
stop();
Symbol 96 MovieClip Frame 78
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 2
stop();
Instance of Symbol 13 MovieClip [amaaxla] in Symbol 97 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
middle = 220;
}
Instance of Symbol 84 MovieClip in Symbol 97 MovieClip Frame 3
onClipEvent (load) {
this._x = random(400);
}
Symbol 97 MovieClip Frame 48
stop();
Instance of Symbol 86 MovieClip in Symbol 97 MovieClip Frame 49
onClipEvent (load) {
this._x = random(400) + 100;
}
Symbol 97 MovieClip Frame 140
stop();
Instance of Symbol 96 MovieClip in Symbol 97 MovieClip Frame 141
onClipEvent (load) {
this._x = random(300);
}
Symbol 97 MovieClip Frame 218
stop();
Symbol 97 MovieClip Frame 219
_root.obj.fireRocket2();
stop();
Symbol 100 MovieClip Frame 1
stop();
function addSparkle(where, x, y) {
var _local2 = where.getNextHighestDepth();
var _local1 = where.attachMovie("fw_sparkle", "fw_sparkle" + _local2, _local2);
_local1._x = (x ? (x) : 0);
_local1._y = (y ? (y) : 0);
_local1.tA = Math.random() * 360;
_local1.tS = (Math.random() * 16) + 8;
_local1.gS = 0;
_local1.decayrate = Math.random() * 3;
_local1.countdown = 50;
_local1.onEnterFrame = goSparkle;
return(_local1);
}
function goSparkle() {
this._x = this._x + (Math.cos((this.tA * Math.PI) / 180) * this.tS);
this._y = this._y + (Math.sin((this.tA * Math.PI) / 180) * this.tS);
this._y = this._y + this.gS;
if (this.tS >= 1) {
this.tS = this.tS * 0.8;
}
this.gS = this.gS + 0.1;
if (this._y > 300) {
this.removeMovieClip();
}
if (this._y <= -150) {
this.removeMovieClip();
}
this.countdown--;
if (this.countdown <= 0) {
this.removeMovieClip();
}
this._alpha = this._alpha - this.decayrate;
this.decayrate = this.decayrate + 0.15;
if (this._alpha <= 5) {
this.removeMovieClip();
}
}
function setOffFirework(x, y) {
var _local6 = Math.floor(Math.random() * fw_colors.length);
var _local5 = Math.floor(Math.random() * fw_colors.length);
var _local2 = 0;
while (_local2 < 40) {
var _local4 = addSparkle(this.D_fw_space, x, y);
var _local3 = new Color(_local4);
_local3.setRGB(fw_colors[((_local2 % 2) ? (_local6) : (_local5))]);
_local2++;
}
}
function fireRocket() {
var _local3 = this.D_fw_space.getNextHighestDepth();
var _local2 = this.D_fw_space.attachMovie("fw_rocket", "fw_rocket" + _local3, _local3);
_local2.xv = (Math.random() * 10) - 5;
_local2.yv = -5 - (Math.random() * 5);
_local2._x = (Math.random() * 400) + 75;
_local2._y = 285;
_local2.D_fw_space = this.D_fw_space;
_local2.explode = setOffFirework;
}
function fireRocket2() {
var _local3 = this.D_fw_space.getNextHighestDepth();
var _local2 = this.D_fw_space.attachMovie("fw_rocket", "fw_rocket" + _local3, _local3);
_local2.xv = (Math.random() * 10) - 5;
_local2.yv = -5 - (Math.random() * 5);
_local2._x = (Math.random() * 300) + 125;
_local2._y = 285;
_local2.D_fw_space = this.D_fw_space;
_local2.explode = explode;
}
function explode(x, y) {
var _local7 = this.D_fw_space.getNextHighestDepth();
exp = this.D_fw_space.createEmptyMovieClip("explosion" + _local7, _local7);
exp._x = x;
exp._y = y;
exp.speed = 25;
exp.color = Math.floor(Math.random() * fw_colors.length);
exp.countdown = 30;
exp.gravity = 1;
exp.paths = new Array();
exp.prevPt = new Array();
var _local2 = 0;
while (_local2 < 30) {
exp.paths[_local2] = {x:Math.random() - 0.5, y:Math.random() - 0.5};
exp.prevPt[_local2] = {x:0, y:0};
_local2++;
}
_local2 = 31;
while (_local2 < 70) {
var _local3 = (Math.random() / 3) + 0.5;
var _local4 = (Math.random() * Math.PI) * 2;
exp.paths[_local2] = {x:Math.cos(_local4) * _local3, y:Math.sin(_local4) * _local3};
exp.prevPt[_local2] = {x:0, y:0};
_local2++;
}
exp.go = explodeGo;
exp.onEnterFrame = function () {
this.go();
};
_local7 = this.D_fw_space.getNextHighestDepth();
exp.bmp_mc = this.D_fw_space.createEmptyMovieClip("bmp_mc" + _local7, _local7);
exp.bmp_mc._x = x - 100;
exp.bmp_mc._y = y - 100;
exp.bmp = new flash.display.BitmapData(200, 300, true, 0);
exp.bmp_mc.attachBitmap(exp.bmp, 0);
blur = new flash.filters.BlurFilter();
blur.blurX = 4;
blur.blurY = 4;
blur.quality = 1;
var _local8 = new Array(blur);
exp.bmp_mc.filters = _local8;
}
function explodeGo() {
mat = new flash.geom.Matrix(1, 0, 0, 1, 100, 100);
this.bmp.draw(this, mat);
this.bmp.merge(new flash.display.BitmapData(200, 300, true, 0), new flash.geom.Rectangle(0, 0, 200, 300), new flash.geom.Point(0, 0), 20, 20, 20, 20);
this.countdown--;
if (this.countdown <= 0) {
if (this.countdown <= -15) {
this.go = undefined;
this.bmp_mc.removeMovieClip();
this.removeMovieClip();
}
return(undefined);
}
this.clear();
var _local2 = 0;
while (_local2 < 70) {
nX = this.prevPt[_local2].x + (this.paths[_local2].x * this.speed);
nY = (this.prevPt[_local2].y + (this.paths[_local2].y * this.speed)) + this.gravity;
this.lineStyle(2, fw_colors[this.color], (this.countdown * 3) - 10);
this.moveTo(this.prevPt[_local2].x, this.prevPt[_local2].y);
this.lineTo(nX, nY);
this.prevPt[_local2].x = nX;
this.prevPt[_local2].y = nY;
_local2++;
}
this.speed = this.speed * 0.8;
}
fw_colors = [5564273, 5201900, 8524465, 16191761, 16316568, 9041386];
Symbol 100 MovieClip Frame 3
count = 0;
typearray = new Array("amaaxla", "stevena", "nitwitt1", "nitwitt2", "pmd");
fireworksarray = new Array(5);
Instance of Symbol 62 MovieClip in Symbol 100 MovieClip Frame 3
onClipEvent (load) {
this.num = _root.obj.count;
_root.obj.count = _root.obj.count + 1;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else if (this._currentframe == 2) {
this.gotoAndStop(1);
}
}
};
if (this._currentframe == 2) {
_root.obj.fireworksarray[this.num] = 1;
} else if (this._currentframe == 1) {
_root.obj.fireworksarray[this.num] = 0;
}
}
Instance of Symbol 62 MovieClip in Symbol 100 MovieClip Frame 3
onClipEvent (load) {
this.num = _root.obj.count;
_root.obj.count = _root.obj.count + 1;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else if (this._currentframe == 2) {
this.gotoAndStop(1);
}
}
};
if (this._currentframe == 2) {
_root.obj.fireworksarray[this.num] = 1;
} else if (this._currentframe == 1) {
_root.obj.fireworksarray[this.num] = 0;
}
}
Instance of Symbol 62 MovieClip in Symbol 100 MovieClip Frame 3
onClipEvent (load) {
this.num = _root.obj.count;
_root.obj.count = _root.obj.count + 1;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else if (this._currentframe == 2) {
this.gotoAndStop(1);
}
}
};
if (this._currentframe == 2) {
_root.obj.fireworksarray[this.num] = 1;
} else if (this._currentframe == 1) {
_root.obj.fireworksarray[this.num] = 0;
}
}
Instance of Symbol 62 MovieClip in Symbol 100 MovieClip Frame 3
onClipEvent (load) {
this.num = _root.obj.count;
_root.obj.count = _root.obj.count + 1;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else if (this._currentframe == 2) {
this.gotoAndStop(1);
}
}
};
if (this._currentframe == 2) {
_root.obj.fireworksarray[this.num] = 1;
} else if (this._currentframe == 1) {
_root.obj.fireworksarray[this.num] = 0;
}
}
Instance of Symbol 62 MovieClip in Symbol 100 MovieClip Frame 3
onClipEvent (load) {
this.num = _root.obj.count;
_root.obj.count = _root.obj.count + 1;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else if (this._currentframe == 2) {
this.gotoAndStop(1);
}
}
};
if (this._currentframe == 2) {
_root.obj.fireworksarray[this.num] = 1;
} else if (this._currentframe == 1) {
_root.obj.fireworksarray[this.num] = 0;
}
}
Symbol 100 MovieClip Frame 4
n = 0;
firework = 0;
trace(_root.customization);
if (_root.customization == 1) {
randomizer = new Array();
i = 0;
while (i < 5) {
if (fireworksarray[i] == 1) {
n++;
randomizer.push(typearray[i]);
}
i++;
}
} else if (_root.customization == 0) {
randomizer = new Array("amaaxla", "stevena", "nitwitt1", "nitwitt2", "pmd");
}
count = 0;
num = 0;
nextavailable = 1;
stop();
Instance of Symbol 97 MovieClip "fireworksshow" in Symbol 100 MovieClip Frame 4
onClipEvent (load) {
function shootRandomFirework() {
firework = _root.obj.randomizer[Math.floor(Math.random() * _root.obj.randomizer.length)];
trace(firework);
this.gotoAndPlay(firework);
}
this.frames = 0;
_root.obj.num++;
this.number = _root.obj.nextavailable;
_root.obj.nextavailable++;
trace(number);
firework = 0;
this.shot = 0;
}
onClipEvent (enterFrame) {
if ((_root.obj.count == this.number) & (this.shot == 0)) {
this.shootRandomFirework();
this.shot = 1;
}
if ((this.shot == 1) & (this.frames < 130)) {
this.frames++;
}
if (this.frames >= 130) {
this.gotoAndStop("gone");
this.frames = 0;
this.shot = 0;
this.number = _root.obj.nextavailable;
_root.obj.nextavailable++;
}
}
Instance of Symbol 97 MovieClip "fireworksshow" in Symbol 100 MovieClip Frame 4
onClipEvent (load) {
function shootRandomFirework() {
firework = _root.obj.randomizer[Math.floor(Math.random() * _root.obj.randomizer.length)];
trace(firework);
this.gotoAndPlay(firework);
}
this.frames = 0;
_root.obj.num++;
this.number = _root.obj.nextavailable;
_root.obj.nextavailable++;
trace(number);
firework = 0;
this.shot = 0;
}
onClipEvent (enterFrame) {
if ((_root.obj.count == this.number) & (this.shot == 0)) {
this.shootRandomFirework();
this.shot = 1;
}
if ((this.shot == 1) & (this.frames < 130)) {
this.frames++;
}
if (this.frames >= 130) {
this.gotoAndStop("gone");
this.frames = 0;
this.shot = 0;
this.number = _root.obj.nextavailable;
_root.obj.nextavailable++;
}
}
Instance of Symbol 97 MovieClip "fireworksshow" in Symbol 100 MovieClip Frame 4
onClipEvent (load) {
function shootRandomFirework() {
firework = _root.obj.randomizer[Math.floor(Math.random() * _root.obj.randomizer.length)];
trace(firework);
this.gotoAndPlay(firework);
}
this.frames = 0;
_root.obj.num++;
this.number = _root.obj.nextavailable;
_root.obj.nextavailable++;
trace(number);
firework = 0;
this.shot = 0;
}
onClipEvent (enterFrame) {
if ((_root.obj.count == this.number) & (this.shot == 0)) {
this.shootRandomFirework();
this.shot = 1;
}
if ((this.shot == 1) & (this.frames < 130)) {
this.frames++;
}
if (this.frames >= 130) {
this.gotoAndStop("gone");
this.frames = 0;
this.shot = 0;
this.number = _root.obj.nextavailable;
_root.obj.nextavailable++;
}
}
Instance of Symbol 97 MovieClip "fireworksshow" in Symbol 100 MovieClip Frame 4
onClipEvent (load) {
function shootRandomFirework() {
firework = _root.obj.randomizer[Math.floor(Math.random() * _root.obj.randomizer.length)];
trace(firework);
this.gotoAndPlay(firework);
}
this.frames = 0;
_root.obj.num++;
this.number = _root.obj.nextavailable;
_root.obj.nextavailable++;
trace(number);
firework = 0;
this.shot = 0;
}
onClipEvent (enterFrame) {
if ((_root.obj.count == this.number) & (this.shot == 0)) {
this.shootRandomFirework();
this.shot = 1;
}
if ((this.shot == 1) & (this.frames < 130)) {
this.frames++;
}
if (this.frames >= 130) {
this.gotoAndStop("gone");
this.frames = 0;
this.shot = 0;
this.number = _root.obj.nextavailable;
_root.obj.nextavailable++;
}
}
Instance of Symbol 97 MovieClip "fireworksshow" in Symbol 100 MovieClip Frame 4
onClipEvent (load) {
function shootRandomFirework() {
firework = _root.obj.randomizer[Math.floor(Math.random() * _root.obj.randomizer.length)];
trace(firework);
this.gotoAndPlay(firework);
}
this.frames = 0;
_root.obj.num++;
this.number = _root.obj.nextavailable;
_root.obj.nextavailable++;
trace(number);
firework = 0;
this.shot = 0;
}
onClipEvent (enterFrame) {
if ((_root.obj.count == this.number) & (this.shot == 0)) {
this.shootRandomFirework();
this.shot = 1;
}
if ((this.shot == 1) & (this.frames < 130)) {
this.frames++;
}
if (this.frames >= 130) {
this.gotoAndStop("gone");
this.frames = 0;
this.shot = 0;
this.number = _root.obj.nextavailable;
_root.obj.nextavailable++;
}
}
Instance of Symbol 97 MovieClip "fireworksshow" in Symbol 100 MovieClip Frame 4
onClipEvent (load) {
function shootRandomFirework() {
firework = _root.obj.randomizer[Math.floor(Math.random() * _root.obj.randomizer.length)];
trace(firework);
this.gotoAndPlay(firework);
}
this.frames = 0;
_root.obj.num++;
this.number = _root.obj.nextavailable;
_root.obj.nextavailable++;
trace(number);
firework = 0;
this.shot = 0;
}
onClipEvent (enterFrame) {
if ((_root.obj.count == this.number) & (this.shot == 0)) {
this.shootRandomFirework();
this.shot = 1;
}
if ((this.shot == 1) & (this.frames < 130)) {
this.frames++;
}
if (this.frames >= 130) {
this.gotoAndStop("gone");
this.frames = 0;
this.shot = 0;
this.number = _root.obj.nextavailable;
_root.obj.nextavailable++;
}
}
Instance of Symbol 97 MovieClip "fireworksshow" in Symbol 100 MovieClip Frame 4
onClipEvent (load) {
function shootRandomFirework() {
firework = _root.obj.randomizer[Math.floor(Math.random() * _root.obj.randomizer.length)];
trace(firework);
this.gotoAndPlay(firework);
}
this.frames = 0;
_root.obj.num++;
this.number = _root.obj.nextavailable;
_root.obj.nextavailable++;
trace(number);
firework = 0;
this.shot = 0;
}
onClipEvent (enterFrame) {
if ((_root.obj.count == this.number) & (this.shot == 0)) {
this.shootRandomFirework();
this.shot = 1;
}
if ((this.shot == 1) & (this.frames < 130)) {
this.frames++;
}
if (this.frames >= 130) {
this.gotoAndStop("gone");
this.frames = 0;
this.shot = 0;
this.number = _root.obj.nextavailable;
_root.obj.nextavailable++;
}
}
Instance of Symbol 97 MovieClip "fireworksshow" in Symbol 100 MovieClip Frame 4
onClipEvent (load) {
function shootRandomFirework() {
firework = _root.obj.randomizer[Math.floor(Math.random() * _root.obj.randomizer.length)];
trace(firework);
this.gotoAndPlay(firework);
}
this.frames = 0;
_root.obj.num++;
this.number = _root.obj.nextavailable;
_root.obj.nextavailable++;
trace(number);
firework = 0;
this.shot = 0;
}
onClipEvent (enterFrame) {
if ((_root.obj.count == this.number) & (this.shot == 0)) {
this.shootRandomFirework();
this.shot = 1;
}
if ((this.shot == 1) & (this.frames < 130)) {
this.frames++;
}
if (this.frames >= 130) {
this.gotoAndStop("gone");
this.frames = 0;
this.shot = 0;
this.number = _root.obj.nextavailable;
_root.obj.nextavailable++;
}
}
Instance of Symbol 97 MovieClip "fireworksshow" in Symbol 100 MovieClip Frame 4
onClipEvent (load) {
function shootRandomFirework() {
firework = _root.obj.randomizer[Math.floor(Math.random() * _root.obj.randomizer.length)];
trace(firework);
this.gotoAndPlay(firework);
}
this.frames = 0;
_root.obj.num++;
this.number = _root.obj.nextavailable;
_root.obj.nextavailable++;
trace(number);
firework = 0;
this.shot = 0;
}
onClipEvent (enterFrame) {
if ((_root.obj.count == this.number) & (this.shot == 0)) {
this.shootRandomFirework();
this.shot = 1;
}
if ((this.shot == 1) & (this.frames < 130)) {
this.frames++;
}
if (this.frames >= 130) {
this.gotoAndStop("gone");
this.frames = 0;
this.shot = 0;
this.number = _root.obj.nextavailable;
_root.obj.nextavailable++;
}
}
Symbol 100 MovieClip Frame 5
count = 0;
num = 0;
nextavailable = 1;
n = 0;
fireworksarray = new Array(1, 1, 1, 1, 1);
typearray = new Array("amaaxla", "stevena", "nitwitt1", "nitwitt2", "pmd");
firework = 0;
randomizer = new Array();
i = 0;
while (i < 5) {
if (fireworksarray[i] == 1) {
n++;
randomizer.push(typearray[i]);
}
i++;
}
stop();
Symbol 100 MovieClip Frame 6
function addSparkle(where, x, y) {
var _local2 = where.getNextHighestDepth();
var _local1 = where.attachMovie("fw_sparkle", "fw_sparkle" + _local2, _local2);
_local1._x = (x ? (x) : 0);
_local1._y = (y ? (y) : 0);
_local1.tA = Math.random() * 360;
_local1.tS = (Math.random() * 16) + 8;
_local1.gS = 0;
_local1.decayrate = Math.random() * 3;
_local1.countdown = 50;
_local1.onEnterFrame = goSparkle;
return(_local1);
}
function goSparkle() {
this._x = this._x + (Math.cos((this.tA * Math.PI) / 180) * this.tS);
this._y = this._y + (Math.sin((this.tA * Math.PI) / 180) * this.tS);
this._y = this._y + this.gS;
if (this.tS >= 1) {
this.tS = this.tS * 0.8;
}
this.gS = this.gS + 0.1;
if (this._y > 300) {
this.removeMovieClip();
}
if (this._y <= -150) {
this.removeMovieClip();
}
this.countdown--;
if (this.countdown <= 0) {
this.removeMovieClip();
}
this._alpha = this._alpha - this.decayrate;
this.decayrate = this.decayrate + 0.15;
if (this._alpha <= 5) {
this.removeMovieClip();
}
}
function setOffFirework(x, y) {
var _local6 = Math.floor(Math.random() * fw_colors.length);
var _local5 = Math.floor(Math.random() * fw_colors.length);
var _local2 = 0;
while (_local2 < 40) {
var _local4 = addSparkle(this.D_fw_space, x, y);
var _local3 = new Color(_local4);
_local3.setRGB(fw_colors[((_local2 % 2) ? (_local6) : (_local5))]);
_local2++;
}
}
function fireRocket() {
var _local3 = this.D_fw_space.getNextHighestDepth();
var _local2 = this.D_fw_space.attachMovie("fw_rocket", "fw_rocket" + _local3, _local3);
_local2.xv = (Math.random() * 10) - 5;
_local2.yv = -5 - (Math.random() * 5);
_local2._x = (Math.random() * 400) + 75;
_local2._y = 285;
_local2.D_fw_space = this.D_fw_space;
_local2.explode = setOffFirework;
}
function fireRocket2() {
var _local3 = this.D_fw_space.getNextHighestDepth();
var _local2 = this.D_fw_space.attachMovie("fw_rocket", "fw_rocket" + _local3, _local3);
_local2.xv = (Math.random() * 10) - 5;
_local2.yv = -5 - (Math.random() * 5);
_local2._x = (Math.random() * 300) + 125;
_local2._y = 285;
_local2.D_fw_space = this.D_fw_space;
_local2.explode = explode;
}
function explode(x, y) {
var _local7 = this.D_fw_space.getNextHighestDepth();
exp = this.D_fw_space.createEmptyMovieClip("explosion" + _local7, _local7);
exp._x = x;
exp._y = y;
exp.speed = 25;
exp.color = Math.floor(Math.random() * fw_colors.length);
exp.countdown = 30;
exp.gravity = 1;
exp.paths = new Array();
exp.prevPt = new Array();
var _local2 = 0;
while (_local2 < 30) {
exp.paths[_local2] = {x:Math.random() - 0.5, y:Math.random() - 0.5};
exp.prevPt[_local2] = {x:0, y:0};
_local2++;
}
_local2 = 31;
while (_local2 < 70) {
var _local3 = (Math.random() / 3) + 0.5;
var _local4 = (Math.random() * Math.PI) * 2;
exp.paths[_local2] = {x:Math.cos(_local4) * _local3, y:Math.sin(_local4) * _local3};
exp.prevPt[_local2] = {x:0, y:0};
_local2++;
}
exp.go = explodeGo;
exp.onEnterFrame = function () {
this.go();
};
_local7 = this.D_fw_space.getNextHighestDepth();
exp.bmp_mc = this.D_fw_space.createEmptyMovieClip("bmp_mc" + _local7, _local7);
exp.bmp_mc._x = x - 100;
exp.bmp_mc._y = y - 100;
exp.bmp = new flash.display.BitmapData(200, 300, true, 0);
exp.bmp_mc.attachBitmap(exp.bmp, 0);
blur = new flash.filters.BlurFilter();
blur.blurX = 4;
blur.blurY = 4;
blur.quality = 1;
var _local8 = new Array(blur);
exp.bmp_mc.filters = _local8;
}
function explodeGo() {
mat = new flash.geom.Matrix(1, 0, 0, 1, 100, 100);
this.bmp.draw(this, mat);
this.bmp.merge(new flash.display.BitmapData(200, 300, true, 0), new flash.geom.Rectangle(0, 0, 200, 300), new flash.geom.Point(0, 0), 20, 20, 20, 20);
this.countdown--;
if (this.countdown <= 0) {
if (this.countdown <= -15) {
this.go = undefined;
this.bmp_mc.removeMovieClip();
this.removeMovieClip();
}
return(undefined);
}
this.clear();
var _local2 = 0;
while (_local2 < 70) {
nX = this.prevPt[_local2].x + (this.paths[_local2].x * this.speed);
nY = (this.prevPt[_local2].y + (this.paths[_local2].y * this.speed)) + this.gravity;
this.lineStyle(2, fw_colors[this.color], (this.countdown * 3) - 10);
this.moveTo(this.prevPt[_local2].x, this.prevPt[_local2].y);
this.lineTo(nX, nY);
this.prevPt[_local2].x = nX;
this.prevPt[_local2].y = nY;
_local2++;
}
this.speed = this.speed * 0.8;
}
fw_colors = [5564273, 5201900, 8524465, 16191761, 16316568, 9041386];
stop();
Instance of Symbol 13 MovieClip [amaaxla] in Symbol 100 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
middle = 300;
}