Frame 1
stop();
Frame 168
score = 0;
rank = "Z";
if (!bestscore) {
bestscore = 0;
}
stop();
Frame 379
stop();
Frame 380
play();
Frame 381
stop();
Instance of Symbol 159 MovieClip in Frame 381
onClipEvent (enterFrame) {
if (_root.score < 50) {
_root.rank = "Z";
} else if (_root.score < 100) {
_root.rank = "Y";
} else if (_root.score < 200) {
_root.rank = "X";
} else if (_root.score < 400) {
_root.rank = "W";
} else if (_root.score < 800) {
_root.rank = "V";
} else if (_root.score < 1200) {
_root.rank = "U";
} else if (_root.score < 2500) {
_root.rank = "T";
} else if (_root.score < 4000) {
_root.rank = "S";
} else if (_root.score < 6000) {
_root.rank = "R";
} else if (_root.score < 8000) {
_root.rank = "Q";
} else if (_root.score < 10000) {
_root.rank = "P";
} else if (_root.score < 13000) {
_root.rank = "O";
} else if (_root.score < 16000) {
_root.rank = "N";
} else if (_root.score < 20000) {
_root.rank = "M";
} else if (_root.score < 25000) {
_root.rank = "L";
} else if (_root.score < 30000) {
_root.rank = "K";
} else if (_root.score < 35000) {
_root.rank = "J";
} else if (_root.score < 40000) {
_root.rank = "I";
} else if (_root.score < 50000) {
_root.rank = "H";
} else if (_root.score < 60000) {
_root.rank = "G";
} else if (_root.score < 70000) {
_root.rank = "F";
} else if (_root.score < 80000) {
_root.rank = "E";
} else if (_root.score < 90000) {
_root.rank = "D";
} else if (_root.score < 100000) {
_root.rank = "C";
} else if (_root.score < 150000) {
_root.rank = "B";
} else {
_root.rank = "A";
}
}
Frame 382
function fMakeStarburst(xPos, yPos) {
s = Root.createEmptyMovieClip("burstClip", Root.depth++);
s.cnt = 0;
s.onEnterFrame = function () {
if ((this.cnt++) == 40) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
s._x = xPos;
s._y = yPos;
x = 0;
while (x < amountOfStars) {
ran = random(4) + 1;
v = s.attachMovie("explosionStar" + ran, "str" + x, s.getNextHighestDepth());
v.speed = random(10) + 10;
v.movSpdX = random(10) - 5;
v.movSpdY = (-1 * random(15)) + 1;
v._xscale = (v._yscale = random(40) + 30);
v._alpha = 150;
v.onEnterFrame = function () {
this._rotation = this._rotation + this.speed;
this._alpha = this._alpha - (this.speed / 3);
this._x = this._x + this.movSpdX;
this._y = this._y + this.movSpdY;
this.movSpdY++;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
x++;
}
}
function fMakeStarburst(xPos, yPos) {
s = Root.createEmptyMovieClip("burstClip", Root.depth++);
s.cnt = 0;
s.onEnterFrame = function () {
if ((this.cnt++) == 40) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
s._x = xPos;
s._y = yPos;
x = 0;
while (x < amountOfStars) {
ran = random(4) + 1;
v = s.attachMovie("explosionStar" + ran, "str" + x, s.getNextHighestDepth());
v.speed = random(10) + 10;
v.movSpdX = random(10) - 5;
v.movSpdY = (-1 * random(15)) + 1;
v._xscale = (v._yscale = random(40) + 30);
v._alpha = 150;
v.onEnterFrame = function () {
this._rotation = this._rotation + this.speed;
this._alpha = this._alpha - (this.speed / 3);
this._x = this._x + this.movSpdX;
this._y = this._y + this.movSpdY;
this.movSpdY++;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
x++;
}
}
pointsmsg = ("You got " + score) + " Points!";
othermsg = "Try to get rank A for a reward!";
randomnum = Math.floor(Math.random() * 10) + 1;
switch (randomnum) {
case 1 :
rmsg = "You Suck";
break;
case 2 :
rmsg = "omg You Suck!";
break;
case 3 :
rmsg = "That totally sucked";
break;
case 4 :
rmsg = "You suck like a hoover";
break;
case 5 :
rmsg = "Welcome to suckville";
break;
case 6 :
rmsg = "Hooray! You Suck!";
break;
case 7 :
rmsg = "ie. You Suck!";
break;
case 8 :
rmsg = "Could you suck any worse?";
break;
case 9 :
rmsg = "OMGWTFUSUCK";
break;
default :
rmsg = "You Suck";
}
rankmsg = "Rank: " + rank;
_global.Root = this;
var depth = 1;
var amountOfStars = 15;
_global.Root = this;
var depth = 1;
var amountOfStars = 15;
if (rank == "A") {
othermsg = "Well done! Click anywhere for fireworks!";
list = new Object();
list.onMouseDown = function () {
var _local2 = new Sound();
_local2.attachSound("bang");
_local2.start();
fMakeStarburst(_root._xmouse, _root._ymouse);
};
Mouse.removeListener(list);
Mouse.addListener(list);
}
play();
Instance of Symbol 135 MovieClip in Frame 439
onClipEvent (load) {
this.gotoAndStop(1);
}
Frame 484
stop();
Frame 486
gotoAndStop ("play");
Symbol 17 MovieClip Frame 1
myBar._xscale = 0;
loaded = false;
timer = 0;
onEnterFrame = function () {
loading = Math.round(_root.getBytesLoaded().toString() / 1024);
total = Math.round(_root.getBytesTotal().toString() / 1024);
percentage = Math.round((loading / total) * 100);
myBar._xscale = myBar._xscale + ((percentage - myBar._xscale) / 5);
percentageTxt._x = myBar._width - (percentageTxt._width / 2);
percentageTxt.percentage = Math.round(myBar._xscale);
if (((myBar._xscale > 99) && (percentage == 100)) && (loaded == false)) {
myBar._xscale = 100;
timer = timer + 1;
if (timer > 20) {
this._alpha = this._alpha - 5;
if (this._alpha < 0) {
loaded = true;
_root.play();
}
}
}
};
Symbol 204 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");
};
}
}
static var version = "1.1.0.52";
}
Symbol 205 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++;
}
}
static var version = "1.1.0.52";
}
Symbol 206 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 version = "1.1.0.52";
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 207 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 23 Button
on (release) {
getURL ("http://www.thegamehomepage.com/", "_blank");
}
Symbol 37 MovieClip Frame 15
gotoAndPlay (7);
Symbol 55 Button
on (release) {
getURL ("http://www.thegamehomepage.com/", "_blank");
}
Symbol 62 Button
on (release) {
_root.gotoAndPlay("howtoplay");
}
Symbol 68 Button
on (release) {
getURL ("http://www.thegamehomepage.com/", "_blank");
}
Symbol 74 Button
on (release) {
_root.gotoAndStop("credits");
}
Symbol 80 Button
on (release) {
getURL ("http://www.thegamehomepage.com/freesitecontent.php", "_blank");
}
Symbol 90 MovieClip Frame 1
field.text = _parent.ft;
Symbol 97 MovieClip Frame 1
stop();
speed = _parent.cloudspeed + random(_parent.cloudspeed / 2);
this.onEnterFrame = function () {
_y = (_y + speed);
if (this.hitTest(_parent.bb) && (ft == undefined)) {
_parent.vspeed = -_parent.launchSpeed;
_parent.jump = true;
_parent.score = _parent.score + (_parent.scorePer * _parent.scoreCombo);
ft = _parent.scorePer * _parent.scoreCombo;
_parent.scoreCombo = _parent.scoreCombo + 1;
play();
}
if (((-_y) < (_parent._y - 800)) || (_parent._parent.gameover._visible == true)) {
this.removeMovieClip();
}
};
Symbol 97 MovieClip Frame 13
stop();
this.removeMovieClip();
Symbol 121 Button
on (press) {
_root.gotoAndStop("play");
}
Symbol 132 MovieClip Frame 1
_visible = false;
Symbol 133 MovieClip Frame 65
gotoAndPlay (5);
Symbol 134 MovieClip Frame 35
stop();
Symbol 135 MovieClip Frame 20
stop();
Symbol 136 MovieClip Frame 23
_parent.gotoAndStop("fly_" + _parent._parent.dir);
Symbol 137 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (this.hitTest(_parent.bb) && (ft == undefined)) {
_parent.score = _parent.score + (_parent.scorePer * 10);
ft = _parent.scorePer * 10;
play();
}
if (((-_y) < (_parent._y - 800)) || (_parent._parent.gameover._visible == true)) {
this.removeMovieClip();
}
};
Symbol 139 MovieClip Frame 14
stop();
this.removeMovieClip();
Symbol 145 MovieClip Frame 1
rot = 1 + random(10);
sp = 4 + random(5);
this.onEnterFrame = function () {
_y = (_y + sp);
_alpha = (_alpha - 10);
_rotation = (_rotation + rot);
if (_alpha < 1) {
this.removeMovieClip();
}
};
Symbol 146 MovieClip Frame 1
nextCloud = 1;
cloudDistance = 110;
cloudscale = 100;
nextE = 1;
eDistance = 400;
vspeed = 0;
gravity = 2;
maxvspeed = 50;
groundY = 460;
launchSpeed = 32;
cloudspeed = 0;
jump = false;
firstjump = true;
score = 0;
scoreCombo = 1;
scorePer = 10;
this.onEnterFrame = function () {
_root.score = score;
if (score > _root.bestscore) {
_root.bestscore = score;
}
if (vspeed < 0) {
a = Math.random();
duplicateMovieClip (intSparkle, "sparkle" + a, this.getNextHighestDepth());
s = this["sparkle" + a];
s._x = (bb._x - 10) + random(20);
s._y = bb._y + 20;
s._alpha = 100;
}
var _local6 = new mx.transitions.Tween(bb, "_x", mx.transitions.easing.Strong.easeOut, bb._x, _xmouse, 24, false);
if (bb._y == groundY) {
if ((bb._x > (_xmouse - 5)) && (bb._x < (_xmouse + 5))) {
if (dir == "right") {
player.gotoAndStop("still_right");
} else {
player.gotoAndStop("still_left");
}
} else if (bb._x < _xmouse) {
dir = "right";
player.gotoAndStop("walk_right");
} else {
dir = "left";
player.gotoAndStop("walk_left");
}
}
if (((bb._y != groundY) && (player._currentframe != 80)) && (player._currentframe != 90)) {
if (vspeed < 0) {
if (bb._x < _xmouse) {
dir = "right";
player.gotoAndStop("fly_right");
} else {
dir = "left";
player.gotoAndStop("fly_left");
}
} else if (bb._x < _xmouse) {
dir = "right";
player.gotoAndStop("fall_right");
} else {
dir = "left";
player.gotoAndStop("fall_left");
}
}
vspeed = vspeed + gravity;
if (bb._y > groundY) {
bb._y = groundY;
vspeed = 0;
}
if ((bb._y + vspeed) < groundY) {
bb._y = bb._y + vspeed;
} else {
bb._y = groundY;
}
if (bb._y == groundY) {
vspeed = 0;
}
if ((nextCloud * cloudDistance) < (530 + _y)) {
duplicateMovieClip (intCloud, "cloud" + nextCloud, this.getNextHighestDepth());
bb.swapDepths(this.getNextHighestDepth());
cl = this["cloud" + nextCloud];
var _local5 = new flash.filters.GlowFilter(0, 20, 7, 7, 0.4, 1, true, false);
var _local4 = cl.filters;
_local4.push(_local5);
cl.filters = _local4;
cl._y = 530 - (nextCloud * cloudDistance);
cl._x = random(900);
cl._xscale = cloudscale;
cl._yscale = cloudscale;
nextCloud = nextCloud + 1;
if (cloudscale > 30) {
cloudscale = cloudscale - 0.5;
}
}
if ((nextE * eDistance) < (530 + _y)) {
duplicateMovieClip (intEikel, "e" + nextE, this.getNextHighestDepth());
player.swapDepths(this.getNextHighestDepth());
cl = this["e" + nextE];
var _local5 = new flash.filters.GlowFilter(0, 20, 7, 7, 0.4, 1, true, false);
var _local4 = cl.filters;
_local4.push(_local5);
cl.filters = _local4;
cl._y = 530 - (nextE * eDistance);
cl._x = random(900);
nextE = nextE + 1;
}
player._x = bb._x;
player._y = bb._y;
_y = (-(bb._y - 265));
if (_y < 0) {
_y = 0;
}
back._y = -400 + ((0.95 * bb._y) - 265);
if (back._y > -450) {
back._y = -450;
}
_parent.score.text = score;
_parent.bestscore.text = bestscore;
if (((bb._y == groundY) && (score > 0)) || (vspeed > 70)) {
_parent.doek.play();
}
};
this.onMouseDown = function () {
if (jump == true) {
player.gotoAndStop("db_" + dir);
vspeed = vspeed - (launchSpeed / 2);
jump = false;
scoreCombo = 1;
}
if ((score == 0) && (bb._y == groundY)) {
player.gotoAndStop("db_" + dir);
vspeed = -launchSpeed;
scoreCombo = 1;
}
};
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 10
_parent.gotoAndPlay("gameover");
Symbol 166 Button
on (press) {
if ((_root.rank != "A") || (_root._currentframe > 245)) {
Mouse.removeListener(list);
gotoAndPlay ("resetmusic");
}
}
Symbol 178 Button
on (release) {
getURL ("http://www.thegamehomepage.com/", "_blank");
}
Symbol 184 MovieClip Frame 3
stop();
Symbol 190 MovieClip Frame 1
if (_root.rank == "A") {
gotoAndStop (2);
}
stop();
Symbol 198 Button
on (press) {
_root.gotoAndStop("menu");
}