Frame 1
function resizeFunc() {
if ((Stage.height >= 480) && (Stage.width >= 640)) {
if (_root._xscale == 100) {
_root._xscale = (_root._yscale = 200);
_root._x = -160;
_root._y = -120;
}
} else if (_root._xscale == 200) {
_root._xscale = (_root._yscale = 100);
_root._x = (_root._y = 0);
}
}
function showLogo() {
_root.attachMovie("logo", "logo", getNextHighestDepth());
logo._x = 160;
logo._y = 30;
logo_Color = new Color(logo);
lc_val = 255;
}
function logoLoop() {
lc_val = lc_val - 4;
var _local1 = lc_val;
if (_local1 <= 0) {
ecx = 0;
}
logo_Color.setTransform({ra:100, rb:_local1, ga:100, gb:_local1, ba:100, bb:_local1, aa:100, ab:0});
}
function zoomText() {
sc = sc + 5;
var _local2 = false;
for (var _local3 in textchars) {
var _local1 = sc - textchars[_local3].begintime;
if (_local1 < 0) {
_local1 = 0;
}
if (_local1 < 100) {
_local2 = true;
}
if (_local1 > 100) {
_local1 = 100;
}
textchars[_local3]._x = int(160 + ((textchars[_local3].x * _local1) / 100));
textchars[_local3]._y = int(120 + ((textchars[_local3].y * _local1) / 100));
textchars[_local3]._xscale = _local1;
textchars[_local3]._yscale = _local1;
}
if (!_local2) {
sc = 100;
ecx = 0;
}
}
function unzoomText() {
sc = sc - 5;
for (var _local1 in textchars) {
if (sc <= 0) {
ecx = 0;
}
textchars[_local1]._x = 160 + ((textchars[_local1].x * sc) / 100);
textchars[_local1]._y = 120 + ((textchars[_local1].y * sc) / 100);
textchars[_local1]._xscale = sc;
textchars[_local1]._yscale = sc;
}
}
function showCircles() {
_quality = "LOW";
_root.createEmptyMovieClip("circles", _root.getNextHighestDepth());
circles.attachMovie("rect", "bgrect", circles.getNextHighestDepth(), {_x:0, _y:0, _width:320, _height:240});
new Color(circles.bgrect).setRGB(0);
circles.nslices = 20;
circles._x = 0;
circles._y = -240;
circles._width = 320;
circles._height = 240;
circles.vy = 7;
var _local3 = 0;
while (_local3 < circles.nslices) {
var _local2 = circles.attachMovie("circlesclip", "slice" + _local3, circles.getNextHighestDepth(), {_x:0, _y:0});
_local2.mask._height = 240 / circles.nslices;
_local2.mask._x = 0;
_local2.mask._width = 320;
_local2.mask._y = _local3 * _local2.mask._height;
_local2.circle0._xscale = 250;
_local2.circle1._xscale = 250;
_local2.circle0._yscale = 250;
_local2.circle1._yscale = 250;
_local2.circle0._x = 44;
_local2.circle0._y = 100;
_local3++;
}
}
function transitionToCircles() {
circles._y = circles._y + circles.vy;
circles.vy = circles.vy + 0.3;
if (circles._y > 0) {
circles.vy = circles.vy * -0.4;
circles._y = 0;
if (Math.abs(circles.vy) < 1) {
ecx = 0;
circles.vy = 0;
for (var _local1 in textchars) {
textchars[_local1].removeMovieClip();
}
logo.removeMovieClip();
}
}
}
function fadeOut() {
if (fadeval == undefined) {
fadeval = 100;
}
fadeval = fadeval - 5;
if (fadeval <= 0) {
fadeval = 0;
ecx = 0;
}
rootfade.setTransform({ra:fadeval, ga:fadeval, ba:fadeval, rb:0, gb:0, bb:0, aa:100, ab:0});
}
function fadeIn() {
if (fadeval == undefined) {
fadeval = 0;
}
fadeval = fadeval + 5;
if (fadeval >= 100) {
fadeval = 100;
ecx = 0;
}
rootfade.setTransform({ra:fadeval, ga:fadeval, ba:fadeval, rb:0, gb:0, bb:0, aa:100, ab:0});
}
function curtainIn() {
fadeval = fadeval + 10;
if (fadeval >= 100) {
fadeval = 100;
}
rootfade.setTransform({ra:fadeval, ga:fadeval, ba:fadeval, rb:0, gb:0, bb:0, aa:100, ab:0});
if (fadeval == 100) {
curtainval = curtainval + 0.5;
if (curtainval >= 100) {
curtainval = 100;
ecx = 0;
}
}
mastermask._y = 120 - ((120 * curtainval) / 100);
mastermask._yscale = curtainval;
}
function curtainOut() {
curtainval = curtainval - 0.5;
if (curtainval <= 0) {
curtainval = 0;
ecx = 0;
}
mastermask._y = 120 - ((120 * curtainval) / 100);
mastermask._yscale = curtainval;
}
function showGradients() {
circles.removeMovieClip();
_root.createEmptyMovieClip("gradients", _root.getNextHighestDepth());
gradients.attachMovie("rect", "bgrect", circles.getNextHighestDepth(), {_x:0, _y:0, _width:320, _height:240});
new Color(gradients.bgrect).setRGB(0);
gradients._x = (gradients._y = 0);
gradients._width = 320;
gradients._height = 240;
gradients.attachMovie("gradients", "layer0", gradients.getNextHighestDepth(), {_x:0, _y:0});
gradients.attachMovie("gradients", "layer1", gradients.getNextHighestDepth(), {_x:0, _y:0});
new Color(gradients.layer0).setTransform({ra:100, rb:-65, ga:100, gb:-82, ba:100, bb:0, aa:100, ab:0});
new Color(gradients.layer1).setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:180, ab:-80});
}
function showStarRings() {
gradients.removeMovieClip();
_root.createEmptyMovieClip("starrings", _root.getNextHighestDepth());
with (starrings) {
attachMovie("rect", "bgrect", getNextHighestDepth(), {_x:0, _y:0, _width:320, _height:240});
new Color(bgrect).setRGB(0);
_x = (_y = 0);
_width = 320;
_height = 240;
}
}
function showTunnel() {
starrings.removeMovieClip();
_root.createEmptyMovieClip("tunnel", _root.getNextHighestDepth());
with (tunnel) {
attachMovie("rect", "bgrect", getNextHighestDepth(), {_x:0, _y:0, _width:320, _height:240});
new Color(bgrect).setRGB(4473941);
_x = (_y = 0);
_width = 320;
_height = 240;
}
tunnel.col = 1;
tunnel.rot = 0;
tunnel.ready = 0;
}
function showLorenz() {
_quality = "LOW";
fadeval = 0;
rootfade.setTransform({ra:fadeval, ga:fadeval, ba:fadeval, rb:0, gb:0, bb:0, aa:100, ab:0});
curtainval = 100;
mastermask._y = 120 - ((120 * curtainval) / 100);
mastermask._yscale = curtainval;
tunnel.removeMovieClip();
_root.createEmptyMovieClip("lorenz", _root.getNextHighestDepth());
with (lorenz) {
attachMovie("rect", "bgrect", getNextHighestDepth(), {_x:0, _y:0, _width:320, _height:240});
new Color(bgrect).setRGB(0);
_x = (_y = 0);
_width = 320;
_height = 240;
}
lorenz.particles = [];
lorenz.colors = [];
var i = 0;
while (i < 60) {
lorenz.particles[i] = lorenz.attachMovie("particle1", "particle" + i, lorenz.getNextHighestDepth(), {x:(10 * Math.random()) - 5, y:(10 * Math.random()) - 5, z:(10 * Math.random()) - 5});
lorenz.colors[i] = new Color(lorenz.particles[i]);
i++;
}
sineprint("HI IT'S ME AGAIN WELL THERE'S NO WAY THAT FLASH COULD HANDLE 2500 3D VERTICES SO THIS IS THE END OF THIS THING GREETS TO ALTERNATIVE FOR CHEERING ME ON END OF TEXT");
}
function s(t) {
acc = 0;
oct = 2;
while (oct < 16) {
acc = acc + (Math.sin((oct / 2) + (oct * t)) / oct);
oct = oct * 2;
}
return(1.33 * acc);
}
function charmap(chrn) {
if (chrn == 33) {
return(26);
}
if (chrn == 35) {
return(38);
}
if (chrn == 36) {
return(39);
}
if (chrn == 37) {
return(38);
}
if (chrn == 39) {
return(37);
}
if ((chrn < 58) && (chrn > 47)) {
return((chrn - 48) + 27);
}
return(chrn - 65);
}
function fancycolor(phi) {
var x = (phi - Math.floor(phi));
var _local2 = fancycolors[Math.floor(phi) % fancycolors.length];
var _local4 = (_local2 & 16711680) >> 16;
var _local5 = (_local2 & 65280) >> 8;
var _local3 = (_local2 & 255) >> 0;
var _local1;
if (x < 0.25) {
_local1 = function (c) {
return((c * x) / 0.25);
};
} else if (x < 0.5) {
_local1 = function (c) {
return((((255 - c) * (x - 0.25)) / 0.25) + c);
};
} else if (x < 0.75) {
_local1 = function (c) {
return((((c - 255) * (x - 0.5)) / 0.25) + 255);
};
} else {
_local1 = function (c) {
return(c - ((c * (x - 0.75)) / 0.25));
};
}
_local4 = _local1(_local4);
_local5 = _local1(_local5);
_local3 = _local1(_local3);
_local2 = ((_local4 << 16) | (_local5 << 8)) | _local3;
return(_local2);
}
function fancyprint(txt, style) {
px = 24;
py = 78;
sc = 1;
for (var _local7 in textchars) {
textchars[_local7].removeMovieClip();
}
textchars = [];
var _local4 = 0;
while (_local4 < txt.length) {
var _local3 = 0;
while (_local3 < txt[_local4].length) {
if (txt[_local4].charAt(_local3) != " ") {
var _local2 = _root.attachMovie("fancytext", (("fancy" + _local4) + "-") + _local3, getNextHighestDepth());
textchars.push(_local2);
_local2._x = px;
_local2._y = py;
_local2.x = px - 160;
_local2.y = py - 120;
_local2._xscale = 0;
_local2._yscale = 0;
_local2.outline._x = _local2.outline._x - (16 * charmap(txt[_local4].charCodeAt(_local3)));
_local2.fill._x = _local2.fill._x - (16 * charmap(txt[_local4].charCodeAt(_local3)));
_local2.clr = new Color(_local2.fill);
_local2.row = _local4;
if (style == 0) {
_local2.begintime = 0;
}
if (style == 1) {
_local2.begintime = 20 * Math.abs(8 - _local3);
}
if (style == 2) {
_local2.begintime = 20 * (4 - Math.abs(4 - _local4));
}
if (style == 3) {
_local2.begintime = 20 * (8 - Math.abs(8 - _local3));
}
_local2.outline._alpha = 90;
}
px = px + 16;
_local3++;
}
px = 24;
py = py + 17;
_local4++;
}
}
function sineprint(txt) {
var _local5 = 120;
var _local6 = 320;
sinchars = [];
var _local3 = 0;
while (_local3 < txt.length) {
if (txt.charAt(_local3) != " ") {
var _local2 = _root.attachMovie("fancytext", "sintxt" + _local3, getNextHighestDepth());
_local2.outline._x = _local2.outline._x - (16 * charmap(txt.charCodeAt(_local3)));
_local2.fill._x = _local2.fill._x - (16 * charmap(txt.charCodeAt(_local3)));
_local2.clr = new Color(_local2.fill);
_local2.row = 0;
_local2.outline._alpha = 90;
_local2.begintime = 0;
_local2._x = _local6;
_local2._y = _local5;
sinchars.push(_local2);
}
_local6 = _local6 + 16;
_local5 = _local5 + (10 * Math.sin(_local3 / 4));
_local3++;
}
}
TARGETFPS = 50;
n = 12;
bars = Array();
textchars = Array();
stop();
Stage.scaleMode = "noscale";
Stage.addListener({onResize:resizeFunc});
_quality = "LOW";
_root.createEmptyMovieClip("mastermask", getNextHighestDepth());
mastermask.beginFill(16711935, 100);
mastermask.moveTo(0, 0);
mastermask.lineTo(320, 0);
mastermask.lineTo(320, 240);
mastermask.lineTo(0, 240);
mastermask.lineTo(0, 0);
mastermask.endFill();
_root.setMask(mastermask);
rootfade = new Color(_root);
curtainval = 20;
eip = 0;
ecx = 0;
timeline = [{delay:7400}, {run:showLogo}, {loop:logoLoop, times:64}, {fancyprint:["#################", "# #", "# IS #", "# PROUD #", "# TO #", "# PRESENT #", "# YOU #", "# #", "#################", 0]}, {loop:zoomText, times:5000}, {delay:2000}, {loop:unzoomText, times:5000}, {fancyprint:["%%%%%%%%%%%%%%%%%", "% %", "% A SLOPPY %", "% REMAKE OF %", "% RAZOR 1911 %", "% 'WE WERE' %", "% IN FLASH %", "% %", "%%%%%%%%%%%%%%%%%", 2]}, {loop:zoomText, times:5000}, {delay:1800}, {loop:unzoomText, times:5000}, {fancyprint:["$$$$$$$$$$$$$$$$$", "$ $", "$ CALLED $", "$ $ I WAS $ $", "$ A MORON $", "$$$$$$$$$$$$$$$$$", "$ DONE ENTIRELY $", "$IN ACTIONSCRIPT$", "$$$$$$$$$$$$$$$$$", 3]}, {loop:zoomText, times:5000}, {delay:2200}, {loop:unzoomText, times:5000}, {fancyprint:["#################", "# #", "# NOW IT'S #", "# TIME FOR #", "# THE NEXT #", "# EFFECTS! #", "# #", "# #", "#################", 1]}, {loop:zoomText, times:5000}, {delay:1400}, {run:showCircles}, {loop:transitionToCircles, times:5000}, {delay:6000}, {run:function () {
circlewarp = 1;
}}, {delay:4000}, {run:function () {
circlewarp = 0;
}}, {delay:2000}, {loop:fadeOut}, {run:showGradients}, {loop:fadeIn}, {delay:12200}, {loop:fadeOut}, {run:showStarRings}, {loop:fadeIn}, {delay:8000}, {loop:fadeOut}, {run:showTunnel}, {loop:curtainIn}, {delay:3000}, {run:function () {
tunnel.rot = 1;
}}, {delay:2500}, {loop:curtainOut}, {run:showLorenz}, {loop:fadeIn}];
i = 0;
while (i < n) {
var bar = ((bars[i] = _root.attachMovie("roundbar", "bar" + i, getNextHighestDepth())));
var c = new Color(bar);
var fn = function (t) {
if (t > 1) {
t = t - 1;
}
if (t < 0) {
t = t + 1;
}
var _local2 = 2.7 * (0.333333333333333 - t);
return(Math.exp((-_local2) * _local2));
};
var t = ((1 * i) / n);
var r = int(100 * fn(t + 0.333333333333333));
var g = int(100 * fn(t));
var b = int(100 * fn(t - 0.333333333333333));
c.setTransform({ra:r, rb:0, ga:g, gb:0, ba:b, bb:0, aa:100, ab:0});
bar._x = 160;
bar._y = i * 8;
i++;
}
f = 0;
fancycolors = [14262082, 11595640, 11562697, 16743103, 4641160, 6723281];
starttime = getTimer() - 1;
_root.onEnterFrame = function () {
do {
time = getTimer() - starttime;
if ((!(((gradients || (circles)) || (starrings)) || (tunnel))) || (circles._y < 0)) {
i = 0;
while (i < n) {
_root["bar" + i]._y = 120 + (119 * s((f / 80) - (i / 18)));
if (time < 2000) {
_root["bar" + i]._y = (260 * (1 - (time / 2000))) + ((_root["bar" + i]._y * time) / 2000);
}
i++;
}
}
if (circles) {
for (var _local28 in circles) {
if (_local28 == "bgrect") {
continue;
}
var _local11 = circles[_local28].circle0;
var _local8 = circles[_local28].circle1;
if (_local11) {
_local8._x = 160 + (60 * Math.cos((time / 190) + 0.6));
_local8._y = 120 + (40 * Math.sin((time / 190) + 0.3));
_local11._x = _local8._x + ((60 * Math.sin((4 * time) / 800)) * Math.cos(time / 800));
_local11._y = _local8._y + ((40 * Math.sin((4 * time) / 800)) * Math.sin(time / 800));
}
if (circlewarp) {
var _local13 = 0.5 + (0.5 * Math.sin((circles[_local28].mask._y / 80) + (time / 400)));
circles[_local28]._xscale = 100 + (50 * _local13);
circles[_local28]._x = ((-circles[_local28].mask._width) * _local13) / 4;
} else {
circles[_local28]._xscale = 100;
circles[_local28]._x = 0;
}
}
}
if (gradients) {
for (var _local30 in {layer0:1, layer1:1}) {
gradients[_local30].target._xscale = (gradients[_local30].target._yscale = 110 + (10 * Math.sin(time / 260)));
gradients[_local30].target._x = 160 + (10 * Math.cos(time / 310));
gradients[_local30].target._y = 120 + (20 * Math.sin(time / 310));
gradients[_local30].stripes._rotation = gradients[_local30].stripes._rotation + 2;
gradients[_local30].stripes._xscale = 600;
gradients[_local30].stripes._y = 120 + (20 * Math.sin(time / 160));
gradients[_local30].stripes._yscale = 100 + (40 * Math.sin(time / 590));
}
}
if (starrings) {
if ((f % 5) == 0) {
var _local3 = starrings.createEmptyMovieClip("st" + f, starrings.getNextHighestDepth());
_local3.lineStyle(0.5, 16777215, 100);
var _local6 = 0;
while (_local6 < 17) {
var _local15 = 100 * Math.cos((6.283 * _local6) / 17);
var _local14 = 100 * Math.sin((6.283 * _local6) / 17);
_local3.moveTo(_local15, _local14);
_local3.lineTo(_local15 * 0.98, _local14 * 0.98);
_local6++;
}
_local3._xscale = (_local3._yscale = 30);
_local3._alpha = 50;
_local3.z = 50;
_local3.x = 30 * Math.cos(time / 450);
_local3.y = 30 * Math.sin(time / 450);
}
for (var _local29 in starrings) {
if (_local29 == "bgrect") {
continue;
}
starrings[_local29]._alpha = (1000 / starrings[_local29].z) + 30;
starrings[_local29].z = starrings[_local29].z - 0.37;
starrings[_local29]._xscale = 1000 / starrings[_local29].z;
starrings[_local29]._yscale = 1000 / starrings[_local29].z;
starrings[_local29]._x = 160 + ((starrings[_local29].x * starrings[_local29].z) / 10);
starrings[_local29]._y = 120 + ((starrings[_local29].y * starrings[_local29].z) / 10);
starrings[_local29]._rotation = time / 40;
if (starrings[_local29].z < 1) {
starrings[_local29].removeMovieClip();
}
}
}
if (tunnel) {
_quality = "MEDIUM";
do {
if ((f % 15) == 0) {
tunnel.col = 1;
var _local3 = tunnel.createEmptyMovieClip("st" + f, tunnel.getNextHighestDepth());
_local3.beginFill((tunnel.col ? 16777215 : 4473941), 100);
_local3.lineStyle(1, 8947882, 100);
_local3.moveTo(-100, -100);
_local3.lineTo(100, -100);
_local3.lineTo(100, 100);
_local3.lineTo(-100, 100);
_local3.lineTo(-100, -100);
_local3.endFill();
_local3.z = 38.725;
_local3._xscale = (_local3._yscale = 30);
_local3.x = 0;
_local3.y = 0;
tunnel.col = 0;
st2 = tunnel.createEmptyMovieClip("st2x" + f, tunnel.getNextHighestDepth());
st2.beginFill((tunnel.col ? 16777215 : 4473941), 100);
st2.lineStyle(1, 8947882, 100);
st2.moveTo(-100, -100);
st2.lineTo(100, -100);
st2.lineTo(100, 100);
st2.lineTo(-100, 100);
st2.lineTo(-100, -100);
st2.endFill();
st2._xscale = (st2._yscale = 30);
_local3._alpha = 100;
st2.z = 40;
_local3.rot = (st2.rot = (tunnel.rot ? (time / 140) : 0));
}
for (var _local29 in tunnel) {
if (_local29 == "bgrect") {
continue;
}
tunnel[_local29].z = tunnel[_local29].z - 0.17;
tunnel[_local29]._xscale = 1000 / tunnel[_local29].z;
tunnel[_local29]._yscale = 1000 / tunnel[_local29].z;
tunnel[_local29]._x = 160;
tunnel[_local29]._y = 120;
tunnel[_local29]._rotation = tunnel[_local29].rot + (time / 40);
if (tunnel[_local29].z < 1.5) {
tunnel.ready = 1;
tunnel[_local29].removeMovieClip();
}
}
if (tunnel.ready == 0) {
f++;
}
} while (tunnel.ready == 0);
}
if (lorenz) {
var _local7 = 0;
while (_local7 < 60) {
var _local2 = lorenz.particles[_local7];
var _local10 = _local2.x;
var _local9 = _local2.y;
var _local12 = _local2.z;
_local2.x = _local2.x + (0.01 * (10 * (_local9 - _local10)));
_local2.y = _local2.y + (0.01 * ((_local10 * (28 - _local12)) - _local9));
_local2.z = _local2.z + (0.01 * ((_local10 * _local9) - (2.666 * _local12)));
_local2._x = 160 + (_local2.x * 4);
_local2._y = 120 + (_local2.y * 4);
_local2._alpha = 10 + _local2.z;
var _local5 = (_local2.x * _local2.x) + (_local2.y * _local2.y);
if (_local5 > 255) {
_local5 = 255;
}
lorenz.colors[_local7].setTransform({ra:100, rb:(-_local5) / 4, ga:100, gb:_local5 / 4, ba:100, bb:_local5, aa:100, ab:0});
_local7++;
}
}
for (var _local29 in sinchars) {
if ((sinchars[_local29]._x > 322) || (sinchars[_local29]._x < -16)) {
sinchars[_local29]._visible = false;
} else {
sinchars[_local29]._visible = true;
}
sinchars[_local29]._x = sinchars[_local29]._x - 2;
sinchars[_local29]._y = 120 + (16 * Math.sin((time / 400) + (sinchars[_local29]._x / 17)));
}
var _local4 = timeline[eip];
if (_local4.delay && (ecx == 0)) {
trace("Initializing delay timer");
ecx = time;
} else if (_local4.delay && ((time - ecx) > _local4.delay)) {
trace("Delay finished");
ecx = 0;
eip++;
} else if (_local4.run) {
trace("Run function");
_local4.run();
eip++;
} else if (_local4.loop) {
if (!_local4.times) {
_local4.times = 500000 /* 0x07A120 */;
}
if (ecx == 0) {
trace("Start loop");
ecx = _local4.times;
}
if (ecx > 0) {
ecx--;
_local4.loop();
}
if (ecx == 0) {
trace("End loop");
eip++;
}
} else if (_local4.fancyprint) {
trace("Printing");
var _local27 = _local4.fancyprint.slice(-1);
var _local26 = _local4.fancyprint.slice(0, -1);
fancyprint(_local26, _local27[0]);
eip++;
} else if (_local4.goto) {
eip = _local4.goto;
}
f++;
} while (f < (time * 0.05));
};
_root.onEnterFrame();
Symbol 17 MovieClip [fancytext] Frame 1
this.onEnterFrame = function () {
if (!this._visible) {
return(undefined);
}
var _local3 = function (t) {
while (t > 1) {
t = t - 1;
}
while (t < 0) {
t = t + 1;
}
var _local2 = 6.7 * (0.333333333333333 - t);
return(Math.exp((-_local2) * _local2));
};
var _local5 = int((100 * _local3(((this.row / 18) + 0.333333333333333) + this.param)) + (60 * _local3(((this.row / 18) - 0.333333333333333) + this.param)));
var _local7 = int(90 * _local3(((this.row / 18) + 0.333333333333333) + this.param));
var _local4 = int(((100 * _local3(((this.row / 18) + 0.5) + this.param)) + (100 * _local3(((this.row / 18) + 0.666666666666667) + this.param))) + (40 * _local3(((this.row / 18) + 0.333333333333333) + this.param)));
if (_local5 > 100) {
_local5 = 100;
}
if (_local4 > 100) {
_local4 = 100;
}
this.clr.setRGB(_root.fancycolor((this.row / 18) + (_root.time / 2000)));
};