Frame 1
Security.allowDomain("*");
MochiAd.showPreGameAd({id:"249419343739a33b", res:"640x480"});
Frame 2
function gameMenu(menu, obj) {
getURL (_root.authorsSite, "_blank");
}
this._lockroot = true;
var gameName = "kickit";
vNum = "1.22";
gameQuality = "AUTO";
_quality = "HIGH";
authorsSite = "http://www.terrypaton.com";
var menu_cm = new ContextMenu();
menu_cm.customItems.push(new ContextMenuItem(authorsSite, gameMenu));
menu_cm.hideBuiltInItems();
_root.menu = menu_cm;
legalDomain = "http://www.terrypaton.com";
gameLocation = _root._url.substr(0, legalDomain.length);
if (gameLocation != legalDomain) {
}
Frame 3
gameLoadingName = "kickit";
loadingClip.onEnterFrame = function () {
pL = Math.floor((this._parent.getBytesLoaded() / this._parent.getBytesTotal()) * 100);
if (pL < 100) {
this.mask._xscale = (pL / 100) * 100;
this._parent.stop();
} else {
i = 0;
while (i < stringLength) {
removeMovieClip(eval ("loadingHolder.l" + i));
i++;
}
this._parent.play();
}
};
stringLength = gameLoadingName.length;
wordOffset = (stringLength * 20) / 2;
this.createEmptyMovieClip("loadingHolder", 1);
loadingHolder._x = (320 - wordOffset) + 10;
loadingHolder._y = 160;
i = 0;
while (i < stringLength) {
t = loadingHolder.attachMovie("letter", "l" + i, i);
t._x = i * 20;
t.angle = i;
t.Lvar.text = gameLoadingName.charAt(i);
t._xscale = (t._yscale = 200);
i++;
}
stop();
Frame 4
if (false) {
}
Frame 5
function playSound(temp) {
switch (temp) {
case "boot" :
a = random(3) + 1;
eval (("boot" + a) + "Snd").start();
return;
case "goal" :
a = random(2) + 1;
eval (("goal" + a) + "Snd").start();
return;
case "mouseDown" :
mouseDownSnd.start();
return;
case "mouseOver" :
mouseOverSnd.start();
return;
case "points" :
a = random(2) + 1;
eval (("points" + a) + "Snd").start();
}
}
function attachSoundFromLibrary(idname) {
var _local2 = new Sound(this);
_local2.attachSound(idname);
return(_local2);
}
function launchFireWorks(cx, cy, fxtype) {
trace("launch fireworks");
sndR = random(3) + 1;
if (sndR == 1) {
explode1Snd.start();
}
if (sndR == 2) {
explode2Snd.start();
}
if (sndR == 3) {
explode3Snd.start();
}
fxAm = random(20) + 20;
rotDiv = 360 / fxAm;
fxNum = this.fireworksHolder.getNextHighestDepth();
tf = this.fireworksHolder.createEmptyMovieClip("fxholder" + fxNum, fxNum);
i = 0;
while (i < fxAm) {
tf2 = tf.attachMovie("fireWorksParticle", "fx" + i, i + (100 * fxNum));
tf2._x = cx;
tf2._y = cy;
tf2.gotoAndStop(fxtype);
tf2.rot = i * rotDiv;
tf2.fxtype = fxtype;
i++;
}
}
function launchGameTurf(cx, cy) {
trace("launch turf");
sndR = random(3) + 1;
if (sndR == 1) {
explode1Snd.start();
}
if (sndR == 2) {
explode2Snd.start();
}
if (sndR == 3) {
explode3Snd.start();
}
fxAm = random(20) + 20;
rotDiv = 90 / fxAm;
fxNum = this.fireworksHolder.getNextHighestDepth();
tf = this.fireworksHolder.createEmptyMovieClip("fxholder" + fxNum, fxNum);
i = 0;
while (i < fxAm) {
tf2 = tf.attachMovie("turfParticle", "fx" + i, i + (100 * fxNum));
tf2._x = cx;
tf2._y = cy;
fxtype = Math.floor(Math.random() * 3) + 1;
tf2.gotoAndStop(fxtype);
tf2.rot = 135 + (i * rotDiv);
tf2.fxtype = fxtype;
i++;
}
}
storage = SharedObject.getLocal(gameName + "storage");
yourhigh = storage.data.myhighscore;
if (yourhigh == undefined) {
storage.data.myhighscore = 0;
yourhigh = 0;
}
registeredAlready = false;
ballType = "soccer";
boot1Snd = attachSoundFromLibrary("bootBallSound1.wav");
boot2Snd = attachSoundFromLibrary("bootBallSound2.wav");
boot3Snd = attachSoundFromLibrary("bootBallSound3.wav");
goal1Snd = attachSoundFromLibrary("goal1Sound.wav");
goal2Snd = attachSoundFromLibrary("goal2Sound.wav");
mouseDownSnd = attachSoundFromLibrary("mouseDown.wav");
mouseOverSnd = attachSoundFromLibrary("mouseOver.wav");
points1Snd = attachSoundFromLibrary("points1Snd.wav");
points2Snd = attachSoundFromLibrary("points2Snd.wav");
Frame 6
stop();
i = 1;
while (i < 20) {
_t = howToPlayClip.peopleHolder.attachMovie("person", "p" + i, i + 100);
_t._x = (i * 32) - 32;
_t.clip.gotoAndStop(i);
_t._xscale = (_t._yscale = 65);
i++;
}
_quality = "HIGH";
this.playBtn.onRelease = function () {
gotoAndPlay (23);
playSound("mouseDown");
};
this.playBtn.onRollOver = function () {
playSound("mouseOver");
this.gotoAndStop(2);
};
this.playBtn.onRollOut = function () {
this.gotoAndStop(1);
};
this.reset_btn.onRelease = function () {
playSound("mouseDown");
_root.yourhigh = 0;
trace(yourhigh);
resetclip.gotoAndPlay(2);
storage.data.myhighscore = 0;
storage.flush();
};
this.reset_btn.onRollOver = function () {
playSound("mouseOver");
};
yourHighTextBox.text = yourhigh;
howToPlayBtn.onRollOver = function () {
howToPlayClip._x = 320;
howToPlayClip._y = -316;
gs.TweenLite.to(howToPlayClip, 0.5, {_y:0, ease:mx.transitions.easing.Back.easeOut});
};
howToPlayBtn.onRollOut = function () {
gs.TweenLite.to(howToPlayClip, 0.5, {_y:-425, ease:mx.transitions.easing.Back.easeIn});
};
gametitle._y = -120;
gametitle._rotation = -20;
gs.TweenLite.to(gametitle, 1, {_y:118, _rotation:0, delay:0.5, ease:mx.transitions.easing.Bounce.easeOut});
gameTitleShadow._alpha = 0;
gameTitleShadow._xscale = 30;
gs.TweenLite.to(gameTitleShadow, 1, {_alpha:100, _xscale:100, delay:0.5, ease:mx.transitions.easing.Bounce.easeOut});
moveCloudSpeed = 0.25;
gametitle.onEnterFrame = function () {
cloud1._x = cloud1._x + moveCloudSpeed;
cloud2._x = cloud2._x + moveCloudSpeed;
cloud3._x = cloud3._x + moveCloudSpeed;
cloud4._x = cloud4._x + moveCloudSpeed;
if (cloud1._x < -100) {
cloud1._x = 750;
cloud1._x.gotoAndStop(Math.floor(Math.random() * 7));
}
if (cloud2._x < -100) {
cloud2._x = 750;
cloud2._x.gotoAndStop(Math.floor(Math.random() * 7) + 1);
}
if (cloud3._x < -100) {
cloud3._x = 750;
cloud3._x.gotoAndStop(Math.floor(Math.random() * 7) + 1);
}
if (cloud4._x < -100) {
cloud4._x = 750;
cloud4._x.gotoAndStop(Math.floor(Math.random() * 7) + 1);
}
if (cloud1._x > 750) {
cloud1._x = -99;
cloud1._x.gotoAndStop(Math.floor(Math.random() * 7) + 1);
}
if (cloud2._x > 750) {
cloud2._x = -99;
cloud2._x.gotoAndStop(Math.floor(Math.random() * 7) + 1);
}
if (cloud3._x > 750) {
cloud3._x = -99;
cloud3._x.gotoAndStop(Math.floor(Math.random() * 7) + 1);
}
if (cloud4._x > 750) {
cloud4._x = -99;
cloud4._x.gotoAndStop(Math.floor(Math.random() * 7) + 1);
}
};
ballTypeNum = 1;
cloud1.gotoAndStop(Math.floor(Math.random() * 7) + 1);
cloud2.gotoAndStop(Math.floor(Math.random() * 7) + 1);
cloud3.gotoAndStop(Math.floor(Math.random() * 7) + 1);
cloud4.gotoAndStop(Math.floor(Math.random() * 7) + 1);
Frame 23
function testGridLoc(x, y) {
if (gridArray[y][x] == 0) {
return(false);
}
return(true);
}
function addPeople() {
var i = 0;
while (i < 100) {
removeMovieClip(eval ("stageHolder.p" + i));
i++;
}
trace("add people");
gridArray = new Array();
gridXSize = 10;
gridYSize = 10;
var i = 0;
while (i < gridYSize) {
gridArray[i] = new Array();
var j = 0;
while (j < gridXSize) {
gridArray[i][j] = 0;
j++;
}
i++;
}
amountOfpeople = 15;
personArray = new Array();
var i = 0;
while (i < amountOfpeople) {
var _t = stageHolder.attachMovie("person", "p" + i, i + 100);
personArray.push(_t);
_t.hit = false;
_t.x = Math.floor(Math.random() * 500) - 250;
_t.y = 100;
_t.z = (i * 130) + 500;
var theFrame = (Math.floor(Math.random() * 20) + 1);
_t.pointsValue = theFrame * 50;
_t.clip.gotoAndStop(theFrame);
postPosArray = new Array();
postPosArray = calculate3DPos(_t.x, _t.y, _t.z);
_t._x = postPosArray[0];
_t._y = -150;
gs.TweenLite.to(_t, 0.75, {_y:postPosArray[1], delay:i / 10, ease:mx.transitions.easing.Bounce.easeOut});
_t._xscale = (_t._yscale = postPosArray[2]);
_t.swapDepths(postPosArray[3]);
i++;
}
}
function moveClouds() {
moveCloudSpeed = cloudSpeed;
var n = 5;
while (n--) {
var _c = eval ("cloud" + n);
_c._x = _c._x + moveCloudSpeed;
if (_c._x < -100) {
_c._x = 700;
_c.gotoAndStop(Math.floor(Math.random() * 5) + 1);
}
if (_c._x > 700) {
_c._x = -90;
_c.gotoAndStop(Math.floor(Math.random() * 5) + 1);
}
}
}
function calculate3DPos(x, y, z) {
var _local2 = d / z;
var _local1 = new Array();
var _local5 = (x * _local2) + centerX;
var _local4 = (y * _local2) + centerY;
_local1.push(_local5);
_local1.push(_local4);
var _local6 = 100 * _local2;
_local1.push(_local6);
var _local3 = Math.floor(100000 - (z * 20));
_local1.push(_local3);
return(_local1);
}
function addPoints(_num, clip) {
var _local3 = this.getNextHighestDepth();
var _local2 = attachMovie("addPointsClip", "addPointsClip" + _local3, _local3);
trace(_local2);
_local2._x = clip._x;
_local2._y = clip._y;
_local2.textBox.text = _num;
gs.TweenLite.to(_local2, 1.2, {_y:clip._y - 70, _alpha:0, onComplete:removeClip, onCompleteParams:[_local2]});
score = score + _num;
scoreTextBox.text = score;
}
function setup() {
kicksTaken = 0;
totalKicksAllowed = 10;
score = 0;
goalPostsClip = stageHolder.attachMovie("goalPosts", "goalPosts" + n, n);
n++;
goalPostsClip.x = 0;
goalPostsClip.y = 100;
goalPostsClip.z = 4000;
postPosArray = new Array();
postPosArray = calculate3DPos(goalPostsClip.x, goalPostsClip.y, goalPostsClip.z);
goalPostsClip._x = postPosArray[0];
goalPostsClip._y = -100;
trace("goal posts = " + postPosArray[3]);
gs.TweenLite.to(goalPostsClip, 0.75, {_y:postPosArray[1], ease:mx.transitions.easing.Bounce.easeOut});
ballShadowClip = stageHolder.attachMovie("ballShadow", "ballShadow" + n, n);
n++;
ballClip = stageHolder.attachMovie("ball", "ball" + n, n);
n++;
ballClip.x = 0;
ballClip.y = 100;
ballClip.z = 280;
ballData = new Object();
gravity = 1.4;
windAngle = Math.random() * 360;
windDirectionMarker.windDir._rotation = windAngle;
windDir.windDirStrengthClip._xscale = 100;
}
function positionPowerMarkers() {
aimx = 0;
aimy = 100;
aimz = 280;
var _local1 = 0;
while (_local1 < 10) {
var _local2 = dotArray[_local1];
aimPosArray = new Array();
aimPosArray = calculate3DPos(aimx, aimy - (_local1 * 8), aimz + (_local1 * 8));
_local2._x = aimPosArray[0];
_local2._y = aimPosArray[1];
_local2._xscale = (_local2._yscale = aimPosArray[2]);
_local1++;
}
}
function positionSlider() {
radians = ((currentSliderPosition - 180) / 180) * Math.PI;
slider._x = Math.cos(radians) * sunWidth;
slider._y = Math.sin(radians) * sunHigh;
percent = Math.floor((currentSliderPosition / 180) * 100);
px = sliderCenter._x - (slider._x + sliderCenter._x);
py = (sliderCenter._y - 100) - (slider._y + sliderCenter._y);
radians = Math.atan2(py, px);
slider._rotation = (radians * 180) / Math.PI;
}
function frameAction() {
moveClouds();
switch (gameState) {
case "playing" :
updateBallPos();
return;
case "kick finished" :
count = 45;
gs.TweenLite.to(ballClip, 0.75, {_y:-100, ease:mx.transitions.easing.Strong.easeIn});
gs.TweenLite.to(ballShadowClip, 0.5, {_alpha:0, _xscale:1, _xscale:1, ease:mx.transitions.easing.Strong.easeIn});
var i = 0;
while (i < amountOfpeople) {
var _t = eval ("stageHolder.p" + i);
gs.TweenLite.to(_t, 0.75, {_y:-100, ease:mx.transitions.easing.Strong.easeIn, delay:(Math.random() * 0.5) + 0.2});
i++;
}
gameState = "kick finished wait";
return;
case "kick finished wait" :
count--;
if (count < 0) {
kicksTaken++;
if (kicksTaken >= totalKicksAllowed) {
gameState = "game over";
} else {
gameState = "next kick";
}
}
return;
case "game over" :
trace(gameState);
count = 10;
gameState = "game over wait";
return;
case "game over wait" :
count--;
if (count < 1) {
gotoAndPlay (24);
gameState = "game over screen";
}
return;
case "game over screen" :
return;
case "next kick" :
gameState = "setup kick";
return;
case "aim" :
updateBallPos();
aimAngle = (320 - _xmouse) * 0.25;
var _a = ((320 - _xmouse) / 160);
aimAngle = 90 * _a;
textBox.text = aimAngle;
mPos = (slider._x - sliderCenter._xmouse) / 3;
currentSliderPosition = 270 + aimAngle;
if (currentSliderPosition < sliderMinRot) {
currentSliderPosition = sliderMinRot;
}
if (currentSliderPosition > sliderMaxRot) {
currentSliderPosition = sliderMaxRot;
}
positionSlider();
return;
case "aim finished" :
gameState = "setup power";
return;
case "setup power" :
gs.TweenLite.to(powerBar, 0.75, {_x:sliderCenter._x, _alpha:100});
currentPower = 0;
gameState = "power";
return;
case "power" :
currentPower = (480 - _ymouse) / 480;
powerBar.powerBarClip._yscale = currentPower * 100;
return;
case "setup" :
powerBar._x = -100;
trace(gameState);
setup();
gameState = "setup kick";
return;
case "setup kick" :
addPeople();
kicksTaken++;
kicksLeftTextBox.text = kicksTaken;
powerBar._x = -100;
ballClip.x = 0;
ballClip.y = 100;
ballClip.z = 280;
ballShadowClip.x = 0;
ballShadowClip.y = 118;
ballShadowClip.z = ballClip.z + 0.5;
windSpeed = (Math.random() * 20) + 10;
windAngle = Math.random() * 90;
if ((Math.random() * 10) < 5) {
windAngle = windAngle + 135;
} else {
windAngle = windAngle + -45;
}
windDirectionMarker.windDir._rotation = windAngle;
windDirectionMarker.windDir.windDirStrengthClip._xscale = (windSpeed / 10) * 100;
windRot = (windAngle / 180) * Math.PI;
cloudSpeed = (Math.cos(windRot) * windSpeed) * 0.1;
count = 50;
ballposArray = new Array();
ballposArray = calculate3DPos(ballClip.x, ballClip.y, ballClip.z);
ballClip._y = -100;
ballClip._x = ballposArray[0];
ballClip.gotoAndStop(1);
ballClip._xscale = (ballClip._yscale = ballposArray[2]);
ballClip.swapDepths(ballposArray[3]);
gs.TweenLite.to(ballClip, 1, {_y:ballposArray[1], ease:mx.transitions.easing.Bounce.easeOut, delay:0.5});
ballShadowPosArray = new Array();
ballShadowPosArray = calculate3DPos(ballShadowClip.x, ballShadowClip.y, ballShadowClip.z);
ballShadowClip._x = ballShadowPosArray[0];
ballShadowClip._y = ballShadowPosArray[1];
ballShadowClip._alpha = 0;
ballShadowClip._xscale = (ballShadowClip._yscale = 2);
ballShadowClip.swapDepths(ballShadowPosArray[3]);
gs.TweenLite.to(ballShadowClip, 1, {_alpha:100, _xscale:ballShadowPosArray[2], _yscale:ballShadowPosArray[2], ease:mx.transitions.easing.Bounce.easeOut, delay:0.5});
gameState = "setup kick wait";
return;
case "setup kick wait" :
count--;
if (count < 1) {
gs.TweenLite.to(sliderCenter, 0.75, {_alpha:100});
ballData.xAngle = 90;
ballData.yAngle = 45;
ballData.speed = 10 + (Math.random() * 30);
ballData.ySpeed = -(5 + (Math.random() * 20));
ballData.speed = 0;
currentSliderPosition = 90;
sunWidth = 145;
sunHigh = 40;
sliderMinRot = 180;
sliderMaxRot = 360;
slider = sliderCenter.attachMovie("sliderClip", "sliderClip", 10);
slider.onPress = function () {
movieState = "sliding";
};
slider._alpha = 0;
gs.TweenLite.to(slider, 1, {_alpha:100});
c = sliderCenter.attachMovie("draggingCircle", "draggingCircle", 9);
c._width = (sunWidth + 2) * 2;
c._height = sunHigh + 4;
c._yscale = -100;
c._alpha = 0;
gs.TweenLite.to(c, 1, {_alpha:100});
positionSlider();
gameState = "aim";
}
return;
case "kick finished" :
return;
case "kick finished wait" :
return;
case "wait for angle" :
return;
case "start kick" :
playSound("boot");
gs.TweenLite.to(sliderCenter, 0.75, {_alpha:0});
gs.TweenLite.to(powerBar, 0.75, {_alpha:0});
ballData = new Object();
ballData.xAngle = 90 - (aimAngle / 2);
ballData.yAngle = 90 * currentPower;
ballData.speed = currentPower * 100;
ballData.ySpeed = -50 * currentPower;
ballData.maxBounce = 10;
windPercentage = 0;
gameState = "move ball";
return;
case "move ball" :
updateBallPos();
zBox.text = ballClip.z;
if ((ballClip.z > (goalPostsClip.z - 50)) && (ballClip.z < (goalPostsClip.z + 250))) {
if ((ballClip.x > -200) && (ballClip.x < 200)) {
if (ballClip.y > -200) {
trace("speed = " + ballData.speed);
trace("ball has passed the goal posts");
gameState = "goal scored";
}
}
}
return;
case "goal scored" :
playSound("goal");
goalScored();
count = 30;
gameState = "goal scored wait";
return;
case "goal scored wait" :
count--;
if (count >= 1) {
break;
}
gameState = "kick finished";
}
}
function goalScored() {
goalScoredClipRef = attachMovie("goalScoredClip", "goalScoredClip", 1000);
goalScoredClip._xscale = (goalScoredClip._yscale = 5);
goalScoredClip._alpha = 0;
goalScoredClip._x = 320;
goalScoredClip._y = 115;
goalScoredClip.gotoAndStop(Math.floor(Math.random() * 9) + 1);
gs.TweenLite.to(goalScoredClip, 1, {_alpha:100, _xscale:100, _yscale:100, ease:mx.transitions.easing.Back.easeOut});
gs.TweenLite.to(goalScoredClip, 1, {_alpha:0, _xscale:10, _yscale:10, ease:mx.transitions.easing.Back.easeIn, delay:1.5, overwrite:false, onComplete:removeClip, onCompleteParams:this});
addPoints(1000, goalPostsClip);
}
function removeClip(_clip) {
removeMovieClip(_clip);
}
function updateBallPos() {
if (windPercentage < 1) {
windPercentage = windPercentage + 0.01;
}
wxspeed = 0;
wzspeed = 0;
speed = ballData.speed;
reportTextBox.text = ballData.yAngle;
if (ballData.speed > 0.5) {
if (Math.floor(ballData.y) != 100) {
ballData.ySpeed = ballData.ySpeed + gravity;
}
if (ballData.ySpeed < 0) {
if (ballData.ySpeed < ballData.maxBounce) {
ballData.maxBounce = ballData.ySpeed;
}
}
if (ballClip.y >= 100) {
windSpeed = windSpeed * 0.97;
ballClip.y = 100;
if (ballData.maxBounce < -3) {
ballRollFrame = Math.floor(Math.random() * 25) + 1;
ballClip.gotoAndStop(ballRollFrame);
} else {
ballRollFrame = ballRollFrame + (windSpeed / 50);
if (ballRollFrame > 25) {
ballRollFrame = 1;
}
ballClip.gotoAndStop(Math.floor(ballRollFrame));
if (ballClip._currentframe >= ballClip._totalframes) {
ballClip.gotoAndStop(1);
}
}
ballData.ySpeed = ballData.maxBounce * 0.6;
ballData.speed = ballData.speed * 0.95;
ballData.maxBounce = 0;
}
if (ballData.speed > 1) {
radians = (windAngle / 180) * Math.PI;
wxspeed = Math.cos(radians) * windSpeed;
wzspeed = Math.sin(radians) * windSpeed;
ballRollFrame = ballRollFrame + 1;
} else {
wxspeed = wxspeed * 0.5;
wzspeed = wzspeed * 0.5;
}
angle = ballData.xAngle;
radians = (angle / 180) * Math.PI;
xspeed = Math.cos(radians) * speed;
zspeed = Math.sin(radians) * speed;
ballClip.x = ballClip.x + (xspeed + (wxspeed * windPercentage));
ballRollFrame = ballRollFrame + 1;
ballClip.z = ballClip.z + (zspeed + (wzspeed * windPercentage));
ballClip.y = ballClip.y + Math.floor(ballData.ySpeed);
ballShadowClip.x = ballShadowClip.x + (xspeed + (wxspeed * windPercentage));
ballShadowClip.z = ballShadowClip.z + (zspeed + (wzspeed * windPercentage));
} else {
ballClip.gotoAndStop(1);
if (gameState == "move ball") {
trace("ball has stopped moving");
gameState = "kick finished";
}
}
ballposArray = new Array();
ballposArray = calculate3DPos(ballClip.x, ballClip.y, ballClip.z);
ballClip._x = ballposArray[0];
ballClip._y = ballposArray[1];
ballClip._xscale = (ballClip._yscale = ballposArray[2]);
ballClip.swapDepths(ballposArray[3]);
ballShadowPosArray = new Array();
ballShadowPosArray = calculate3DPos(ballShadowClip.x, ballShadowClip.y, ballShadowClip.z);
ballShadowClip._x = ballShadowPosArray[0];
ballShadowClip._y = ballShadowPosArray[1];
ballShadowClip._xscale = (ballShadowClip._yscale = ballShadowPosArray[2]);
ballShadowClip.swapDepths(ballShadowPosArray[3]);
if (gameState == "move ball") {
if ((ballClip._x > 650) || (ballClip._x < -10)) {
trace("ball has stopped moving");
gameState = "kick finished";
}
}
var _local2 = personArray.length;
while (_local2--) {
var _local1 = personArray[_local2];
if (!_local1.hit) {
dx = ballClip.x - _local1.x;
dy = ballClip.z - _local1.z;
dist = Math.floor(Math.sqrt((dx * dx) + (dy * dy)));
if (dist < 50) {
if (ballClip.y > -80) {
_local1.hit = true;
_local1.gotoAndPlay(2);
addPoints(_local1.pointsValue, _local1);
trace("HIT");
playSound("points");
}
}
}
}
}
function flag() {
postPosArray = new Array();
postPosArray = calculate3DPos(windClip.x, windClip.y, windClip.z);
windClip._x = postPosArray[0];
windClip._y = postPosArray[1];
windClip._xscale = (windClip._yscale = postPosArray[2]);
windClip.swapDepths(postPosArray[3]);
radians = (windAngle / 180) * Math.PI;
wx = (Math.cos(radians) * windSpeed) * 0.25;
wz = (Math.sin(radians) * windSpeed) * 0.25;
var _local1 = 0;
while (_local1 < flagArray.length) {
_t = flagArray[_local1];
postPosArray = new Array();
postPosArray = calculate3DPos(windClip.x + ((wx * _local1) / 3), windClip.y - 70, windClip.z + ((wz * _local1) / 3));
_t._x = postPosArray[0];
_t._y = postPosArray[1];
_t._yscale = (_t._xscale = postPosArray[2]);
_t.swapDepths(postPosArray[3] - 10);
_t._yscale = 100 - (_local1 * 7);
n++;
_local1++;
}
}
stop();
d = 800;
var centerX = 320;
var centerY = 100;
var personArray;
var cloudSpeed;
n = 1;
fieldWidth = 300;
fieldLength = 1800;
sliderCenter.sliderCenterClip._visible = false;
gravity = 1.4;
cloud1.gotoAndStop(Math.floor(Math.random() * 5) + 1);
cloud2.gotoAndStop(Math.floor(Math.random() * 5) + 1);
cloud3.gotoAndStop(Math.floor(Math.random() * 5) + 1);
cloud4.gotoAndStop(Math.floor(Math.random() * 5) + 1);
var count;
onMouseDown = function () {
if (gameState == "aim") {
gameState = "aim finished";
}
if (gameState == "power") {
gameState = "start kick";
}
};
gameState = "setup";
onEnterFrame = frameAction;
Frame 24
stop();
_quality = "high";
if (score > yourhigh) {
yourhigh = score;
storage.data.myhighscore = score;
}
finalScoreTextbox.text = score;
this.playBtn.onRelease = function () {
removeMovieClip(highHolder);
playSound("mouseDown");
gotoAndPlay (23);
};
this.playBtn.onRollOver = function () {
playSound("mouseOver");
playBtnClip.gotoAndStop(2);
};
this.playBtn.onRollOut = function () {
playBtnClip.gotoAndStop(1);
};
storage.flush();
gameoverClip._y = 700;
gameoverClip._rotation = -20;
gs.TweenLite.to(gameoverClip, 1, {_y:69, _rotation:0, ease:mx.transitions.easing.Bounce.easeOut});
System.security.allowInsecureDomain("*");
trace(score);
if (score > 100) {
t = this.createEmptyMovieClip("highHolder", 1000);
loadMovie ("http://www.terrypaton.com/highscores/highscoreSubmit.swf", highHolder);
t._x = 50;
t._y = 320;
}
if (yourhigh != undefined) {
yourHighestTextBox.text = "YOUR HIGHEST SCORE: " + yourhigh;
} else {
yourHighestTextBox.text = " ";
}
finalScoreText._alpha = 0;
gameOverShadow._alpha = 0;
gameOverClip._alpha = 0;
gameOverClip._y = -50;
playBtn._alpha = 0;
finalScoreTextbox._alpha = 0;
gs.TweenLite.to(gameOverShadow, 1, {_alpha:100, delay:0.5});
gs.TweenLite.to(gameOverClip, 1, {_y:118, _alpha:100, delay:0.5, ease:mx.transitions.easing.Bounce.easeOut});
gs.TweenLite.to(playBtn, 2, {_alpha:100, delay:0.5});
gs.TweenLite.to(finalScoreText, 2, {_alpha:100, delay:0.5});
gs.TweenLite.to(finalScoreTextbox, 2, {_alpha:100, delay:0.5});
Symbol 214 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.3");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = _parseOptions(options, _local27);
if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
}
Symbol 215 MovieClip [__Packages.letterClass] Frame 0
class letterClass extends MovieClip
{
var centerY, radiusY, speed, y, _y, x, _x, angle;
function letterClass () {
super();
}
function onLoad() {
centerY = 48;
radiusY = 5;
speed = 0.05;
y = _y;
x = _x;
}
function onEnterFrame() {
if (angle != undefined) {
y = centerY + (Math.sin(angle) * radiusY);
angle = angle + speed;
_x = x;
_y = y;
}
}
}
Symbol 216 MovieClip [__Packages.gs.TweenLite] Frame 0
class gs.TweenLite
{
static var _e, _gc;
var tweenID, endTargetID, vars, duration, delay, target, _endTarget, tweens, extraTweens, initTime, _active, color, colorParts, _sound, startTime, __get__endTarget;
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;
delay = $vars.delay || 0;
if ($duration == 0) {
duration = 0.001;
if (delay == 0) {
vars.runBackwards = true;
}
}
target = (_endTarget = $target);
if (typeof(vars.ease) != "function") {
vars.ease = easeOut;
}
if (vars.easeParams != undefined) {
vars.proxiedEase = vars.ease;
vars.ease = easeProxy;
}
if (vars.mcColor != undefined) {
vars.tint = vars.mcColor;
}
if (typeof(vars.autoAlpha) == "number") {
vars._alpha = vars.autoAlpha;
}
tweens = {};
extraTweens = {};
initTime = getTimer();
if (vars.runBackwards == true) {
initTweenVals();
}
_active = false;
if (($duration == 0) && (delay == 0)) {
complete(true);
} else {
if (_e._visible != false) {
if (!_root.tweenLite_mc) {
var _local5 = _root.getNextHighestDepth() || 9999;
_e = _root.createEmptyMovieClip("tweenLite_mc", _local5);
_e.swapDepths(-1);
} else {
_e = _root.tweenLite_mc;
}
_e._visible = false;
clearInterval(_gc);
_gc = setInterval(killGarbage, 2000);
}
_e.onEnterFrame = executeAll;
}
}
function initTweenVals() {
var _local5 = delay - ((getTimer() - initTime) / 1000);
var _local8;
if (target instanceof Array) {
var _local7 = vars.endArray || ([]);
var _local2 = 0;
while (_local2 < _local7.length) {
if ((target[_local2] != _local7[_local2]) && (target[_local2] != undefined)) {
tweens[_local2.toString()] = {o:target, s:target[_local2], c:_local7[_local2] - target[_local2]};
}
_local2++;
}
} else {
for (var _local27 in vars) {
if ((((((((((((((_local27 == "delay") || (_local27 == "ease")) || (_local27 == "overwrite")) || (_local27 == "onComplete")) || (_local27 == "onCompleteParams")) || (_local27 == "runBackwards")) || (_local27 == "onUpdate")) || (_local27 == "onUpdateParams")) || (_local27 == "autoAlpha")) || (_local27 == "_autoAlpha")) || (_local27 == "onStart")) || (_local27 == "onStartParams")) || (_local27 == "easeParams")) || (_local27 == "mcColor")) {
} else if ((_local27 == "tint") && ((typeof(target) == "movieclip") || (target instanceof TextField))) {
color = new Color(target);
colorParts = color.getTransform();
var _local6;
var _local4;
if ((vars[_local27] == null) || (vars[_local27] == "")) {
if (vars._alpha != undefined) {
_local4 = vars._alpha;
delete vars._alpha;
delete tweens._alpha;
} else {
_local4 = target._alpha;
}
_local6 = {rb:0, gb:0, bb:0, ra:_local4, ga:_local4, ba:_local4, ease:vars.ease, delay:_local5, overwrite:false, runBackwards:vars.runBackwards};
} else {
_local6 = {rb:vars[_local27] >> 16, gb:(vars[_local27] >> 8) & 255, bb:vars[_local27] & 255, ra:0, ga:0, ba:0, ease:vars.ease, delay:_local5, overwrite:false, runBackwards:vars.runBackwards};
}
var _local10 = new gs.TweenLite(colorParts, duration, _local6);
var _local11 = new gs.TweenLite(this, duration, {colorProxy:1, delay:_local5, overwrite:false, runBackwards:vars.runBackwards});
_local10.endTarget = (_local11.endTarget = target);
} else if ((_local27 == "volume") && (typeof(target) == "movieclip")) {
_sound = new Sound(target);
var _local9 = new gs.TweenLite(this, duration, {volumeProxy:vars[_local27], ease:easeOut, delay:_local5, overwrite:false, runBackwards:vars.runBackwards});
_local9.endTarget = target;
} else if (target[_local27] != undefined) {
if (typeof(vars[_local27]) == "number") {
_local8 = vars[_local27] - target[_local27];
} else {
_local8 = Number(vars[_local27]);
}
tweens[_local27] = {o:target, s:target[_local27], c:_local8};
} else {
extraTweens[_local27] = {o:target, s:0, c:0, v:vars[_local27]};
}
}
}
if (vars.runBackwards == true) {
var _local3;
for (var _local27 in tweens) {
_local3 = tweens[_local27];
_local3.s = _local3.s + _local3.c;
_local3.c = _local3.c * -1;
_local3.o[_local27] = _local3.s;
}
if (vars.onUpdate != undefined) {
vars.onUpdate.apply(null, vars.onUpdateParams);
}
}
if (typeof(vars.autoAlpha) == "number") {
target._visible = !((vars.runBackwards == true) && (target._alpha == 0));
}
}
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) {
return(new gs.TweenLite($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, overwrite:false}));
}
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) {
startTime = 0;
render(duration * 1000);
return(undefined);
}
if ((typeof(vars.autoAlpha) == "number") && (target._alpha == 0)) {
target._visible = false;
}
if (vars.onComplete) {
vars.onComplete.apply(null, 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);
}
function render(t) {
var _local4 = (t - startTime) / 1000;
if (_local4 > duration) {
_local4 = duration;
}
var _local2;
var _local3 = vars.ease(_local4, 0, 1, duration);
for (var _local5 in tweens) {
_local2 = tweens[_local5];
_local2.o[_local5] = _local2.s + (_local3 * _local2.c);
}
if (vars.onUpdate != undefined) {
vars.onUpdate.apply(null, vars.onUpdateParams);
}
if (_local4 == duration) {
complete(true);
}
}
static function executeAll() {
var _local2 = _all;
var _local3 = getTimer();
var _local1;
for (var _local5 in _local2) {
for (var _local4 in _local2[_local5]) {
_local1 = _local2[_local5][_local4];
if (_local1.active) {
_local1.render(_local3);
}
}
}
}
static function killGarbage() {
if (_e.onEnterFrame != null) {
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) {
_e.onEnterFrame = null;
}
}
}
static function easeOut($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)));
}
function get active() {
if (_active) {
return(true);
}
if (((getTimer() - initTime) / 1000) > delay) {
_active = true;
startTime = initTime + (delay * 1000);
if (vars.runBackwards != true) {
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 set endTarget($t) {
_all[endTargetID][tweenID] = {active:false};
delete _all[endTargetID][tweenID];
endTargetID = getID($t, true);
_endTarget = $t;
_all[endTargetID][tweenID] = this;
//return(__get__endTarget());
}
function set volumeProxy($n) {
_sound.setVolume($n);
//return(volumeProxy);
}
function get volumeProxy() {
return(_sound.getVolume());
}
function set colorProxy($n) {
color.setTransform(colorParts);
//return(colorProxy);
}
function get colorProxy() {
return(0);
}
static var version = 5.8;
static var _all = new Object();
static var _cnt = -16000;
static var killDelayedCallsTo = killTweensOf;
}
Symbol 217 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 218 MovieClip [__Packages.mx.transitions.easing.Back] Frame 0
class mx.transitions.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 219 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 14 MovieClip [letter] Frame 1
#initclip 7
Object.registerClass("letter", letterClass);
#endinitclip
Symbol 115 MovieClip [person] Frame 1
stop();
Symbol 115 MovieClip [person] Frame 9
stop();
Symbol 127 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 1
_root.stop();
head._yscale = (head._xscale = 5);
gs.TweenLite.to(head, 0.75, {_yscale:100, _xscale:100, ease:mx.transitions.easing.Bounce.easeOut});
terrypatoncomClip._yscale = (terrypatoncomClip._xscale = 300);
gs.TweenLite.to(terrypatoncomClip, 0.5, {_yscale:100, _xscale:100});
Symbol 140 MovieClip Frame 86
head.alphaTo(0, 0.5);
terrypatoncomClip.alphaTo(0, 0.5);
Symbol 140 MovieClip Frame 113
_root.play();
Symbol 168 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 1
this.onPress = function () {
getURL ("http://www.terrypaton.com", "_blank");
};
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.stop();