Frame 65
var loadAmount = _totalframes;
if (_framesloaded == loadAmount) {
gotoAndPlay ("beginMovie");
} else {
loaded = Math.round(getBytesLoaded() / 1024);
total = Math.round(getBytesTotal() / 1024);
percent = Math.round((loaded / total) * 100);
bytesLoadedOutput = loaded;
bytesTotalOutput = total;
percentOutput = percent + "%";
loadBar._width = loadBarHousing._width * (percent / 100);
gotoAndPlay ("loading");
}
Frame 90
stop();
Instance of Symbol 19 MovieClip "piece1" in Frame 90
onClipEvent (enterFrame) {
if (Math.round(Math.abs(_root._x)) >= Math.round(backTarget + 750)) {
backTarget = Math.round(Math.abs(_root._x)) + 750;
this._x = _parent.piece2._x + 750;
}
if (Math.round(Math.abs(_root._x)) >= backTarget) {
_parent.piece2._x = this._x + 750;
}
}
onClipEvent (load) {
backTarget = 0;
}
Instance of Symbol 41 MovieClip in Frame 90
on (release) {
_parent.play();
}
on (rollOver) {
play();
}
Frame 156
stop();
keyListener_obj.onKeyDown = null;
Instance of Symbol 83 MovieClip "bar" in Frame 156
onClipEvent (enterFrame) {
this._x = Math.abs(_root._x);
this._y = -Math.abs(_root._y);
this.swapDepths(99999);
}
Instance of Symbol 185 MovieClip "flag" in Frame 156
onClipEvent (load) {
stop();
this.swapDepths(99998);
}
Instance of Symbol 189 MovieClip "tick" in Frame 156
onClipEvent (load) {
prev = 0;
}
Instance of Symbol 232 MovieClip "shadow" in Frame 156
onClipEvent (enterFrame) {
this._x = _root.ball._x;
this._alpha = _root.ball._y * 0.3;
this._xscale = _root.ball._y * 0.2;
}
Instance of Symbol 3 MovieClip [ball] "ball" in Frame 156
onClipEvent (load) {
function kick() {
moving = true;
vy = ((50 - Math.abs(_root.vy)) / 50) * 430;
vx = ((50 - Math.abs(_root.vx)) / 50) * 480;
if (_root.purplePower == "on") {
vy = vy + 30;
vx = vx + 100;
}
if (vx < 70) {
vx = 70;
}
if (vy < 70) {
vy = 70;
}
spinSpeed = ((Math.random() * 1) + 1) * 0.1;
if ((vx + vy) > 800) {
this._parent.bar.nice.play();
}
}
function zoomIn() {
zoomXInscale = new mx.transitions.Tween(_root, "_xscale", mx.transitions.easing.Regular.easeOut, 100, 300, 0.5, true);
zoomYInscale = new mx.transitions.Tween(_root, "_yscale", mx.transitions.easing.Regular.easeOut, 100, 300, 0.5, true);
blurUp = new mx.transitions.Tween(_root.blur, "_alpha", mx.transitions.easing.Regular.easeOut, 0, 100, 0.7, true);
zoomYIn = new mx.transitions.Tween(_root, "_y", mx.transitions.easing.Regular.easeOut, _root._y, -(Stage.height * 2), 0.51, true);
_root._x = 0;
zoomYInscale.onMotionFinished = function () {
_root.bar._visible = true;
_root.attempt.gotoAndPlay(2);
_root._quality = "low";
};
}
function zoomOut() {
_root._quality = "high";
_root.attempt.play();
zoomAmount = 100;
zoomXscale = new mx.transitions.Tween(_root, "_xscale", mx.transitions.easing.Regular.easeOut, _root._xscale, zoomAmount, 0.5, true);
zoomYscale = new mx.transitions.Tween(_root, "_yscale", mx.transitions.easing.Regular.easeOut, _root._yscale, zoomAmount, 0.5, true);
blurUp = new mx.transitions.Tween(_root.blur, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, 0.3, true);
zoomY = new mx.transitions.Tween(_root, "_y", mx.transitions.easing.Regular.easeOut, _root._y, 0, 0.49, true);
_root._x = 0;
zoomY.onMotionFinished = function () {
_root.kicker.play();
};
}
function reset() {
_root.power.visual.gotoAndStop(1);
_root.power.visual._rotation = 0;
_root[flagName]._x = this._x - 30;
_root[flagName]._y = this._y + 10;
_root.flag._x = -220;
_root.flag.gotoAndStop(1);
_root.piece1.backTarget = 0;
_root.piece1._x = 0;
_root.piece2._x = 750;
zoomIn();
_root.ball._x = 220;
_root.ball._y = Stage.height - ballRadius;
_root.ball._rotation = 45;
_root.guage.gotoAndStop(1);
_root.kicker.gotoAndStop(1);
if (_root.count == 1) {
_root.tick.onEnterFrame = function () {
if ((_root.bar.first.text * 1) > this.prev) {
this.prev = _root.bar.first.text * 1;
this.gotoAndPlay(2);
}
};
_root.bar.gotoAndStop(1);
_root.attempt.frame.gotoAndStop(1);
}
if (_root.count == 2) {
_root.tick.onEnterFrame = function () {
if ((_root.bar.second.text * 1) > this.prev) {
this.prev = _root.bar.second.text * 1;
this.gotoAndPlay(2);
}
};
_root.bar.gotoAndStop(2);
_root.attempt.frame.gotoAndStop(2);
}
if (_root.count == 3) {
_root.tick.onEnterFrame = function () {
if ((_root.bar.third.text * 1) > this.prev) {
this.prev = _root.bar.third.text * 1;
this.gotoAndPlay(2);
}
};
_root.bar.gotoAndStop(3);
_root.attempt.frame.gotoAndStop(3);
}
if (_root.count == 4) {
_root.tick.onEnterFrame = function () {
if ((_root.bar.fourth.text * 1) > this.prev) {
this.prev = _root.bar.fourth.text * 1;
this.gotoAndPlay(2);
}
};
_root.bar.gotoAndStop(4);
_root.attempt.frame.gotoAndStop(4);
}
}
_root.tick.onEnterFrame = function () {
if ((_root.bar.first.text * 1) > this.prev) {
this.prev = _root.bar.first.text * 1;
this.gotoAndPlay(2);
}
};
this.swapDepths(1000000);
var highest = 0;
g = 50;
elastic = 0.7;
ballRadius = this._height / 2;
_root.ball._y = Stage.height - ballRadius;
vx = 0;
vy = 0;
x = this._x;
y = this._y;
_root.count = 1;
_root.bar._visible = false;
zoomIn();
}
onClipEvent (enterFrame) {
traveledYards = Math.round((this._x - 200) / 60);
if (_root.count == 1) {
_root.bar.first.text = traveledYards;
}
if (_root.count == 2) {
_root.bar.second.text = traveledYards;
}
if (_root.count == 3) {
_root.bar.third.text = traveledYards;
}
if (_root.count == 4) {
_root.bar.fourth.text = traveledYards;
}
if (moving == true) {
t = Number(t) + 0.1;
oldx = x;
oldy = y;
x = this._x;
y = this._y;
this._rotation = this._rotation + (vx * spinSpeed);
vy = vy + (g / 10);
x = x + (vx / 10);
y = y + (vy / 10);
if (y > (Stage.height - ballRadius)) {
if (vy > 20) {
_root.bounce.gotoAndPlay(2);
}
y = Stage.height - ballRadius;
vx = vx * elastic;
vy = -(vy * elastic);
}
if ((y - 40) < 0) {
ydestin = (-y) + 40;
} else {
ydestin = 0;
}
_root._y = _root._y + ((ydestin - _root._y) * 0.5);
if ((moving == true) and (x > (Stage.width / 2))) {
_root._x = _root._x + ((((-this._x) + (Stage.width / 2)) - _root._x) * 0.125);
}
this._x = x;
this._y = y;
}
if ((moving == true) and (vx < 1)) {
flagName = "flag" + _root.count;
_root.permFlag.duplicateMovieClip(flagName, _root.count);
_root.flag._x = this._x - 30;
_root.flag._y = this._y + 10;
_root.flag.gotoAndPlay(2);
_root.count = _root.count + 1;
if (_root.count < 5) {
_root.flag.yards.distance.text = (traveledYards * 1) + " yards!";
} else {
totalYards = ((Number(this._parent.bar.first.text) + Number(this._parent.bar.second.text)) + Number(this._parent.bar.third.text)) + Number(this._parent.bar.fourth.text);
_root.flag.yards.gotoAndStop(2);
if (highest < totalYards) {
highest = totalYards;
}
}
moving = false;
}
}
Symbol 254 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
}
Symbol 255 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
}
Symbol 256 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 257 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
}
Symbol 258 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);
}
}
Symbol 41 MovieClip Frame 1
stop();
Symbol 51 Button
on (release) {
if (_root.purplePower != "on") {
purplePower.gotoAndPlay(2);
}
}
Symbol 52 Button
on (release) {
friend.gotoAndPlay(2);
}
Symbol 57 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 2
_root.purplePower = "on";
Symbol 72 Button
on (release) {
if ((name != "") and (email != "")) {
var friendStuff = new LoadVars();
friendStuff.name = name;
friendStuff.email = email;
gotoAndStop (2);
}
}
Symbol 75 Button
on (release) {
_parent.gotoAndStop(1);
}
Symbol 78 MovieClip Frame 1
stop();
name = "";
email = "";
Symbol 78 MovieClip Frame 2
friendStuff.sendAndLoad("sendfriend.php", friendStuff, "POST");
friendStuff.onLoad = function (success) {
gotoAndPlay (3);
};
Symbol 78 MovieClip Frame 70
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 31
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 102 Button
on (release) {
removeMovieClip(_root.flag1);
removeMovieClip(_root.flag2);
removeMovieClip(_root.flag3);
removeMovieClip(_root.flag4);
_root.count = 1;
_root.bar.gotoAndStop(1);
_root.ball.reset();
}
Symbol 110 Button
on (release) {
if (initials != "") {
var highscore = new LoadVars();
highscore.initials = initials;
highscore.yards = _root.ball.totalYards;
highscore.oldId = _root.crapID;
trace(_root.crapID);
gotoAndStop (5);
}
}
Symbol 113 MovieClip Frame 1
stop();
var keyListener_obj = new Object();
keyListener_obj.onKeyDown = function () {
if (!(Key.getCode() === 32)) {
} else {
keyListener_obj.onKeyDown = null;
_root.ball.reset();
}
};
Key.addListener(keyListener_obj);
Symbol 113 MovieClip Frame 2
stop();
delete scores;
keyListener_obj.onKeyDown = null;
var scores = new LoadVars();
scores.onLoad = function (success) {
var _local3 = scores.initials.split("|");
_local3.pop();
i = 0;
while (i < _local3.length) {
trace(_local3[i]);
i++;
}
var _local2 = scores.yards.split("|");
_local2.pop();
i = 0;
while (i < _local2.length) {
trace(_local2[i]);
i++;
}
var _local4 = scores.ids.split("|");
_local4.pop();
i = 0;
while (i < _local4.length) {
trace(_local4[i]);
i++;
}
_root.crapID = _local4[19];
if (_root.ball.totalYards > _local2[19]) {
gotoAndStop (4);
} else {
gotoAndStop (3);
}
_root.initialsArray = _local3;
_root.yardsArray = _local2;
};
scores.sendAndLoad("grabscores.php", scores, "POST");
Symbol 113 MovieClip Frame 3
stop();
keyListener_obj.onKeyDown = null;
distance.text = _root.ball.totalYards;
highest.text = "YOUR HIGHEST SCORE: " + _root.ball.highest;
i = 0;
while (i < 10) {
initials1.text = initials1.text + ((((i + 1) + ". ") + _root.initialsArray[i]) + newline);
yards1.text = yards1.text + (_root.yardsArray[i] + newline);
i++;
}
i = 10;
while (i < 20) {
initials2.text = initials2.text + ((((i + 1) + ". ") + _root.initialsArray[i]) + newline);
yards2.text = yards2.text + (_root.yardsArray[i] + newline);
i++;
}
Symbol 113 MovieClip Frame 4
initials = "";
Symbol 113 MovieClip Frame 5
highscore.sendAndLoad("addscore.php", highscore, "POST");
delete scores.yards;
trace(scores.yards);
highscore.onLoad = function (success) {
var scores = new LoadVars();
scores.onLoad = function (success) {
var _local2 = scores.initials.split("|");
_local2.pop();
var _local4 = scores.yards.split("|");
_local4.pop();
var _local3 = scores.ids.split("|");
_local3.pop();
_root.crapID = _local3[19];
_root.initialsArray = _local2;
_root.yardsArray = _local4;
gotoAndStop (3);
};
scores.sendAndLoad("grabscores.php", scores, "POST");
};
Symbol 185 MovieClip Frame 84
gotoAndPlay (49);
Symbol 189 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 56
stop();
Symbol 231 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 46
_root.ball.kick();
Symbol 231 MovieClip Frame 48
stop();
Symbol 235 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 25
stop();
Symbol 236 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 2
_parent.powerConfirm.play();
Symbol 238 MovieClip Frame 35
rotate = new mx.transitions.Tween(_root.power.visual, "_rotation", mx.transitions.easing.Back.easeInOut, 0, 180, 0.8, true);
rotate.onMotionFinished = function () {
_parent.nextFrame();
};
Symbol 239 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 2
_parent.powerConfirm2.play();
Symbol 239 MovieClip Frame 35
_parent.play();
stop();
Symbol 240 MovieClip Frame 1
stop();
_parent.stand.gotoAndStop(1);
var keyListener_obj = new Object();
keyListener_obj.onKeyDown = function () {
if (!(Key.getCode() === 32)) {
} else {
_root.vy = pointer1._x;
pointer1.markerMove.stop();
pointer1.play();
delete keyListener_obj.onKeyDown;
_root.lockDown.gotoAndPlay(2);
}
};
Key.addListener(keyListener_obj);
Instance of Symbol 238 MovieClip "pointer1" in Symbol 240 MovieClip Frame 1
onClipEvent (load) {
markerMove = new mx.transitions.Tween(this, "_x", mx.transitions.easing.Regular.easeOut, -80, 80, 0.48, true);
markerMove.onMotionFinished = function () {
this.yoyo();
_root.clockTick.gotoAndPlay(2);
};
}
Symbol 240 MovieClip Frame 2
delete keyListener_obj.onKeyDown;
var keyListener_obj = new Object();
keyListener_obj.onKeyDown = function () {
if (!(Key.getCode() === 32)) {
} else {
_root.vx = pointer2._x;
pointer2.markerMove.stop();
pointer2.play();
_root.lockDown.gotoAndPlay(2);
delete keyListener_obj.onKeyDown;
}
};
Key.addListener(keyListener_obj);
Instance of Symbol 239 MovieClip "pointer2" in Symbol 240 MovieClip Frame 2
onClipEvent (load) {
markerMove = new mx.transitions.Tween(this, "_x", mx.transitions.easing.Regular.easeOut, -80, 80, 0.48, true);
markerMove.onMotionFinished = function () {
this.yoyo();
_root.clockTick.gotoAndPlay(2);
};
}
Symbol 240 MovieClip Frame 3
_parent.stand.gotoAndPlay(2);
Symbol 240 MovieClip Frame 25
stop();
_root.tick.prev = 0;
_root.ball.zoomOut();
Symbol 252 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 17
stop();