Frame 1
function loadAll() {
ref.onEnterFrame = function () {
percloaded = Math.floor((this.getBytesLoaded() / this.getBytesTotal()) * 100);
man_load.gotoAndPlay("lookUp");
loaderMain.percNum.text = ("Loading..." + percloaded) + "%";
if (percloaded >= 100) {
nextFrame();
delete ref.onEnterFrame;
}
};
}
System.security.loadPolicyFile("https://www.bethere.co.uk/crossdomain.xml");
var conf_lv = new LoadVars();
conf_lv.onLoad = function (success) {
if (success) {
for (var _local2 in conf_lv) {
_root[_local2] = String(conf_lv[_local2]);
}
loadAll();
}
};
conf_lv.load("config.txt");
var ref = this;
stop();
Frame 2
function loadHeaven() {
ref.createEmptyMovieClip("heavenMC", 100);
mcl.loadClip(stage2Mov, heavenMC);
}
function introAnime() {
clearInterval(manBlink_intvl);
manBlink_intvl = setInterval(manBlink, 100);
caurina.transitions.Tweener.addTween(meterMC, {onStart:(meterMC._y = -300), _y:meterPosY, time:1.5, transition:"easeOutBounce"});
caurina.transitions.Tweener.addTween(meterMC.hari, {_rotation:360, time:0.5, delay:1.5, transition:"linear", onComplete:goFlash});
caurina.transitions.Tweener.addTween(manMC0, {onStart:(manMC0._x = Stage.width / 2), _x:manPosX, _y:manPosY, _bezier:{_y:manPosY - 50}, time:1, delay:0.6, transition:"easeOutQuint", onComplete:getManStart});
}
function getManStart() {
setTimeout(manWaitin, 1000);
}
function goFlash(mc) {
gs.TweenMax.to(meterMC.goBut, 0.1, {glowFilter:{color:15540879, blurX:3, blurY:3, alpha:1, strength:2}, overwrite:false});
gs.TweenMax.to(meterMC.goBut, 0.1, {glowFilter:{alpha:0}, delay:0.1, overwrite:false, onComplete:goFlash});
}
function needleCrazy() {
caurina.transitions.Tweener.addTween(meterMC.hari, {_rotation:360, time:0.5, transition:"linear", onComplete:needleCrazy});
}
function meterSwitch(oi) {
if (oi == true) {
needleCrazy();
} else if (oi == false) {
caurina.transitions.Tweener.removeTweens(meterMC.hari);
caurina.transitions.Tweener.addTween(meterMC.hari, {onStart:meterMC.hari.gotoAndStop(1), _rotation:-90, time:1, transition:"easeOutElastic"});
}
}
function getNum() {
return(Math.floor(Math.random() * 10));
}
function manBlink(num) {
var _local1 = getNum();
if (_local1 == 1) {
manMC0.headMC.gotoAndPlay("blink");
}
}
function manWaitin() {
clearInterval(manBlink_intvl);
manBlink_intvl = setInterval(manBlink, 100);
manMC0.gotoAndPlay("head");
caurina.transitions.Tweener.addTween(manMC0, {_y:manPosY, _bezier:{_y:manPosY - ((Math.random() * 50) + 75)}, time:2.5, delay:1, transition:"easeOutBounce", onComplete:manWaitin});
}
function manJump() {
curFrame = manMC0._currentframe;
manMC0.headMC.gotoAndPlay("roll");
manMC0.gotoAndPlay("jump");
rocketFire.fireMC1.attachMovie("fireMC", "fireS", 1);
rocketFire.fireMC2.attachMovie("fireMC", "fireS2", 1);
}
function manJump_back() {
manMC0.headMC.gotoAndStop("norm");
manMC0.gotoAndPlay(curFrame);
manBlink_intvl = setInterval(manBlink, 100);
removeMovieClip(rocketFire.fireMC1.fireS);
removeMovieClip(rocketFire.fireMC2.fireS2);
}
function man_sad() {
gs.TweenMax.to(rocketFire.fireMC1.fireS, 0, {_xscale:50, _yscale:50, _alpha:50, colorMatrixFilter:{colorize:3342336, amount:1}});
gs.TweenMax.to(rocketFire.fireMC2.fireS2, 0, {_xscale:50, _yscale:50, _alpha:50, colorMatrixFilter:{colorize:3342336, amount:1}});
caurina.transitions.Tweener.addTween(manMC0, {_x:manPosX + 200, _y:manPosY, _bezier:{_y:manPosY + 100}, _rotation:90, time:0.8, delay:1, transition:"easeInSine"});
caurina.transitions.Tweener.addTween(manMC0, {_bezier:{_y:-50}, _rotation:45, time:1.5, delay:1.8, transition:"easeOutSine", onComplete:man_sadJump});
manMC0.gotoAndPlay("batabata");
}
function man_sadJump() {
var _local2 = manMC0._x;
var _local1 = manMC0._y;
gs.TweenMax.to(rocketFire.fireMC1.fireS, 0.2, {_alpha:100, _yscale:80, colorMatrixFilter:{amount:0}, delay:0.8});
gs.TweenMax.to(rocketFire.fireMC2.fireS2, 0.2, {_alpha:100, _yscale:80, colorMatrixFilter:{amount:0}, delay:0.8});
caurina.transitions.Tweener.addTween(manMC0, {_x:_local2 - 150, _y:_local1 - 20, _bezier:{_y:50}, _rotation:-20, time:1, delay:0.5, transition:"easeOutBack", onComplete:man_sad_loop});
}
function man_sad_loop() {
gs.TweenMax.to(rocketFire.fireMC1.fireS, 0.2, {_xscale:100, _alpha:10, colorMatrixFilter:{colorize:3342336, amount:1, delay:2.5}});
gs.TweenMax.to(rocketFire.fireMC2.fireS2, 0.2, {_xscale:100, _alpha:10, colorMatrixFilter:{colorize:3342336, amount:1, delay:2.5}});
caurina.transitions.Tweener.addTween(manMC0, {_rotation:-500, _x:-100, _y:150, _bezier:{_y:50}, _scale:70, _bezier:stumblePos, time:2, transition:"easeOutSine"});
caurina.transitions.Tweener.addTween(manMC0, {_rotation:500, _x:800, _y:200, _scale:80, _bezier:stumblePos2, time:4, delay:4, transition:"easeOutSine"});
caurina.transitions.Tweener.addTween(manMC0, {_rotation:-500, _x:-100, _y:200, _scale:70, _bezier:stumblePos3, time:4, delay:10, transition:"easeOutSine"});
caurina.transitions.Tweener.addTween(manMC0, {_rotation:0, _bezier:stumblePos4, _x:555, _y:150, _scale:100, time:4, delay:16, transition:"easeOutSine", onComplete:man_sad_loop});
}
function man_happy() {
manMC0.swapDepths(3);
gs.TweenMax.to(rocketFire.fireMC1.fireS, 0, {_yscale:200, _xscale:50, colorMatrixFilter:{colorize:16777215, amount:1, brightness:2}});
gs.TweenMax.to(rocketFire.fireMC2.fireS2, 0, {_yscale:200, _xscale:50, colorMatrixFilter:{colorize:16777215, amount:1, brightness:2}});
caurina.transitions.Tweener.addTween(manMC0, {_y:150, _x:-300, _bezier:[{_x:1500, _y:-200}, {_x:650, _y:100}, {_x:350, _y:150}], _rotation:-90, time:3, delay:2, transition:"easeOutSine", onComplete:man_happy2});
}
function man_happy2() {
meterMC.swapDepths(10);
sign_green.swapDepths(12);
manMC0.gotoAndPlay("shake");
caurina.transitions.Tweener.addTween(manMC0, {onStart:(manMC0._rotation = 90), _y:70, _x:550, _bezier:{_x:-500, _y:50}, _rotation:75, _scale:50, time:3, delay:0.5, transition:"easeOutSine"});
caurina.transitions.Tweener.addTween(manMC0, {_x:1000, time:5, delay:4, transition:"easeOutSine", onComplete:man_happy_loop});
}
function man_happy_loop() {
manMC0.swapDepths(13);
sign_green.swapDepths(2);
manMC0.gotoAndStop(1);
caurina.transitions.Tweener.addTween(manMC0, {onStart:(manMC0._rotation = -90), _scale:100, _y:150, _x:-300, _bezier:[{_x:650, _y:100}, {_x:350, _y:150}], time:5, transition:"easeOutSine", onComplete:man_happy_loop2});
}
function man_happy_loop2() {
sign_green.swapDepths(14);
manMC0.gotoAndPlay("shake");
caurina.transitions.Tweener.addTween(manMC0, {onStart:(manMC0._rotation = 75), _scale:50, _y:70, _x:550, _bezier:[{_x:-150, _y:-50}, {_x:450, _y:100}], time:5, transition:"easeOutSine"});
caurina.transitions.Tweener.addTween(manMC0, {_scale:30, _y:20, _x:1000, time:5, delay:5.5, transition:"easeOutSine", onComplete:man_happy_loop});
}
function goOvered() {
clearInterval(manBlink_intvl);
caurina.transitions.Tweener.pauseTweens(manMC0);
manJump();
meterSwitch(true);
gs.TweenMax.to(meterMC.goBut, 0.2, {tint:15540879});
gs.TweenMax.to(meterMC.go_Txt, 0.2, {tint:16777215});
}
function goOuted() {
clearInterval(manBlink_intvl);
caurina.transitions.Tweener.resumeTweens(manMC0);
manJump_back();
meterSwitch(false);
gs.TweenMax.to(meterMC.goBut, 0.2, {tint:null});
gs.TweenMax.to(meterMC.go_Txt, 0.2, {tint:null});
goFlash();
}
function goOed() {
clearInterval(manBlink_intvl);
manMC0.headMC.gotoAndPlay("roll");
loadHeaven();
meterMC.goBut.enabled = false;
delete meterMC.goBut.onRollOver;
delete meterMC.goBut.onRollOut;
delete meterMC.goBut.onReleaseOutside;
delete meterMC.goBut.onRelease;
caurina.transitions.Tweener.addTween(manMC0, {_y:-300, time:1, delay:0.5, transition:"easeInBack"});
gs.TweenMax.to(meterMC.goBut, 1, {tint:null, delay:0.5});
caurina.transitions.Tweener.addTween(meterMC.go_Txt, {_scale:10, _autoAlpha:0, time:0.5, delay:0.5, transition:"easeInBounce"});
caurina.transitions.Tweener.addTween(meterMC.loadDispMC, {_autoAlpha:100, time:0.5, transition:"easeOutQuint", delay:1.5});
}
function lineCheck() {
meterMC.loadDispMC._visible = false;
var _local5 = timeEnd - timeStart;
var _local6 = _local5 / 1000;
var _local1 = tLoaded * 8;
var _local2 = _local1 / 1024;
var _local3 = (_local2 / _local6) * 0.93;
var _local4 = _local3 / 1024;
mbps = rounder(_local4, 2, false);
lineCheck2(mbps);
}
function rounder(input, places, currency) {
if (currency) {
return([Math.round(input * Math.pow(10, places)) / Math.pow(10, places)]);
}
return(Math.round(input * Math.pow(10, places)) / Math.pow(10, places));
}
function lineCheck2(num) {
if (num != NaN) {
lineChecked = true;
lineSpeed = num;
if (lineSpeed < 8) {
lineType = "slow";
manMC0.headMC.gotoAndPlay("sad");
} else {
lineType = "fast";
manMC0.headMC.gotoAndPlay("happy");
}
meterMC.loadDispMC._visible = false;
lineChecked_func();
caurina.transitions.Tweener.addTween(meterMC.mbPanel, {_autoAlpha:100, time:0.5, transition:"easeOutQuint", onComplete:shuffleEnd});
}
}
function lineChecked_func(lnspeed) {
if (lineChecked) {
caurina.transitions.Tweener.removeTweens(meterMC.hari);
caurina.transitions.Tweener.addTween(meterMC.hari, {_rotation:-90 + (lineSpeed * 7.5), time:1, delay:1, transition:"easeOutElastic"});
switch (lineType) {
case "slow" :
man_sad();
break;
case "fast" :
man_happy();
}
setTimeout(getSign, 6000);
}
}
function shuffleTxt_intvl() {
shuffle_intvl = setInterval(shuffleTxt, 50);
}
function shuffleTxt() {
meterMC.mbPanel.mbTxt.text = Math.floor(Math.random() * 23) + 1;
}
function shuffleEnd() {
meterMC.mbPanel.mbTxt.text = lineSpeed;
sign_green.speedTxt.text = ("Your current line speed is " + lineSpeed) + " meg.";
}
function getSign() {
switch (lineType) {
case "slow" :
sign_green.msg.text = "Well, you won't be setting any landiline speed records today. Enter your details to see how fast you could go with Be.";
break;
case "fast" :
sign_green.msg.text = "You're off to a flying start, however there's more to broadband than just speed. Enter your details and see what Be has to offer.";
}
caurina.transitions.Tweener.addTween(sign_green, {onStart:[(sign_green._x = -350), (sign_green._y = 350), (sign_green._rotation = -120), (sign_green._visible = true)], _x:signPosX, _y:signPosY, _rotation:-15, time:0.8, transition:"easeOutBounce", onComplete:goFlash2});
caurina.transitions.Tweener.addTween(meterMC, {_x:800, _y:20, _bezier:{y:-100}, _rotation:360, _scale:20, time:0.8, delay:0.2, transition:"easeOutQuint", onComplete:goneBye, onCompleteParams:[meterMC]});
}
function comeOverlay() {
overLayMC.swapDepths(88);
caurina.transitions.Tweener.addTween(overLayMC, {onStart:(overLayMC._visible = true), _y:0, time:0.5, transition:"easeOutBack"});
overLayMC.manS.gotoAndPlay("lookUp");
overLayMC.closeBut.onRelease = function () {
caurina.transitions.Tweener.addTween(overLayMC, {_y:-290, time:0.5, transition:"easeInBack", onComplete:goneBye, onCompleteParams:[overLayMC]});
};
}
function comeDisclaim() {
disclaimerMC.swapDepths(88);
caurina.transitions.Tweener.addTween(disclaimerMC, {onStart:(disclaimerMC._visible = true), _y:0, time:0.5, transition:"easeOutBack"});
disclaimerMC.manS.gotoAndPlay("lookUp");
disclaimerMC.closeBut.onRelease = function () {
caurina.transitions.Tweener.addTween(disclaimerMC, {_y:-290, time:0.5, transition:"easeInBack", onComplete:goneBye, onCompleteParams:[disclaimerMC]});
};
}
function goneBye(mc) {
mc._visible = false;
}
function goFlash2() {
gs.TweenMax.to(sign_green.goBut2, 0.1, {glowFilter:{color:16776960, blurX:5, blurY:5, alpha:1, strength:2}, delay:0.1, overwrite:false});
gs.TweenMax.to(sign_green.goBut2, 0.1, {glowFilter:{alpha:0}, delay:0.3, overwrite:false, onComplete:goFlash2});
}
function ready4Heaven() {
removeMovieClip(rocketFire.fireMC1.fireS);
removeMovieClip(rocketFire.fireMC2.fireS2);
var _local1 = Math.floor((lineLength / 300) + 1) * 300;
if (_local1 > 6300) {
lineSpeed = 0.1;
} else {
lineSpeed = getSpeed(_local1);
}
maxSpeed = lineSpeed;
caurina.transitions.Tweener.addTween(sign_green, {_x:-350, _y:350, _rotation:-120, time:0.8, transition:"easeInBack", onComplete:goneBye, onCompleteParams:[sign_green]});
caurina.transitions.Tweener.addTween(manMC0, {onStart:[manMC0.headMC.gotoAndStop("norm"), manMC0.gotoAndStop(1), (manMC0._x = Stage.width / 2)], _x:Stage.width / 2, _y:manPosY, _scale:100, _rotation:0, time:1, transition:"easeOutCirc", onComplete:lightComes});
}
function lightComes() {
manJump();
ref.attachMovie("b4HeavenTxt", "b4HeavenTxt1", 55, {_x:75, _y:20});
caurina.transitions.Tweener.addTween(spotLight, {onStart:(spotLight._xscale = 1), _xscale:220, _yscale:120, _autoAlpha:100, time:5, transition:"easeOutQuint"});
caurina.transitions.Tweener.addTween(manMC0, {_y:-300, time:3, _scale:2, delay:2, transition:"easeInBack", onComplete:goneBye, onCompleteParams:[manMC0]});
caurina.transitions.Tweener.addTween(skyPic, {_y:skyPic._y + 638, time:3, delay:2, transition:"easeInBack"});
caurina.transitions.Tweener.addTween(groundMC, {_y:groundMC._y + 300, time:3, delay:2, transition:"easeInBack", onComplete:go2Heaven});
}
function go2Heaven() {
skyPic.swapDepths(112);
spotLight.swapDepths(113);
b4HeavenTxt1.swapDepths(114);
caurina.transitions.Tweener.addTween(skyPic, {_autoAlpha:0, time:5, transition:"easeOutQuint"});
caurina.transitions.Tweener.addTween(spotLight, {_autoAlpha:0, _xscale:100, _yscale:300, time:2, transition:"easeOutQuint", onComplete:welcome2Heaven});
caurina.transitions.Tweener.addTween(heavenMC.heavenSkyMC, {onStart:[(heavenMC.heavenSkyMC._visible = true), (heavenMC.heavenSkyMC._y = -509)], _y:heavenMC.skyYPos, time:3, transition:"easeOutBack"});
}
function welcome2Heaven() {
heavenMC.shoot2heaven();
caurina.transitions.Tweener.addTween(b4HeavenTxt1, {_autoAlpha:0, time:0.5, transition:"easeOutQuint"});
}
function callAPI(telephone) {
var _local6 = new LoadVars();
_local6.username = api_un;
_local6.password = api_pw;
_local6.Input = telephone;
var lvReply = new XML();
lvReply.ignoreWhite = true;
lvReply.onLoad = function (success) {
if (success) {
var _local1 = 0;
while (_local1 < lvReply.firstChild.childNodes.length) {
if (lvReply.firstChild.childNodes[_local1].nodeName == "LINELENGTH") {
var _local4 = String(lvReply.firstChild.childNodes[_local1].childNodes[0]);
lineLength = Number(_local4);
}
_local1++;
}
var _local2 = 0;
while (_local2 < lvReply.firstChild.childNodes.length) {
if (lvReply.firstChild.childNodes[_local2].nodeName == "STATUS") {
var _local5 = String(lvReply.firstChild.childNodes[_local2].childNodes[0]);
var _local3 = Number(_local5);
checkErrorId(_local3);
} else if (lvReply.firstChild.nodeName == "error") {
checkErrorId(6);
}
_local2++;
}
} else {
checkErrorId(3);
}
};
_local6.sendAndLoad(apiUrl, lvReply);
}
function checkErrorId(error) {
errorTxt.text = "";
switch (error) {
case 0 :
caurina.transitions.Tweener.removeTweens(manMC0);
ready4Heaven();
break;
case 1 :
caurina.transitions.Tweener.removeTweens(manMC0);
ready4Heaven();
break;
case 8 :
caurina.transitions.Tweener.removeTweens(manMC0);
heavenMC.alreadyBe = true;
ready4Heaven();
break;
case 2 :
errorTxt.text = this["error_msg_" + error];
sign_green.goBut2.enabled = true;
break;
case 3 :
caurina.transitions.Tweener.removeTweens(manMC0);
caurina.transitions.Tweener.addTween(sign_green, {_x:-350, _y:350, _rotation:-120, time:0.5, transition:"easeInBack", onComplete:goneBye, onCompleteParams:[sign_green]});
red_sign.tryAgainBut._visible = true;
caurina.transitions.Tweener.addTween(manMC0, {onStart:[manMC0.headMC.gotoAndStop("failed"), manMC0.gotoAndStop(1)], _x:Stage.width / 2, _y:manPosY, _scale:100, _rotation:0, time:1, transition:"easeOutCirc"});
red_sign.registerBut._visible = false;
red_sign.infoBut._visible = false;
caurina.transitions.Tweener.addTween(red_sign, {onStart:[(red_sign._y = 800), (red_sign._visible = true)], _y:redSignYpos, time:1, transition:"easeOutback"});
removeMovieClip(rocketFire.fireMC1.fireS);
removeMovieClip(rocketFire.fireMC2.fireS2);
red_sign.msg1.text = this["error_msg_" + error];
red_sign.tryAgainBut.swapDepths(red_sign.getNextHighestDepth());
red_sign.tryAgainBut.onRelease = function () {
BTfailed = false;
sign_green.goBut2.enabled = true;
manMC0.headMC.gotoAndPlay("roll");
manMC0._x = manMC0._x + 100;
caurina.transitions.Tweener.addTween(red_sign, {_y:800, time:1, transition:"easeInback"});
caurina.transitions.Tweener.addTween(sign_green, {onStart:[(sign_green._x = -350), (sign_green._y = 350), (sign_green._rotation = -120), (sign_green._visible = true)], _x:signPosX, _y:signPosY, _rotation:-15, time:0.8, transition:"easeOutBounce", onComplete:goFlash2});
};
break;
case 6 :
caurina.transitions.Tweener.removeTweens(manMC0);
red_sign.tryAgainBut._visible = false;
red_sign.registerBut._visible = false;
red_sign.infoBut._visible = false;
red_sign.msg1.text = this["error_msg_" + error];
caurina.transitions.Tweener.addTween(red_sign, {onStart:[(red_sign._y = 800), (red_sign._visible = true)], _y:redSignYpos, time:1, transition:"easeOutback"});
removeMovieClip(rocketFire.fireMC1.fireS);
removeMovieClip(rocketFire.fireMC2.fireS2);
caurina.transitions.Tweener.addTween(sign_green, {_x:-350, _y:350, _rotation:-120, time:0.8, transition:"easeInBack", onComplete:goneBye, onCompleteParams:[sign_green]});
caurina.transitions.Tweener.addTween(manMC0, {onStart:[manMC0.headMC.gotoAndStop("failed"), manMC0.gotoAndStop(1)], _x:Stage.width / 2, _y:manPosY, _scale:100, _rotation:0, time:1, transition:"easeOutCirc"});
break;
case 4 :
case 5 :
case 7 :
case 9 :
case 10 :
red_sign.msg1.text = this["error_msg_" + error];
errorReg(error);
break;
default :
caurina.transitions.Tweener.removeTweens(manMC0);
red_sign.tryAgainBut._visible = false;
red_sign.registerBut._visible = false;
red_sign.infoBut._visible = false;
red_sign.msg1.text = this.error_msg_6;
caurina.transitions.Tweener.addTween(red_sign, {onStart:[(red_sign._y = 800), (red_sign._visible = true)], _y:redSignYpos, time:1, transition:"easeOutback"});
removeMovieClip(rocketFire.fireMC1.fireS);
removeMovieClip(rocketFire.fireMC2.fireS2);
caurina.transitions.Tweener.addTween(sign_green, {_x:-350, _y:350, _rotation:-120, time:0.8, transition:"easeInBack", onComplete:goneBye, onCompleteParams:[sign_green]});
caurina.transitions.Tweener.addTween(manMC0, {onStart:[manMC0.headMC.gotoAndStop("failed"), manMC0.gotoAndStop(1)], _x:Stage.width / 2, _y:manPosY, _scale:100, _rotation:0, time:1, transition:"easeOutCirc"});
}
}
function errorReg(num) {
caurina.transitions.Tweener.removeTweens(manMC0);
if (num == 5) {
red_sign.tryAgainBut._visible = false;
red_sign.infoBut._visible = true;
red_sign.registerBut._visible = false;
red_sign.infoBut.swapDepths(red_sign.getNextHighestDepth());
red_sign.infoBut.onRelease = function () {
getURL (url_5 + telNumb, "_top");
};
} else {
red_sign.tryAgainBut._visible = false;
red_sign.infoBut._visible = false;
red_sign.registerBut._visible = true;
red_sign.registerBut.swapDepths(red_sign.getNextHighestDepth());
red_sign.registerBut.onRelease = function () {
getURL (url_5 + telNumb, "_top");
};
}
caurina.transitions.Tweener.addTween(red_sign, {onStart:[(red_sign._y = 800), (red_sign._visible = true)], _y:redSignYpos, time:1, transition:"easeOutback"});
removeMovieClip(rocketFire.fireMC1.fireS);
removeMovieClip(rocketFire.fireMC2.fireS2);
caurina.transitions.Tweener.addTween(sign_green, {_x:-350, _y:350, _rotation:-120, time:0.8, transition:"easeInBack", onComplete:goneBye, onCompleteParams:[sign_green]});
caurina.transitions.Tweener.addTween(manMC0, {onStart:[manMC0.headMC.gotoAndStop("failed"), manMC0.gotoAndStop(1)], _x:Stage.width / 2, _y:manPosY, _scale:100, _rotation:0, time:1, transition:"easeOutCirc"});
}
function getSpeed(lnLength) {
var _local1;
if (lnLength == 300) {
_local1 = 23.37;
}
if (lnLength == 600) {
_local1 = 23.37;
}
if (lnLength == 900) {
_local1 = 23.08;
}
if (lnLength == 1200) {
_local1 = 22.22;
}
if (lnLength == 1500) {
_local1 = 20.5;
}
if (lnLength == 1800) {
_local1 = 17.83;
}
if (lnLength == 2100) {
_local1 = 14.69;
}
if (lnLength == 2400) {
_local1 = 11.63;
}
if (lnLength == 2700) {
_local1 = 9.54;
}
if (lnLength == 3000) {
_local1 = 7.63;
}
if (lnLength == 3300) {
_local1 = 5.91;
}
if (lnLength == 3600) {
_local1 = 4.48;
}
if (lnLength == 3900) {
_local1 = 3.62;
}
if (lnLength == 4200) {
_local1 = 2.86;
}
if (lnLength == 4500) {
_local1 = 2.1;
}
if (lnLength == 4800) {
_local1 = 1.72;
}
if (lnLength == 5100) {
_local1 = 1.14;
}
if (lnLength == 5400) {
_local1 = 0.84;
}
if (lnLength == 5700) {
_local1 = 0.57;
}
if (lnLength == 6000) {
_local1 = 0.29;
}
if (lnLength == 6300) {
_local1 = 0.1;
}
return(_local1);
}
stop();
var ref = this;
caurina.transitions.properties.CurveModifiers.init();
caurina.transitions.properties.DisplayShortcuts.init();
meterMC.mbPanel._visible = false;
meterMC.loadBar._visible = false;
meterMC.loadDispMC._visible = false;
sign_green._visible = (red_sign._visible = false);
spotLight._visible = false;
overLayMC._visible = false;
overLayMC.bgMC.useHandCursor = false;
disclaimerMC._visible = false;
disclaimerMC.bgMC.useHandCursor = false;
var mbps;
var goPressed = false;
var manPosX = manMC0._x;
var manPosY = manMC0._y;
var rocketFire = manMC0.rocketMC;
var meterPosX = meterMC._x;
var meterPosY = meterMC._y;
var signPosX = sign_green._x;
var signPosY = sign_green._y;
var fireMax = 60;
var fireScale = ((Math.random() * 100) + 50);
var lineChecked = false;
var lineType;
var lineSpeed = 2;
var lineLength;
var timeStart;
var timeEnd;
var tLoaded;
var curFrame;
var shuffleNumArray = new Array();
var shuffledNum = 0;
var maxSpeed;
var shuffle_intvl;
var manBlink_intvl;
var tVar;
var no_cache = "";
var _LConn = new LocalConnection();
if (_LConn.domain() != "localhost") {
no_cache = "?no_cache=" + Math.random();
}
var stage2Mov = ("beAPI_718x287-STAGE2.swf" + no_cache);
var telNumb;
var error_msg_2 = "Hmmm, I don't think you entered your number right. Please try again, remember to include the area code.";
var error_msg_3 = "D'oh, BT's system is down. Please try again in a minute.";
var error_msg_6 = "Hmmm, there seems to be an incompatible product on your line. \n\nPlease ring your provider to find out more.";
var error_msg_4 = "Sorry, your exchange is too busy. \n\nPlease register and we'll let you about any developments.";
var error_msg_5 = "Sorry, you live too far from the exchange to get Be Broadband. \n\nFor more information please click below.";
var error_msg_7 = "Sorry, your exchange isn't enabled yet. \n\nPlease register and we'll let you know when we're going to enable your area.";
var error_msg_9 = "Sorry, your exchange has been deactivated. \n\nPlease register and we'll let you about any developments.";
var error_msg_10 = "Sorry, your exchange is not currently activated. \n\nPlease register and we'll let you know about any developments.";
var failedLine = false;
var BTfailed = false;
var badLine = false;
var redSignYpos = red_sign._y;
var stumblePos = new Array({_x:550, _y:180}, {_x:500, _y:130}, {_x:450, _y:180}, {_x:400, _y:140}, {_x:350, _y:180}, {_x:300, _y:150}, {_x:250, _y:180}, {_x:200, _y:150}, {_x:150, _y:180}, {_x:100, _y:150}, {_x:50, _y:180}, {_x:0, _y:150});
var stumblePos2 = new Array({_x:0, _y:180}, {_x:50, _y:130}, {_x:100, _y:180}, {_x:150, _y:140}, {_x:200, _y:180}, {_x:250, _y:150}, {_x:300, _y:180}, {_x:350, _y:150}, {_x:400, _y:180}, {_x:450, _y:150}, {_x:500, _y:180}, {_x:550, _y:150}, {_x:600, _y:180}, {_x:650, _y:150}, {_x:700, _y:180});
var stumblePos3 = new Array({_x:700, _y:180}, {_x:650, _y:140}, {_x:600, _y:180}, {_x:550, _y:130}, {_x:500, _y:180}, {_x:450, _y:150}, {_x:400, _y:180}, {_x:350, _y:150}, {_x:300, _y:180}, {_x:250, _y:150}, {_x:200, _y:180}, {_x:150, _y:150}, {_x:100, _y:180}, {_x:50, _y:150}, {_x:0, _y:180});
var stumblePos4 = new Array({_x:0, _y:180}, {_x:50, _y:140}, {_x:100, _y:180}, {_x:150, _y:130}, {_x:200, _y:180}, {_x:250, _y:150}, {_x:300, _y:180}, {_x:350, _y:150}, {_x:400, _y:180}, {_x:450, _y:150}, {_x:500, _y:180});
var heavenAutoPlay = false;
test1._visible = false;
test2._visible = false;
sign_green.testBut._visible = false;
test1.onPress = function () {
testStats.text = "Slow";
lineSpeed = Math.floor(Math.random() * 4) + 1;
test1._visible = (test2._visible = false);
};
test2.onPress = function () {
testStats.text = "Fast";
lineSpeed = Math.floor(Math.random() * 12) + 4;
test1._visible = (test2._visible = false);
};
sign_green.testBut.onPress = function () {
testStats.text = "Line Fail";
failedLine = true;
sign_green.testBut._visible = false;
};
var heavenLoaded = false;
var mcl = new MovieClipLoader();
var mclL = new Object();
mclL.scope = this;
mclL.onLoadStart = function (target) {
timeStart = getTimer();
meterMC.loadBar._visible = true;
meterMC.percenTxt.text = "%";
};
mclL.onLoadProgress = function (target, loaded, total) {
trLace("TOTAL: " + total);
var _local1 = Math.floor((loaded / total) * 100);
meterMC.loadBar.barMC._xscale = _local1;
meterMC.loadDispTxt.text = _local1;
meterMC.percenTxt.text = "%";
tLoaded = total;
};
mclL.onLoadComplete = function (target_mc) {
timeEnd = getTimer();
meterMC.loadDispTxt.text = "100";
meterMC.percenTxt.text = "%";
meterMC.loadBar._visible = false;
};
mclL.onLoadInit = function (target) {
timeEnd = getTimer();
meterMC.loadDispTxt.text = "";
meterMC.percenTxt.text = "";
heavenLoaded = true;
this.scope.lineCheck();
};
mcl.addListener(mclL);
introAnime();
meterMC.goBut.onRollOver = goOvered;
meterMC.goBut.onRollOut = (meterMC.goBut.onReleaseOutside = goOuted);
meterMC.goBut.onRelease = goOed;
sign_green.popupLink.onRelease = comeOverlay;
sign_green.disclaimLink.onRelease = comeDisclaim;
sign_green.phone_input.restrict = "0-9";
sign_green.phone_input.text == "";
sign_green.goBut2.onRelease = function () {
errorTxt.text = "";
if (sign_green.phone_input.text.length != 11) {
errorTxt.text = error_msg_2;
} else {
sign_green.goBut2.enabled = false;
telNumb = sign_green.phone_input.text;
callAPI(telNumb);
}
};
Symbol 2 MovieClip Frame 1
this._x = this._x + ((Math.random() * 6) - 3);
this._yscale = _root.fireScale;
Symbol 3 MovieClip [fireMC] Frame 1
var fi = 1;
var fireMax = 60;
x = fire._x;
Symbol 3 MovieClip [fireMC] Frame 2
if (fi <= fireMax) {
duplicateMovieClip ("fire", "fire" + fi, fi);
fi = fi + 1;
}
Symbol 3 MovieClip [fireMC] Frame 3
if (fi <= fireMax) {
duplicateMovieClip ("fire", "fire" + fi, fi);
fi = fi + 1;
}
gotoAndPlay (2);
Symbol 172 MovieClip [__Packages.caurina.transitions.properties.CurveModifiers] Frame 0
class caurina.transitions.properties.CurveModifiers
{
function CurveModifiers () {
}
static function init() {
caurina.transitions.Tweener.registerSpecialPropertyModifier("_bezier", _bezier_modifier, _bezier_get);
}
static function _bezier_modifier(p_obj) {
var _local7 = [];
var _local4;
if (p_obj instanceof Array) {
_local4 = p_obj.concat();
} else {
_local4 = [p_obj];
}
var _local3;
var _local1;
var _local2 = {};
_local3 = 0;
while (_local3 < _local4.length) {
for (_local1 in _local4[_local3]) {
if (_local2[_local1] == undefined) {
_local2[_local1] = [];
}
_local2[_local1].push(_local4[_local3][_local1]);
}
_local3++;
}
for (_local1 in _local2) {
_local7.push({name:_local1, parameters:_local2[_local1]});
}
return(_local7);
}
static function _bezier_get(b, e, t, p) {
if (p.length == 1) {
return(b + (t * (((2 * (1 - t)) * (p[0] - b)) + (t * (e - b)))));
}
var _local2 = Math.floor(t * p.length);
var _local5 = (t - (_local2 * (1 / p.length))) * p.length;
var _local3;
var _local6;
if (_local2 == 0) {
_local3 = b;
_local6 = (p[0] + p[1]) / 2;
} else if (_local2 == (p.length - 1)) {
_local3 = (p[_local2 - 1] + p[_local2]) / 2;
_local6 = e;
} else {
_local3 = (p[_local2 - 1] + p[_local2]) / 2;
_local6 = (p[_local2] + p[_local2 + 1]) / 2;
}
return(_local3 + (_local5 * (((2 * (1 - _local5)) * (p[_local2] - _local3)) + (_local5 * (_local6 - _local3)))));
}
}
Symbol 173 MovieClip [__Packages.caurina.transitions.Tweener] Frame 0
class caurina.transitions.Tweener
{
static var _specialPropertySplitterList, _specialPropertyModifierList, _specialPropertyList, _transitionList, _currentTimeFrame, _currentTime, _tweenList;
function Tweener () {
}
static function addTween(p_scopes, p_parameters) {
if (p_scopes == undefined) {
return(false);
}
var _local3;
var _local7;
var _local2;
var _local11;
if (p_scopes instanceof Array) {
_local11 = p_scopes.concat();
} else {
_local11 = [p_scopes];
}
var _local5 = caurina.transitions.TweenListObj.makePropertiesChain(p_parameters);
if (!_inited) {
init();
}
if ((!_engineExists) || (_root[getControllerName()] == undefined)) {
startEngine();
}
var _local19 = (isNaN(_local5.time) ? 0 : (_local5.time));
var _local12 = (isNaN(_local5.delay) ? 0 : (_local5.delay));
var _local4 = new Object();
var _local24 = {time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, transitionParams:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, onError:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true, onStartScope:true, onUpdateScope:true, onCompleteScope:true, onOverwriteScope:true, onErrorScope:true, quickAdd:true};
var _local13 = new Object();
for (_local2 in _local5) {
if (!_local24[_local2]) {
if (_specialPropertySplitterList[_local2] != undefined) {
var _local8 = _specialPropertySplitterList[_local2].splitValues(_local5[_local2], _specialPropertySplitterList[_local2].parameters);
_local3 = 0;
while (_local3 < _local8.length) {
if (_specialPropertySplitterList[_local8[_local3].name] != undefined) {
var _local9 = _specialPropertySplitterList[_local8[_local3].name].splitValues(_local8[_local3].value, _specialPropertySplitterList[_local8[_local3].name].parameters);
_local7 = 0;
while (_local7 < _local9.length) {
_local4[_local9[_local7].name] = {valueStart:undefined, valueComplete:_local9[_local7].value, arrayIndex:_local9[_local7].arrayIndex, isSpecialProperty:false};
_local7++;
}
} else {
_local4[_local8[_local3].name] = {valueStart:undefined, valueComplete:_local8[_local3].value, arrayIndex:_local8[_local3].arrayIndex, isSpecialProperty:false};
}
_local3++;
}
} else if (_specialPropertyModifierList[_local2] != undefined) {
var _local10 = _specialPropertyModifierList[_local2].modifyValues(_local5[_local2]);
_local3 = 0;
while (_local3 < _local10.length) {
_local13[_local10[_local3].name] = {modifierParameters:_local10[_local3].parameters, modifierFunction:_specialPropertyModifierList[_local2].getValue};
_local3++;
}
} else {
_local4[_local2] = {valueStart:undefined, valueComplete:_local5[_local2]};
}
}
}
for (_local2 in _local4) {
if (_specialPropertyList[_local2] != undefined) {
_local4[_local2].isSpecialProperty = true;
} else if (_local11[0][_local2] == undefined) {
printError(((("The property '" + _local2) + "' doesn't seem to be a normal object property of ") + _local11[0].toString()) + " or a registered special property.");
}
}
for (_local2 in _local13) {
if (_local4[_local2] != undefined) {
_local4[_local2].modifierParameters = _local13[_local2].modifierParameters;
_local4[_local2].modifierFunction = _local13[_local2].modifierFunction;
}
}
var _local21;
if (typeof(_local5.transition) == "string") {
var _local26 = _local5.transition.toLowerCase();
_local21 = _transitionList[_local26];
} else {
_local21 = _local5.transition;
}
if (_local21 == undefined) {
_local21 = _transitionList.easeoutexpo;
}
var _local14;
var _local6;
var _local20;
_local3 = 0;
while (_local3 < _local11.length) {
_local14 = new Object();
for (_local2 in _local4) {
_local14[_local2] = new caurina.transitions.PropertyInfoObj(_local4[_local2].valueStart, _local4[_local2].valueComplete, _local4[_local2].valueComplete, _local4[_local2].arrayIndex, {}, _local4[_local2].isSpecialProperty, _local4[_local2].modifierFunction, _local4[_local2].modifierParameters);
}
if (_local5.useFrames == true) {
_local6 = new caurina.transitions.TweenListObj(_local11[_local3], _currentTimeFrame + (_local12 / _timeScale), _currentTimeFrame + ((_local12 + _local19) / _timeScale), true, _local21, _local5.transitionParams);
} else {
_local6 = new caurina.transitions.TweenListObj(_local11[_local3], _currentTime + ((_local12 * 1000) / _timeScale), _currentTime + (((_local12 * 1000) + (_local19 * 1000)) / _timeScale), false, _local21, _local5.transitionParams);
}
_local6.properties = _local14;
_local6.onStart = _local5.onStart;
_local6.onUpdate = _local5.onUpdate;
_local6.onComplete = _local5.onComplete;
_local6.onOverwrite = _local5.onOverwrite;
_local6.onError = _local5.onError;
_local6.onStartParams = _local5.onStartParams;
_local6.onUpdateParams = _local5.onUpdateParams;
_local6.onCompleteParams = _local5.onCompleteParams;
_local6.onOverwriteParams = _local5.onOverwriteParams;
_local6.onStartScope = _local5.onStartScope;
_local6.onUpdateScope = _local5.onUpdateScope;
_local6.onCompleteScope = _local5.onCompleteScope;
_local6.onOverwriteScope = _local5.onOverwriteScope;
_local6.onErrorScope = _local5.onErrorScope;
_local6.rounded = _local5.rounded;
_local6.skipUpdates = _local5.skipUpdates;
if (!_local5.quickAdd) {
removeTweensByTime(_local6.scope, _local6.properties, _local6.timeStart, _local6.timeComplete);
}
_tweenList.push(_local6);
if ((_local19 == 0) && (_local12 == 0)) {
_local20 = _tweenList.length - 1;
updateTweenByIndex(_local20);
removeTweenByIndex(_local20);
}
_local3++;
}
return(true);
}
static function addCaller(p_scopes, p_parameters) {
if (p_scopes == undefined) {
return(false);
}
var _local5;
var _local6;
if (p_scopes instanceof Array) {
_local6 = p_scopes.concat();
} else {
_local6 = [p_scopes];
}
var _local3 = p_parameters;
if (!_inited) {
init();
}
if ((!_engineExists) || (_root[getControllerName()] == undefined)) {
startEngine();
}
var _local7 = (isNaN(_local3.time) ? 0 : (_local3.time));
var _local4 = (isNaN(_local3.delay) ? 0 : (_local3.delay));
var _local9;
if (typeof(_local3.transition) == "string") {
var _local11 = _local3.transition.toLowerCase();
_local9 = _transitionList[_local11];
} else {
_local9 = _local3.transition;
}
if (_local9 == undefined) {
_local9 = _transitionList.easeoutexpo;
}
var _local2;
var _local8;
_local5 = 0;
while (_local5 < _local6.length) {
if (_local3.useFrames == true) {
_local2 = new caurina.transitions.TweenListObj(_local6[_local5], _currentTimeFrame + (_local4 / _timeScale), _currentTimeFrame + ((_local4 + _local7) / _timeScale), true, _local9, _local3.transitionParams);
} else {
_local2 = new caurina.transitions.TweenListObj(_local6[_local5], _currentTime + ((_local4 * 1000) / _timeScale), _currentTime + (((_local4 * 1000) + (_local7 * 1000)) / _timeScale), false, _local9, _local3.transitionParams);
}
_local2.properties = undefined;
_local2.onStart = _local3.onStart;
_local2.onUpdate = _local3.onUpdate;
_local2.onComplete = _local3.onComplete;
_local2.onOverwrite = _local3.onOverwrite;
_local2.onStartParams = _local3.onStartParams;
_local2.onUpdateParams = _local3.onUpdateParams;
_local2.onCompleteParams = _local3.onCompleteParams;
_local2.onOverwriteParams = _local3.onOverwriteParams;
_local2.onStartScope = _local3.onStartScope;
_local2.onUpdateScope = _local3.onUpdateScope;
_local2.onCompleteScope = _local3.onCompleteScope;
_local2.onOverwriteScope = _local3.onOverwriteScope;
_local2.onErrorScope = _local3.onErrorScope;
_local2.isCaller = true;
_local2.count = _local3.count;
_local2.waitFrames = _local3.waitFrames;
_tweenList.push(_local2);
if ((_local7 == 0) && (_local4 == 0)) {
_local8 = _tweenList.length - 1;
updateTweenByIndex(_local8);
removeTweenByIndex(_local8);
}
_local5++;
}
return(true);
}
static function removeTweensByTime(p_scope, p_properties, p_timeStart, p_timeComplete) {
var _local5 = false;
var _local4;
var _local1;
var _local7 = _tweenList.length;
var _local2;
_local1 = 0;
while (_local1 < _local7) {
if (p_scope == _tweenList[_local1].scope) {
if ((p_timeComplete > _tweenList[_local1].timeStart) && (p_timeStart < _tweenList[_local1].timeComplete)) {
_local4 = false;
for (_local2 in _tweenList[_local1].properties) {
if (p_properties[_local2] != undefined) {
if (_tweenList[_local1].onOverwrite != undefined) {
var _local3 = ((_tweenList[_local1].onOverwriteScope != undefined) ? (_tweenList[_local1].onOverwriteScope) : (_tweenList[_local1].scope));
try {
_tweenList[_local1].onOverwrite.apply(_local3, _tweenList[_local1].onOverwriteParams);
} catch(e:Error) {
handleError(_tweenList[_local1], e, "onOverwrite");
}
}
_tweenList[_local1].properties[_local2] = undefined;
delete _tweenList[_local1].properties[_local2];
_local4 = true;
_local5 = true;
}
}
if (_local4) {
if (caurina.transitions.AuxFunctions.getObjectLength(_tweenList[_local1].properties) == 0) {
removeTweenByIndex(_local1);
}
}
}
}
_local1++;
}
return(_local5);
}
static function removeTweens(p_scope) {
var _local3 = new Array();
var _local2;
_local2 = 1;
while (_local2 < arguments.length) {
if ((typeof(arguments[_local2]) == "string") && (!caurina.transitions.AuxFunctions.isInArray(arguments[_local2], _local3))) {
_local3.push(arguments[_local2]);
}
_local2++;
}
return(affectTweens(removeTweenByIndex, p_scope, _local3));
}
static function removeAllTweens() {
var _local2 = false;
var _local1;
_local1 = 0;
while (_local1 < _tweenList.length) {
removeTweenByIndex(_local1);
_local2 = true;
_local1++;
}
return(_local2);
}
static function pauseTweens(p_scope) {
var _local3 = new Array();
var _local2;
_local2 = 1;
while (_local2 < arguments.length) {
if ((typeof(arguments[_local2]) == "string") && (!caurina.transitions.AuxFunctions.isInArray(arguments[_local2], _local3))) {
_local3.push(arguments[_local2]);
}
_local2++;
}
return(affectTweens(pauseTweenByIndex, p_scope, _local3));
}
static function pauseAllTweens() {
var _local2 = false;
var _local1;
_local1 = 0;
while (_local1 < _tweenList.length) {
pauseTweenByIndex(_local1);
_local2 = true;
_local1++;
}
return(_local2);
}
static function resumeTweens(p_scope) {
var _local3 = new Array();
var _local2;
_local2 = 1;
while (_local2 < arguments.length) {
if ((typeof(arguments[_local2]) == "string") && (!caurina.transitions.AuxFunctions.isInArray(arguments[_local2], _local3))) {
_local3.push(arguments[_local2]);
}
_local2++;
}
return(affectTweens(resumeTweenByIndex, p_scope, _local3));
}
static function resumeAllTweens() {
var _local2 = false;
var _local1;
_local1 = 0;
while (_local1 < _tweenList.length) {
resumeTweenByIndex(_local1);
_local2 = true;
_local1++;
}
return(_local2);
}
static function affectTweens(p_affectFunction, p_scope, p_properties) {
var _local5 = false;
var _local2;
if (!_tweenList) {
return(false);
}
_local2 = 0;
while (_local2 < _tweenList.length) {
if (_tweenList[_local2].scope == p_scope) {
if (p_properties.length == 0) {
p_affectFunction(_local2);
_local5 = true;
} else {
var _local4 = new Array();
var _local1;
_local1 = 0;
while (_local1 < p_properties.length) {
if (_tweenList[_local2].properties[p_properties[_local1]] != undefined) {
_local4.push(p_properties[_local1]);
}
_local1++;
}
if (_local4.length > 0) {
var _local7 = caurina.transitions.AuxFunctions.getObjectLength(_tweenList[_local2].properties);
if (_local7 == _local4.length) {
p_affectFunction(_local2);
_local5 = true;
} else {
var _local8 = splitTweens(_local2, _local4);
p_affectFunction(_local8);
_local5 = true;
}
}
}
}
_local2++;
}
return(_local5);
}
static function splitTweens(p_tween, p_properties) {
var _local6 = _tweenList[p_tween];
var _local5 = _local6.clone(false);
var _local1;
var _local2;
_local1 = 0;
while (_local1 < p_properties.length) {
_local2 = p_properties[_local1];
if (_local6.properties[_local2] != undefined) {
_local6.properties[_local2] = undefined;
delete _local6.properties[_local2];
}
_local1++;
}
var _local4;
for (_local2 in _local5.properties) {
_local4 = false;
_local1 = 0;
while (_local1 < p_properties.length) {
if (p_properties[_local1] == _local2) {
_local4 = true;
break;
}
_local1++;
}
if (!_local4) {
_local5.properties[_local2] = undefined;
delete _local5.properties[_local2];
}
}
_tweenList.push(_local5);
return(_tweenList.length - 1);
}
static function updateTweens() {
if (_tweenList.length == 0) {
return(false);
}
var _local1;
_local1 = 0;
while (_local1 < _tweenList.length) {
if (!_tweenList[_local1].isPaused) {
if (!updateTweenByIndex(_local1)) {
removeTweenByIndex(_local1);
}
if (_tweenList[_local1] == null) {
removeTweenByIndex(_local1, true);
_local1--;
}
}
_local1++;
}
return(true);
}
static function removeTweenByIndex(p_tween, p_finalRemoval) {
_tweenList[p_tween] = null;
if (p_finalRemoval) {
_tweenList.splice(p_tween, 1);
}
return(true);
}
static function pauseTweenByIndex(p_tween) {
var _local1 = _tweenList[p_tween];
if ((_local1 == null) || (_local1.isPaused)) {
return(false);
}
_local1.timePaused = getCurrentTweeningTime(_local1);
_local1.isPaused = true;
return(true);
}
static function resumeTweenByIndex(p_tween) {
var _local1 = _tweenList[p_tween];
if ((_local1 == null) || (!_local1.isPaused)) {
return(false);
}
var _local2 = getCurrentTweeningTime(_local1);
_local1.timeStart = _local1.timeStart + (_local2 - _local1.timePaused);
_local1.timeComplete = _local1.timeComplete + (_local2 - _local1.timePaused);
_local1.timePaused = undefined;
_local1.isPaused = false;
return(true);
}
static function updateTweenByIndex(i) {
var _local1 = _tweenList[i];
if ((_local1 == null) || (!_local1.scope)) {
return(false);
}
var _local13 = false;
var _local14;
var _local3;
var _local7;
var _local10;
var _local9;
var _local6;
var _local2;
var _local12;
var _local5;
var _local8 = getCurrentTweeningTime(_local1);
var _local4;
if (_local8 >= _local1.timeStart) {
_local5 = _local1.scope;
if (_local1.isCaller) {
do {
_local7 = ((_local1.timeComplete - _local1.timeStart) / _local1.count) * (_local1.timesCalled + 1);
_local10 = _local1.timeStart;
_local9 = _local1.timeComplete - _local1.timeStart;
_local6 = _local1.timeComplete - _local1.timeStart;
_local3 = _local1.transition(_local7, _local10, _local9, _local6, _local1.transitionParams);
if (_local8 >= _local3) {
if (_local1.onUpdate != undefined) {
_local12 = ((_local1.onUpdateScope != undefined) ? (_local1.onUpdateScope) : (_local5));
try {
_local1.onUpdate.apply(_local12, _local1.onUpdateParams);
} catch(e:Error) {
handleError(_local1, e, "onUpdate");
}
}
_local1.timesCalled++;
if (_local1.timesCalled >= _local1.count) {
_local13 = true;
break;
}
if (_local1.waitFrames) {
break;
}
}
} while (_local8 >= _local3);
} else {
_local14 = ((_local1.skipUpdates < 1) || (_local1.skipUpdates == undefined)) || (_local1.updatesSkipped >= _local1.skipUpdates);
if (_local8 >= _local1.timeComplete) {
_local13 = true;
_local14 = true;
}
if (!_local1.hasStarted) {
if (_local1.onStart != undefined) {
_local12 = ((_local1.onStartScope != undefined) ? (_local1.onStartScope) : (_local5));
try {
_local1.onStart.apply(_local12, _local1.onStartParams);
} catch(e:Error) {
handleError(_local1, e, "onStart");
}
}
var _local11;
for (_local2 in _local1.properties) {
if (_local1.properties[_local2].isSpecialProperty) {
if (_specialPropertyList[_local2].preProcess != undefined) {
_local1.properties[_local2].valueComplete = _specialPropertyList[_local2].preProcess(_local5, _specialPropertyList[_local2].parameters, _local1.properties[_local2].originalValueComplete, _local1.properties[_local2].extra);
}
_local11 = _specialPropertyList[_local2].getValue(_local5, _specialPropertyList[_local2].parameters, _local1.properties[_local2].extra);
} else {
_local11 = _local5[_local2];
}
_local1.properties[_local2].valueStart = (isNaN(_local11) ? (_local1.properties[_local2].valueComplete) : (_local11));
}
_local14 = true;
_local1.hasStarted = true;
}
if (_local14) {
for (_local2 in _local1.properties) {
_local4 = _local1.properties[_local2];
if (_local13) {
_local3 = _local4.valueComplete;
} else if (_local4.hasModifier) {
_local7 = _local8 - _local1.timeStart;
_local6 = _local1.timeComplete - _local1.timeStart;
_local3 = _local1.transition(_local7, 0, 1, _local6, _local1.transitionParams);
_local3 = _local4.modifierFunction(_local4.valueStart, _local4.valueComplete, _local3, _local4.modifierParameters);
} else {
_local7 = _local8 - _local1.timeStart;
_local10 = _local4.valueStart;
_local9 = _local4.valueComplete - _local4.valueStart;
_local6 = _local1.timeComplete - _local1.timeStart;
_local3 = _local1.transition(_local7, _local10, _local9, _local6, _local1.transitionParams);
}
if (_local1.rounded) {
_local3 = Math.round(_local3);
}
if (_local4.isSpecialProperty) {
_specialPropertyList[_local2].setValue(_local5, _local3, _specialPropertyList[_local2].parameters, _local1.properties[_local2].extra);
} else {
_local5[_local2] = _local3;
}
}
_local1.updatesSkipped = 0;
if (_local1.onUpdate != undefined) {
_local12 = ((_local1.onUpdateScope != undefined) ? (_local1.onUpdateScope) : (_local5));
try {
_local1.onUpdate.apply(_local12, _local1.onUpdateParams);
} catch(e:Error) {
handleError(_local1, e, "onUpdate");
}
}
} else {
_local1.updatesSkipped++;
}
}
if (_local13 && (_local1.onComplete != undefined)) {
_local12 = ((_local1.onCompleteScope != undefined) ? (_local1.onCompleteScope) : (_local5));
try {
_local1.onComplete.apply(_local12, _local1.onCompleteParams);
} catch(e:Error) {
handleError(_local1, e, "onComplete");
}
}
return(!_local13);
}
return(true);
}
static function init() {
_inited = true;
_transitionList = new Object();
caurina.transitions.Equations.init();
_specialPropertyList = new Object();
_specialPropertyModifierList = new Object();
_specialPropertySplitterList = new Object();
}
static function registerTransition(p_name, p_function) {
if (!_inited) {
init();
}
_transitionList[p_name] = p_function;
}
static function registerSpecialProperty(p_name, p_getFunction, p_setFunction, p_parameters, p_preProcessFunction) {
if (!_inited) {
init();
}
var _local1 = new caurina.transitions.SpecialProperty(p_getFunction, p_setFunction, p_parameters, p_preProcessFunction);
_specialPropertyList[p_name] = _local1;
}
static function registerSpecialPropertyModifier(p_name, p_modifyFunction, p_getFunction) {
if (!_inited) {
init();
}
var _local1 = new caurina.transitions.SpecialPropertyModifier(p_modifyFunction, p_getFunction);
_specialPropertyModifierList[p_name] = _local1;
}
static function registerSpecialPropertySplitter(p_name, p_splitFunction, p_parameters) {
if (!_inited) {
init();
}
var _local1 = new caurina.transitions.SpecialPropertySplitter(p_splitFunction, p_parameters);
_specialPropertySplitterList[p_name] = _local1;
}
static function startEngine() {
_engineExists = true;
_tweenList = new Array();
var _local2 = Math.floor(Math.random() * 999999);
var _local3 = _root.createEmptyMovieClip(getControllerName(), 31338 + _local2);
_local3.onEnterFrame = function () {
caurina.transitions.Tweener.onEnterFrame();
};
_currentTimeFrame = 0;
updateTime();
}
static function stopEngine() {
_engineExists = false;
_tweenList = null;
_currentTime = 0;
_currentTimeFrame = 0;
delete _root[getControllerName()].onEnterFrame;
_root[getControllerName()].removeMovieClip();
}
static function updateTime() {
_currentTime = getTimer();
}
static function updateFrame() {
_currentTimeFrame++;
}
static function onEnterFrame() {
updateTime();
updateFrame();
var _local1 = false;
_local1 = updateTweens();
if (!_local1) {
stopEngine();
}
}
static function setTimeScale(p_time) {
var _local1;
var _local2;
if (isNaN(p_time)) {
p_time = 1;
}
if (p_time < 1E-5) {
p_time = 1E-5;
}
if (p_time != _timeScale) {
_local1 = 0;
while (_local1 < _tweenList.length) {
_local2 = getCurrentTweeningTime(_tweenList[_local1]);
_tweenList[_local1].timeStart = _local2 - (((_local2 - _tweenList[_local1].timeStart) * _timeScale) / p_time);
_tweenList[_local1].timeComplete = _local2 - (((_local2 - _tweenList[_local1].timeComplete) * _timeScale) / p_time);
if (_tweenList[_local1].timePaused != undefined) {
_tweenList[_local1].timePaused = _local2 - (((_local2 - _tweenList[_local1].timePaused) * _timeScale) / p_time);
}
_local1++;
}
_timeScale = p_time;
}
}
static function isTweening(p_scope) {
var _local1;
_local1 = 0;
while (_local1 < _tweenList.length) {
if (_tweenList[_local1].scope == p_scope) {
return(true);
}
_local1++;
}
return(false);
}
static function getTweens(p_scope) {
var _local1;
var _local2;
var _local3 = new Array();
_local1 = 0;
while (_local1 < _tweenList.length) {
if (_tweenList[_local1].scope == p_scope) {
for (_local2 in _tweenList[_local1].properties) {
_local3.push(_local2);
}
}
_local1++;
}
return(_local3);
}
static function getTweenCount(p_scope) {
var _local1;
var _local2 = 0;
_local1 = 0;
while (_local1 < _tweenList.length) {
if (_tweenList[_local1].scope == p_scope) {
_local2 = _local2 + caurina.transitions.AuxFunctions.getObjectLength(_tweenList[_local1].properties);
}
_local1++;
}
return(_local2);
}
static function handleError(pTweening, pError, pCallBackName) {
if ((pTweening.onError != undefined) && (typeof(pTweening.onError == "function"))) {
var _local3 = ((pTweening.onErrorScope != undefined) ? (pTweening.onErrorScope) : (pTweening.scope));
try {
pTweening.onError.apply(_local3, [pTweening.scope, pError]);
} catch(metaError:Error) {
printError((((pTweening.scope.toString() + " raised an error while executing the 'onError' handler. Original error:\n ") + pError) + "\nonError error: ") + metaError);
}
} else if (pTweening.onError == undefined) {
printError((((pTweening.scope.toString() + " raised an error while executing the '") + pCallBackName.toString()) + "'handler. \n") + pError);
}
}
static function getCurrentTweeningTime(p_tweening) {
return((p_tweening.useFrames ? (_currentTimeFrame) : (_currentTime)));
}
static function getVersion() {
return("AS2 1.31.71");
}
static function getControllerName() {
return("__tweener_controller__" + getVersion());
}
static function printError(p_message) {
}
static var _engineExists = false;
static var _inited = false;
static var _timeScale = 1;
}
Symbol 174 MovieClip [__Packages.caurina.transitions.TweenListObj] Frame 0
class caurina.transitions.TweenListObj
{
var scope, timeStart, timeComplete, useFrames, transition, transitionParams, properties, isPaused, timePaused, isCaller, updatesSkipped, timesCalled, skipUpdates, hasStarted, onStart, onUpdate, onComplete, onOverwrite, onError, onStartParams, onUpdateParams, onCompleteParams, onOverwriteParams, onStartScope, onUpdateScope, onCompleteScope, onOverwriteScope, onErrorScope, rounded, count, waitFrames;
function TweenListObj (p_scope, p_timeStart, p_timeComplete, p_useFrames, p_transition, p_transitionParams) {
scope = p_scope;
timeStart = p_timeStart;
timeComplete = p_timeComplete;
useFrames = p_useFrames;
transition = p_transition;
transitionParams = p_transitionParams;
properties = new Object();
isPaused = false;
timePaused = undefined;
isCaller = false;
updatesSkipped = 0;
timesCalled = 0;
skipUpdates = 0;
hasStarted = false;
}
function clone(omitEvents) {
var _local2 = new caurina.transitions.TweenListObj(scope, timeStart, timeComplete, useFrames, transition, transitionParams);
_local2.properties = new Object();
for (var _local3 in properties) {
_local2.properties[_local3] = properties[_local3].clone();
}
_local2.skipUpdates = skipUpdates;
_local2.updatesSkipped = updatesSkipped;
if (!omitEvents) {
_local2.onStart = onStart;
_local2.onUpdate = onUpdate;
_local2.onComplete = onComplete;
_local2.onOverwrite = onOverwrite;
_local2.onError = onError;
_local2.onStartParams = onStartParams;
_local2.onUpdateParams = onUpdateParams;
_local2.onCompleteParams = onCompleteParams;
_local2.onOverwriteParams = onOverwriteParams;
_local2.onStartScope = onStartScope;
_local2.onUpdateScope = onUpdateScope;
_local2.onCompleteScope = onCompleteScope;
_local2.onOverwriteScope = onOverwriteScope;
_local2.onErrorScope = onErrorScope;
}
_local2.rounded = rounded;
_local2.isPaused = isPaused;
_local2.timePaused = timePaused;
_local2.isCaller = isCaller;
_local2.count = count;
_local2.timesCalled = timesCalled;
_local2.waitFrames = waitFrames;
_local2.hasStarted = hasStarted;
return(_local2);
}
function toString() {
var _local2 = "\n[TweenListObj ";
_local2 = _local2 + ("scope:" + String(scope));
_local2 = _local2 + ", properties:";
var _local3 = true;
for (var _local4 in properties) {
if (!_local3) {
_local2 = _local2 + ",";
}
_local2 = _local2 + ("[name:" + properties[_local4].name);
_local2 = _local2 + (",valueStart:" + properties[_local4].valueStart);
_local2 = _local2 + (",valueComplete:" + properties[_local4].valueComplete);
_local2 = _local2 + "]";
_local3 = false;
}
_local2 = _local2 + (", timeStart:" + String(timeStart));
_local2 = _local2 + (", timeComplete:" + String(timeComplete));
_local2 = _local2 + (", useFrames:" + String(useFrames));
_local2 = _local2 + (", transition:" + String(transition));
_local2 = _local2 + (", transitionParams:" + String(transitionParams));
if (skipUpdates) {
_local2 = _local2 + (", skipUpdates:" + String(skipUpdates));
}
if (updatesSkipped) {
_local2 = _local2 + (", updatesSkipped:" + String(updatesSkipped));
}
if (onStart) {
_local2 = _local2 + (", onStart:" + String(onStart));
}
if (onUpdate) {
_local2 = _local2 + (", onUpdate:" + String(onUpdate));
}
if (onComplete) {
_local2 = _local2 + (", onComplete:" + String(onComplete));
}
if (onOverwrite) {
_local2 = _local2 + (", onOverwrite:" + String(onOverwrite));
}
if (onError) {
_local2 = _local2 + (", onError:" + String(onError));
}
if (onStartParams) {
_local2 = _local2 + (", onStartParams:" + String(onStartParams));
}
if (onUpdateParams) {
_local2 = _local2 + (", onUpdateParams:" + String(onUpdateParams));
}
if (onCompleteParams) {
_local2 = _local2 + (", onCompleteParams:" + String(onCompleteParams));
}
if (onOverwriteParams) {
_local2 = _local2 + (", onOverwriteParams:" + String(onOverwriteParams));
}
if (onStartScope) {
_local2 = _local2 + (", onStartScope:" + String(onStartScope));
}
if (onUpdateScope) {
_local2 = _local2 + (", onUpdateScope:" + String(onUpdateScope));
}
if (onCompleteScope) {
_local2 = _local2 + (", onCompleteScope:" + String(onCompleteScope));
}
if (onOverwriteScope) {
_local2 = _local2 + (", onOverwriteScope:" + String(onOverwriteScope));
}
if (onErrorScope) {
_local2 = _local2 + (", onErrorScope:" + String(onErrorScope));
}
if (rounded) {
_local2 = _local2 + (", rounded:" + String(rounded));
}
if (isPaused) {
_local2 = _local2 + (", isPaused:" + String(isPaused));
}
if (timePaused) {
_local2 = _local2 + (", timePaused:" + String(timePaused));
}
if (isCaller) {
_local2 = _local2 + (", isCaller:" + String(isCaller));
}
if (count) {
_local2 = _local2 + (", count:" + String(count));
}
if (timesCalled) {
_local2 = _local2 + (", timesCalled:" + String(timesCalled));
}
if (waitFrames) {
_local2 = _local2 + (", waitFrames:" + String(waitFrames));
}
if (hasStarted) {
_local2 = _local2 + (", hasStarted:" + String(hasStarted));
}
_local2 = _local2 + "]\n";
return(_local2);
}
static function makePropertiesChain(p_obj) {
var _local6 = p_obj.base;
if (_local6) {
var _local5 = {};
var _local2;
if (_local6 instanceof Array) {
_local2 = [];
var _local3 = 0;
while (_local3 < _local6.length) {
_local2.push(_local6[_local3]);
_local3++;
}
} else {
_local2 = [_local6];
}
_local2.push(p_obj);
var _local4;
var _local7 = _local2.length;
var _local1 = 0;
while (_local1 < _local7) {
if (_local2[_local1].base) {
_local4 = caurina.transitions.AuxFunctions.concatObjects(makePropertiesChain(_local2[_local1].base), _local2[_local1]);
} else {
_local4 = _local2[_local1];
}
_local5 = caurina.transitions.AuxFunctions.concatObjects(_local5, _local4);
_local1++;
}
if (_local5.base) {
delete _local5.base;
}
return(_local5);
}
return(p_obj);
}
}
Symbol 175 MovieClip [__Packages.caurina.transitions.AuxFunctions] Frame 0
class caurina.transitions.AuxFunctions
{
function AuxFunctions () {
}
static function numberToR(p_num) {
return((p_num & 16711680) >> 16);
}
static function numberToG(p_num) {
return((p_num & 65280) >> 8);
}
static function numberToB(p_num) {
return(p_num & 255);
}
static function isInArray(p_string, p_array) {
var _local2 = p_array.length;
var _local1 = 0;
while (_local1 < _local2) {
if (p_array[_local1] == p_string) {
return(true);
}
_local1++;
}
return(false);
}
static function getObjectLength(p_object) {
var _local1 = 0;
for (var _local2 in p_object) {
_local1++;
}
return(_local1);
}
static function concatObjects() {
var _local4 = {};
var _local2;
var _local3 = 0;
while (_local3 < arguments.length) {
_local2 = arguments[_local3];
for (var _local5 in _local2) {
if (_local2[_local5] == null) {
delete _local4[_local5];
} else {
_local4[_local5] = _local2[_local5];
}
}
_local3++;
}
return(_local4);
}
}
Symbol 176 MovieClip [__Packages.caurina.transitions.PropertyInfoObj] Frame 0
class caurina.transitions.PropertyInfoObj
{
var valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, hasModifier, modifierFunction, modifierParameters;
function PropertyInfoObj (p_valueStart, p_valueComplete, p_originalValueComplete, p_arrayIndex, p_extra, p_isSpecialProperty, p_modifierFunction, p_modifierParameters) {
valueStart = p_valueStart;
valueComplete = p_valueComplete;
originalValueComplete = p_originalValueComplete;
arrayIndex = p_arrayIndex;
extra = p_extra;
isSpecialProperty = p_isSpecialProperty;
hasModifier = p_modifierFunction != undefined;
modifierFunction = p_modifierFunction;
modifierParameters = p_modifierParameters;
}
function clone() {
var _local2 = new caurina.transitions.PropertyInfoObj(valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, modifierFunction, modifierParameters);
return(_local2);
}
function toString() {
var _local2 = "\n[PropertyInfoObj ";
_local2 = _local2 + ("valueStart:" + String(valueStart));
_local2 = _local2 + ", ";
_local2 = _local2 + ("valueComplete:" + String(valueComplete));
_local2 = _local2 + ", ";
_local2 = _local2 + ("originalValueComplete:" + String(originalValueComplete));
_local2 = _local2 + ", ";
_local2 = _local2 + ("arrayIndex:" + String(arrayIndex));
_local2 = _local2 + ", ";
_local2 = _local2 + ("extra:" + String(extra));
_local2 = _local2 + ", ";
_local2 = _local2 + ("isSpecialProperty:" + String(isSpecialProperty));
_local2 = _local2 + ", ";
_local2 = _local2 + ("hasModifier:" + String(hasModifier));
_local2 = _local2 + ", ";
_local2 = _local2 + ("modifierFunction:" + String(modifierFunction));
_local2 = _local2 + ", ";
_local2 = _local2 + ("modifierParameters:" + String(modifierParameters));
_local2 = _local2 + "]\n";
return(_local2);
}
}
Symbol 177 MovieClip [__Packages.caurina.transitions.Equations] Frame 0
class caurina.transitions.Equations
{
function Equations () {
}
static function init() {
caurina.transitions.Tweener.registerTransition("easenone", easeNone);
caurina.transitions.Tweener.registerTransition("linear", easeNone);
caurina.transitions.Tweener.registerTransition("easeinquad", easeInQuad);
caurina.transitions.Tweener.registerTransition("easeoutquad", easeOutQuad);
caurina.transitions.Tweener.registerTransition("easeinoutquad", easeInOutQuad);
caurina.transitions.Tweener.registerTransition("easeoutinquad", easeOutInQuad);
caurina.transitions.Tweener.registerTransition("easeincubic", easeInCubic);
caurina.transitions.Tweener.registerTransition("easeoutcubic", easeOutCubic);
caurina.transitions.Tweener.registerTransition("easeinoutcubic", easeInOutCubic);
caurina.transitions.Tweener.registerTransition("easeoutincubic", easeOutInCubic);
caurina.transitions.Tweener.registerTransition("easeinquart", easeInQuart);
caurina.transitions.Tweener.registerTransition("easeoutquart", easeOutQuart);
caurina.transitions.Tweener.registerTransition("easeinoutquart", easeInOutQuart);
caurina.transitions.Tweener.registerTransition("easeoutinquart", easeOutInQuart);
caurina.transitions.Tweener.registerTransition("easeinquint", easeInQuint);
caurina.transitions.Tweener.registerTransition("easeoutquint", easeOutQuint);
caurina.transitions.Tweener.registerTransition("easeinoutquint", easeInOutQuint);
caurina.transitions.Tweener.registerTransition("easeoutinquint", easeOutInQuint);
caurina.transitions.Tweener.registerTransition("easeinsine", easeInSine);
caurina.transitions.Tweener.registerTransition("easeoutsine", easeOutSine);
caurina.transitions.Tweener.registerTransition("easeinoutsine", easeInOutSine);
caurina.transitions.Tweener.registerTransition("easeoutinsine", easeOutInSine);
caurina.transitions.Tweener.registerTransition("easeincirc", easeInCirc);
caurina.transitions.Tweener.registerTransition("easeoutcirc", easeOutCirc);
caurina.transitions.Tweener.registerTransition("easeinoutcirc", easeInOutCirc);
caurina.transitions.Tweener.registerTransition("easeoutincirc", easeOutInCirc);
caurina.transitions.Tweener.registerTransition("easeinexpo", easeInExpo);
caurina.transitions.Tweener.registerTransition("easeoutexpo", easeOutExpo);
caurina.transitions.Tweener.registerTransition("easeinoutexpo", easeInOutExpo);
caurina.transitions.Tweener.registerTransition("easeoutinexpo", easeOutInExpo);
caurina.transitions.Tweener.registerTransition("easeinelastic", easeInElastic);
caurina.transitions.Tweener.registerTransition("easeoutelastic", easeOutElastic);
caurina.transitions.Tweener.registerTransition("easeinoutelastic", easeInOutElastic);
caurina.transitions.Tweener.registerTransition("easeoutinelastic", easeOutInElastic);
caurina.transitions.Tweener.registerTransition("easeinback", easeInBack);
caurina.transitions.Tweener.registerTransition("easeoutback", easeOutBack);
caurina.transitions.Tweener.registerTransition("easeinoutback", easeInOutBack);
caurina.transitions.Tweener.registerTransition("easeoutinback", easeOutInBack);
caurina.transitions.Tweener.registerTransition("easeinbounce", easeInBounce);
caurina.transitions.Tweener.registerTransition("easeoutbounce", easeOutBounce);
caurina.transitions.Tweener.registerTransition("easeinoutbounce", easeInOutBounce);
caurina.transitions.Tweener.registerTransition("easeoutinbounce", easeOutInBounce);
}
static function easeNone(t, b, c, d, p_params) {
return(((c * t) / d) + b);
}
static function easeInQuad(t, b, c, d, p_params) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOutQuad(t, b, c, d, p_params) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOutQuad(t, b, c, d, p_params) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static function easeOutInQuad(t, b, c, d, p_params) {
if (t < (d / 2)) {
return(easeOutQuad(t * 2, b, c / 2, d, p_params));
}
return(easeInQuad((t * 2) - d, b + (c / 2), c / 2, d, p_params));
}
static function easeInCubic(t, b, c, d, p_params) {
t = t / d;
return((((c * t) * t) * t) + b);
}
static function easeOutCubic(t, b, c, d, p_params) {
t = (t / d) - 1;
return((c * (((t * t) * t) + 1)) + b);
}
static function easeInOutCubic(t, b, c, d, p_params) {
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);
}
static function easeOutInCubic(t, b, c, d, p_params) {
if (t < (d / 2)) {
return(easeOutCubic(t * 2, b, c / 2, d, p_params));
}
return(easeInCubic((t * 2) - d, b + (c / 2), c / 2, d, p_params));
}
static function easeInQuart(t, b, c, d, p_params) {
t = t / d;
return(((((c * t) * t) * t) * t) + b);
}
static function easeOutQuart(t, b, c, d, p_params) {
t = (t / d) - 1;
return(((-c) * ((((t * t) * t) * t) - 1)) + b);
}
static function easeInOutQuart(t, b, c, d, p_params) {
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);
}
static function easeOutInQuart(t, b, c, d, p_params) {
if (t < (d / 2)) {
return(easeOutQuart(t * 2, b, c / 2, d, p_params));
}
return(easeInQuart((t * 2) - d, b + (c / 2), c / 2, d, p_params));
}
static function easeInQuint(t, b, c, d, p_params) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOutQuint(t, b, c, d, p_params) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOutQuint(t, b, c, d, p_params) {
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);
}
static function easeOutInQuint(t, b, c, d, p_params) {
if (t < (d / 2)) {
return(easeOutQuint(t * 2, b, c / 2, d, p_params));
}
return(easeInQuint((t * 2) - d, b + (c / 2), c / 2, d, p_params));
}
static function easeInSine(t, b, c, d, p_params) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
}
static function easeOutSine(t, b, c, d, p_params) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
}
static function easeInOutSine(t, b, c, d, p_params) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
}
static function easeOutInSine(t, b, c, d, p_params) {
if (t < (d / 2)) {
return(easeOutSine(t * 2, b, c / 2, d, p_params));
}
return(easeInSine((t * 2) - d, b + (c / 2), c / 2, d, p_params));
}
static function easeInExpo(t, b, c, d, p_params) {
return(((t == 0) ? (b) : (((c * Math.pow(2, 10 * ((t / d) - 1))) + b) - (c * 0.001))));
}
static function easeOutExpo(t, b, c, d, p_params) {
return(((t == d) ? (b + c) : (((c * 1.001) * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
}
static function easeInOutExpo(t, b, c, d, p_params) {
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) - (c * 0.0005));
}
t--;
return((((c / 2) * 1.0005) * ((-Math.pow(2, -10 * t)) + 2)) + b);
}
static function easeOutInExpo(t, b, c, d, p_params) {
if (t < (d / 2)) {
return(easeOutExpo(t * 2, b, c / 2, d, p_params));
}
return(easeInExpo((t * 2) - d, b + (c / 2), c / 2, d, p_params));
}
static function easeInCirc(t, b, c, d, p_params) {
t = t / d;
return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
static function easeOutCirc(t, b, c, d, p_params) {
t = (t / d) - 1;
return((c * Math.sqrt(1 - (t * t))) + b);
}
static function easeInOutCirc(t, b, c, d, p_params) {
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);
}
static function easeOutInCirc(t, b, c, d, p_params) {
if (t < (d / 2)) {
return(easeOutCirc(t * 2, b, c / 2, d, p_params));
}
return(easeInCirc((t * 2) - d, b + (c / 2), c / 2, d, p_params));
}
static function easeInElastic(t, b, c, d, p_params) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
var _local2 = ((p_params.period == undefined) ? (d * 0.3) : (p_params.period));
var _local5;
var _local1 = p_params.amplitude;
if ((!_local1) || (_local1 < Math.abs(c))) {
_local1 = c;
_local5 = _local2 / 4;
} else {
_local5 = (_local2 / (Math.PI*2)) * Math.asin(c / _local1);
}
t = t - 1;
return((-((_local1 * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / _local2))) + b);
}
static function easeOutElastic(t, b, c, d, p_params) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
var _local3 = ((p_params.period == undefined) ? (d * 0.3) : (p_params.period));
var _local5;
var _local1 = p_params.amplitude;
if ((!_local1) || (_local1 < Math.abs(c))) {
_local1 = c;
_local5 = _local3 / 4;
} else {
_local5 = (_local3 / (Math.PI*2)) * Math.asin(c / _local1);
}
return((((_local1 * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / _local3)) + c) + b);
}
static function easeInOutElastic(t, b, c, d, p_params) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
var _local3 = ((p_params.period == undefined) ? (d * 0.45) : (p_params.period));
var _local5;
var _local1 = p_params.amplitude;
if ((!_local1) || (_local1 < Math.abs(c))) {
_local1 = c;
_local5 = _local3 / 4;
} else {
_local5 = (_local3 / (Math.PI*2)) * Math.asin(c / _local1);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((_local1 * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / _local3))) + b);
}
t = t - 1;
return(((((_local1 * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / _local3)) * 0.5) + c) + b);
}
static function easeOutInElastic(t, b, c, d, p_params) {
if (t < (d / 2)) {
return(easeOutElastic(t * 2, b, c / 2, d, p_params));
}
return(easeInElastic((t * 2) - d, b + (c / 2), c / 2, d, p_params));
}
static function easeInBack(t, b, c, d, p_params) {
var _local1 = ((p_params.overshoot == undefined) ? 1.70158 : (p_params.overshoot));
t = t / d;
return((((c * t) * t) * (((_local1 + 1) * t) - _local1)) + b);
}
static function easeOutBack(t, b, c, d, p_params) {
var _local2 = ((p_params.overshoot == undefined) ? 1.70158 : (p_params.overshoot));
t = (t / d) - 1;
return((c * (((t * t) * (((_local2 + 1) * t) + _local2)) + 1)) + b);
}
static function easeInOutBack(t, b, c, d, p_params) {
var _local2 = ((p_params.overshoot == undefined) ? 1.70158 : (p_params.overshoot));
t = t / (d / 2);
if (t < 1) {
_local2 = _local2 * 1.525;
return(((c / 2) * ((t * t) * (((_local2 + 1) * t) - _local2))) + b);
}
t = t - 2;
_local2 = _local2 * 1.525;
return(((c / 2) * (((t * t) * (((_local2 + 1) * t) + _local2)) + 2)) + b);
}
static function easeOutInBack(t, b, c, d, p_params) {
if (t < (d / 2)) {
return(easeOutBack(t * 2, b, c / 2, d, p_params));
}
return(easeInBack((t * 2) - d, b + (c / 2), c / 2, d, p_params));
}
static function easeInBounce(t, b, c, d, p_params) {
return((c - easeOutBounce(d - t, 0, c, d)) + b);
}
static function easeOutBounce(t, b, c, d, p_params) {
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);
}
static function easeInOutBounce(t, b, c, d, p_params) {
if (t < (d / 2)) {
return((easeInBounce(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOutBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static function easeOutInBounce(t, b, c, d, p_params) {
if (t < (d / 2)) {
return(easeOutBounce(t * 2, b, c / 2, d, p_params));
}
return(easeInBounce((t * 2) - d, b + (c / 2), c / 2, d, p_params));
}
}
Symbol 178 MovieClip [__Packages.caurina.transitions.SpecialProperty] Frame 0
class caurina.transitions.SpecialProperty
{
var getValue, setValue, parameters, preProcess;
function SpecialProperty (p_getFunction, p_setFunction, p_parameters, p_preProcessFunction) {
getValue = p_getFunction;
setValue = p_setFunction;
parameters = p_parameters;
preProcess = p_preProcessFunction;
}
function toString() {
var _local2 = "";
_local2 = _local2 + "[SpecialProperty ";
_local2 = _local2 + ("getValue:" + getValue.toString());
_local2 = _local2 + ", ";
_local2 = _local2 + ("setValue:" + setValue.toString());
_local2 = _local2 + ", ";
_local2 = _local2 + ("parameters:" + parameters.toString());
_local2 = _local2 + ", ";
_local2 = _local2 + ("preProcess:" + preProcess.toString());
_local2 = _local2 + "]";
return(_local2);
}
}
Symbol 179 MovieClip [__Packages.caurina.transitions.SpecialPropertyModifier] Frame 0
class caurina.transitions.SpecialPropertyModifier
{
var modifyValues, getValue;
function SpecialPropertyModifier (p_modifyFunction, p_getFunction) {
modifyValues = p_modifyFunction;
getValue = p_getFunction;
}
function toString() {
var _local2 = "";
_local2 = _local2 + "[SpecialPropertyModifier ";
_local2 = _local2 + ("modifyValues:" + modifyValues.toString());
_local2 = _local2 + ", ";
_local2 = _local2 + ("getValue:" + getValue.toString());
_local2 = _local2 + "]";
return(_local2);
}
}
Symbol 180 MovieClip [__Packages.caurina.transitions.SpecialPropertySplitter] Frame 0
class caurina.transitions.SpecialPropertySplitter
{
var parameters;
function SpecialPropertySplitter (p_splitFunction, p_parameters) {
splitValues = p_splitFunction;
parameters = p_parameters;
}
function splitValues(p_value, p_parameters) {
return([]);
}
function toString() {
var _local2 = "";
_local2 = _local2 + "[SpecialPropertySplitter ";
_local2 = _local2 + ("splitValues:" + splitValues.toString());
_local2 = _local2 + ", ";
_local2 = _local2 + ("parameters:" + parameters.toString());
_local2 = _local2 + "]";
return(_local2);
}
}
Symbol 181 MovieClip [__Packages.caurina.transitions.properties.DisplayShortcuts] Frame 0
class caurina.transitions.properties.DisplayShortcuts
{
function DisplayShortcuts () {
}
static function init() {
caurina.transitions.Tweener.registerSpecialProperty("_frame", _frame_get, _frame_set);
caurina.transitions.Tweener.registerSpecialProperty("_autoAlpha", _autoAlpha_get, _autoAlpha_set);
caurina.transitions.Tweener.registerSpecialPropertySplitter("_scale", _scale_splitter);
caurina.transitions.Tweener.registerSpecialPropertySplitter("_scrollRect", _scrollRect_splitter);
caurina.transitions.Tweener.registerSpecialProperty("_scrollRect_x", _scrollRect_property_get, _scrollRect_property_set, ["x"]);
caurina.transitions.Tweener.registerSpecialProperty("_scrollRect_y", _scrollRect_property_get, _scrollRect_property_set, ["y"]);
caurina.transitions.Tweener.registerSpecialProperty("_scrollRect_left", _scrollRect_property_get, _scrollRect_property_set, ["left"]);
caurina.transitions.Tweener.registerSpecialProperty("_scrollRect_right", _scrollRect_property_get, _scrollRect_property_set, ["right"]);
caurina.transitions.Tweener.registerSpecialProperty("_scrollRect_top", _scrollRect_property_get, _scrollRect_property_set, ["top"]);
caurina.transitions.Tweener.registerSpecialProperty("_scrollRect_bottom", _scrollRect_property_get, _scrollRect_property_set, ["bottom"]);
caurina.transitions.Tweener.registerSpecialProperty("_scrollRect_width", _scrollRect_property_get, _scrollRect_property_set, ["width"]);
caurina.transitions.Tweener.registerSpecialProperty("_scrollRect_height", _scrollRect_property_get, _scrollRect_property_set, ["height"]);
}
static function _scale_splitter(p_value, p_parameters) {
var _local1 = new Array();
_local1.push({name:"_xscale", value:p_value});
_local1.push({name:"_yscale", value:p_value});
return(_local1);
}
static function _scrollRect_splitter(p_value, p_parameters) {
var _local1 = new Array();
if (p_value == null) {
_local1.push({name:"_scrollRect_x", value:0});
_local1.push({name:"_scrollRect_y", value:0});
_local1.push({name:"_scrollRect_width", value:100});
_local1.push({name:"_scrollRect_height", value:100});
} else {
_local1.push({name:"_scrollRect_x", value:p_value.x});
_local1.push({name:"_scrollRect_y", value:p_value.y});
_local1.push({name:"_scrollRect_width", value:p_value.width});
_local1.push({name:"_scrollRect_height", value:p_value.height});
}
return(_local1);
}
static function _frame_get(p_obj) {
return(p_obj._currentframe);
}
static function _frame_set(p_obj, p_value) {
p_obj.gotoAndStop(Math.round(p_value));
}
static function _autoAlpha_get(p_obj) {
return(p_obj._alpha);
}
static function _autoAlpha_set(p_obj, p_value) {
p_obj._alpha = p_value;
p_obj._visible = p_value > 0;
}
static function _scrollRect_property_get(p_obj, p_parameters) {
return(p_obj.scrollRect[p_parameters[0]]);
}
static function _scrollRect_property_set(p_obj, p_value, p_parameters) {
var _local1 = p_obj.scrollRect;
_local1[p_parameters[0]] = Math.round(p_value);
p_obj.scrollRect = _local1;
}
}
Symbol 182 MovieClip [__Packages.gs.TweenLite] Frame 0
class gs.TweenLite
{
static var _e, _classInitted, _curTime, _gc, _listening;
var tweenID, endTargetID, vars, duration, delay, target, tweens, _subTweens, _hst, _initted, _active, initTime, startTime;
function TweenLite ($target, $duration, $vars) {
_cnt++;
tweenID = "tw" + _cnt;
endTargetID = getID($target, true);
if (($vars.overwrite != false) && ($target != undefined)) {
delete _all[endTargetID];
_all[endTargetID] = {info:[$target, endTargetID]};
}
_all[endTargetID][tweenID] = this;
vars = $vars;
duration = $duration || 0.001;
delay = $vars.delay || 0;
target = $target;
if (typeof(vars.ease) != "function") {
vars.ease = defaultEase;
}
if (vars.easeParams != undefined) {
vars.proxiedEase = vars.ease;
vars.ease = easeProxy;
}
if (typeof(vars.autoAlpha) == "number") {
vars._alpha = vars.autoAlpha;
}
tweens = [];
_subTweens = [];
_hst = (_initted = false);
_active = ($duration == 0) && (delay == 0);
if ((_e._visible != false) || (!_classInitted)) {
_curTime = getTimer();
_e = _root.createEmptyMovieClip("_tweenLite_mc", _root.getNextHighestDepth() || 9999);
_e.swapDepths(-1);
_e._visible = false;
clearInterval(_gc);
_gc = setInterval(killGarbage, 2000);
_e.onEnterFrame = executeAll;
_classInitted = true;
}
initTime = _curTime;
if (_active || ((vars.runBackwards == true) && (vars.renderOnStart != true))) {
initTweenVals();
startTime = _curTime;
if (_active) {
render(startTime + 1);
} else {
render(startTime);
}
}
if ((!_active) && (!_listening)) {
_listening = true;
}
}
function initTweenVals($hrp, $reservedProps) {
var _local6 = typeof(target) == "movieclip";
var _local8;
var _local2;
if (target instanceof Array) {
var _local9 = vars.endArray || ([]);
_local2 = 0;
while (_local2 < _local9.length) {
if ((target[_local2] != _local9[_local2]) && (target[_local2] != undefined)) {
tweens.push({o:target, p:_local2.toString(), s:target[_local2], c:_local9[_local2] - target[_local2]});
}
_local2++;
}
} else {
for (_local8 in vars) {
if ((((((((((((((((((_local8 == "ease") || (_local8 == "delay")) || (_local8 == "overwrite")) || (_local8 == "onComplete")) || (_local8 == "onCompleteParams")) || (_local8 == "onCompleteScope")) || (_local8 == "runBackwards")) || (_local8 == "onUpdate")) || (_local8 == "onUpdateParams")) || (_local8 == "onUpdateScope")) || (_local8 == "autoAlpha")) || (_local8 == "onStart")) || (_local8 == "onStartParams")) || (_local8 == "onStartScope")) || (_local8 == "renderOnStart")) || (_local8 == "proxiedEase")) || (_local8 == "easeParams")) || ($hrp && ($reservedProps.indexOf((" " + _local8) + " ") != -1))) {
} else if ((_local8 == "tint") && (_local6 || (target instanceof TextField))) {
var _local4 = new Color(target);
var _local3 = vars._alpha;
if (_local3 != undefined) {
delete vars._alpha;
_local2 = tweens.length - 1;
while (_local2 > -1) {
if (tweens[_local2].p == "_alpha") {
tweens.splice(_local2, 1);
break;
}
_local2--;
}
} else {
_local3 = target._alpha;
}
if ((vars[_local8] == null) || (vars[_local8] == "")) {
addSubTween(tintProxy, _local4.getTransform(), {rb:0, gb:0, bb:0, ab:0, ra:_local3, ga:_local3, ba:_local3, aa:_local3}, {color:_local4});
} else {
addSubTween(tintProxy, _local4.getTransform(), {rb:vars[_local8] >> 16, gb:(vars[_local8] >> 8) & 255, bb:vars[_local8] & 255, ra:0, ga:0, ba:0, aa:_local3}, {color:_local4});
}
} else if ((_local8 == "frame") && (_local6)) {
addSubTween(frameProxy, {frame:target._currentframe}, {frame:vars[_local8]}, {mc:target});
} else if ((_local8 == "volume") && (_local6 || (target instanceof Sound))) {
var _local5;
if (_local6) {
_local5 = new Sound(target);
} else {
_local5 = Sound(target);
}
addSubTween(volumeProxy, {volume:_local5.getVolume()}, {volume:vars[_local8]}, {sound:_local5});
} else if (target[_local8] != undefined) {
if (typeof(vars[_local8]) == "number") {
tweens.push({o:target, p:_local8, s:target[_local8], c:vars[_local8] - target[_local8]});
} else {
tweens.push({o:target, p:_local8, s:target[_local8], c:Number(vars[_local8])});
}
}
}
}
if (vars.runBackwards == true) {
var _local7;
_local2 = tweens.length - 1;
while (_local2 > -1) {
_local7 = tweens[_local2];
_local7.s = _local7.s + _local7.c;
_local7.c = _local7.c * -1;
_local2--;
}
}
if (typeof(vars.autoAlpha) == "number") {
target._visible = !((vars.runBackwards == true) && (target._alpha == 0));
}
_initted = true;
}
function addSubTween($proxy, $target, $props, $info) {
var _local5 = {proxy:$proxy, target:$target, info:$info};
_subTweens.push(_local5);
for (var _local8 in $props) {
if ($target[_local8] != undefined) {
if (typeof($props[_local8]) == "number") {
tweens.push({o:$target, p:_local8, s:$target[_local8], c:$props[_local8] - $target[_local8], sub:_local5});
} else {
tweens.push({o:$target, p:_local8, s:$target[_local8], c:Number($props[_local8]), sub:_local5});
}
}
}
_hst = true;
}
static function to($target, $duration, $vars) {
return(new gs.TweenLite($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenLite($target, $duration, $vars));
}
static function delayedCall($delay, $onComplete, $onCompleteParams, $onCompleteScope) {
return(new gs.TweenLite($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, onCompleteScope:$onCompleteScope, overwrite:false}));
}
function render($t) {
var _local5 = ($t - startTime) / 1000;
if (_local5 > duration) {
_local5 = duration;
}
var _local3;
var _local2;
var _local4 = vars.ease(_local5, 0, 1, duration);
_local2 = tweens.length - 1;
while (_local2 > -1) {
_local3 = tweens[_local2];
_local3.o[_local3.p] = _local3.s + (_local4 * _local3.c);
_local2--;
}
if (_hst) {
_local2 = _subTweens.length - 1;
while (_local2 > -1) {
_subTweens[_local2].proxy(_subTweens[_local2]);
_local2--;
}
}
if (vars.onUpdate != undefined) {
vars.onUpdate.apply(vars.onUpdateScope, vars.onUpdateParams);
}
if (_local5 == duration) {
complete(true);
}
}
static function executeAll() {
var _local5 = (_curTime = getTimer());
if (_listening) {
var _local2 = _all;
var _local1;
var _local4;
var _local3;
for (_local3 in _local2) {
for (_local4 in _local2[_local3]) {
_local1 = _local2[_local3][_local4];
if (_local1.active) {
_local1.render(_local5);
}
}
}
}
}
static function removeTween($t) {
_all[$t.endTargetID][$t.tweenID] = {active:false};
delete _all[$t.endTargetID][$t.tweenID];
}
static function killTweensOf($tg, $complete) {
var _local3 = getID($tg, true);
if ($complete) {
var _local1 = _all[_local3];
for (var _local2 in _local1) {
_local1[_local2].complete(false);
}
}
delete _all[_local3];
}
function complete($skipRender) {
if ($skipRender != true) {
if (!_initted) {
initTweenVals();
}
startTime = _curTime - (duration * 1000);
render(_curTime);
return(undefined);
}
if ((typeof(vars.autoAlpha) == "number") && (target._alpha == 0)) {
target._visible = false;
}
if (vars.onComplete) {
vars.onComplete.apply(vars.onCompleteScope, vars.onCompleteParams);
}
removeTween(this);
}
static function getID($tg, $lookup) {
var _local3;
if ($lookup) {
var _local1 = _all;
if (typeof($tg) == "movieclip") {
if (_local1[String($tg)] != undefined) {
return(String($tg));
}
_local3 = String($tg);
_all[_local3] = {info:[$tg, _local3]};
return(_local3);
}
for (var _local4 in _local1) {
if (_local1[_local4].info[0] == $tg) {
return(_local4);
}
}
}
_cnt++;
_local3 = "t" + _cnt;
_all[_local3] = {info:[$tg, _local3]};
return(_local3);
}
static function killGarbage() {
if (_listening) {
var _local1 = _all;
var _local2;
var _local3;
var _local5;
var _local6 = 0;
var _local4 = 0;
for (_local3 in _local1) {
_local4 = 0;
for (_local5 in _local1[_local3]) {
_local2 = _local1[_local3][_local5];
if (_local2.tweens == undefined) {
} else {
_local4++;
}
}
if (_local4 == 0) {
delete _local1[_local3];
} else {
_local6++;
}
}
if (_local6 == 0) {
_listening = false;
}
}
}
static function defaultEase($t, $b, $c, $d) {
$t = $t / $d;
return((((-$c) * $t) * ($t - 2)) + $b);
}
function easeProxy($t, $b, $c, $d) {
var _local3 = this;
return(_local3.proxiedEase.apply(null, arguments.concat(_local3.easeParams)));
}
static function tintProxy($o) {
$o.info.color.setTransform($o.target);
}
static function frameProxy($o) {
$o.info.mc.gotoAndStop(Math.round($o.target.frame));
}
static function volumeProxy($o) {
$o.info.sound.setVolume($o.target.volume);
}
function get active() {
if (_active) {
return(true);
}
if (((_curTime - initTime) / 1000) > delay) {
_active = true;
startTime = initTime + (delay * 1000);
if (!_initted) {
initTweenVals();
} else if (typeof(vars.autoAlpha) == "number") {
target._visible = true;
}
if (duration == 0.001) {
startTime = startTime - 1;
}
if (vars.onStart != undefined) {
vars.onStart.apply(vars.onStartScope, vars.onStartParams);
}
return(true);
}
return(false);
}
static var version = 6.21;
static var killDelayedCallsTo = killTweensOf;
static var _all = new Object();
static var _cnt = -16000;
static var _hrp = false;
}
Symbol 183 MovieClip [__Packages.gs.TweenFilterLite] Frame 0
class gs.TweenFilterLite extends gs.TweenLite
{
var _clrsa, _filters, _matrix, target, vars, _cmf, _endMatrix, tweens, startTime, duration, _hst, _subTweens;
function TweenFilterLite ($target, $duration, $vars) {
super($target, $duration, $vars);
if ((gs.TweenLite.version < 6.21) || (gs.TweenLite.version == undefined)) {
}
if ($vars.type != undefined) {
}
}
static function to($target, $duration, $vars) {
return(new gs.TweenFilterLite($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenFilterLite($target, $duration, $vars));
}
function initTweenVals($hrp, $reservedProps) {
_clrsa = [];
_filters = [];
_matrix = _idMatrix.slice();
$reservedProps = $reservedProps || "";
$reservedProps = $reservedProps + " blurFilter glowFilter colorMatrixFilter dropShadowFilter bevelFilter ";
if ((typeof(target) == "movieclip") || (target instanceof TextField)) {
var _local4;
var _local5;
if (vars.blurFilter != undefined) {
_local5 = vars.blurFilter;
addFilter("blur", _local5, flash.filters.BlurFilter, ["blurX", "blurY", "quality"], new flash.filters.BlurFilter(0, 0, _local5.quality || 2));
}
if (vars.glowFilter != undefined) {
_local5 = vars.glowFilter;
addFilter("glow", _local5, flash.filters.GlowFilter, ["alpha", "blurX", "blurY", "color", "quality", "strength", "inner", "knockout"], new flash.filters.GlowFilter(16777215, 0, 0, 0, _local5.strength || 1, _local5.quality || 2, _local5.inner, _local5.knockout));
}
if (vars.colorMatrixFilter != undefined) {
_local5 = vars.colorMatrixFilter;
var _local11 = addFilter("colorMatrix", _local5, flash.filters.ColorMatrixFilter, [], new flash.filters.ColorMatrixFilter(_matrix));
_cmf = _local11.filter;
_matrix = _cmf.matrix;
if ((_local5.matrix != undefined) && (_local5.matrix instanceof Array)) {
_endMatrix = _local5.matrix;
} else {
if (_local5.relative == true) {
_endMatrix = _matrix.slice();
} else {
_endMatrix = _idMatrix.slice();
}
_endMatrix = setBrightness(_endMatrix, _local5.brightness);
_endMatrix = setContrast(_endMatrix, _local5.contrast);
_endMatrix = setHue(_endMatrix, _local5.hue);
_endMatrix = setSaturation(_endMatrix, _local5.saturation);
_endMatrix = setThreshold(_endMatrix, _local5.threshold);
if (!isNaN(_local5.colorize)) {
_endMatrix = colorize(_endMatrix, _local5.colorize, _local5.amount);
} else if (!isNaN(_local5.color)) {
_endMatrix = colorize(_endMatrix, _local5.color, _local5.amount);
}
}
_local4 = 0;
while (_local4 < _endMatrix.length) {
if ((_matrix[_local4] != _endMatrix[_local4]) && (_matrix[_local4] != undefined)) {
tweens.push({o:_matrix, p:_local4.toString(), s:_matrix[_local4], c:_endMatrix[_local4] - _matrix[_local4]});
}
_local4++;
}
}
if (vars.dropShadowFilter != undefined) {
_local5 = vars.dropShadowFilter;
addFilter("dropShadow", _local5, flash.filters.DropShadowFilter, ["alpha", "angle", "blurX", "blurY", "color", "distance", "quality", "strength", "inner", "knockout", "hideObject"], new flash.filters.DropShadowFilter(0, 45, 0, 0, 0, 0, 1, _local5.quality || 2, _local5.inner, _local5.knockout, _local5.hideObject));
}
if (vars.bevelFilter != undefined) {
_local5 = vars.bevelFilter;
addFilter("bevel", _local5, flash.filters.BevelFilter, ["angle", "blurX", "blurY", "distance", "highlightAlpha", "highlightColor", "quality", "shadowAlpha", "shadowColor", "strength"], new flash.filters.BevelFilter(0, 0, 16777215, 0.5, 0, 0.5, 2, 2, 0, _local5.quality || 2));
}
if (vars.runBackwards == true) {
var _local3;
_local4 = 0;
while (_local4 < _clrsa.length) {
_local3 = _clrsa[_local4];
_local3.sr = _local3.sr + _local3.cr;
_local3.cr = _local3.cr * -1;
_local3.sg = _local3.sg + _local3.cg;
_local3.cg = _local3.cg * -1;
_local3.sb = _local3.sb + _local3.cb;
_local3.cb = _local3.cb * -1;
_local3.f[_local3.p] = ((_local3.sr << 16) | (_local3.sg << 8)) | _local3.sb;
_local4++;
}
}
super.initTweenVals(true, $reservedProps);
} else {
super.initTweenVals($hrp, $reservedProps);
}
}
function addFilter($name, $fv, $filterType, $props, $defaultFilter) {
var _local5 = {type:$filterType};
var _local8 = target.filters;
var _local3;
_local3 = 0;
while (_local3 < _local8.length) {
if (_local8[_local3] instanceof $filterType) {
_local5.filter = _local8[_local3];
break;
}
_local3++;
}
if (_local5.filter == undefined) {
_local5.filter = $defaultFilter;
_local8.push(_local5.filter);
target.filters = _local8;
}
var _local2;
var _local9;
var _local4;
var _local7;
_local3 = 0;
while (_local3 < $props.length) {
_local2 = $props[_local3];
if ($fv[_local2] != undefined) {
if (((_local2 == "color") || (_local2 == "highlightColor")) || (_local2 == "shadowColor")) {
_local4 = HEXtoRGB(_local5.filter[_local2]);
_local7 = HEXtoRGB($fv[_local2]);
_clrsa.push({f:_local5.filter, p:_local2, sr:_local4.rb, cr:_local7.rb - _local4.rb, sg:_local4.gb, cg:_local7.gb - _local4.gb, sb:_local4.bb, cb:_local7.bb - _local4.bb});
} else if ((((_local2 == "quality") || (_local2 == "inner")) || (_local2 == "knockout")) || (_local2 == "hideObject")) {
_local5.filter[_local2] = $fv[_local2];
} else {
if (typeof($fv[_local2]) == "number") {
_local9 = $fv[_local2] - _local5.filter[_local2];
} else {
_local9 = Number($fv[_local2]);
}
tweens.push({o:_local5.filter, p:_local2, s:_local5.filter[_local2], c:_local9});
}
}
_local3++;
}
_filters.push(_local5);
_hf = true;
return(_local5);
}
function render($t) {
var _local11 = ($t - startTime) / 1000;
if (_local11 > duration) {
_local11 = duration;
}
var _local7 = vars.ease(_local11, 0, 1, duration);
var _local4;
var _local3;
var _local5;
var _local9;
var _local10;
var _local8;
_local3 = tweens.length - 1;
while (_local3 > -1) {
_local4 = tweens[_local3];
_local4.o[_local4.p] = _local4.s + (_local7 * _local4.c);
_local3--;
}
if (_hf) {
_local3 = _clrsa.length - 1;
while (_local3 > -1) {
_local4 = _clrsa[_local3];
_local9 = _local4.sr + (_local7 * _local4.cr);
_local10 = _local4.sg + (_local7 * _local4.cg);
_local8 = _local4.sb + (_local7 * _local4.cb);
_local4.f[_local4.p] = ((_local9 << 16) | (_local10 << 8)) | _local8;
_local3--;
}
if (_cmf) {
_cmf.matrix = _matrix;
}
var _local6 = target.filters;
_local3 = 0;
while (_local3 < _filters.length) {
_local5 = _local6.length - 1;
while (_local5 > -1) {
if (_local6[_local5] instanceof _filters[_local3].type) {
_local6.splice(_local5, 1, _filters[_local3].filter);
break;
}
_local5--;
}
_local3++;
}
target.filters = _local6;
}
if (_hst) {
_local3 = _subTweens.length - 1;
while (_local3 > -1) {
_subTweens[_local3].proxy(_subTweens[_local3]);
_local3--;
}
}
if (vars.onUpdate != undefined) {
vars.onUpdate.apply(vars.onUpdateScope, vars.onUpdateParams);
}
if (_local11 == duration) {
super.complete(true);
}
}
function HEXtoRGB($n) {
return({rb:$n >> 16, gb:($n >> 8) & 255, bb:$n & 255});
}
static function colorize($m, $color, $amount) {
if (($color == undefined) || (isNaN($color))) {
return($m);
}
if ($amount == undefined) {
$amount = 1;
}
var _local3 = (($color >> 16) & 255) / 255;
var _local5 = (($color >> 8) & 255) / 255;
var _local2 = ($color & 255) / 255;
var _local4 = 1 - $amount;
var _local7 = [_local4 + (($amount * _local3) * _lumR), ($amount * _local3) * _lumG, ($amount * _local3) * _lumB, 0, 0, ($amount * _local5) * _lumR, _local4 + (($amount * _local5) * _lumG), ($amount * _local5) * _lumB, 0, 0, ($amount * _local2) * _lumR, ($amount * _local2) * _lumG, _local4 + (($amount * _local2) * _lumB), 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local7, $m));
}
static function setThreshold($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
var _local2 = [_lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n, 0, 0, 0, 1, 0];
return(applyMatrix(_local2, $m));
}
static function setHue($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = $n * (Math.PI/180);
var _local1 = Math.cos($n);
var _local2 = Math.sin($n);
var _local4 = [(_lumR + (_local1 * (1 - _lumR))) + (_local2 * (-_lumR)), (_lumG + (_local1 * (-_lumG))) + (_local2 * (-_lumG)), (_lumB + (_local1 * (-_lumB))) + (_local2 * (1 - _lumB)), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * 0.143), (_lumG + (_local1 * (1 - _lumG))) + (_local2 * 0.14), (_lumB + (_local1 * (-_lumB))) + (_local2 * -0.283), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * (-(1 - _lumR))), (_lumG + (_local1 * (-_lumG))) + (_local2 * _lumG), (_lumB + (_local1 * (1 - _lumB))) + (_local2 * _lumB), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return(applyMatrix(_local4, $m));
}
static function setBrightness($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = ($n * 100) - 100;
return(applyMatrix([1, 0, 0, 0, $n, 0, 1, 0, 0, $n, 0, 0, 1, 0, $n, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], $m));
}
static function setSaturation($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
var _local4 = 1 - $n;
var _local3 = _local4 * _lumR;
var _local5 = _local4 * _lumG;
var _local2 = _local4 * _lumB;
var _local6 = [_local3 + $n, _local5, _local2, 0, 0, _local3, _local5 + $n, _local2, 0, 0, _local3, _local5, _local2 + $n, 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local6, $m));
}
static function setContrast($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = $n + 0.01;
var _local2 = [$n, 0, 0, 0, 128 * (1 - $n), 0, $n, 0, 0, 128 * (1 - $n), 0, 0, $n, 0, 128 * (1 - $n), 0, 0, 0, 1, 0];
return(applyMatrix(_local2, $m));
}
static function applyMatrix($m, $m2) {
if (((($m == undefined) || (!($m instanceof Array))) || ($m2 == undefined)) || (!($m2 instanceof Array))) {
return($m2);
}
var _local7 = [];
var _local2 = 0;
var _local5 = 0;
var _local6;
var _local1;
_local6 = 0;
while (_local6 < 4) {
_local1 = 0;
while (_local1 < 5) {
if (_local1 == 4) {
_local5 = $m[_local2 + 4];
} else {
_local5 = 0;
}
_local7[_local2 + _local1] = (((($m[_local2] * $m2[_local1]) + ($m[_local2 + 1] * $m2[_local1 + 5])) + ($m[_local2 + 2] * $m2[_local1 + 10])) + ($m[_local2 + 3] * $m2[_local1 + 15])) + _local5;
_local1++;
}
_local2 = _local2 + 5;
_local6++;
}
return(_local7);
}
static var version = 7.13;
static var delayedCall = gs.TweenLite.delayedCall;
static var killTweensOf = gs.TweenLite.killTweensOf;
static var killDelayedCallsTo = gs.TweenLite.killDelayedCallsTo;
static var _idMatrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
static var _lumR = 0.212671;
static var _lumG = 0.71516;
static var _lumB = 0.072169;
var _hf = false;
}
Symbol 184 MovieClip [__Packages.gs.TweenMax] Frame 0
class gs.TweenMax extends gs.TweenFilterLite
{
var _pauseTime, vars, target, addSubTween, _active, initTime, startTime, delay, _initted, duration, render;
function TweenMax ($target, $duration, $vars) {
super($target, $duration, $vars);
_pauseTime = null;
if ((gs.TweenFilterLite.version < 7.13) || (isNaN(gs.TweenFilterLite.version))) {
}
}
static function to($target, $duration, $vars) {
return(new gs.TweenMax($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenMax($target, $duration, $vars));
}
static function allTo($targets, $duration, $vars) {
if ($targets.length == 0) {
return([]);
}
var _local4;
var _local3;
var _local1;
var _local10;
var _local7;
var _local6 = [];
var _local9 = $vars.delayIncrement || 0;
delete $vars.delayIncrement;
if ($vars.onCompleteAll == undefined) {
_local7 = $vars;
} else {
_local7 = {};
for (_local1 in $vars) {
_local7[_local1] = $vars[_local1];
}
_local7.onCompleteParams = [[$vars.onComplete, $vars.onCompleteAll], [$vars.onCompleteParams, $vars.onCompleteAllParams], [$vars.onCompleteScope, $vars.onCompleteAllScope]];
_local7.onComplete = callbackProxy;
delete $vars.onCompleteAll;
}
delete $vars.onCompleteAllParams;
delete $vars.onCompleteAllScope;
if (_local9 == 0) {
_local6.push(new gs.TweenMax($targets[0], $duration, _local7));
_local4 = 1;
while (_local4 < $targets.length) {
_local3 = {};
for (_local1 in $vars) {
_local3[_local1] = $vars[_local1];
}
_local6.push(new gs.TweenMax($targets[_local4], $duration, _local3));
_local4++;
}
} else {
_local10 = $vars.delay || 0;
_local4 = 0;
while (_local4 < ($targets.length - 1)) {
_local3 = {};
for (_local1 in $vars) {
_local3[_local1] = $vars[_local1];
}
_local3.delay = _local10 + (_local4 * _local9);
_local6.push(new gs.TweenMax($targets[_local4], $duration, _local3));
_local4++;
}
_local7.delay = _local10 + (($targets.length - 1) * _local9);
_local6.push(new gs.TweenMax($targets[$targets.length - 1], $duration, _local7));
}
return(_local6);
}
static function allFrom($targets, $duration, $vars) {
$vars.runBackwards = true;
return(allTo($targets, $duration, $vars));
}
static function callbackProxy($functions, $params, $scopes) {
var _local1 = 0;
while (_local1 < $functions.length) {
if ($functions[_local1] != undefined) {
$functions[_local1].apply($scopes[_local1], $params[_local1]);
}
_local1++;
}
}
static function sequence($target, $tweens) {
var _local7 = true;
if ($tweens[0].overwrite == false) {
_local7 = false;
}
var _local10 = [];
var _local8 = 0;
var _local5;
var _local6;
var _local4;
var _local1;
var _local3;
var _local2;
_local4 = 0;
while (_local4 < $tweens.length) {
_local2 = $tweens[_local4];
_local6 = _local2.time || 0;
_local1 = {};
for (_local3 in _local2) {
_local1[_local3] = _local2[_local3];
}
delete _local1.time;
_local5 = _local1.delay || 0;
_local1.delay = _local8 + _local5;
_local1.overwrite = _local7;
_local10.push(new gs.TweenMax($target, _local6, _local1));
_local8 = _local8 + (_local6 + _local5);
_local7 = false;
_local4++;
}
return(_local10);
}
static function delayedCall($delay, $onComplete, $onCompleteParams, $onCompleteScope) {
return(new gs.TweenMax($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, onCompleteScope:$onCompleteScope, overwrite:false}));
}
function initTweenVals($hrp, $reservedProps) {
$reservedProps = $reservedProps || "";
$reservedProps = $reservedProps + " hexColors bezier bezierThrough orientToBezier onCompleteAll onCompleteAllParams ";
var _local3;
var _local4;
var _local14;
var _local13;
var _local5;
var _local9 = bezierProxy;
if (vars.orientToBezier == true) {
vars.orientToBezier = [["_x", "_y", "_rotation", 0]];
_local9 = bezierProxy2;
} else if (vars.orientToBezier instanceof Array) {
_local9 = bezierProxy2;
}
if (vars.bezier != undefined) {
_local13 = {};
_local5 = vars.bezier;
_local4 = 0;
while (_local4 < _local5.length) {
for (_local3 in _local5[_local4]) {
if (_local13[_local3] == undefined) {
_local13[_local3] = [target[_local3]];
}
if (typeof(_local5[_local4][_local3]) == "number") {
_local13[_local3].push(_local5[_local4][_local3]);
} else {
_local13[_local3].push(target[_local3] + Number(_local5[_local4][_local3]));
}
}
_local4++;
}
for (_local3 in _local13) {
if (typeof(vars[_local3]) == "number") {
_local13[_local3].push(vars[_local3]);
} else {
_local13[_local3].push(target[_local3] + Number(vars[_local3]));
}
delete vars[_local3];
}
addSubTween(_local9, {t:0}, {t:1}, {props:parseBeziers(_local13, false), target:target, orientToBezier:vars.orientToBezier});
}
if (vars.bezierThrough != undefined) {
_local13 = {};
_local5 = vars.bezierThrough;
_local4 = 0;
while (_local4 < _local5.length) {
for (_local3 in _local5[_local4]) {
if (_local13[_local3] == undefined) {
_local13[_local3] = [target[_local3]];
}
if (typeof(_local5[_local4][_local3]) == "number") {
_local13[_local3].push(_local5[_local4][_local3]);
} else {
_local13[_local3].push(target[_local3] + Number(_local5[_local4][_local3]));
}
}
_local4++;
}
for (_local3 in _local13) {
if (typeof(vars[_local3]) == "number") {
_local13[_local3].push(vars[_local3]);
} else {
_local13[_local3].push(target[_local3] + Number(vars[_local3]));
}
delete vars[_local3];
}
addSubTween(_local9, {t:0}, {t:1}, {props:parseBeziers(_local13, true), target:target, orientToBezier:vars.orientToBezier});
}
if ((vars.hexColors != undefined) && (typeof(vars.hexColors) == "object")) {
for (_local3 in vars.hexColors) {
addSubTween(hexColorsProxy, {r:target[_local3] >> 16, g:(target[_local3] >> 8) & 255, b:target[_local3] & 255}, {r:vars.hexColors[_local3] >> 16, g:(vars.hexColors[_local3] >> 8) & 255, b:vars.hexColors[_local3] & 255}, {prop:_local3, target:target});
}
}
super.initTweenVals(true, $reservedProps);
}
static function parseBeziers($props, $through) {
var _local2;
var _local1;
var _local3;
var _local4;
var _local6 = {};
if ($through) {
for (_local4 in $props) {
_local1 = $props[_local4];
_local3 = [];
_local6[_local4] = _local3;
if (_local1.length > 2) {
_local3.push({s:_local1[0], cp:_local1[1] - ((_local1[2] - _local1[0]) / 4), e:_local1[1]});
_local2 = 1;
while (_local2 < (_local1.length - 1)) {
_local3.push({s:_local1[_local2], cp:_local1[_local2] + (_local1[_local2] - _local3[_local2 - 1].cp), e:_local1[_local2 + 1]});
_local2++;
}
} else {
_local3.push({s:_local1[0], cp:(_local1[0] + _local1[1]) / 2, e:_local1[1]});
}
}
} else {
for (_local4 in $props) {
_local1 = $props[_local4];
_local3 = [];
_local6[_local4] = _local3;
if (_local1.length > 3) {
_local3.push({s:_local1[0], cp:_local1[1], e:(_local1[1] + _local1[2]) / 2});
_local2 = 2;
while (_local2 < (_local1.length - 2)) {
_local3.push({s:_local3[_local2 - 2].e, cp:_local1[_local2], e:(_local1[_local2] + _local1[_local2 + 1]) / 2});
_local2++;
}
_local3.push({s:_local3[_local3.length - 1].e, cp:_local1[_local1.length - 2], e:_local1[_local1.length - 1]});
} else if (_local1.length == 3) {
_local3.push({s:_local1[0], cp:_local1[1], e:_local1[2]});
} else if (_local1.length == 2) {
_local3.push({s:_local1[0], cp:(_local1[0] + _local1[1]) / 2, e:_local1[1]});
}
}
}
return(_local6);
}
static function getTweensOf($target) {
var _local1 = gs.TweenLite._all[gs.TweenLite.getID($target, true)];
var _local2 = [];
if (_local1 != null) {
for (var _local3 in _local1) {
if (_local1[_local3].tweens != undefined) {
_local2.push(_local1[_local3]);
}
}
}
return(_local2);
}
static function isTweening($target) {
var _local2 = getTweensOf($target);
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].active) {
return(true);
}
_local1++;
}
return(false);
}
function pause() {
if (_pauseTime == null) {
_pauseTime = gs.TweenLite._curTime;
_active = false;
}
}
function resume() {
if (_pauseTime != null) {
var _local2 = gs.TweenLite._curTime - _pauseTime;
initTime = initTime + _local2;
if (startTime != undefined) {
startTime = startTime + _local2;
}
_pauseTime = null;
if (((gs.TweenLite._curTime - initTime) / 1000) > delay) {
_active = true;
}
}
}
static function getAllTweens() {
var _local1 = gs.TweenLite._all;
var _local5 = [];
var _local4;
var _local3;
var _local2;
for (_local2 in _local1) {
for (_local3 in _local1[_local2]) {
_local4 = _local1[_local2][_local3];
if (_local4.tweens != undefined) {
_local5.push(_local1[_local2][_local3]);
}
}
}
return(_local5);
}
static function killAllTweens($complete) {
killAll($complete, true, false);
}
static function killAllDelayedCalls($complete) {
killAll($complete, false, true);
}
static function killAll($complete, $tweens, $delayedCalls) {
if ($tweens == undefined) {
$tweens = true;
}
if ($delayedCalls == undefined) {
$delayedCalls = false;
}
var _local2 = getAllTweens();
var _local1 = _local2.length - 1;
while (_local1 > -1) {
if (((typeof(_local2[_local1].target) == "function") == $delayedCalls) || ((typeof(_local2[_local1].target) == "function") != $tweens)) {
if ($complete) {
_local2[_local1].complete();
} else {
gs.TweenLite.removeTween(_local2[_local1]);
}
}
_local1--;
}
}
static function pauseAll($tweens, $delayedCalls) {
changePause(true, $tweens, $delayedCalls);
}
static function resumeAll($tweens, $delayedCalls) {
changePause(false, $tweens, $delayedCalls);
}
static function changePause($pause, $tweens, $delayedCalls) {
if ($pause == undefined) {
$pause = true;
}
if ($tweens == undefined) {
$tweens = true;
}
if ($delayedCalls == undefined) {
$delayedCalls = false;
}
var _local2 = getAllTweens();
var _local1 = _local2.length - 1;
while (_local1 > -1) {
if (((typeof(_local2[_local1].target) == "function") == $delayedCalls) || ((typeof(_local2[_local1].target) == "function") != $tweens)) {
_local2[_local1].paused = $pause;
}
_local1--;
}
}
static function hexColorsProxy($o) {
$o.info.target[$o.info.prop] = (($o.target.r << 16) | ($o.target.g << 8)) | $o.target.b;
}
static function bezierProxy($o) {
var _local4 = $o.target.t;
var _local7 = $o.info.props;
var _local8 = $o.info.target;
var _local3;
var _local6;
var _local1;
var _local5;
var _local2;
for (_local6 in _local7) {
_local2 = _local7[_local6].length;
if (_local4 < 0) {
_local3 = 0;
} else if (_local4 >= 1) {
_local3 = _local2 - 1;
} else {
_local3 = (_local2 * _local4) >> 0;
}
_local5 = (_local4 - (_local3 * (1 / _local2))) * _local2;
_local1 = _local7[_local6][_local3];
_local8[_local6] = _local1.s + (_local5 * (((2 * (1 - _local5)) * (_local1.cp - _local1.s)) + (_local5 * (_local1.e - _local1.s))));
}
}
static function bezierProxy2($o) {
bezierProxy($o);
var _local4 = {};
var _local3 = $o.info.target;
$o.info.target = _local4;
$o.target.t = $o.target.t + 0.01;
bezierProxy($o);
var _local5 = $o.info.orientToBezier;
var _local10;
var _local7;
var _local6;
var _local1;
var _local8;
var _local2 = 0;
while (_local2 < _local5.length) {
_local1 = _local5[_local2];
_local8 = _local1[3] || 0;
_local7 = _local4[_local1[0]] - _local3[_local1[0]];
_local6 = _local4[_local1[1]] - _local3[_local1[1]];
_local3[_local1[2]] = (Math.atan2(_local6, _local7) * RAD2DEG) + _local8;
_local2++;
}
$o.info.target = _local3;
$o.target.t = $o.target.t - 0.01;
}
function get active() {
if (_active) {
return(true);
}
if (_pauseTime != null) {
return(false);
}
if (((gs.TweenLite._curTime - initTime) / 1000) > delay) {
_active = true;
startTime = initTime + (delay * 1000);
if (!_initted) {
initTweenVals();
} else if (typeof(vars.autoAlpha) == "number") {
target._visible = true;
}
if (duration == 0.001) {
startTime = startTime - 1;
}
if (vars.onStart != undefined) {
vars.onStart.apply(null, vars.onStartParams);
}
return(true);
}
return(false);
}
function get paused() {
if (_pauseTime != null) {
return(true);
}
return(false);
}
function set paused($b) {
if ($b) {
pause();
} else {
resume();
}
//return(paused);
}
function get progress() {
var _local2 = (((gs.TweenLite._curTime - startTime) / 1000) / duration) || 0;
if (_local2 > 1) {
return(1);
}
return(_local2);
}
function set progress($n) {
var _local2 = gs.TweenLite._curTime - ((duration * $n) * 1000);
initTime = _local2 - (delay * 1000);
var _local3 = active;
startTime = _local2;
render(gs.TweenLite._curTime);
//return(progress);
}
static var version = 1.16;
static var RAD2DEG = 57.2957795130823;
static var killTweensOf = gs.TweenLite.killTweensOf;
static var killDelayedCallsTo = gs.TweenLite.killDelayedCallsTo;
static var removeTween = gs.TweenLite.removeTween;
static var defaultEase = gs.TweenLite.defaultEase;
}
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 10
gotoAndPlay ("shake");
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 10
gotoAndStop (1);
Symbol 113 MovieClip Frame 20
gotoAndPlay ("roll");
Symbol 113 MovieClip Frame 59
gotoAndPlay ("sad");
Symbol 113 MovieClip Frame 70
gotoAndPlay ("happy");
Symbol 113 MovieClip Frame 71
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 106
stop();
Symbol 114 MovieClip Frame 121
stop();
Symbol 114 MovieClip Frame 126
gotoAndPlay ("shake");
Symbol 114 MovieClip Frame 170
gotoAndPlay ("lookUp");