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);
}
button 4 {
on (release) {
gotoAndPlay(2220);
}
}
movieClip 8 {
frame 1 {
function camControl() {
rp.x = _x;
rp.y = _y;
var v5 = camH * (_yscale * 0.01);
var v6 = camW * (_xscale * 0.01);
var v3 = sH / v5;
var v4 = sW / v6;
_x2 = (v6 / 2) * v4;
_y2 = (v5 / 2) * v3;
_xscale2 = v4 * 100;
_yscale2 = v3 * 100;
_rotation2 = -_rotation;
_parent.filters = this.filters;
_parent.transform.colorTransform = this.transform.colorTransform;
}
function reset() {
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
_parent._rotation = 0;
_parent._visible = true;
}
function set_x2(value) {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._x += value - v2.x;
}
function get_x2() {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
return v2.x;
}
function set_y2(value) {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._y += value - v2.y;
}
function get_y2() {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
return v2.y;
}
function get_xscale2() {
return _parent._xscale;
}
function set_xscale2(value) {
setProperty2('_xscale', value);
}
function get_yscale2() {
return _parent._yscale;
}
function set_yscale2(value) {
setProperty2('_yscale', value);
}
function get_rotation2() {
return parent.rotation;
}
function set_rotation2(value) {
setProperty2('_rotation', value);
}
function setProperty2(prop, n) {
var v3 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v3);
_parent[prop] = n;
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._x -= v2.x - v3.x;
_parent._y -= v2.y - v3.y;
}
_visible = true;
addProperty('_x2', get_x2, set_x2);
addProperty('_y2', get_y2, set_y2);
addProperty('_xscale2', get_xscale2, set_xscale2);
addProperty('_yscale2', get_yscale2, set_yscale2);
addProperty('_rotation2', get_rotation2, set_rotation2);
var oldScaleMode = stage.scaleMode;
stage.scaleMode = 'exactFit';
var sW = Stage.width;
var sH = Stage.height;
stage.scaleMode = oldScaleMode;
var bounds_obj = this.getBounds(this);
var camH = Math.abs(bounds_obj.yMax - bounds_obj.yMin);
var camW = Math.abs(bounds_obj.xMax - bounds_obj.xMin);
var rp = {'x': this._x, 'y': this._y};
onEnterFrame = function () {
camControl();
};
this.onUnload = reset;
}
}
movieClip 27 {
}
movieClip 30 {
}
movieClip 39 {
}
movieClip 52 {
frame 1 {
_root.stop();
}
frame 174 {
_root.play();
}
}
movieClip 81 {
}
movieClip 108 {
}
// unknown tag 88 length 75
movieClip 199 {
}
movieClip 221 {
}
movieClip 223 {
}
movieClip 225 {
}
movieClip 227 {
}
movieClip 229 {
}
movieClip 232 {
}
movieClip 236 {
}
movieClip 265 {
}
movieClip 268 {
}
movieClip 319 {
}
movieClip 331 {
}
movieClip 335 {
}
movieClip 376 {
}
movieClip 580 {
}
movieClip 599 {
}
movieClip 656 {
}
movieClip 756 {
}
movieClip 877 {
}
movieClip 989 {
}
movieClip 993 {
}
movieClip 1004 {
}
movieClip 1030 {
}
movieClip 1178 {
}
movieClip 1354 {
}
movieClip 1427 {
}
movieClip 1439 {
}
movieClip 1522 {
}
movieClip 1525 {
}
movieClip 1537 {
}