Symbol 6 MovieClip Frame 2
stop();
Symbol 6 MovieClip Frame 3
init();
Symbol 6 MovieClip Frame 4
doeffect();
Symbol 6 MovieClip Frame 5
gotoAndPlay (4);
Symbol 10 MovieClip Frame 2
stop();
Symbol 10 MovieClip Frame 3
init();
Symbol 10 MovieClip Frame 4
doeffect();
Symbol 10 MovieClip Frame 5
gotoAndPlay (4);
Symbol 14 MovieClip Frame 2
stop();
Symbol 14 MovieClip Frame 3
init();
Symbol 14 MovieClip Frame 4
doeffect();
Symbol 14 MovieClip Frame 5
gotoAndPlay (4);
Symbol 18 MovieClip Frame 2
stop();
Symbol 18 MovieClip Frame 3
init();
Symbol 18 MovieClip Frame 4
doeffect();
Symbol 18 MovieClip Frame 5
gotoAndPlay (4);
Symbol 22 MovieClip Frame 2
stop();
Symbol 22 MovieClip Frame 3
init();
Symbol 22 MovieClip Frame 4
doeffect();
Symbol 22 MovieClip Frame 5
gotoAndPlay (4);
Symbol 26 MovieClip Frame 2
stop();
Symbol 26 MovieClip Frame 3
init();
Symbol 26 MovieClip Frame 4
doeffect();
Symbol 26 MovieClip Frame 5
gotoAndPlay (4);
Symbol 30 MovieClip Frame 2
stop();
Symbol 30 MovieClip Frame 3
init();
Symbol 30 MovieClip Frame 4
doeffect();
Symbol 30 MovieClip Frame 5
gotoAndPlay (4);
Symbol 34 MovieClip Frame 2
stop();
Symbol 34 MovieClip Frame 3
init();
Symbol 34 MovieClip Frame 4
doeffect();
Symbol 34 MovieClip Frame 5
gotoAndPlay (4);
Symbol 38 MovieClip Frame 2
stop();
Symbol 38 MovieClip Frame 3
init();
Symbol 38 MovieClip Frame 4
doeffect();
Symbol 38 MovieClip Frame 5
gotoAndPlay (4);
Symbol 42 MovieClip Frame 2
stop();
Symbol 42 MovieClip Frame 3
init();
Symbol 42 MovieClip Frame 4
doeffect();
Symbol 42 MovieClip Frame 5
gotoAndPlay (4);
Symbol 46 MovieClip Frame 2
stop();
Symbol 46 MovieClip Frame 3
init();
Symbol 46 MovieClip Frame 4
doeffect();
Symbol 46 MovieClip Frame 5
gotoAndPlay (4);
Symbol 50 MovieClip Frame 2
stop();
Symbol 50 MovieClip Frame 3
init();
Symbol 50 MovieClip Frame 4
doeffect();
Symbol 50 MovieClip Frame 5
gotoAndPlay (4);
Symbol 54 MovieClip Frame 2
stop();
Symbol 54 MovieClip Frame 3
init();
Symbol 54 MovieClip Frame 4
doeffect();
Symbol 54 MovieClip Frame 5
gotoAndPlay (4);
Symbol 58 MovieClip Frame 2
stop();
Symbol 58 MovieClip Frame 3
init();
Symbol 58 MovieClip Frame 4
doeffect();
Symbol 58 MovieClip Frame 5
gotoAndPlay (4);
Symbol 59 MovieClip Frame 1
function letterinit() {
this._visible = true;
this.speed = this._parent.speed;
this._xscale = this._parent.scale;
this._yscale = this._parent.scale;
this._alpha = this._parent.alpha;
this.alphaspeed = this._parent.alphaspeed;
}
function effect() {
this._xscale = this._xscale - this.speed;
this._yscale = this._yscale - this.speed;
this._alpha = this._alpha + this.alphaspeed;
if (100 >= this._xscale) {
this._xscale = 100;
this._yscale = 100;
this._alpha = 100;
this.gotoandstop("end");
}
}
function shuffle() {
return(math.floor(math.random() * 3) - 1);
}
numchar = 14;
speed = 1000;
random = 0;
reverse = 0;
alpha = 0;
delay = 0;
loop = 0;
loopdelay = 0;
waitcharend = 0;
scale = 3000;
mcn = "letter";
alphaspeed = math.floor((100 - alpha) / ((scale - 100) / speed));
aletters = new array();
i = 0;
while (i < numchar) {
aletters[i + 0] = i;
var letter = this[mcn + i];
letter._visible = false;
letter.init = letterinit;
letter.doeffect = effect;
letter.number = i;
i++;
}
if (random == 1) {
aletters.sort(shuffle);
}
if (reverse == 1) {
aletters.reverse();
}
Symbol 59 MovieClip Frame 2
i = 0;
now = getTimer();
loopnow = 0;
Symbol 59 MovieClip Frame 3
this[mcn + aletters[i]].gotoandplay(3);
now = getTimer();
i = i + 1;
if (i == numchar) {
gotoAndStop (7);
}
Symbol 59 MovieClip Frame 5
if (waitcharend == 1) {
if ((this[mcn + aletters[i - 1]]._currentframe == this[mcn + aletters[i - 1]]._totalframes) and ((now + delay) < getTimer())) {
gotoAndPlay(this._currentframe - 2);
}
gotoAndPlay(this._currentframe - 1);
}
if ((now + delay) < getTimer()) {
gotoAndPlay(this._currentframe - 2);
}
gotoAndPlay(this._currentframe - 1);
Symbol 59 MovieClip Frame 7
if (loop == 1) {
if (loopnow != 1) {
if (this[mcn + aletters[numchar - 1]]._currentframe == this[mcn + aletters[numchar - 1]]._totalframes) {
loopnow = 1;
now = getTimer();
}
}
if ((getTimer() >= (now + loopdelay)) and (loopnow == 1)) {
gotoAndPlay (2);
} else {
prevFrame();
play();
}
} else {
stop();
}
Symbol 100 MovieClip Frame 1
function $av(mc) {
mc._visible = 1 < mc._alpha;
}
function $ord(o) {
if ((o != $pr_ord) or (13 < o)) {
$pr_ord = o;
$ta = new array();
var $i = 0;
while ($i < $sub_cnt) {
mc = $smc[$i];
$ta[$i] = {$i:$i};
$ta[$i].s = 20000000 + ((o >= 2) ? (((o >= 4) ? (((o >= 6) ? (((o >= 8) ? (((o >= 10) ? (mc.__x - mc.__y) : (mc.__x + mc.__y))) : (mc.__y))) : (mc.__x))) : ((mc.__x * mc.__x) + (mc.__y * mc.__y)))) : (mc._i));
$ta[$i].s = ((o >= 12) ? (((o >= 14) ? (math.random()) : ((7.85340023040771 + math.atan2(mc.__y, mc.__x)) % 6.28319978713989))) : ($ta[$i].s));
$i++;
}
$ta.sorton("s");
if (o % 2) {
$ta.reverse();
}
var $i = 0;
while ($i < $sub_cnt) {
$ta[$i] = $smc[$ta[$i].$i];
$i++;
}
$smc = $ta;
}
}
$padding = 8;
high_flames = 0;
calm_fire = 0;
out_effect = 0;
lastsubframe = 10;
sub_delay = 0;
sub_order = 14;
loop_delay = -1;
main_init = function (mc) {
box = function (mc, tl_x, tl_y, br_x, br_y) {
mc.linestyle();
mc.beginfill(0);
mc.moveto(tl_x, tl_y);
mc.lineto(br_x, tl_y);
mc.lineto(br_x, br_y);
mc.lineto(tl_x, br_y);
mc.endfill();
};
flame = function (mc, tl_x, tl_y, br_x, br_y) {
var mx = ((tl_x + br_x) / 2);
var my = ((tl_y + br_y) / 2);
var cx = ((br_x - tl_x) * 0.0219999998807907);
var cy = ((br_y - tl_y) * 0.0219999998807907);
mc.linestyle();
var colors = [16752384, 16764672, 16777119, 16764768];
var alphas = [100, 100, 100, 0];
var ratios = [0, 32, 102, 255];
var matrix = {matrixtype:"box", r:0};
matrix.x = tl_x;
matrix.y = tl_y;
matrix.w = (br_x - tl_x) * 0.899999976158142;
matrix.h = (br_y - tl_y) * 1.5;
mc.begingradientfill("radial", colors, alphas, ratios, matrix);
mc.moveto(mx, tl_y);
mc.curveto(br_x - cx, tl_y + cy, br_x, my);
mc.curveto(br_x - cx, br_y - cy, mx, br_y);
mc.curveto(tl_x + cx, br_y - cy, tl_x, my);
mc.curveto(tl_x + cx, tl_y + cy, mx, tl_y);
mc.endfill();
};
createemptymovieclip("fire", 6);
};
main_effect = function (mc, frame) {
if (subs_done) {
fire.removemovieclip();
end_effect = true;
}
};
sub_init = function (mc) {
w = mc._width - $padding;
h = mc._height - $padding;
b = mc.getbounds(mc);
mc._parent.createemptymovieclip("m" + mc._i, (mc._i * 10) + 6);
msk = mc._parent["m" + mc._i];
mc.setmask(msk);
box(msk, b.xmin, b.ymin, b.xmax, b.ymax);
msk._x = mc._x;
msk._y = mc._y + ((!out_effect) ? (mc._height) : 0);
fire.createemptymovieclip("f" + mc._i, mc._i);
f = fire["f" + mc._i];
flame(f, -w, (-h) * ((!high_flames) ? 2 : 4), w, 0);
f.__x = mc._x;
f.__y = mc._y + (h / 2);
f._yscale = 0;
};
sub_effect = function (mc, frame) {
perc = frame / lastsubframe;
msk = mc._parent["m" + mc._i];
msk._y = mc._y + (mc._height * ((!out_effect) ? (1 - perc) : (perc)));
f = fire["f" + mc._i];
if ((!calm_fire) or (frame % 2)) {
f._x = f.__x + (math.random() * 2);
f._y = f.__y + (math.random() * 2);
f._xscale = (95 + (math.random() * 10)) * math.min(1, perc * 8);
f._yscale = 85 + (math.random() * 30);
f._rotation = (math.random() * 5) - 2.5;
}
f._alpha = (80 + (math.random() * 10)) * math.min(1, (1 - perc) * 8);
if (frame == lastsubframe) {
if (out_effect) {
mc._alpha = 0;
}
msk.removemovieclip();
mc.done = true;
}
};
for ($i in this) {
if (typeof(this[$i]) == "movieclip") {
$mmc = this[$i];
}
}
$mmc.swapdepths(5);
$smc = new array();
for ($i in $mmc) {
if (typeof($mmc[$i]) == "movieclip") {
$smc.push($mmc[$i]);
}
}
$smc.reverse();
$sub_cnt = $smc.length;
glow_factor = ((glow_factor >= 0.100000001490116) ? (((0.899999976158142 >= glow_factor) ? (glow_factor) : 0.5)) : 0.5);
$i = 0;
while (360 >= $i) {
this["deg" + $i] = ($i * math.pi) / 180;
$i = $i + 15;
}
$mmc.__x = $mmc._x;
$mmc.__y = $mmc._y;
main_init($mmc);
$av($mmc);
$buf = new array();
$i = 0;
while ($i < $sub_cnt) {
mc = $smc[$i];
mc._i = $i;
mc.done = (mc.$gd = 0);
mc.__x = mc._x;
mc.__y = mc._y;
mc.swapdepths(($i * 10) + 5);
sub_init(mc);
$av(mc);
if ((0 < glow_delay) and (1 < mc._alpha)) {
mc.duplicatemovieclip("$gm" + $i, $i * 10);
$mmc["$gm" + $i]._alpha = $mmc["$gm" + $i]._alpha * glow_factor;
}
$i++;
}
$ord(sub_order);
frame = 0;
$loop_tm = loop_delay;
onenterframe = function () {
if (end_effect) {
if (loop_delay < 0) {
onenterframe = null;
onend();
} else if (0 < $loop_tm) {
$loop_tm--;
} else {
$mmc._x = $mmc.__x;
$mmc._y = $mmc.__y;
$mmc._xscale = ($mmc._yscale = ($mmc._alpha = 100));
$mmc._rotation = (subs_done = (end_effect = 0));
main_init($mmc);
$av($mmc);
$i = 0;
while ($i < $sub_cnt) {
mc = $smc[$i];
$j = mc._i;
mc._x = mc.__x;
mc._y = mc.__y;
mc._xscale = (mc._yscale = (mc._alpha = 100));
mc._rotation = (mc.done = (mc.$gd = 0));
sub_init(mc);
$av(mc);
if (0 < glow_delay) {
if (1 < mc._alpha) {
mc.duplicatemovieclip("$gm" + $j, $j * 10);
$mmc["$gm" + $j]._alpha = $mmc["$gm" + $j]._alpha * glow_factor;
} else {
$mmc["$gm" + $j].removemovieclip();
}
}
$i++;
}
$ord(sub_order);
frame = 0;
$loop_tm = loop_delay;
onloop();
}
} else {
frame++;
if (!subs_done) {
$done_cnt = 0;
$buf_idx = (frame % glow_delay) * $sub_cnt;
$i = 0;
while ($i < $sub_cnt) {
mc = $smc[$i];
$j = mc._i;
if (mc.done) {
if ((0 < glow_delay) and (mc.$gd < glow_delay)) {
mc.$gd++;
if ((mc.$gd == glow_delay) and (mc._alpha >= 99)) {
$mmc["$gm" + $j].removemovieclip();
} else {
mc.duplicatemovieclip("$gm" + $j, $j * 10, $buf[$buf_idx]);
$av($mmc["$gm" + $j]);
}
} else {
$done_cnt++;
}
} else {
$sub_fr = frame - ($i * sub_delay);
if (0 < $sub_fr) {
sub_effect(mc, $sub_fr);
$av(mc);
if (0 < glow_delay) {
if (0 < ($sub_fr - glow_delay)) {
mc.duplicatemovieclip("$gm" + $j, $j * 10, $buf[$buf_idx]);
$av($mmc["$gm" + $j]);
}
$buf[$buf_idx] = {_x:mc._x, _y:mc._y, _xscale:mc._xscale, _yscale:mc._yscale, _rotation:mc._rotation, _alpha:mc._alpha * glow_factor};
}
}
}
$buf_idx++;
$i++;
}
if ($sub_cnt == $done_cnt) {
subs_done = true;
}
}
main_effect($mmc, frame);
$av($mmc);
}
};
Symbol 106 Button
on (press) {
getURL ("http://www.combatgrounds.com/index.php?refer=9", "_blank");
}