Combined Code
frame 1 {
function setTextFormat(textObject) {
var v1 = new TextFormat();
v1.size = 100;
v1.letterSpacing = 15;
v1.font = 'Arial Narrow';
v1.color = 16777215;
v1.align = 'right';
textObject.setTextFormat(v1);
}
function setTextFormat2(textObject) {
var v1 = new TextFormat();
v1.size = 18;
v1.letterSpacing = 3;
v1.font = 'Segoe UI Light';
v1.color = 16777215;
v1.align = 'right';
textObject.setTextFormat(v1);
}
function assignMasks() {
ploader.infoText.setMask(ploader.iTM);
ploader.tcont.setMask(ploader.tmask);
ploader.lines.setMask(ploader.linesMask);
}
function easeInQuad(t, b, c, d) {
t /= d;
return c * t * t + b;
}
function preload() {
var v3 = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
ploader.tcont.T.text = v3;
setTextFormat(ploader.tcont.T);
if (v3 == 100) {
var startPos = ploader.infoText._y;
var timeCount = 0;
ploader.infoText.onEnterFrame = function () {
this._y = easeInQuad(timeCount++, startPos, -55, 10);
if (timeCount >= 10) {
delete this.onEnterFrame;
isLoaded = true;
this.iT.text = 'Click anywhere to play!';
setTextFormat2(this.iT);
this._y = 120;
this.onEnterFrame = function () {
this._y = 93 - (93 - this._y) / 1.1;
if (this._y == 93) {
delete this.onEnterFrame;
}
};
}
};
clearInterval(Int);
}
}
function onMouseDown() {
if (isLoaded) {
_root.play();
loadMovie('', bgGrad);
loadMovie('', lines);
loadMovie('', linesMask);
loadMovie('', tcont);
loadMovie('', tmask);
loadMovie('', infoText);
loadMovie('', iT);
loadMovie('', iTM);
loadMovie('', ploader);
loadMovie('', pre_bgmc);
delete preload;
delete easeInQuad;
delete setTextFormat;
delete setTextFormat2;
delete blurData;
delete isLoaded;
delete Int;
delete onMouseDown;
}
}
stop();
blurData = new flash.display.BitmapData(Stage.width + 20, Stage.height + 20);
blurData.draw(_root, new flash.geom.Matrix(1, 0, 0, 1, 10, 10));
this.createEmptyMovieClip('pre_bgmc', this.getNextHighestDepth());
pre_bgmc._x = -10;
pre_bgmc._y = -10;
pre_bgmc.attachBitmap(blurData, 1);
pre_bgmc.filters = [new flash.filters.BlurFilter(10, 10, 2)];
this.createEmptyMovieClip('ploader', this.getNextHighestDepth());
ploader._x = 0;
ploader._y = Stage.height - 150;
ploader.createEmptyMovieClip('bgGrad', ploader.getNextHighestDepth());
ploader.bgGrad.cacheAsBitmap = true;
ploader.bgGrad._x = -ploader._x;
ploader.bgGrad._y = Stage.height - ploader._y;
with (ploader.bgGrad) {
fillType = 'linear';
colors = [6710886, 0];
alphas = [0, 75];
ratios = [0, 255];
matrix = {'matrixType': 'box', 'x': 0, 'y': -200, 'w': 200, 'h': 200, 'r': 1.570796326794897};
lineStyle(1, 0, 0);
beginGradientFill(fillType, colors, alphas, ratios, matrix);
moveTo(0, 0);
lineTo(Stage.width, 0);
lineTo(Stage.width, -200);
lineTo(0, -200);
lineTo(0, 0);
endFill();
}
ploader.createEmptyMovieClip('lines', ploader.getNextHighestDepth());
ploader.lines.cacheAsBitmap = true;
ploader.lines._x = Stage.width;
ploader.lines._y = 80;
ploader.lines.lineStyle(1, 16777215);
var i = 0;
while (i < 75) {
ploader.lines.moveTo(i * -5, 0);
ploader.lines.lineTo(i * -5 + 50, 50);
++i;
}
ploader.createEmptyMovieClip('linesMask', ploader.getNextHighestDepth());
ploader.linesMask.cacheAsBitmap = true;
with (ploader.linesMask) {
fillType = 'linear';
colors = [0, 0];
alphas = [0, 80];
ratios = [0, 255];
matrix = {'matrixType': 'box', 'x': Stage.width - 325, 'y': 0, 'w': 200, 'h': 15, 'r': 0};
lineStyle(1, 0, 0);
beginGradientFill(fillType, colors, alphas, ratios, matrix);
moveTo(0, 80);
lineTo(Stage.width, 80);
lineTo(Stage.width, 90);
lineTo(0, 90);
lineTo(0, 80);
endFill();
alphas = [0, 25];
lineStyle(1, 0, 0);
beginGradientFill(fillType, colors, alphas, ratios, matrix);
moveTo(0, 90);
lineTo(Stage.width, 90);
lineTo(Stage.width, 130);
lineTo(0, 130);
lineTo(0, 90);
endFill();
}
ploader.createEmptyMovieClip('tcont', ploader.getNextHighestDepth());
ploader.tcont.cacheAsBitmap = true;
ploader.tcont._x = Stage.width - 400;
var T = ploader.tcont.createTextField('T', ploader.tcount.getNextHighestDepth(), 0, 0, 400, 100);
T.text = '0';
T.selectable = false;
setTextFormat(T);
ploader.createEmptyMovieClip('tmask', ploader.getNextHighestDepth());
ploader.tmask.cacheAsBitmap = true;
ploader.tmask._x = Stage.width - 200;
with (ploader.tmask) {
fillType = 'linear';
colors = [0, 0];
alphas = [0, 50];
ratios = [0, 255];
matrix = {'matrixType': 'box', 'x': 0, 'y': 68, 'w': 200, 'h': 15, 'r': -1.570796326794897};
lineStyle(1, 0, 0);
beginGradientFill(fillType, colors, alphas, ratios, matrix);
moveTo(0, 0);
lineTo(200, 0);
lineTo(200, 80);
lineTo(0, 80);
lineTo(0, 0);
endFill();
}
ploader.createEmptyMovieClip('infoText', ploader.getNextHighestDepth());
ploader.infoText.cacheAsBitmap = true;
ploader.infoText._x = Stage.width - 415;
ploader.infoText._y = 95;
var iT = ploader.infoText.createTextField('iT', ploader.infoText.getNextHighestDepth(), 0, 0, 400, 100);
iT.text = 'Now loading...';
iT.selectable = false;
setTextFormat2(iT);
ploader.createEmptyMovieClip('iTM', ploader.getNextHighestDepth());
ploader.iTM.cacheAsBitmap = true;
ploader.iTM._x = Stage.width - 400;
ploader.iTM._y = 90;
with (ploader.iTM) {
fillType = 'linear';
colors = [0, 0, 0, 0];
alphas = [0, 100, 100, 0];
ratios = [0, 75, 185, 255];
matrix = {'matrixType': 'box', 'x': 0, 'y': 0, 'w': 200, 'h': 50, 'r': -1.570796326794897};
lineStyle(1, 0, 0);
beginGradientFill(fillType, colors, alphas, ratios, matrix);
moveTo(0, 0);
lineTo(400, 0);
lineTo(400, 50);
lineTo(0, 50);
lineTo(0, 0);
endFill();
}
assignMasks();
var isLoaded = false;
var Int = setInterval(preload, 100);
}
movieClip 3 {
}
movieClip 6 {
}
movieClip 8 {
}
movieClip 11 {
}
movieClip 13 {
}
movieClip 14 {
}
movieClip 26 {
frame 1 {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v4 = sX / this._width;
var v3 = sY / this._height;
_parent._x = cX - this._x * v4;
_parent._y = cY - this._y * v3;
_parent._xscale = 100 * v4;
_parent._yscale = 100 * v3;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
parentColor.setTransform(camColor.getTransform());
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
}
frame 4 {
gotoAndPlay(6);
}
movieClip 1144 {
}
movieClip 1147 {
}
movieClip 1151 {
}
movieClip 1154 {
}
movieClip 1156 {
}
movieClip 1157 {
}
movieClip 1162 {
}
movieClip 1164 {
}
movieClip 1169 {
}
movieClip 1171 {
}
movieClip 1173 {
}
movieClip 1693 {
}
movieClip 1699 {
}
movieClip 1704 {
}
movieClip 1706 {
}
movieClip 1709 {
}
movieClip 1711 {
}
movieClip 1713 {
}
movieClip 1799 {
}
movieClip 1802 {
}
movieClip 2048 {
}
movieClip 2091 {
}
movieClip 2094 {
}
movieClip 2448 {
}
movieClip 2662 {
}
movieClip 2773 {
}
movieClip 2775 {
}
movieClip 2887 {
}
movieClip 3123 {
}
movieClip 3157 {
}
movieClip 3163 {
}
movieClip 3169 {
}
movieClip 3172 {
}
movieClip 3335 {
}
movieClip 3339 {
}
movieClip 3598 {
}
movieClip 3602 {
}
movieClip 3605 {
}
movieClip 3606 {
}
movieClip 3691 {
}
movieClip 3694 {
}
movieClip 3698 {
}
movieClip 3703 {
}
movieClip 3706 {
}
movieClip 3710 {
}
movieClip 3716 {
}
movieClip 3719 {
}
movieClip 3729 {
}
movieClip 3736 {
}
movieClip 3741 {
}
movieClip 3747 {
}
movieClip 3751 {
}
movieClip 3757 {
}
movieClip 3761 {
}
movieClip 3765 {
}
movieClip 3778 {
}
movieClip 3782 {
}
movieClip 3794 {
}
movieClip 3800 {
}
movieClip 3803 {
}
movieClip 3816 {
}