Frame 1
if ((_framesloaded >= _totalframes) && (_framesloaded != 0)) {
gotoAndPlay ("ready");
}
loadbar_mc._visible = false;
Frame 2
var current = this.getBytesLoaded();
var total = this.getBytesTotal();
var percent = Math.round((current / total) * 100);
if ((current > 4096) && (current >= total)) {
loadbar_mc.gotoAndStop(100);
gotoAndPlay ("ready");
} else {
loadbar_mc.gotoAndStop(percent);
}
Frame 4
loadbar_mc._visible = true;
gotoAndPlay ("loadloop");
Frame 12
function ShowMenu() {
ElfMenu_mc = this.attachMovie("MenuArray", "MenuArray_mc", 1);
ElfMenu_mc._x = 280;
ElfMenu_mc._y = 200;
}
function HideMenu() {
if (_root.ElfMenu_mc != undefined) {
_root.ElfMenu_mc.removeMovieClip();
}
bIsMenuActive = false;
}
bIsMenuActive = false;
var params = new Object();
params.parameterType = "Color-Scale";
params.shiftVelocity = 10;
params.newValue = 200;
params.mathematicEquationX = "easeOutCirc";
params.mathematicEquationY = "easeOutCirc";
params.mathematicEquationColor = "easeOutBounce";
params.colorOffset_red = 255;
params.colorOffset_green = 180;
params.colorOffset_blue = 64;
var initObj = new Object();
initObj.params = params;
this.purpleStar_mc.attachMovie("AnimationBlackBox", "Animator", 23, initObj);
this.EarthButton_mc.onRelease = function () {
_parent.mainPic_mc.Animator.StartShift();
};
this.EarthButton_mc.onRollOver = function () {
if (_root.bIsMenuActive == false) {
this.gotoAndPlay("over");
mainPic_mc.gotoAndStop("green");
}
};
this.BackButton_mc.useHandCursor = false;
this.BackButton_mc.onRollOver = function () {
if (_root.bIsMenuActive == true) {
_root.EarthButton_mc.gotoAndPlay("down");
mainPic_mc.gotoAndStop("base");
_root.HideMenu();
}
};
stop();
Symbol 1 MovieClip [AnimationBlackBox] Frame 1
#initclip 1
if (_global.com == undefined) {
_global.com = new Object();
}
if (_global.com.elftrance == undefined) {
_global.com.elftrance = new Object();
}
Math.linearTween = function (t, b, c, d) {
return(((c * t) / d) + b);
};
Math.easeInQuad = function (t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
};
Math.easeOutQuad = function (t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
};
Math.easeInOutQuad = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
};
Math.easeInCubic = function (t, b, c, d) {
t = t / d;
return((((c * t) * t) * t) + b);
};
Math.easeOutCubic = function (t, b, c, d) {
t = (t / d) - 1;
return((c * (((t * t) * t) + 1)) + b);
};
Math.easeInOutCubic = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((c / 2) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((t * t) * t) + 2)) + b);
};
Math.easeInQuart = function (t, b, c, d) {
t = t / d;
return(((((c * t) * t) * t) * t) + b);
};
Math.easeOutQuart = function (t, b, c, d) {
t = (t / d) - 1;
return(((-c) * ((((t * t) * t) * t) - 1)) + b);
};
Math.easeInOutQuart = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((((c / 2) * t) * t) * t) * t) + b);
}
t = t - 2;
return((((-c) / 2) * ((((t * t) * t) * t) - 2)) + b);
};
Math.easeInQuint = function (t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
};
Math.easeOutQuint = function (t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
};
Math.easeInOutQuint = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
};
Math.easeInSine = function (t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
};
Math.easeOutSine = function (t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
};
Math.easeInOutSine = function (t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
};
Math.easeInExpo = function (t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
};
Math.easeOutExpo = function (t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
};
Math.easeInOutExpo = function (t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b);
}
t--;
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 2)) + b);
};
Math.easeInCirc = function (t, b, c, d) {
t = t / d;
return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b);
};
Math.easeOutCirc = function (t, b, c, d) {
t = (t / d) - 1;
return((c * Math.sqrt(1 - (t * t))) + b);
};
Math.easeInOutCirc = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
t = t - 2;
return(((c / 2) * (Math.sqrt(1 - (t * t)) + 1)) + b);
};
Math.easeInElastic = function (t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if (a < Math.abs(c)) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
};
Math.easeOutElastic = function (t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if (a < Math.abs(c)) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
};
Math.easeInOutElastic = function (t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if (a < Math.abs(c)) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
};
Math.easeInBack = function (t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
};
Math.easeOutBack = function (t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
};
Math.easeInOutBack = function (t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
};
Math.easeInBounce = function (t, b, c, d) {
return((c - Math.easeOutBounce(d - t, 0, c, d)) + b);
};
Math.easeOutBounce = function (t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
};
Math.easeInOutBounce = function (t, b, c, d) {
if (t < (d / 2)) {
return((Math.easeInBounce(t * 2, 0, c, d) * 0.5) + b);
}
return(((Math.easeOutBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
};
_global.com.elftrance.ParameterShifter = function () {
this.parameterType = this.params.parameterType;
this.shiftVelocity = this.params.shiftVelocity;
this.mathematicEquationX = this.params.mathematicEquationX;
this.mathematicEquationY = this.params.mathematicEquationY;
this.mathematicEquationColor = this.params.mathematicEquationColor;
this.newValue = this.params.newValue;
this.ColorData = new Object();
this.ColorData.originalEndRed = this.params.colorOffset_red;
this.ColorData.originalEndGreen = this.params.colorOffset_green;
this.ColorData.originalEndBlue = this.params.colorOffset_blue;
this.originalStartValue = new Object();
this.originalEndValue = new Object();
this.startValue = new Object();
this.deltaValue = new Object();
this.parameterStatus = "Dormant";
this.counter = 0;
this.tempPoint = new Object();
this.InitParams();
delete this.params;
};
_global.com.elftrance.ParameterShifter.prototype = new MovieClip();
Object.registerClass("AnimationBlackBox", com.elftrance.ParameterShifter);
_global.com.elftrance.ParameterShifter.prototype.StartShift = function () {
if (this.parameterStatus == "Dormant") {
this.InitParams();
} else if (this.parameterStatus == "Shifting") {
return(undefined);
}
this.parameterStatus = "Shifting";
this.SetParams();
this.counter = 0;
this.onEnterFrame = this.AnimationControl;
};
_global.com.elftrance.ParameterShifter.prototype.ReturnShift = function () {
if (this.parameterStatus == "Returning") {
return(undefined);
}
this.parameterStatus = "Returning";
this.SetParams();
this.counter = 0;
this.onEnterFrame = this.AnimationControl;
};
_global.com.elftrance.ParameterShifter.prototype.InitParams = function () {
if ((this.parameterType == "Scale") || (this.parameterType == "Color-Scale")) {
this.originalStartValue.x = this._parent._xscale;
this.originalStartValue.y = this._parent._yscale;
this.originalEndValue.x = (this.newValue / 100) * this._parent._xscale;
this.originalEndValue.y = (this.newValue / 100) * this._parent._yscale;
}
if ((this.parameterType == "Color") || (this.parameterType == "Color-Scale")) {
if (this.ColorData.colorObject == undefined) {
this.ColorData.colorObject = new Color(this._parent);
}
var _local2 = this.ColorData.colorObject.getTransform();
this.ColorData.originalStartRed = _local2.rb;
this.ColorData.originalStartGreen = _local2.gb;
this.ColorData.originalStartBlue = _local2.bb;
}
};
_global.com.elftrance.ParameterShifter.prototype.SetParams = function () {
if ((this.parameterType == "Scale") || (this.parameterType == "Color-Scale")) {
this.startValue.x = this._parent._xscale;
this.startValue.y = this._parent._yscale;
if (this.parameterStatus == "Shifting") {
this.deltaValue.x = this.originalEndValue.x - this.startValue.x;
this.deltaValue.y = this.originalEndValue.y - this.startValue.y;
} else if (this.parameterStatus == "Returning") {
this.deltaValue.x = this.originalStartValue.x - this.startValue.x;
this.deltaValue.y = this.originalStartValue.y - this.startValue.y;
}
}
if ((this.parameterType == "Color") || (this.parameterType == "Color-Scale")) {
var _local2 = this.ColorData.colorObject.getTransform();
this.startValue.red = _local2.rb;
this.startValue.green = _local2.gb;
this.startValue.blue = _local2.bb;
if (this.parameterStatus == "Shifting") {
this.deltaValue.red = this.ColorData.originalEndRed - this.startValue.red;
this.deltaValue.green = this.ColorData.originalEndGreen - this.startValue.green;
this.deltaValue.blue = this.ColorData.originalEndBlue - this.startValue.blue;
} else if (this.parameterStatus == "Returning") {
this.deltaValue.red = this.ColorData.originalStartRed - this.startValue.red;
this.deltaValue.green = this.ColorData.originalStartGreen - this.startValue.green;
this.deltaValue.blue = this.ColorData.originalStartBlue - this.startValue.blue;
}
}
};
_global.com.elftrance.ParameterShifter.prototype.AnimationControl = function () {
this.counter++;
if (this.counter > this.shiftVelocity) {
if (this.parameterStatus == "Returning") {
this._parent._xscale = this.originalStartValue.x;
this._parent._yscale = this.originalStartValue.y;
}
this.counter = 0;
this.onEnterFrame = null;
this.parameterStatus = "Dormant";
return(undefined);
}
if ((this.parameterType == "Scale") || (this.parameterType == "Color-Scale")) {
this.tempPoint.x = Math[this.mathematicEquationX](this.counter, this.startValue.x, this.deltaValue.x, this.shiftVelocity);
this.tempPoint.y = Math[this.mathematicEquationY](this.counter, this.startValue.y, this.deltaValue.y, this.shiftVelocity);
this._parent._xscale = this.tempPoint.x;
this._parent._yscale = this.tempPoint.y;
}
if ((this.parameterType == "Color") || (this.parameterType == "Color-Scale")) {
var _local2 = this.ColorData.colorObject.getTransform();
_local2.rb = Math[this.mathematicEquationColor](this.counter, this.startValue.red, this.deltaValue.red, this.shiftVelocity);
_local2.gb = Math[this.mathematicEquationColor](this.counter, this.startValue.green, this.deltaValue.green, this.shiftVelocity);
_local2.bb = Math[this.mathematicEquationColor](this.counter, this.startValue.blue, this.deltaValue.blue, this.shiftVelocity);
this.ColorData.colorObject.setTransform(_local2);
}
};
#endinitclip
Symbol 9 MovieClip Frame 13
stop();
Symbol 12 MovieClip Frame 1
stop();
Symbol 12 MovieClip Frame 6
stop();
Symbol 16 MovieClip Frame 1
stop();
Symbol 16 MovieClip Frame 6
stop();
Symbol 17 MovieClip [MenuArray] Frame 1
function ButtonActivation(pButton) {
pButton.gotoAndPlay("over");
_parent.Matrix_mc.gotoAndPlay("active");
}
function ButtonDeactivation(pButton) {
pButton.gotoAndPlay("up");
}
function ButtonLinker(pButton, myURL) {
getURL (myURL, "_self");
}
this.IntroButton_mc.onRollOver = function () {
ButtonActivation(this);
};
this.IntroButton_mc.onRollOut = function () {
ButtonDeactivation(this);
};
this.IntroButton_mc.onRelease = function () {
ButtonLinker(this, "http://www.elftrance.com/Html/ElfIntro.html");
};
this.MonkeyWorldButton_mc.onRollOver = function () {
ButtonActivation(this);
};
this.MonkeyWorldButton_mc.onRollOut = function () {
ButtonDeactivation(this);
};
this.MonkeyWorldButton_mc.onRelease = function () {
ButtonLinker(this, "http://www.elftrance.com/Html/ElfInterface.html");
};
this.NeoButton_mc.onRollOver = function () {
ButtonActivation(this);
};
this.NeoButton_mc.onRollOut = function () {
ButtonDeactivation(this);
};
this.NeoButton_mc.onRelease = function () {
ButtonLinker(this, "http://www.elftrance.com/neo.htm");
};
this.DataPagesButton_mc.onRollOver = function () {
ButtonActivation(this);
};
this.DataPagesButton_mc.onRollOut = function () {
ButtonDeactivation(this);
};
this.DataPagesButton_mc.onRelease = function () {
ButtonLinker(this, "http://www.elftrance.com/main.htm");
};
Symbol 33 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 7
stop();
Symbol 48 Button
on (rollOver) {
purpleStar_mc.Animator.StartShift();
}
on (rollOut) {
purpleStar_mc.Animator.ReturnShift();
}
Symbol 64 Button
on (release) {
getURL ("http://www.lightshipearth.com", "_self");
}
Symbol 69 Button
on (release) {
getURL ("mailto:elfmaster@elftrance.com", "_blank");
}
Symbol 74 MovieClip Frame 16
_parent.DoneFlash(myNum);
stop();
Symbol 75 MovieClip Frame 1
function FlasherLoad() {
maxMotes = 5;
flashProb = 200;
clipCount = 0;
clipPos = 0;
}
function FlasherEnterFrame() {
var flashme = (Math.random() * 1000);
if (flashme < flashProb) {
if (clipCount >= maxMotes) {
return(undefined);
}
clipCount++;
duplicateMovieClip (flashy, "flashy" + clipPos, clipPos);
var newClip = eval ("flashy" + clipPos);
newClip.myNum = clipPos;
var variantPos = ((Math.random() * 20) - 10);
newClip._x = newClip._x + variantPos;
variantPos = (Math.random() * 20) - 10;
newClip._y = newClip._y + variantPos;
var variantSize = ((Math.random() * 40) + 80);
newClip._xscale = variantSize;
newClip._yscale = variantSize;
clipPos++;
if (clipPos >= maxMotes) {
clipPos = 0;
}
}
}
function DoneFlash(position) {
var doneClip = eval ("flashy" + position);
removeMovieClip(doneClip);
clipCount--;
}
Symbol 76 MovieClip Frame 1
stop();
Instance of Symbol 75 MovieClip "star1" in Symbol 76 MovieClip Frame 1
onClipEvent (load) {
maxMotes = 5;
flashProb = 150;
clipCount = 0;
clipPos = 0;
foo2 = 900;
}
onClipEvent (enterFrame) {
FlasherEnterFrame();
}
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 20
gotoAndStop ("dormant");
Symbol 102 MovieClip Frame 1
thing01.onEnterFrame = function () {
this._rotation = this._rotation + 0.5;
};
thing02.onEnterFrame = function () {
this._rotation = this._rotation - 0.2;
};
thing03.onEnterFrame = function () {
this._rotation = this._rotation - 0.8;
};
Symbol 105 MovieClip Frame 15
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 6
_parent.bIsMenuActive = true;
play();
Symbol 110 MovieClip Frame 16
centerSpin_mc.onEnterFrame = function () {
this._rotation = this._rotation + 1;
};
centerSpin02_mc.onEnterFrame = function () {
this._rotation = this._rotation - 0.55;
};
_parent.ShowMenu();
Symbol 110 MovieClip Frame 21
stop();
Symbol 110 MovieClip Frame 24
gotoAndStop ("up");