Section 1
//charitees_26 (rfbr_fla.charitees_26)
package rfbr_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class charitees_26 extends MovieClip {
public function charitees_26(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame3(){
try {
this.gotoAndPlay(this.parent.parent.parent.selectedCharity);
} catch(error:Error) {
this.gotoAndPlay(5);
};
stop();
}
function frame1(){
try {
this.gotoAndPlay(this.parent.parent.parent.selectedCharity);
} catch(error:Error) {
this.gotoAndPlay(5);
};
stop();
}
function frame4(){
try {
if (this.parent.parent.parent.selectedCharity != 4){
this.gotoAndPlay(this.parent.parent.parent.selectedCharity);
};
} catch(error:Error) {
this.gotoAndPlay(5);
};
stop();
}
function frame5(){
stop();
}
function frame2(){
try {
this.gotoAndPlay(this.parent.parent.parent.selectedCharity);
} catch(error:Error) {
this.gotoAndPlay(5);
};
stop();
}
}
}//package rfbr_fla
Section 2
//fallingtee_31 (rfbr_fla.fallingtee_31)
package rfbr_fla {
import flash.display.*;
public dynamic class fallingtee_31 extends MovieClip {
public var dec1:MovieClip;
}
}//package rfbr_fla
Section 3
//MainTimeline (rfbr_fla.MainTimeline)
package rfbr_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class MainTimeline extends MovieClip {
public var loaded:Number;
public var aSongLoopSlow:Sound;
public var highScore:int;
public var hud1:hud;
public var leftPressed:Boolean;
public var carR2LSound:Sound;
public var vhsgwCounter:int;
public var progress:MovieClip;
public var pieArray:Array;
public var maxDifficulty:int;
public var distanceTravelled:int;
public var gameOverFrameCount:int;
public var goodSound;
public var amount:int;
public var spinnermov:MovieClip;
public var titleMusicOnOff:SimpleButton;
public var rightPressed:Boolean;
public var gwMax;
public var selectedCharity:int;
public var selectCharity3Button1:Symbol3;
public var score:int;
public var yLowerLimit:Number;
public var drinkArray:Array;
public var skipPostVideoButton1:skipPostVideoButton;
public var carL2RSound:Sound;
public var backToTitleButton1:SimpleButton;
public var titleMusic;
public var introVideo1:Video;
public var backToTitleButton2:Symbol2;
public var introVideo2:Video;
public var selectCharity1Button1:charity1SelectButton;
public var xUpperLimit:Number;
public var amount2:int;
public var scoreText:TextField;
public var aSongLoop:Sound;
public var carArray:Array;
public var perc:Number;
public var percentageText:TextField;
public var gameOverDone:Boolean;
public var gwCounter:int;
public var THE_WALL:int;
public var gameOverTimer:int;
public var skipPreVideoButton1:skipPreVideoButton;
public var skipPreVideoButton2:skipPreVideoButton;
public var upPressed:Boolean;
public var channel:SoundChannel;
public var vhsgwMax;
public var genericRoadArray:Array;
public var startGameButton1:SimpleButton;
public var distIncCounter:int;
public var downPressed:Boolean;
public var submittingScore:Boolean;
public var deliveryManArray:Array;
public var distIncInterval:int;
public var spinnermov2:MovieClip;
public var fadeOut1:fadeOut;
public var creditsButton1:SimpleButton;
public var soundOn:Boolean;
public var total:Number;
public var tShirtDone:Boolean;
public var manHoleArray:Array;
public var newRoad1:road16;
public var mainChar1:mainChar;
public var newRoad3:road12;
public var trenchArray:Array;
public var selectCharity4Button1:Symbol4;
public var gameSpeed:Number;
public var difficultyThresholds:Array;
public var titleChannel:SoundChannel;
public var channel2:SoundChannel;
public var channel3:SoundChannel;
public var yUpperLimit:Number;
public var newRoad2:road10;
public var scooterAttach:scooterClip;
public var gameSpeeds:Array;
public var totalDistance:int;
public var tempCounter:int;
public var slapSound:Sound;
public var selectCharity2Button1:charity2SelectButton;
public var background1_1:gameBackground;
public var highDistance:int;
public var totalScore:int;
public var difficulty:int;
public var xLowerLimit:Number;
public var filmSiteButton1:SimpleButton;
public var volSetting2:SoundTransform;
public var volSetting3:SoundTransform;
public var instructionsButton1:SimpleButton;
public var playerSpeed:Number;
public var gameOver:Boolean;
public var volSettingT:SoundTransform;
public var meterSpeeds:Array;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 10, frame11, 56, frame57, 58, frame59, 60, frame61, 249, frame250, 490, frame491, 491, frame492, 492, frame493, 494, frame495, 496, frame497, 498, frame499, 499, frame500, 501, frame502, 503, frame504, 504, frame505, 620, frame621, 861, frame862, 862, frame863);
}
public function addSplat(){
var _local1:*;
_local1 = new splat1();
_local1.x = mainChar1.x;
_local1.y = mainChar1.y;
addChild(_local1);
}
public function noMoreNoise(){
SoundMixer.stopAll();
}
public function handleKeyUp(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.UP){
upPressed = false;
};
if (_arg1.keyCode == Keyboard.DOWN){
downPressed = false;
};
if (_arg1.keyCode == Keyboard.LEFT){
leftPressed = false;
};
if (_arg1.keyCode == Keyboard.RIGHT){
rightPressed = false;
};
}
public function stopAllClips(){
background1_1.stop();
mainChar1.gotoAndPlay("die");
gameOver = true;
}
public function switchToNormalSound(){
channel2.stop();
if (soundOn){
channel2 = aSongLoop.play(0, 5000);
channel2.soundTransform = volSetting2;
} else {
channel2.stop();
channel2.soundTransform = volSetting3;
};
}
public function skipPreVideo(_arg1:MouseEvent):void{
this.gotoAndPlay(1, "Main Game");
}
public function handleKeyDown(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.SPACE){
} else {
if (_arg1.keyCode == Keyboard.UP){
upPressed = true;
};
if (_arg1.keyCode == Keyboard.DOWN){
downPressed = true;
};
if (_arg1.keyCode == Keyboard.LEFT){
leftPressed = true;
};
if (_arg1.keyCode == Keyboard.RIGHT){
rightPressed = true;
};
background1_1.handleKeyDown(_arg1);
};
}
function frame2(){
total = root.loaderInfo.bytesTotal;
loaded = root.loaderInfo.bytesLoaded;
perc = ((loaded / total) * 100);
percentageText.text = (Math.round(perc) + "%");
this.getChildByName("progress").scaleX = (perc / 100);
if (loaded == total){
percentageText.text = "complete";
gotoAndPlay("done");
};
this.spinnermov.rotation = amount;
amount = (amount + perc);
this.spinnermov2.rotation = amount2;
amount2 = (amount2 - perc);
}
function frame862(){
stop();
}
function frame500(){
hsgwMax = this.numChildren;
hsgwCounter = (hsgwMax - 1);
while (hsgwCounter >= 0) {
this.removeChild(this.getChildAt(hsgwCounter));
hsgwCounter--;
};
goodSound = null;
slapSound = null;
carL2RSound = null;
carR2LSound = null;
aSongLoop = null;
aSongLoopSlow = null;
channel = null;
channel2 = null;
gotoAndPlay(1, "Title");
}
function frame502(){
backToTitleButton1.useHandCursor = false;
backToTitleButton1.addEventListener(MouseEvent.CLICK, insBackToTitle);
stop();
}
function frame1(){
stage.quality = StageQuality.MEDIUM;
amount = 1;
amount2 = 1;
soundOn = true;
}
function frame11(){
gotoAndPlay(1, "Title");
}
function frame504(){
backToTitleButton2.addEventListener(MouseEvent.CLICK, credBackToTitle);
stop();
}
function frame505(){
SoundMixer.stopAll();
skipPreVideoButton2.useHandCursor = false;
skipPreVideoButton2.addEventListener(MouseEvent.CLICK, skipPreVideo2);
}
function frame3(){
gotoAndPlay("nope");
}
function frame621(){
this.gotoAndPlay(1, "Instructions");
}
function frame863(){
vhsgwMax = this.numChildren;
vhsgwCounter = (vhsgwMax - 1);
while (vhsgwCounter >= 0) {
this.removeChild(this.getChildAt(vhsgwCounter));
vhsgwCounter--;
};
gotoAndPlay(1, "Title");
}
public function selectCharity1(_arg1:MouseEvent):void{
selectedCharity = 1;
SoundMixer.stopAll();
this.gotoAndPlay(1, "Pre Game Video");
}
public function selectCharity3(_arg1:MouseEvent):void{
selectedCharity = 3;
channel3.stop();
this.gotoAndPlay(1, "Pre Game Video");
}
public function selectCharity4(_arg1:MouseEvent):void{
selectedCharity = 4;
channel3.stop();
this.gotoAndPlay(1, "Pre Game Video");
}
public function selectCharity2(_arg1:MouseEvent):void{
selectedCharity = 2;
channel3.stop();
this.gotoAndPlay(1, "Pre Game Video");
}
public function cleanUp(){
var _local1:int;
var _local2:int;
var _local3:int;
_local1 = 0;
while (_local1 < carArray.length) {
if (carArray[_local1] != null){
carArray[_local1].dMExterminate();
carArray[_local1] = null;
};
_local1++;
};
carArray = new Array();
_local1 = 0;
while (_local1 < deliveryManArray.length) {
if (deliveryManArray[_local1] != null){
deliveryManArray[_local1].manualExterminate();
deliveryManArray[_local1] = null;
};
_local1++;
};
deliveryManArray = new Array();
_local1 = 0;
while (_local1 < drinkArray.length) {
if (drinkArray[_local1] != null){
drinkArray[_local1].die();
drinkArray[_local1] = null;
};
_local1++;
};
drinkArray = new Array();
_local1 = 0;
while (_local1 < genericRoadArray.length) {
if (genericRoadArray[_local1] != null){
genericRoadArray[_local1].manualExterminate();
genericRoadArray[_local1] = null;
};
_local1++;
};
genericRoadArray = new Array();
_local1 = 0;
while (_local1 < manHoleArray.length) {
if (manHoleArray[_local1] != null){
manHoleArray[_local1].manualExterminate();
manHoleArray[_local1] = null;
};
_local1++;
};
manHoleArray = new Array();
_local1 = 0;
while (_local1 < trenchArray.length) {
if (trenchArray[_local1] != null){
trenchArray[_local1].manualExterminate();
trenchArray[_local1] = null;
};
_local1++;
};
trenchArray = new Array();
_local1 = 0;
while (_local1 < pieArray.length) {
if (pieArray[_local1] != null){
pieArray[_local1].die();
pieArray[_local1] = null;
};
_local1++;
};
pieArray = new Array();
mainChar1.stop();
_local2 = background1_1.numChildren;
while (_local2--) {
background1_1.getChildAt(_local2).manualExterminate();
background1_1.removeChildAt(_local2);
};
_local2 = mainChar1.numChildren;
while (_local2--) {
mainChar1.removeChildAt(_local2);
};
removeChild(mainChar1);
mainChar1 = null;
removeChild(background1_1);
background1_1 = null;
stage.removeEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown);
stage.removeEventListener(KeyboardEvent.KEY_UP, handleKeyUp);
}
function frame57(){
highScore = 0;
highDistance = 0;
submittingScore = true;
titleMusic = new menuMusic();
titleChannel = new SoundChannel();
volSettingT = titleChannel.soundTransform;
volSettingT.volume = 0.4;
selectedCharity = 2;
startGameButton1.useHandCursor = false;
startGameButton1.addEventListener(MouseEvent.CLICK, startGame, false, 0, true);
creditsButton1.useHandCursor = false;
creditsButton1.addEventListener(MouseEvent.CLICK, goToCredits, false, 0, true);
filmSiteButton1.useHandCursor = false;
filmSiteButton1.addEventListener(MouseEvent.CLICK, goToFilmSite, false, 0, true);
titleMusicOnOff.useHandCursor = false;
titleMusicOnOff.addEventListener(MouseEvent.CLICK, titleToggleMusic, false, 0, true);
channel3 = new SoundChannel();
if (soundOn){
titleChannel = titleMusic.play(0, 5000);
titleChannel.soundTransform = volSettingT;
};
stop();
}
public function skipPreVideo2(_arg1:MouseEvent):void{
this.gotoAndPlay(1, "Instructions");
}
function frame59(){
selectCharity1Button1.useHandCursor = false;
selectCharity1Button1.addEventListener(MouseEvent.CLICK, selectCharity1);
selectCharity2Button1.useHandCursor = false;
selectCharity2Button1.addEventListener(MouseEvent.CLICK, selectCharity2);
selectCharity3Button1.useHandCursor = false;
selectCharity3Button1.addEventListener(MouseEvent.CLICK, selectCharity3);
selectCharity4Button1.useHandCursor = false;
selectCharity4Button1.addEventListener(MouseEvent.CLICK, selectCharity4);
stop();
}
public function insBackToTitle(_arg1:MouseEvent):void{
SoundMixer.stopAll();
channel3.stop();
this.gotoAndPlay(1, "Pre Game Video");
}
function frame61(){
SoundMixer.stopAll();
skipPreVideoButton1.useHandCursor = false;
skipPreVideoButton1.addEventListener(MouseEvent.CLICK, skipPreVideo);
}
public function skipPostVideo(_arg1:MouseEvent):void{
this.gotoAndPlay(1, "High Scores");
}
public function updateDifficulty(){
background1_1.setSpeed(gameSpeeds[difficulty]);
distIncInterval = meterSpeeds[difficulty];
}
public function addTextBonus(){
var _local1:*;
goodSound.play();
_local1 = new bonus1();
_local1.x = mainChar1.x;
_local1.y = mainChar1.y;
addChild(_local1);
score = (score + 100);
scoreText.text = score;
}
public function startGame(_arg1:MouseEvent):void{
titleCleanEventListeners();
this.gotoAndPlay(1, "Instructions");
}
public function switchToSlowSound(){
channel2.stop();
channel2 = aSongLoopSlow.play(0, 5000);
channel2.soundTransform = volSetting2;
}
public function genericUpdate(_arg1:Event){
var _local2:*;
if (!gameOver){
distIncCounter = (distIncCounter + 1);
if (distIncCounter >= distIncInterval){
distIncCounter = 0;
distanceTravelled = (distanceTravelled + 1);
hud1.distText.text = distanceTravelled;
};
if (difficulty < maxDifficulty){
if (distanceTravelled > difficultyThresholds[(difficulty + 1)]){
difficulty = (difficulty + 1);
if (difficulty == maxDifficulty){
gameOver = true;
hud1.goClip1.messageText.text = "COMPLETE!";
} else {
if (difficulty != THE_WALL){
_local2 = new scooterMan();
_local2.x = 300;
_local2.y = -100;
scooterAttach.addChild(_local2);
};
};
};
};
if (((upPressed) && ((mainChar1.y > yLowerLimit)))){
mainChar1.y = (mainChar1.y - playerSpeed);
};
if (((downPressed) && ((mainChar1.y < yUpperLimit)))){
mainChar1.y = (mainChar1.y + playerSpeed);
};
if (((leftPressed) && ((mainChar1.x > xLowerLimit)))){
mainChar1.x = (mainChar1.x - playerSpeed);
};
if (((rightPressed) && ((mainChar1.x < xUpperLimit)))){
mainChar1.x = (mainChar1.x + playerSpeed);
};
} else {
gameOverTimer++;
if (gameOverTimer >= gameOverFrameCount){
if (!gameOverDone){
background1_1.stopMoving();
hud1.distText.text = distanceTravelled;
hud1.motText.text = (mainChar1.health * 20);
totalScore = (distanceTravelled + score);
this.hud1.goClip1.y = -500;
this.hud1.goClip1.x = 0;
this.hud1.goClip1.goMailer.gotoAndPlay(2);
this.hud1.goClip1.update();
this.hud1.wallWarning.x = 600;
this.hud1.wallWarning.y = 600;
gameOverDone = true;
};
};
};
}
public function goToFilmSite(_arg1:MouseEvent):void{
SoundMixer.stopAll();
navigateToURL(new URLRequest("http://www.runfatboyrunmovie.co.uk/"));
}
public function goToCredits(_arg1:MouseEvent):void{
titleCleanEventListeners();
SoundMixer.stopAll();
submittingScore = false;
this.gotoAndPlay(1, "View High Scores");
}
public function titleToggleMusic(_arg1:MouseEvent){
if (soundOn){
soundOn = false;
titleChannel.stop();
} else {
soundOn = true;
titleChannel = titleMusic.play(0, 5000);
titleChannel.soundTransform = volSettingT;
};
}
public function toggleSoundOnOff(_arg1:MouseEvent):void{
if (soundOn){
soundOn = false;
} else {
soundOn = true;
};
SoundMixer.stopAll();
switchToNormalSound();
stage.focus = this;
}
function frame250(){
this.gotoAndPlay(1, "Main Game");
}
public function credBackToTitle(_arg1:MouseEvent):void{
channel3.stop();
this.gotoAndPlay(1, "Title");
}
function frame497(){
stage.removeEventListener(Event.ENTER_FRAME, genericUpdate);
channel2.stop();
removeChild(hud1);
gameOverDone = false;
skipPostVideoButton1.useHandCursor = false;
skipPostVideoButton1.addEventListener(MouseEvent.CLICK, skipPostVideo);
stop();
}
function frame493(){
score = 0;
stage.removeEventListener(Event.ENTER_FRAME, genericUpdate);
gameOverDone = false;
removeChild(hud1);
hud1 = null;
gotoAndPlay(1, "Game Wipe");
}
function frame492(){
hud1.wallWarning.stop();
hud1.wallWarning.wallWarnText1.stop();
hud1.hudDisplayClip.soundToggleButton.addEventListener(MouseEvent.CLICK, toggleSoundOnOff);
fadeOut1.x = 0;
fadeOut1.y = 0;
fadeOut1.gotoAndPlay(1);
upPressed = false;
downPressed = false;
leftPressed = false;
rightPressed = false;
distIncInterval = 12;
distIncCounter = 0;
THE_WALL = 3;
playerSpeed = 10;
gameOver = false;
gameOverTimer = 0;
gameOverFrameCount = 60;
xLowerLimit = 130;
xUpperLimit = (500 - mainChar1.width);
yLowerLimit = 0;
yUpperLimit = (600 - mainChar1.height);
score = 0;
totalScore = 0;
distanceTravelled = 0;
totalDistance = 60000;
scoreText.text = score;
difficulty = 0;
maxDifficulty = 20;
difficultyThresholds = new Array();
gameSpeeds = new Array();
gameSpeed = 6;
meterSpeeds = new Array();
gameOverDone = false;
difficultyThresholds[0] = 0;
difficultyThresholds[1] = 25;
difficultyThresholds[2] = 87;
difficultyThresholds[3] = 150;
difficultyThresholds[4] = 200;
difficultyThresholds[5] = 250;
difficultyThresholds[6] = 375;
difficultyThresholds[7] = 515;
difficultyThresholds[8] = 675;
difficultyThresholds[9] = 825;
difficultyThresholds[10] = 975;
difficultyThresholds[11] = 1175;
difficultyThresholds[12] = 1375;
difficultyThresholds[13] = 1575;
difficultyThresholds[14] = 1775;
difficultyThresholds[15] = 1975;
difficultyThresholds[16] = 2175;
difficultyThresholds[17] = 2375;
difficultyThresholds[18] = 2575;
difficultyThresholds[19] = 2775;
difficultyThresholds[20] = 2825;
gameSpeeds[0] = 6;
gameSpeeds[1] = 8;
gameSpeeds[2] = 10;
gameSpeeds[3] = 2;
gameSpeeds[4] = 11;
gameSpeeds[5] = 12;
gameSpeeds[6] = 13;
gameSpeeds[7] = 14;
gameSpeeds[8] = 15;
gameSpeeds[9] = 16;
gameSpeeds[10] = 17;
gameSpeeds[11] = 17;
gameSpeeds[12] = 17;
gameSpeeds[13] = 17;
gameSpeeds[14] = 17;
gameSpeeds[15] = 17;
gameSpeeds[16] = 17;
gameSpeeds[17] = 17;
gameSpeeds[18] = 17;
gameSpeeds[19] = 17;
gameSpeeds[20] = 17;
meterSpeeds[0] = 12;
meterSpeeds[1] = 10;
meterSpeeds[2] = 8;
meterSpeeds[3] = 20;
meterSpeeds[4] = 8;
meterSpeeds[5] = 8;
meterSpeeds[6] = 8;
meterSpeeds[7] = 8;
meterSpeeds[8] = 8;
meterSpeeds[9] = 8;
meterSpeeds[10] = 8;
meterSpeeds[11] = 7;
meterSpeeds[12] = 7;
meterSpeeds[13] = 7;
meterSpeeds[14] = 7;
meterSpeeds[15] = 7;
meterSpeeds[16] = 7;
meterSpeeds[17] = 7;
meterSpeeds[18] = 7;
meterSpeeds[19] = 7;
meterSpeeds[20] = 7;
newRoad1 = new road16();
newRoad1.x = 0;
newRoad1.y = 0;
background1_1.addChild(newRoad1);
newRoad1.setRelatives();
newRoad1.setObstacles();
tShirtDone = false;
newRoad2 = new road10();
newRoad2.x = 0;
newRoad2.y = 710;
background1_1.addChild(newRoad2);
newRoad2.setRelatives();
newRoad2.setObstacles();
newRoad3 = new road12();
newRoad3.x = 0;
newRoad3.y = 1420;
background1_1.addChild(newRoad3);
newRoad3.setRelatives();
newRoad3.setObstacles();
hud1.motText.text = "100";
stage.focus = this;
this.hud1.goClip1.goMailer.gotoAndPlay(1);
stage.addEventListener(Event.ENTER_FRAME, genericUpdate);
stage.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, handleKeyUp);
stop();
}
function frame491(){
goodSound = new bonusSound();
slapSound = new slap1();
carL2RSound = new carl2r();
carR2LSound = new carr2l();
aSongLoop = new inGameMusic();
aSongLoopSlow = new songLoopSlow();
channel = new SoundChannel();
channel2 = new SoundChannel();
volSetting2 = channel2.soundTransform;
volSetting2.volume = 0.4;
volSetting3 = channel2.soundTransform;
volSetting3.volume = 0;
if (soundOn){
channel2 = aSongLoop.play(0, 5000);
channel2.soundTransform = volSetting2;
};
carArray = new Array();
deliveryManArray = new Array();
drinkArray = new Array();
genericRoadArray = new Array();
manHoleArray = new Array();
pieArray = new Array();
trenchArray = new Array();
}
function frame495(){
gwMax = this.numChildren;
gwCounter = (gwMax - 1);
while (gwCounter >= 0) {
this.removeChild(this.getChildAt(gwCounter));
gwCounter--;
};
gotoAndPlay(2, "Main Game");
}
function frame499(){
try {
score = 0;
stage.removeEventListener(Event.ENTER_FRAME, genericUpdate);
gameOverDone = false;
} catch(error:Error) {
};
if (submittingScore == true){
stage.removeEventListener(Event.ENTER_FRAME, genericUpdate);
gameOverDone = false;
channel2.stop();
};
stop();
}
public function titleCleanEventListeners(){
startGameButton1.removeEventListener(MouseEvent.CLICK, startGame);
creditsButton1.removeEventListener(MouseEvent.CLICK, goToCredits);
filmSiteButton1.removeEventListener(MouseEvent.CLICK, goToFilmSite);
titleMusicOnOff.removeEventListener(MouseEvent.CLICK, titleToggleMusic);
}
}
}//package rfbr_fla
Section 4
//simpleFadeOut_59 (rfbr_fla.simpleFadeOut_59)
package rfbr_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class simpleFadeOut_59 extends MovieClip {
public function simpleFadeOut_59(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package rfbr_fla
Section 5
//Symbol10_33 (rfbr_fla.Symbol10_33)
package rfbr_fla {
import flash.display.*;
public dynamic class Symbol10_33 extends MovieClip {
public var soundToggleButton:Symbol11;
}
}//package rfbr_fla
Section 6
//workMan_96 (rfbr_fla.workMan_96)
package rfbr_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class workMan_96 extends MovieClip {
public function workMan_96(){
addFrameScript(0, frame1, 1, frame2, 35, frame36);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame36(){
stop();
}
}
}//package rfbr_fla
Section 7
//beer (beer)
package {
import flash.events.*;
import flash.display.*;
public class beer extends MovieClip {
var relHitBoxTLY:Number;// = 10
var relHitBoxTLX:Number;// = 10
var leftXLimit:Number;// = -450
var xLimit:Number;
var absX:Number;
var absY:Number;
var goingLeft:Boolean;// = true
var relHitBoxBRX:Number;// = 60
var relHitBoxBRY:Number;// = 30
var absHitBoxTLY:Number;// = 10
var speed:Number;// = 8
var rightXLimit:Number;// = 600
var absHitBoxTLX:Number;// = 10
var absHitBoxBRY:Number;// = 50
var absHitBoxBRX:Number;// = 50
var pieMathExt:mathExt;
public function beer(){
goingLeft = true;
speed = 8;
leftXLimit = -450;
rightXLimit = 600;
relHitBoxTLX = 10;
relHitBoxTLY = 10;
relHitBoxBRX = 60;
relHitBoxBRY = 30;
absHitBoxTLX = 10;
absHitBoxTLY = 10;
absHitBoxBRX = 50;
absHitBoxBRY = 50;
super();
addFrameScript(0, frame1, 1, frame2);
this.addEventListener(Event.ENTER_FRAME, update);
this.addEventListener(Event.REMOVED, exterminate);
pieMathExt = new mathExt();
}
public function exterminate(_arg1:Event){
die();
}
function frame1(){
this.setRelatives();
stop();
}
public function die(){
this.gotoAndPlay("blank");
this.removeEventListener(Event.ENTER_FRAME, update);
}
function frame2(){
stop();
try {
if (this.parent != null){
this.parent.removeChild(this);
};
} catch(error:Error) {
};
}
public function update(_arg1:Event){
var redundantEvent = _arg1;
try {
if (this.parent.parent.getChildByName("mainChar1") == null){
die();
} else {
if (((((y + parent.y) > (0 - height))) && (((y + parent.y) < 700)))){
absHitBoxTLX = (((x + relHitBoxTLX) + parent.x) + parent.parent.x);
absHitBoxTLY = (((y + relHitBoxTLY) + parent.y) + parent.parent.y);
absHitBoxBRX = (((x + relHitBoxBRX) + parent.x) + parent.parent.x);
absHitBoxBRY = (((y + relHitBoxBRY) + parent.y) + parent.parent.y);
if (goingLeft){
x = (x - speed);
} else {
x = (x + speed);
};
if (pieMathExt.hitBoxTest(absHitBoxTLX, absHitBoxTLY, absHitBoxBRX, absHitBoxBRY, this.parent.parent.getChildByName("mainChar1").absTopHitBoxTLX, this.parent.parent.getChildByName("mainChar1").absTopHitBoxTLY, this.parent.parent.getChildByName("mainChar1").absTopHitBoxBRX, this.parent.parent.getChildByName("mainChar1").absTopHitBoxBRY)){
this.parent.parent.getChildByName("mainChar1").takeHit();
this.parent.gotoAndPlay("blank");
explodeHit();
die();
} else {
if (goingLeft){
if (x <= leftXLimit){
explode();
die();
};
} else {
if (x >= rightXLimit){
die();
};
};
};
} else {
die();
};
};
} catch(error:Error) {
die();
};
}
public function explode(){
var _local1:*;
_local1 = new beerExplode();
_local1.x = this.x;
_local1.y = this.y;
this.parent.addChild(_local1);
}
public function setRelatives(){
try {
} catch(error:Error) {
delete ??getglobalscope
[this];
};
}
public function setGoingLeft(_arg1:Boolean){
goingLeft = _arg1;
}
public function explodeHit(){
var _local1:*;
_local1 = new beerExplodeHit();
_local1.x = this.x;
_local1.y = this.y;
this.parent.addChild(_local1);
}
}
}//package
Section 8
//beerExplode (beerExplode)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class beerExplode extends MovieClip {
public function beerExplode(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
try {
if (this.parent != null){
this.parent.removeChild(this);
};
} catch(error:Error) {
};
}
}
}//package
Section 9
//beerExplodeHit (beerExplodeHit)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class beerExplodeHit extends MovieClip {
public function beerExplodeHit(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
try {
if (this.parent != null){
this.parent.removeChild(this);
};
} catch(error:Error) {
};
}
}
}//package
Section 10
//blankRoad (blankRoad)
package {
import flash.events.*;
public class blankRoad extends genericRoad {
var oldY:Number;
public function blankRoad(){
this.addEventListener(Event.ENTER_FRAME, bRUpdate);
this.addEventListener(Event.REMOVED, bRExterminate);
}
public function bRUpdate(_arg1:Event){
if ((((((this.y < 0)) && ((oldY > 0)))) || ((this.y == 0)))){
this.parent.blankAtZero();
};
oldY = this.y;
}
public function bRExterminate(_arg1:Event){
this.removeEventListener(Event.ENTER_FRAME, bRUpdate);
this.removeEventListener(Event.REMOVED, exterminate);
}
}
}//package
Section 11
//bonus1 (bonus1)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class bonus1 extends MovieClip {
public function bonus1(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
try {
if (this.parent != null){
this.parent.removeChild(this);
};
} catch(error:Error) {
};
}
}
}//package
Section 12
//bonus2 (bonus2)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class bonus2 extends MovieClip {
public function bonus2(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
try {
if (this.parent != null){
this.parent.removeChild(this);
};
} catch(error:Error) {
};
}
}
}//package
Section 13
//bonusSound (bonusSound)
package {
import flash.media.*;
public dynamic class bonusSound extends Sound {
}
}//package
Section 14
//car (car)
package {
import flash.events.*;
public class car extends obstacleContainer {
var goingLeft:Boolean;// = true
var speed:Number;// = 16
var finished:Boolean;// = false
public var carHitBox1:carHitBox;
var soundPlayed:Boolean;// = false
public function car(){
finished = false;
speed = 16;
goingLeft = true;
soundPlayed = false;
super();
addFrameScript(0, frame1, 24, frame25);
this.addEventListener(Event.ENTER_FRAME, genericUpdate);
}
function frame1(){
this.setRelatives();
}
function frame25(){
stop();
}
public function genericUpdate(_arg1:Event){
var redundantEvent = _arg1;
try {
if ((((y > (0 - height))) && ((y < 700)))){
if (!finished){
if (goingLeft){
x = (x - speed);
if (x < -700){
soundPlayed = false;
x = 700;
};
} else {
x = (x + speed);
if (x > 700){
x = -700;
};
};
if ((((x < 600)) && (!(soundPlayed)))){
soundPlayed = true;
this.parent.carL2RSound.play();
};
if (this.carHitBox1.hitTestObject(this.parent.getChildByName("mainChar1"))){
this.parent.getChildByName("mainChar1").die(this.parent.getChildByName("mainChar1").FLYING_LEFT);
finished = true;
};
};
} else {
if (y < (0 - height)){
dMExterminate();
};
};
} catch(error:Error) {
dMExterminate();
};
}
public function setRelatives(){
try {
} catch(error:Error) {
};
}
public function dMExterminate(){
this.removeEventListener(Event.ENTER_FRAME, genericUpdate);
}
}
}//package
Section 15
//carHitBox (carHitBox)
package {
import flash.display.*;
public dynamic class carHitBox extends MovieClip {
}
}//package
Section 16
//carl2r (carl2r)
package {
import flash.media.*;
public dynamic class carl2r extends Sound {
}
}//package
Section 17
//carr2l (carr2l)
package {
import flash.media.*;
public dynamic class carr2l extends Sound {
}
}//package
Section 18
//charity1SelectButton (charity1SelectButton)
package {
import flash.display.*;
public dynamic class charity1SelectButton extends SimpleButton {
}
}//package
Section 19
//charity2SelectButton (charity2SelectButton)
package {
import flash.display.*;
public dynamic class charity2SelectButton extends SimpleButton {
}
}//package
Section 20
//deliveryMan (deliveryMan)
package {
import flash.events.*;
public class deliveryMan extends obstacleContainer {
var relHitBoxTLY:Number;// = 10
var relHitBoxTLX:Number;// = 10
var relHitBoxBRY:Number;// = 70
var relHitBoxBRX:Number;// = 50
var dMMathExt:mathExt;
var absHitBoxTLY:Number;// = 10
var absHitBoxTLX:Number;// = 10
var speed:Number;// = 8
var absHitBoxBRY:Number;// = 50
var absHitBoxBRX:Number;// = 50
public function deliveryMan(){
relHitBoxTLX = 10;
relHitBoxTLY = 10;
relHitBoxBRX = 50;
relHitBoxBRY = 70;
absHitBoxTLX = 10;
absHitBoxTLY = 10;
absHitBoxBRX = 50;
absHitBoxBRY = 50;
speed = 8;
super();
addFrameScript(0, frame1);
dMMathExt = new mathExt();
this.addEventListener(Event.ENTER_FRAME, genericUpdate);
this.addEventListener(Event.REMOVED, dMExterminate);
}
function frame1(){
setRelatives();
}
public function manualExterminate(){
this.removeEventListener(Event.ENTER_FRAME, genericUpdate);
}
public function genericUpdate(_arg1:Event){
if ((((y > (0 - height))) && ((y < 700)))){
x = (x - speed);
if (x < -100){
x = 700;
};
if (parent != null){
absHitBoxTLX = ((x + relHitBoxTLX) + parent.x);
absHitBoxTLY = ((y + relHitBoxTLY) + parent.y);
absHitBoxBRX = ((x + relHitBoxBRX) + parent.x);
absHitBoxBRY = ((y + relHitBoxBRY) + parent.y);
if (this.parent.getChildByName("mainChar1") != null){
if (dMMathExt.hitBoxTest(absHitBoxTLX, absHitBoxTLY, absHitBoxBRX, absHitBoxBRY, this.parent.getChildByName("mainChar1").absTopHitBoxTLX, this.parent.getChildByName("mainChar1").absTopHitBoxTLY, this.parent.getChildByName("mainChar1").absTopHitBoxBRX, this.parent.getChildByName("mainChar1").absTopHitBoxBRY)){
this.parent.getChildByName("mainChar1").takeHit();
};
};
};
};
}
public function setRelatives(){
try {
} catch(error:Error) {
};
}
function dMExterminate(_arg1:Event){
}
}
}//package
Section 21
//distBar1 (distBar1)
package {
import flash.display.*;
public dynamic class distBar1 extends MovieClip {
}
}//package
Section 22
//drink (drink)
package {
import flash.events.*;
import flash.display.*;
public class drink extends MovieClip {
var relHitBoxTLY:Number;// = 10
var relHitBoxTLX:Number;// = 10
var leftXLimit:Number;// = -450
var xLimit:Number;
var absX:Number;
var absY:Number;
var goingLeft:Boolean;// = true
var relHitBoxBRX:Number;// = 60
var relHitBoxBRY:Number;// = 30
var absHitBoxTLY:Number;// = 10
var speed:Number;// = 8
var rightXLimit:Number;// = 600
var absHitBoxTLX:Number;// = 10
var absHitBoxBRY:Number;// = 50
var absHitBoxBRX:Number;// = 50
var pieMathExt:mathExt;
public function drink(){
goingLeft = true;
speed = 8;
leftXLimit = -450;
rightXLimit = 600;
relHitBoxTLX = 10;
relHitBoxTLY = 10;
relHitBoxBRX = 60;
relHitBoxBRY = 30;
absHitBoxTLX = 10;
absHitBoxTLY = 10;
absHitBoxBRX = 50;
absHitBoxBRY = 50;
super();
addFrameScript(0, frame1, 18, frame19);
this.addEventListener(Event.ENTER_FRAME, update);
this.addEventListener(Event.REMOVED, exterminate);
pieMathExt = new mathExt();
}
public function exterminate(_arg1:Event){
die();
}
function frame1(){
this.setRelatives();
stop();
}
function frame19(){
stop();
try {
if (this.parent != null){
this.parent.removeChild(this);
};
} catch(error:Error) {
};
}
public function die(){
this.gotoAndPlay("blank");
this.removeEventListener(Event.ENTER_FRAME, update);
delete ??getglobalscope
[this];
}
public function update(_arg1:Event){
var redundantEvent = _arg1;
try {
if (((((y + parent.y) > (0 - height))) && (((y + parent.y) < 700)))){
absHitBoxTLX = (((x + relHitBoxTLX) + parent.x) + parent.parent.x);
absHitBoxTLY = (((y + relHitBoxTLY) + parent.y) + parent.parent.y);
absHitBoxBRX = (((x + relHitBoxBRX) + parent.x) + parent.parent.x);
absHitBoxBRY = (((y + relHitBoxBRY) + parent.y) + parent.parent.y);
if (this.parent.parent.getChildByName("mainChar1") == null){
this.removeEventListener(Event.ENTER_FRAME, update);
} else {
if (goingLeft){
x = (x - speed);
} else {
x = (x + speed);
};
if (pieMathExt.hitBoxTest(absHitBoxTLX, absHitBoxTLY, absHitBoxBRX, absHitBoxBRY, this.parent.parent.getChildByName("mainChar1").absTopHitBoxTLX, this.parent.parent.getChildByName("mainChar1").absTopHitBoxTLY, this.parent.parent.getChildByName("mainChar1").absTopHitBoxBRX, this.parent.parent.getChildByName("mainChar1").absTopHitBoxBRY)){
if (this.parent.parent.gameOver == false){
this.parent.parent.score = (this.parent.parent.score + 100);
this.parent.parent.scoreText.text = this.parent.parent.score;
this.parent.gotoAndPlay("blank");
explode();
die();
};
} else {
if (goingLeft){
if (x <= leftXLimit){
die();
};
} else {
if (x >= rightXLimit){
die();
};
};
};
};
} else {
die();
};
} catch(error:Error) {
die();
};
}
public function explode(){
var _local1:bonus1;
_local1 = new bonus1();
_local1.x = this.x;
_local1.y = this.y;
this.parent.addChild(_local1);
}
public function setRelatives(){
try {
} catch(error:Error) {
delete ??getglobalscope
[this];
};
}
public function setGoingLeft(_arg1:Boolean){
goingLeft = _arg1;
}
}
}//package
Section 23
//energyBar (energyBar)
package {
import flash.display.*;
public dynamic class energyBar extends MovieClip {
}
}//package
Section 24
//energyBarB (energyBarB)
package {
import flash.display.*;
public dynamic class energyBarB extends MovieClip {
}
}//package
Section 25
//energyBarC (energyBarC)
package {
import flash.display.*;
public dynamic class energyBarC extends MovieClip {
}
}//package
Section 26
//fadeOut (fadeOut)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class fadeOut extends MovieClip {
public function fadeOut(){
addFrameScript(28, frame29);
}
function frame29(){
this.x = 600;
this.y = 600;
stop();
}
}
}//package
Section 27
//gameBackground (gameBackground)
package {
import flash.events.*;
import flash.display.*;
public class gameBackground extends MovieClip {
var bGMathExt:mathExt;
var lastTileChoice:int;// = 1
var updatedThisFrame:Boolean;// = false
var stopPending:Boolean;// = false
var finishLineDone:Boolean;// = false
var speed:int;// = 6
var tHThreshold:int;// = 1000
var wallDone:Boolean;// = false
var newWall:wall;
var maxTileChoice:int;// = 3
var totalHeight:int;// = 2160
var newElementY:Number;// = 1100
var newSpeed:int;// = 0
var newElementX:Number;// = 0
var speedChangePending:Boolean;// = false
var minTileChoice:int;// = 1
public function gameBackground(){
newElementX = 0;
newElementY = 1100;
minTileChoice = 1;
maxTileChoice = 3;
stopPending = false;
speedChangePending = false;
newSpeed = 0;
wallDone = false;
finishLineDone = false;
updatedThisFrame = false;
totalHeight = 2160;
tHThreshold = 1000;
speed = 6;
lastTileChoice = 1;
super();
bGMathExt = new mathExt();
this.addEventListener(Event.ENTER_FRAME, update);
}
public function blankAtZero(){
if (this.parent.difficulty == this.parent.THE_WALL){
if (wallDone == false){
wallDone = true;
this.parent.noMoreNoise();
this.parent.hud1.wallWarning.x = 0;
this.parent.hud1.wallWarning.y = 120;
this.parent.hud1.wallWarning.stop();
this.parent.hud1.wallWarning.wallWarnText1.stop();
newWall = new wall();
newWall.x = 0;
newWall.y = 0;
this.parent.addChild(newWall);
this.setSpeed(this.parent.gameSpeeds[this.parent.THE_WALL]);
this.parent.switchToSlowSound();
this.parent.distIncInterval = this.parent.meterSpeeds[this.parent.difficulty];
};
};
}
public function addElement(){
var _local1:int;
var _local2:MovieClip;
_local1 = bGMathExt.randRange(minTileChoice, (maxTileChoice + 1));
if (_local1 == lastTileChoice){
_local1++;
};
if (_local1 > maxTileChoice){
_local1 = 1;
};
lastTileChoice = _local1;
if (this.parent.difficulty == this.parent.THE_WALL){
_local2 = new blankRoad();
_local2.x = newElementX;
_local2.y = totalHeight;
this.addChild(_local2);
totalHeight = (totalHeight + 710);
if (wallDone == false){
this.parent.hud1.wallWarning.x = 0;
this.parent.hud1.wallWarning.y = -500;
this.parent.hud1.wallWarning.wallWarnText1.play();
};
} else {
if (this.parent.difficulty == (this.parent.maxDifficulty - 1)){
if (!finishLineDone){
_local2 = new road17();
finishLineDone = true;
} else {
_local2 = new road18();
};
_local2.x = newElementX;
_local2.y = totalHeight;
this.addChild(_local2);
_local2.setRelatives();
_local2.setObstacles();
totalHeight = (totalHeight + 710);
} else {
if (this.parent.difficulty == this.parent.maxDifficulty){
_local2 = new road18();
_local2.x = newElementX;
_local2.y = totalHeight;
this.addChild(_local2);
_local2.setRelatives();
_local2.setObstacles();
totalHeight = (totalHeight + 710);
} else {
switch (_local1){
case 1:
if (this.parent.difficulty == 0){
_local2 = new road11();
} else {
if (this.parent.difficulty == 1){
_local2 = new road6();
} else {
if (this.parent.difficulty == 2){
_local2 = new road11();
} else {
if (this.parent.difficulty == 3){
_local2 = new road14();
} else {
if (this.parent.difficulty == 4){
_local2 = new road11();
} else {
if (this.parent.difficulty >= 5){
_local2 = new road14();
};
};
};
};
};
};
_local2.x = newElementX;
_local2.y = totalHeight;
this.addChild(_local2);
_local2.setRelatives();
_local2.setObstacles();
totalHeight = (totalHeight + 710);
break;
case 2:
if (this.parent.difficulty == 0){
_local2 = new road12();
} else {
if (this.parent.difficulty == 1){
_local2 = new road13();
} else {
if (this.parent.difficulty >= 2){
_local2 = new road9();
};
};
};
_local2.x = newElementX;
_local2.y = totalHeight;
this.addChild(_local2);
_local2.setRelatives();
_local2.setObstacles();
totalHeight = (totalHeight + 740);
break;
case 3:
if (this.parent.difficulty == 0){
_local2 = new road10();
} else {
if (this.parent.difficulty == 1){
_local2 = new road10();
} else {
if (this.parent.difficulty >= 2){
_local2 = new road15();
};
};
};
_local2.x = newElementX;
_local2.y = totalHeight;
this.addChild(_local2);
_local2.setRelatives();
_local2.setObstacles();
totalHeight = (totalHeight + 710);
break;
default:
break;
};
};
};
};
}
public function setSpeed(_arg1:int){
speedChangePending = true;
newSpeed = _arg1;
}
public function handleKeyDown(_arg1:KeyboardEvent):void{
if (wallDone){
newWall.handleKeyDown(_arg1);
};
}
public function removeWall(_arg1:wall){
this.parent.removeChild(_arg1);
_arg1 = null;
this.parent.difficulty++;
this.parent.distIncInterval = this.parent.meterSpeeds[this.parent.difficulty];
this.setSpeed(this.parent.gameSpeeds[this.parent.difficulty]);
this.parent.switchToNormalSound();
wallDone = false;
}
public function getSpeed(){
return (speed);
}
public function update(_arg1:Event){
if (stopPending){
speed = 0;
};
if (speedChangePending){
speed = newSpeed;
speedChangePending = false;
};
this.addToTotalHeight((~(speed) + 1));
}
public function removeRoad(_arg1:genericRoad){
this.removeChild(_arg1);
_arg1 = null;
}
public function addToTotalHeight(_arg1:Number){
totalHeight = (totalHeight + _arg1);
if (totalHeight <= tHThreshold){
addElement();
};
}
public function stopMoving(){
stopPending = true;
}
}
}//package
Section 28
//gameMusicClip (gameMusicClip)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class gameMusicClip extends MovieClip {
public function gameMusicClip(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package
Section 29
//gameOverClip (gameOverClip)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class gameOverClip extends MovieClip {
public var tryAgainButton1:tryAgainButtonX1;
public var bsText:TextField;
public var awardText:TextField;
public var tsText:TextField;
public var highScoresButton1:highScoresButton;
public var goMailer:mailer;
public var bpText:TextField;
public var goFilmSiteButton1:Symbol6;
public var messageText:TextField;
public var drText:TextField;
public function gameOverClip(){
addFrameScript(0, frame1);
}
public function gotoHighScores(_arg1:MouseEvent):void{
goMailer.contacter.endConnection();
this.x = 0;
this.y = 120;
this.parent.parent.noMoreNoise();
this.parent.parent.cleanUp();
this.parent.parent.gotoAndPlay(1, "High Scores");
}
function frame1(){
tryAgainButton1.useHandCursor = false;
tryAgainButton1.addEventListener(MouseEvent.CLICK, tryAgain);
highScoresButton1.useHandCursor = false;
highScoresButton1.addEventListener(MouseEvent.CLICK, gotoHighScores);
goFilmSiteButton1.addEventListener(MouseEvent.CLICK, goGoToFilmSite);
}
public function tryAgain(_arg1:MouseEvent):void{
goMailer.contacter.endConnection();
this.messageText.text = "GAME OVER";
this.parent.parent.cleanUp();
this.parent.parent.gotoAndPlay("End");
}
public function goGoToFilmSite(_arg1:MouseEvent):void{
goMailer.contacter.endConnection();
SoundMixer.stopAll();
navigateToURL(new URLRequest("http://www.runfatboyrunmovie.co.uk/"));
}
public function update(){
drText.text = this.parent.parent.distanceTravelled;
bpText.text = this.parent.parent.score;
tsText.text = this.parent.parent.totalScore;
if (this.parent.parent.totalScore > this.parent.parent.highScore){
this.parent.parent.highScore = this.parent.parent.totalScore;
};
if (this.parent.parent.distanceTravelled > this.parent.parent.highDistance){
this.parent.parent.highDistance = this.parent.parent.distanceTravelled;
};
bsText.text = this.parent.parent.highScore;
}
}
}//package
Section 30
//genericRoad (genericRoad)
package {
import flash.events.*;
import flash.display.*;
public class genericRoad extends MovieClip {
var counter:int;
var goCount:int;
var obstacleArray:Array;
var oALength:int;// = 0
var tempSpeed:int;
var yThreshold:Number;// = -740
public function genericRoad(){
yThreshold = -740;
oALength = 0;
super();
this.addEventListener(Event.ENTER_FRAME, update);
obstacleArray = new Array();
}
function destroy(_arg1:Event){
}
function exterminate(_arg1:Event){
var _local2:int;
_local2 = 0;
if (y <= yThreshold){
_local2 = 0;
while (_local2 < obstacleArray.length) {
if (obstacleArray[_local2].parent != null){
this.parent.parent.removeChild(obstacleArray[_local2]);
};
obstacleArray[_local2] = null;
_local2++;
};
obstacleArray = null;
};
}
public function addObstacle(_arg1:obstacleContainer, _arg2:Number, _arg3:Number){
_arg1.x = (_arg2 + this.x);
_arg1.y = (_arg3 + this.y);
this.parent.parent.addChild(_arg1);
obstacleArray.push(_arg1);
}
public function halfManualExterminate(){
var _local1:int;
_local1 = 0;
if (obstacleArray != null){
_local1 = 0;
while (_local1 < obstacleArray.length) {
if (obstacleArray[_local1] != null){
obstacleArray[_local1].stop();
if (obstacleArray[_local1].parent != null){
this.parent.parent.removeChild(obstacleArray[_local1]);
};
obstacleArray[_local1] = null;
};
_local1++;
};
obstacleArray = null;
};
this.removeEventListener(Event.ENTER_FRAME, update);
}
public function manualExterminate(){
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:*;
_local1 = 0;
if (obstacleArray != null){
_local1 = 0;
while (_local1 < obstacleArray.length) {
if (obstacleArray[_local1] != null){
obstacleArray[_local1].stop();
if (obstacleArray[_local1].parent != null){
this.parent.parent.removeChild(obstacleArray[_local1]);
};
obstacleArray[_local1] = null;
};
_local1++;
};
obstacleArray = null;
};
this.removeEventListener(Event.ENTER_FRAME, update);
_local2 = this.numChildren;
_local3 = 0;
_local3 = (_local2 - 1);
while (_local3 >= 0) {
this.getChildAt(_local3).removeEventListener(Event.ENTER_FRAME, update);
_local4 = this.getChildAt(_local3);
this.removeChild(_local4);
_local4 = null;
_local3--;
};
}
public function update(_arg1:Event){
tempSpeed = this.parent.getSpeed();
y = (y - tempSpeed);
counter = 0;
while (counter < oALength) {
obstacleArray[counter].y = (obstacleArray[counter].y - tempSpeed);
counter++;
};
if ((((this.parent.parent.gameOver == true)) && ((this.parent.parent.gameOverTimer >= goCount)))){
halfManualExterminate();
};
if (y <= yThreshold){
manualExterminate();
this.parent.removeRoad(this);
};
}
public function setRelatives(){
goCount = this.parent.parent.gameOverFrameCount;
}
}
}//package
Section 31
//head1 (head1)
package {
import flash.display.*;
public dynamic class head1 extends MovieClip {
}
}//package
Section 32
//highScoresButton (highScoresButton)
package {
import flash.display.*;
public dynamic class highScoresButton extends SimpleButton {
}
}//package
Section 33
//hitArea1 (hitArea1)
package {
import flash.display.*;
public dynamic class hitArea1 extends MovieClip {
}
}//package
Section 34
//hitSoundWall (hitSoundWall)
package {
import flash.media.*;
public dynamic class hitSoundWall extends Sound {
}
}//package
Section 35
//hitStars (hitStars)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class hitStars extends MovieClip {
public function hitStars(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package
Section 36
//hsBackToTitle (hsBackToTitle)
package {
import flash.display.*;
public dynamic class hsBackToTitle extends SimpleButton {
}
}//package
Section 37
//hud (hud)
package {
import flash.display.*;
import flash.text.*;
public dynamic class hud extends MovieClip {
public var distText:TextField;
public var leftSpeechBubble1:leftSpeechBubble;
public var rightSpeechBubble1:rightSpeechBubble;
public var motText:TextField;
public var wallWarning:wallWarn;
public var hudDisplayClip:MovieClip;
public var goClip1:gameOverClip;
}
}//package
Section 38
//improvedManHole (improvedManHole)
package {
import flash.display.*;
public dynamic class improvedManHole extends MovieClip {
}
}//package
Section 39
//inGameMusic (inGameMusic)
package {
import flash.media.*;
public dynamic class inGameMusic extends Sound {
}
}//package
Section 40
//leftDrinkThrower (leftDrinkThrower)
package {
import flash.display.*;
public class leftDrinkThrower extends thrower {
public function leftDrinkThrower(){
addFrameScript(54, frame55, 69, frame70, 74, frame75);
goingLeft = true;
}
override public function createProjectile():MovieClip{
var _local1:*;
_local1 = new drink();
return (_local1);
}
function frame70(){
this.addProjectile();
}
function frame75(){
gotoAndPlay("normal");
}
public function die(){
}
function frame55(){
}
}
}//package
Section 41
//leftPieThrower (leftPieThrower)
package {
import flash.display.*;
public class leftPieThrower extends thrower {
public function leftPieThrower(){
addFrameScript(54, frame55, 69, frame70, 74, frame75);
goingLeft = true;
}
override public function createProjectile():MovieClip{
var _local1:int;
var _local2:*;
_local1 = throwerMathExt.randRange(1, 2);
if (_local1 == 1){
_local2 = new pie();
} else {
_local2 = new beer();
};
return (_local2);
}
function frame70(){
this.addProjectile();
}
function frame75(){
gotoAndPlay("normal");
}
public function die(){
}
function frame55(){
}
}
}//package
Section 42
//leftSpeechBubble (leftSpeechBubble)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class leftSpeechBubble extends MovieClip {
public var speechBubbleText1:TextField;
public function leftSpeechBubble(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 43
//mailer (mailer)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class mailer extends MovieClip {
public var yourNameInput:TextField;
public var friendEmail1:TextField;
public var mailerErrorText1:TextField;
public var sBAward:String;
public var mailerSubmitButton1:mailerSubmitButton;
public var contacter:mailerRemoteScoreBoard;
public function mailer(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
public function mailerSubmit(_arg1:MouseEvent):void{
var _local2:String;
contacter.init();
_local2 = "";
if (yourNameInput.text.length <= 0){
mailerErrorText1.text = "Name must be at least 1 letter.";
} else {
if (friendEmail1.text == ""){
mailerErrorText1.text = "Required field is blank.";
} else {
if (validateEmail(friendEmail1.text)){
contacter.mailScore("redundant", friendEmail1.text, this.parent.parent.parent.highDistance, "", this.parent.parent.parent.highScore, sBAward, _local2, yourNameInput.text);
this.gotoAndPlay(3);
} else {
mailerErrorText1.text = "Please enter a valid e-mail address.";
};
};
};
}
public function validateEmail(_arg1:String):Boolean{
if (_arg1.indexOf("@") < 0){
return (false);
};
if (_arg1.lastIndexOf("@") != _arg1.indexOf("@")){
return (false);
};
if (_arg1.indexOf(".") < 0){
return (false);
};
if (_arg1.lastIndexOf(".") < _arg1.indexOf("@")){
return (false);
};
return (true);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
sBAward = "Fatboy";
if (this.parent.parent.parent.highScore >= 10000){
sBAward = "Gold Medal";
} else {
if (this.parent.parent.parent.highScore >= 9000){
sBAward = "Silver Medal";
} else {
if (this.parent.parent.parent.highScore >= 8000){
sBAward = "Bronze Medal";
} else {
if (this.parent.parent.parent.highScore >= 7000){
sBAward = "Runner Up";
} else {
if (this.parent.parent.parent.highScore >= 6000){
sBAward = "Bubbling Under";
} else {
if (this.parent.parent.parent.highScore >= 5000){
sBAward = "A Bit Slobby";
} else {
if (this.parent.parent.parent.highScore >= 4000){
sBAward = "Pie Eater";
} else {
if (this.parent.parent.parent.highScore >= 3000){
sBAward = "Fry-Up Fanatic";
} else {
if (this.parent.parent.parent.highScore >= 2000){
sBAward = "Face Stuffer";
} else {
if (this.parent.parent.parent.highScore >= 1000){
sBAward = "Greasy Spoon";
} else {
sBAward = "Fatboy";
};
};
};
};
};
};
};
};
};
};
this.parent.awardText.text = (("You are a " + sBAward) + "!");
try {
contacter = new mailerRemoteScoreBoard(this);
mailerErrorText1.text = "* = required field";
} catch(error:Error) {
};
mailerSubmitButton1.useHandCursor = false;
mailerSubmitButton1.addEventListener(MouseEvent.CLICK, mailerSubmit);
stop();
}
}
}//package
Section 44
//mailer2 (mailer2)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class mailer2 extends MovieClip {
public var yourNameInput:TextField;
public var friendEmail1:TextField;
public var mailerErrorText1:TextField;
public var mailerSubmitButton1:mailerSubmitButton;
public function mailer2(){
addFrameScript(0, frame1, 1, frame2);
}
public function mailerSubmit(_arg1:MouseEvent):void{
var _local2:String;
if (this.parent.internalRank <= 0){
_local2 = "Out Of Rank";
} else {
_local2 = String(this.parent.internalRank);
};
if (yourNameInput.text.length <= 0){
mailerErrorText1.text = "Name must be at least 1 letter.";
} else {
if (friendEmail1.text == ""){
mailerErrorText1.text = "Required field is blank.";
} else {
if (validateEmail(friendEmail1.text)){
this.parent.mailScore("redundant", friendEmail1.text, this.parent.parent.highDistance, "", this.parent.parent.highScore, this.parent.sBAward, _local2, yourNameInput.text);
this.gotoAndPlay(2);
} else {
mailerErrorText1.text = "Please enter a valid e-mail address.";
};
};
};
}
public function validateEmail(_arg1:String):Boolean{
if (_arg1.indexOf("@") < 0){
return (false);
};
if (_arg1.lastIndexOf("@") != _arg1.indexOf("@")){
return (false);
};
if (_arg1.indexOf(".") < 0){
return (false);
};
if (_arg1.lastIndexOf(".") < _arg1.indexOf("@")){
return (false);
};
return (true);
}
function frame1(){
try {
mailerErrorText1.text = "* = required field";
yourNameInput.text = this.parent.localSubName;
} catch(error:Error) {
};
mailerSubmitButton1.useHandCursor = false;
mailerSubmitButton1.addEventListener(MouseEvent.CLICK, mailerSubmit);
stop();
}
function frame2(){
stop();
}
}
}//package
Section 45
//mailerRemoteScoreBoard (mailerRemoteScoreBoard)
package {
import flash.display.*;
import flash.net.*;
public class mailerRemoteScoreBoard extends MovieClip {
public var resultsArray:Array;
public var internalRank:int;// = -1
public var connector:NetConnection;
var internalStart:int;// = 1
public var gatewayURL:String;// = "http://www.weebls-stuff.com/amfphp/gateway.php"
var internalFinish:int;// = 10
public var dataProvider:Array;
var ownerClip:MovieClip;
public function mailerRemoteScoreBoard(_arg1:MovieClip){
var _local2:int;
gatewayURL = "http://www.weebls-stuff.com/amfphp/gateway.php";
internalRank = -1;
internalStart = 1;
internalFinish = 10;
super();
_local2 = 0;
ownerClip = _arg1;
resultsArray = new Array();
_local2 = 0;
while (_local2 < 20) {
resultsArray[_local2] = "Contacting High Score Table...";
_local2++;
};
connector = new NetConnection();
connector.objectEncoding = ObjectEncoding.AMF0;
}
public function init(){
}
public function next10Down(){
internalStart = (internalStart + 10);
internalFinish = (internalFinish + 10);
if (internalStart <= 0){
internalStart = 1;
internalFinish = 10;
};
returnRange(internalStart, internalFinish);
}
public function mailScore(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:String, _arg7:String, _arg8:String){
var _local9:Responder;
var _local10:String;
connector.connect(gatewayURL);
_local9 = new Responder(onMailScoreResult, onMailScoreFault);
_local10 = ((((((((((((((_arg1 + ",") + _arg2) + ",") + _arg3) + ",") + _arg4) + ",") + _arg5) + ",") + _arg6) + ",") + _arg7) + ",") + _arg8);
connector.call("scoreBoard.mailOut", _local9, _local10);
}
public function endConnection(){
connector.close();
connector = null;
ownerClip = null;
}
public function top10(){
internalStart = 1;
internalFinish = 10;
returnRange(internalStart, internalFinish);
}
public function onReturnRangeFault(_arg1:String):void{
this.hsNameText0.text = "Sorry,";
this.hsNameText1.text = "connection";
this.hsNameText2.text = "error.";
connector.close();
}
public function onMailScoreResult(_arg1):void{
connector.close();
ownerClip.gotoAndPlay(2);
}
public function onReturnRangeResult(_arg1):void{
this.hsNameText0.text = _arg1[0];
this.hsNameText1.text = _arg1[1];
this.hsNameText2.text = _arg1[2];
this.hsNameText3.text = _arg1[3];
this.hsNameText4.text = _arg1[4];
this.hsNameText5.text = _arg1[5];
this.hsNameText6.text = _arg1[6];
this.hsNameText7.text = _arg1[7];
this.hsNameText8.text = _arg1[8];
this.hsNameText9.text = _arg1[9];
this.hsScoreText0.text = _arg1[10];
this.hsScoreText1.text = _arg1[11];
this.hsScoreText2.text = _arg1[12];
this.hsScoreText3.text = _arg1[13];
this.hsScoreText4.text = _arg1[14];
this.hsScoreText5.text = _arg1[15];
this.hsScoreText6.text = _arg1[16];
this.hsScoreText7.text = _arg1[17];
this.hsScoreText8.text = _arg1[18];
this.hsScoreText9.text = _arg1[19];
this.hsPosText0.text = (_arg1[21] + ".");
this.hsPosText1.text = (String((int(_arg1[21]) + 1)) + ".");
this.hsPosText2.text = (String((int(_arg1[21]) + 2)) + ".");
this.hsPosText3.text = (String((int(_arg1[21]) + 3)) + ".");
this.hsPosText4.text = (String((int(_arg1[21]) + 4)) + ".");
this.hsPosText5.text = (String((int(_arg1[21]) + 5)) + ".");
this.hsPosText6.text = (String((int(_arg1[21]) + 6)) + ".");
this.hsPosText7.text = (String((int(_arg1[21]) + 7)) + ".");
this.hsPosText8.text = (String((int(_arg1[21]) + 8)) + ".");
this.hsPosText9.text = (String((int(_arg1[21]) + 9)) + ".");
internalStart = int(_arg1[21]);
internalFinish = (int(_arg1[21]) + 9);
connector.close();
}
public function submitScore(_arg1:String, _arg2:String, _arg3:String){
var _local4:Responder;
var _local5:String;
connector.connect(gatewayURL);
_local4 = new Responder(onSubmitResult, onSubmitFault);
_local5 = ((((_arg1 + ",") + _arg2) + ",") + _arg3);
connector.call("scoreBoard.submit", _local4, _local5);
}
public function onMailScoreFault(_arg1:String):void{
connector.close();
ownerClip.gotoAndPlay(2);
}
public function next10Up(){
internalStart = (internalStart - 10);
internalFinish = (internalFinish - 10);
if (internalStart <= 0){
internalStart = 1;
internalFinish = 10;
};
returnRange(internalStart, internalFinish);
}
public function onSubmitFault(_arg1:String):void{
this.hsNameText0.text = "Sorry,";
this.hsNameText1.text = "connection";
this.hsNameText2.text = "error.";
connector.close();
}
public function onSubmitResult(_arg1):void{
var _local2:int;
_local2 = 0;
while (_local2 < 20) {
resultsArray[_local2] = _arg1[_local2];
_local2++;
};
this.hsNameText0.text = this.resultsArray[0];
this.hsNameText1.text = this.resultsArray[1];
this.hsNameText2.text = this.resultsArray[2];
this.hsNameText3.text = this.resultsArray[3];
this.hsNameText4.text = this.resultsArray[4];
this.hsNameText5.text = this.resultsArray[5];
this.hsNameText6.text = this.resultsArray[6];
this.hsNameText7.text = this.resultsArray[7];
this.hsNameText8.text = this.resultsArray[8];
this.hsNameText9.text = this.resultsArray[9];
this.hsScoreText0.text = this.resultsArray[10];
this.hsScoreText1.text = this.resultsArray[11];
this.hsScoreText2.text = this.resultsArray[12];
this.hsScoreText3.text = this.resultsArray[13];
this.hsScoreText4.text = this.resultsArray[14];
this.hsScoreText5.text = this.resultsArray[15];
this.hsScoreText6.text = this.resultsArray[16];
this.hsScoreText7.text = this.resultsArray[17];
this.hsScoreText8.text = this.resultsArray[18];
this.hsScoreText9.text = this.resultsArray[19];
if (_arg1[20] >= 0){
internalRank = _arg1[20];
internalStart = _arg1[21];
internalFinish = _arg1[22];
if (_arg1[20] == _arg1[21]){
this.hsPosText0.textColor = 0xFFFF00;
this.hsNameText0.textColor = 0xFFFF00;
this.hsScoreText0.textColor = 0xFFFF00;
} else {
if (_arg1[20] == String((int(_arg1[21]) + 1))){
this.hsPosText1.textColor = 0xFFFF00;
this.hsNameText1.textColor = 0xFFFF00;
this.hsScoreText1.textColor = 0xFFFF00;
} else {
if (_arg1[20] == String((int(_arg1[21]) + 2))){
this.hsPosText2.textColor = 0xFFFF00;
this.hsNameText2.textColor = 0xFFFF00;
this.hsScoreText2.textColor = 0xFFFF00;
} else {
if (_arg1[20] == String((int(_arg1[21]) + 3))){
this.hsPosText3.textColor = 0xFFFF00;
this.hsNameText3.textColor = 0xFFFF00;
this.hsScoreText3.textColor = 0xFFFF00;
} else {
if (_arg1[20] == String((int(_arg1[21]) + 4))){
this.hsPosText4.textColor = 0xFFFF00;
this.hsNameText4.textColor = 0xFFFF00;
this.hsScoreText4.textColor = 0xFFFF00;
} else {
if (_arg1[20] == String((int(_arg1[21]) + 5))){
this.hsPosText5.textColor = 0xFFFF00;
this.hsNameText5.textColor = 0xFFFF00;
this.hsScoreText5.textColor = 0xFFFF00;
} else {
if (_arg1[20] == String((int(_arg1[21]) + 6))){
this.hsPosText6.textColor = 0xFFFF00;
this.hsNameText6.textColor = 0xFFFF00;
this.hsScoreText6.textColor = 0xFFFF00;
} else {
if (_arg1[20] == String((int(_arg1[21]) + 7))){
this.hsPosText7.textColor = 0xFFFF00;
this.hsNameText7.textColor = 0xFFFF00;
this.hsScoreText7.textColor = 0xFFFF00;
} else {
if (_arg1[20] == String((int(_arg1[21]) + 8))){
this.hsPosText8.textColor = 0xFFFF00;
this.hsNameText8.textColor = 0xFFFF00;
this.hsScoreText8.textColor = 0xFFFF00;
} else {
if (_arg1[20] == String((int(_arg1[21]) + 9))){
this.hsPosText9.textColor = 0xFFFF00;
this.hsNameText9.textColor = 0xFFFF00;
this.hsScoreText9.textColor = 0xFFFF00;
};
};
};
};
};
};
};
};
};
};
};
this.hsPosText0.text = (_arg1[21] + ".");
this.hsPosText1.text = (String((int(_arg1[21]) + 1)) + ".");
this.hsPosText2.text = (String((int(_arg1[21]) + 2)) + ".");
this.hsPosText3.text = (String((int(_arg1[21]) + 3)) + ".");
this.hsPosText4.text = (String((int(_arg1[21]) + 4)) + ".");
this.hsPosText5.text = (String((int(_arg1[21]) + 5)) + ".");
this.hsPosText6.text = (String((int(_arg1[21]) + 6)) + ".");
this.hsPosText7.text = (String((int(_arg1[21]) + 7)) + ".");
this.hsPosText8.text = (String((int(_arg1[21]) + 8)) + ".");
this.hsPosText9.text = (String((int(_arg1[21]) + 9)) + ".");
connector.close();
}
public function returnRange(_arg1:int, _arg2:int){
var _local3:Responder;
var _local4:String;
connector.connect(gatewayURL);
this.hsPosText0.textColor = 0xFFFFFF;
this.hsNameText0.textColor = 0xFFFFFF;
this.hsScoreText0.textColor = 0xFFFFFF;
this.hsPosText1.textColor = 0xFFFFFF;
this.hsNameText1.textColor = 0xFFFFFF;
this.hsScoreText1.textColor = 0xFFFFFF;
this.hsPosText2.textColor = 0xFFFFFF;
this.hsNameText2.textColor = 0xFFFFFF;
this.hsScoreText2.textColor = 0xFFFFFF;
this.hsPosText3.textColor = 0xFFFFFF;
this.hsNameText3.textColor = 0xFFFFFF;
this.hsScoreText3.textColor = 0xFFFFFF;
this.hsPosText4.textColor = 0xFFFFFF;
this.hsNameText4.textColor = 0xFFFFFF;
this.hsScoreText4.textColor = 0xFFFFFF;
this.hsPosText5.textColor = 0xFFFFFF;
this.hsNameText5.textColor = 0xFFFFFF;
this.hsScoreText5.textColor = 0xFFFFFF;
this.hsPosText6.textColor = 0xFFFFFF;
this.hsNameText6.textColor = 0xFFFFFF;
this.hsScoreText6.textColor = 0xFFFFFF;
this.hsPosText7.textColor = 0xFFFFFF;
this.hsNameText7.textColor = 0xFFFFFF;
this.hsScoreText7.textColor = 0xFFFFFF;
this.hsPosText8.textColor = 0xFFFFFF;
this.hsNameText8.textColor = 0xFFFFFF;
this.hsScoreText8.textColor = 0xFFFFFF;
this.hsPosText9.textColor = 0xFFFFFF;
this.hsNameText9.textColor = 0xFFFFFF;
this.hsScoreText9.textColor = 0xFFFFFF;
this.hsNameText0.text = "Please Wait...";
this.hsNameText1.text = "";
this.hsNameText2.text = "";
this.hsNameText3.text = "";
this.hsNameText4.text = "";
this.hsNameText5.text = "";
this.hsNameText6.text = "";
this.hsNameText7.text = "";
this.hsNameText8.text = "";
this.hsNameText9.text = "";
this.hsScoreText0.text = "";
this.hsScoreText1.text = "";
this.hsScoreText2.text = "";
this.hsScoreText3.text = "";
this.hsScoreText4.text = "";
this.hsScoreText5.text = "";
this.hsScoreText6.text = "";
this.hsScoreText7.text = "";
this.hsScoreText8.text = "";
this.hsScoreText9.text = "";
this.hsPosText0.text = "";
this.hsPosText1.text = "";
this.hsPosText2.text = "";
this.hsPosText3.text = "";
this.hsPosText4.text = "";
this.hsPosText5.text = "";
this.hsPosText6.text = "";
this.hsPosText7.text = "";
this.hsPosText8.text = "";
this.hsPosText9.text = "";
_local3 = new Responder(onReturnRangeResult, onReturnRangeFault);
_local4 = (((_arg1 + ",") + _arg2) + ",");
connector.call("scoreBoard.returnRange", _local3, _local4);
}
}
}//package
Section 46
//mailerSubmitButton (mailerSubmitButton)
package {
import flash.display.*;
public dynamic class mailerSubmitButton extends SimpleButton {
}
}//package
Section 47
//mainChar (mainChar)
package {
import flash.events.*;
import flash.display.*;
public class mainChar extends MovieClip {
var relTopHitBoxTLX:Number;// = 10
var relTopHitBoxTLY:Number;// = 10
var relBottomHitBoxBRX:Number;// = 60
var relBottomHitBoxBRY:Number;// = 130
public var FLYING_RIGHT:int;// = 1
public var health:int;// = 5
public var absTopHitBoxTLX:Number;// = 10
public var absTopHitBoxTLY:Number;// = 10
var invincibleTimer:Number;// = 0
public var shadow1_1:trouserClip;
public var tShirt1:MovieClip;
public var tShirt2:MovieClip;
public var tShirt3:MovieClip;
public var tShirt6:MovieClip;
public var tShirt7:MovieClip;
public var tShirt8:MovieClip;
public var tShirt9:MovieClip;
public var tShirt4:MovieClip;
public var tShirt5:MovieClip;
var relBottomHitBoxTLX:Number;// = 10
var relBottomHitBoxTLY:Number;// = 80
public var FALLING_INTO_MANHOLE:int;// = 3
public var absBottomHitBoxBRX:Number;// = 50
public var absBottomHitBoxBRY:Number;// = 130
var relTopHitBoxBRY:Number;// = 50
var relTopHitBoxBRX:Number;// = 50
public var FALLING_INTO_HOLE:int;// = 2
public var tShirt10:MovieClip;
public var tShirt11:MovieClip;
public var tShirt12:MovieClip;
public var tShirt13:MovieClip;
public var absTopHitBoxBRY:Number;// = 50
var invincibleTimeLimit:int;// = 30
public var absTopHitBoxBRX:Number;// = 50
public var COLLAPSE:int;// = 4
public var FLYING_LEFT:int;// = 0
public var head1_1:head1;
public var absBottomHitBoxTLX:Number;// = 10
public var absBottomHitBoxTLY:Number;// = 100
public function mainChar(){
FLYING_LEFT = 0;
FLYING_RIGHT = 1;
FALLING_INTO_HOLE = 2;
FALLING_INTO_MANHOLE = 3;
COLLAPSE = 4;
relTopHitBoxTLX = 10;
relTopHitBoxTLY = 10;
relTopHitBoxBRX = 50;
relTopHitBoxBRY = 50;
relBottomHitBoxTLX = 10;
relBottomHitBoxTLY = 80;
relBottomHitBoxBRX = 60;
relBottomHitBoxBRY = 130;
absTopHitBoxTLX = 10;
absTopHitBoxTLY = 10;
absTopHitBoxBRX = 50;
absTopHitBoxBRY = 50;
absBottomHitBoxTLX = 10;
absBottomHitBoxTLY = 100;
absBottomHitBoxBRX = 50;
absBottomHitBoxBRY = 130;
invincibleTimer = 0;
invincibleTimeLimit = 30;
health = 5;
super();
addFrameScript(7, frame8, 16, frame17, 28, frame29, 40, frame41, 52, frame53, 63, frame64, 91, frame92, 119, frame120);
addEventListener(Event.ENTER_FRAME, update);
}
public function getInvincibleTimer():Number{
return (invincibleTimer);
}
function frame17(){
if (this.getInvincibleTimer() > 0){
gotoAndPlay("invincible");
} else {
gotoAndPlay("jog");
};
}
function frame8(){
gotoAndPlay("jog");
}
function frame29(){
stop();
}
public function die(_arg1:int){
if (this.parent.gameOver == false){
this.parent.background1_1.stopMoving();
this.parent.gameOver = true;
switch (_arg1){
case FLYING_LEFT:
this.gotoAndPlay("flyingLeft");
break;
case FLYING_RIGHT:
this.gotoAndPlay("flyingRight");
break;
case FALLING_INTO_HOLE:
this.gotoAndPlay("fallingIntoHole");
break;
case FALLING_INTO_MANHOLE:
this.gotoAndPlay("fallingIntoManHole");
break;
case COLLAPSE:
this.gotoAndPlay("collapse");
break;
default:
break;
};
};
}
function frame41(){
stop();
}
public function update(_arg1:Event){
absTopHitBoxTLX = (x + relTopHitBoxTLX);
absTopHitBoxTLY = (y + relTopHitBoxTLY);
absTopHitBoxBRX = (x + relTopHitBoxBRX);
absTopHitBoxBRY = (y + relTopHitBoxBRY);
if (invincibleTimer > 0){
invincibleTimer = (invincibleTimer - 1);
if (invincibleTimer <= 0){
invincibleTimer = 0;
if (this.parent.gameOver == false){
this.gotoAndPlay("jog");
};
};
};
}
function frame53(){
stop();
}
function frame64(){
stop();
}
function frame92(){
stop();
}
public function takeHit(){
var _local1:hitStars;
if (this.parent.gameOver == false){
if (invincibleTimer <= 0){
health--;
if (health <= 0){
if (this.parent.gameOver == false){
this.parent.hud1.motText.text = 0;
this.die(COLLAPSE);
};
} else {
this.parent.slapSound.play();
this.parent.hud1.motText.text = (this.health * 20);
_local1 = new hitStars();
_local1.x = 30;
_local1.y = 30;
this.addChild(_local1);
invincibleTimer = invincibleTimeLimit;
this.gotoAndPlay("invincible");
};
};
};
}
function frame120(){
stop();
}
}
}//package
Section 48
//mainCharcopy (mainCharcopy)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class mainCharcopy extends MovieClip {
public function mainCharcopy(){
addFrameScript(0, frame1, 18, frame19, 19, frame20, 39, frame40, 59, frame60);
}
function frame1(){
gotoAndPlay(1);
}
function frame19(){
gotoAndPlay("normal");
}
function frame20(){
this.addProjectile();
gotoAndPlay(1);
}
function frame40(){
this.addProjectile();
}
function frame60(){
gotoAndPlay("normal");
}
}
}//package
Section 49
//manHole (manHole)
package {
import flash.events.*;
import flash.display.*;
public class manHole extends MovieClip {
var finished:Boolean;// = false
public function manHole(){
finished = false;
super();
addFrameScript(0, frame1);
addEventListener(Event.ENTER_FRAME, update);
this.addEventListener(Event.REMOVED, exterminate);
}
function exterminate(_arg1:Event){
this.removeEventListener(Event.ENTER_FRAME, update);
}
function frame1(){
this.setRelatives();
stop();
}
public function manualExterminate(){
this.removeEventListener(Event.ENTER_FRAME, update);
}
public function update(_arg1:Event){
var redundantEvent = _arg1;
try {
if ((((y > (0 - height))) && ((y < 600)))){
if (!finished){
if (this.parent.parent.parent.parent.getChildByName("mainChar1").getChildByName("shadow1_1") != null){
if (this.hitTestObject(this.parent.parent.parent.parent.getChildByName("mainChar1").getChildByName("shadow1_1"))){
this.parent.parent.parent.parent.getChildByName("mainChar1").getChildByName("shadow1_1").parent.x = (((this.x + this.parent.x) + this.parent.parent.x) + 20);
this.parent.parent.parent.parent.getChildByName("mainChar1").getChildByName("shadow1_1").parent.y = (((this.y + this.parent.y) + this.parent.parent.y) - 100);
this.parent.parent.parent.parent.getChildByName("mainChar1").getChildByName("shadow1_1").parent.die(this.parent.parent.parent.parent.getChildByName("mainChar1").getChildByName("shadow1_1").parent.FALLING_INTO_MANHOLE);
finished = true;
};
};
};
};
} catch(error:Error) {
this.removeEventListener(Event.ENTER_FRAME, update);
};
}
public function setRelatives(){
}
}
}//package
Section 50
//mathExt (mathExt)
package {
public class mathExt {
public function line2DIntersectY(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number){
var _local9:Number;
_local9 = (determinant2X2(determinant2X2(_arg1, _arg2, _arg3, _arg4), (_arg2 - _arg4), determinant2X2(_arg5, _arg6, _arg7, _arg8), (_arg6 - _arg8)) / determinant2X2((_arg1 - _arg3), (_arg2 - _arg4), (_arg5 - _arg7), (_arg6 - _arg8)));
return (_local9);
}
public function degreesToRadians(_arg1:Number):Number{
var _local2:Number;
_local2 = 0;
_local2 = (_arg1 * (Math.PI / 180));
return (_local2);
}
public function doubleRandRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.round((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function hitBoxTest(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number):Boolean{
if ((((((((_arg1 >= _arg5)) && ((_arg1 <= _arg7)))) && ((_arg2 >= _arg6)))) && ((_arg2 <= _arg8)))){
return (true);
};
if ((((((((_arg3 >= _arg5)) && ((_arg3 <= _arg7)))) && ((_arg2 >= _arg6)))) && ((_arg2 <= _arg8)))){
return (true);
};
if ((((((((_arg1 >= _arg5)) && ((_arg1 <= _arg7)))) && ((_arg4 >= _arg6)))) && ((_arg4 <= _arg8)))){
return (true);
};
if ((((((((_arg3 >= _arg5)) && ((_arg3 <= _arg7)))) && ((_arg4 >= _arg6)))) && ((_arg4 <= _arg8)))){
return (true);
};
return (false);
}
public function line2DIntersectX(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number){
var _local9:Number;
_local9 = (determinant2X2(determinant2X2(_arg1, _arg2, _arg3, _arg4), (_arg1 - _arg3), determinant2X2(_arg5, _arg6, _arg7, _arg8), (_arg5 - _arg7)) / determinant2X2((_arg1 - _arg3), (_arg2 - _arg4), (_arg5 - _arg7), (_arg6 - _arg8)));
return (_local9);
}
public function determinant2X2(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
var _local5:Number;
_local5 = ((_arg1 * _arg4) - (_arg2 * _arg3));
return (_local5);
}
}
}//package
Section 51
//menuMusic (menuMusic)
package {
import flash.media.*;
public dynamic class menuMusic extends Sound {
}
}//package
Section 52
//motivBar1 (motivBar1)
package {
import flash.display.*;
public dynamic class motivBar1 extends MovieClip {
}
}//package
Section 53
//next10DownButton (next10DownButton)
package {
import flash.display.*;
public dynamic class next10DownButton extends SimpleButton {
}
}//package
Section 54
//next10UpButton (next10UpButton)
package {
import flash.display.*;
public dynamic class next10UpButton extends SimpleButton {
}
}//package
Section 55
//obstacleContainer (obstacleContainer)
package {
import flash.events.*;
import flash.display.*;
public class obstacleContainer extends MovieClip {
public function obstacleContainer(){
this.addEventListener(Event.ENTER_FRAME, update);
}
public function exterminate(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:*;
this.removeEventListener(Event.ENTER_FRAME, update);
_local2 = this.numChildren;
_local3 = 0;
_local3 = 0;
while (_local3 < _local2) {
_local4 = this.getChildAt(_local3);
this.removeChild(_local4);
_local4 = null;
_local3++;
};
delete ??getglobalscope
[this];
}
public function update(_arg1:Event){
var redundantEvent = _arg1;
try {
if ((((y > (0 - height))) && ((y < 700)))){
if (this.parent != null){
if (this.parent.getChildIndex(this) > this.parent.getChildIndex(this.parent.getChildByName("hud1"))){
this.parent.swapChildren(this, this.parent.getChildByName("hud1"));
};
if ((((this.parent.getChildIndex(this) > this.parent.getChildIndex(this.parent.getChildByName("mainChar1")))) && ((this.y < this.parent.getChildByName("mainChar1").y)))){
this.parent.swapChildren(this, this.parent.getChildByName("mainChar1"));
};
};
};
} catch(error:Error) {
this.removeEventListener(Event.ENTER_FRAME, update);
};
}
}
}//package
Section 56
//pie (pie)
package {
import flash.events.*;
import flash.display.*;
public class pie extends MovieClip {
var relHitBoxTLY:Number;// = 10
var relHitBoxTLX:Number;// = 10
var leftXLimit:Number;// = -450
var xLimit:Number;
var absX:Number;
var absY:Number;
var goingLeft:Boolean;// = true
var relHitBoxBRX:Number;// = 60
var relHitBoxBRY:Number;// = 30
var absHitBoxTLY:Number;// = 10
var speed:Number;// = 8
var rightXLimit:Number;// = 600
var absHitBoxTLX:Number;// = 10
var absHitBoxBRY:Number;// = 50
var absHitBoxBRX:Number;// = 50
var pieMathExt:mathExt;
public function pie(){
goingLeft = true;
speed = 8;
leftXLimit = -450;
rightXLimit = 600;
relHitBoxTLX = 10;
relHitBoxTLY = 10;
relHitBoxBRX = 60;
relHitBoxBRY = 30;
absHitBoxTLX = 10;
absHitBoxTLY = 10;
absHitBoxBRX = 50;
absHitBoxBRY = 50;
super();
addFrameScript(0, frame1, 1, frame2);
this.addEventListener(Event.ENTER_FRAME, update);
this.addEventListener(Event.REMOVED, exterminate);
pieMathExt = new mathExt();
}
public function exterminate(_arg1:Event){
die();
}
function frame1(){
this.setRelatives();
stop();
}
public function die(){
this.gotoAndPlay("blank");
this.removeEventListener(Event.ENTER_FRAME, update);
}
function frame2(){
stop();
try {
if (this.parent != null){
this.parent.removeChild(this);
};
} catch(error:Error) {
};
}
public function update(_arg1:Event){
var redundantEvent = _arg1;
try {
if (this.parent.parent.getChildByName("mainChar1") == null){
die();
} else {
if (((((y + parent.y) > (0 - height))) && (((y + parent.y) < 700)))){
absHitBoxTLX = (((x + relHitBoxTLX) + parent.x) + parent.parent.x);
absHitBoxTLY = (((y + relHitBoxTLY) + parent.y) + parent.parent.y);
absHitBoxBRX = (((x + relHitBoxBRX) + parent.x) + parent.parent.x);
absHitBoxBRY = (((y + relHitBoxBRY) + parent.y) + parent.parent.y);
if (goingLeft){
x = (x - speed);
} else {
x = (x + speed);
};
if (pieMathExt.hitBoxTest(absHitBoxTLX, absHitBoxTLY, absHitBoxBRX, absHitBoxBRY, this.parent.parent.getChildByName("mainChar1").absTopHitBoxTLX, this.parent.parent.getChildByName("mainChar1").absTopHitBoxTLY, this.parent.parent.getChildByName("mainChar1").absTopHitBoxBRX, this.parent.parent.getChildByName("mainChar1").absTopHitBoxBRY)){
this.parent.parent.getChildByName("mainChar1").takeHit();
this.parent.gotoAndPlay("blank");
explodeHit();
die();
} else {
if (goingLeft){
if (x <= leftXLimit){
explode();
die();
};
} else {
if (x >= rightXLimit){
die();
};
};
};
} else {
die();
};
};
} catch(error:Error) {
die();
};
}
public function explode(){
var _local1:*;
_local1 = new pieExplode();
_local1.x = this.x;
_local1.y = this.y;
this.parent.addChild(_local1);
}
public function setRelatives(){
try {
} catch(error:Error) {
delete ??getglobalscope
[this];
};
}
public function setGoingLeft(_arg1:Boolean){
goingLeft = _arg1;
}
public function explodeHit(){
var _local1:*;
_local1 = new pieExplodeHit();
_local1.x = this.x;
_local1.y = this.y;
this.parent.addChild(_local1);
}
}
}//package
Section 57
//pieExplode (pieExplode)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class pieExplode extends MovieClip {
public function pieExplode(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
try {
if (this.parent != null){
this.parent.removeChild(this);
};
} catch(error:Error) {
};
}
}
}//package
Section 58
//pieExplodeHit (pieExplodeHit)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class pieExplodeHit extends MovieClip {
public function pieExplodeHit(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
try {
if (this.parent != null){
this.parent.removeChild(this);
};
} catch(error:Error) {
};
}
}
}//package
Section 59
//remoteScoreBoard (remoteScoreBoard)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public class remoteScoreBoard extends MovieClip {
public var resultsArray:Array;
public var submitButton1:submitButton;
public var hsNameText0:TextField;
public var hsNameText1:TextField;
public var hsNameText2:TextField;
public var hsNameText3:TextField;
public var hsNameText5:TextField;
public var hsNameText6:TextField;
public var hsNameText9:TextField;
public var hsNameText4:TextField;
public var hsNameText7:TextField;
public var hsNameText8:TextField;
public var connector:NetConnection;
public var statusAnnText:TextField;
public var internalRank:int;// = -1
public var next10DownButton1:next10DownButton;
public var hsScoreText1:TextField;
public var hsScoreText3:TextField;
public var hsScoreText5:TextField;
public var hsScoreText0:TextField;
public var hsScoreText8:TextField;
public var hsScoreText9:TextField;
public var hsScoreText4:TextField;
public var hsScoreText6:TextField;
public var hsScoreText2:TextField;
public var hsScoreText7:TextField;
public var localSubScore:String;
public var gatewayURL:String;// = "http://www.weebls-stuff.com/amfphp/gateway.php"
public var hsPosText0:TextField;
public var hsPosText1:TextField;
public var hsPosText2:TextField;
public var hsPosText3:TextField;
public var hsPosText4:TextField;
public var hsPosText5:TextField;
public var hsPosText6:TextField;
public var hsPosText7:TextField;
public var hsPosText8:TextField;
public var hsPosText9:TextField;
public var localSubName:String;
public var sbBackToTitle1:hsBackToTitle;
public var awardText:TextField;
public var sorryText:TextField;
public var hsFilmSiteButton1:Symbol9;
public var sBAward:String;
public var emailAnnText:TextField;
public var submitBackToTitle1:submitBackToTitle;
public var topTenButton1:topTenButton;
var internalStart:int;// = 1
var internalFinish:int;// = 10
public var submitErrorText1:TextField;
public var mailer12:mailer2;
public var dataProvider:Array;
public var nameInputText:TextField;
public var localSubEmail:String;
public var next10UpButton1:next10UpButton;
public function remoteScoreBoard(){
var _local1:int;
gatewayURL = "http://www.weebls-stuff.com/amfphp/gateway.php";
internalRank = -1;
internalStart = 1;
internalFinish = 10;
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
_local1 = 0;
resultsArray = new Array();
_local1 = 0;
while (_local1 < 20) {
resultsArray[_local1] = "Contacting High Score Table...";
_local1++;
};
connector = new NetConnection();
connector.objectEncoding = ObjectEncoding.AMF0;
}
public function beginSubmit(_arg1:MouseEvent):void{
localSubEmail = "";
localSubName = nameInputText.text;
if (localSubName.length <= 0){
submitErrorText1.text = "Please enter a name with at least 1 letter.";
} else {
this.gotoAndPlay(2);
};
}
public function request10Up(_arg1:MouseEvent):void{
this.next10Up();
}
public function top10(){
internalStart = 1;
internalFinish = 10;
returnRange(internalStart, internalFinish);
}
public function next10Down(){
internalStart = (internalStart + 10);
internalFinish = (internalFinish + 10);
if (internalStart <= 0){
internalStart = 1;
internalFinish = 10;
};
returnRange(internalStart, internalFinish);
}
public function onReturnRangeFault(_arg1:String):void{
this.hsNameText0.text = "Sorry,";
this.hsNameText1.text = "connection";
this.hsNameText2.text = "error.";
connector.close();
}
public function endConnection(){
connector.close();
connector = null;
}
public function hsGoToFilmSite(_arg1:MouseEvent):void{
SoundMixer.stopAll();
navigateToURL(new URLRequest("http://www.runfatboyrunmovie.co.uk/"));
}
public function onReturnRangeResult(_arg1):void{
this.hsNameText0.text = _arg1[0];
this.hsNameText1.text = _arg1[1];
this.hsNameText2.text = _arg1[2];
this.hsNameText3.text = _arg1[3];
this.hsNameText4.text = _arg1[4];
this.hsNameText5.text = _arg1[5];
this.hsNameText6.text = _arg1[6];
this.hsNameText7.text = _arg1[7];
this.hsNameText8.text = _arg1[8];
this.hsNameText9.text = _arg1[9];
this.hsScoreText0.text = _arg1[10];
this.hsScoreText1.text = _arg1[11];
this.hsScoreText2.text = _arg1[12];
this.hsScoreText3.text = _arg1[13];
this.hsScoreText4.text = _arg1[14];
this.hsScoreText5.text = _arg1[15];
this.hsScoreText6.text = _arg1[16];
this.hsScoreText7.text = _arg1[17];
this.hsScoreText8.text = _arg1[18];
this.hsScoreText9.text = _arg1[19];
this.hsPosText0.text = (_arg1[21] + ".");
this.hsPosText1.text = (String((int(_arg1[21]) + 1)) + ".");
this.hsPosText2.text = (String((int(_arg1[21]) + 2)) + ".");
this.hsPosText3.text = (String((int(_arg1[21]) + 3)) + ".");
this.hsPosText4.text = (String((int(_arg1[21]) + 4)) + ".");
this.hsPosText5.text = (String((int(_arg1[21]) + 5)) + ".");
this.hsPosText6.text = (String((int(_arg1[21]) + 6)) + ".");
this.hsPosText7.text = (String((int(_arg1[21]) + 7)) + ".");
this.hsPosText8.text = (String((int(_arg1[21]) + 8)) + ".");
this.hsPosText9.text = (String((int(_arg1[21]) + 9)) + ".");
internalStart = int(_arg1[21]);
internalFinish = (int(_arg1[21]) + 9);
connector.close();
}
function frame3(){
sBAward = "Fatboy";
if (this.parent.highScore >= 10000){
sBAward = "Gold Medal";
} else {
if (this.parent.highScore >= 9000){
sBAward = "Silver Medal";
} else {
if (this.parent.highScore >= 8000){
sBAward = "Bronze Medal";
} else {
if (this.parent.highScore >= 7000){
sBAward = "Runner Up";
} else {
if (this.parent.highScore >= 6000){
sBAward = "Bubbling Under";
} else {
if (this.parent.highScore >= 5000){
sBAward = "A Bit Slobby";
} else {
if (this.parent.highScore >= 4000){
sBAward = "Pie Eater";
} else {
if (this.parent.highScore >= 3000){
sBAward = "Fry-Up Fanatic";
} else {
if (this.parent.highScore >= 2000){
sBAward = "Face Stuffer";
} else {
if (this.parent.highScore >= 1000){
sBAward = "Greasy Spoon";
} else {
sBAward = "Fatboy";
};
};
};
};
};
};
};
};
};
};
next10UpButton1.useHandCursor = false;
next10UpButton1.addEventListener(MouseEvent.CLICK, request10Up);
next10DownButton1.useHandCursor = false;
next10DownButton1.addEventListener(MouseEvent.CLICK, request10Down);
topTenButton1.useHandCursor = false;
topTenButton1.addEventListener(MouseEvent.CLICK, requestTop10);
sbBackToTitle1.useHandCursor = false;
sbBackToTitle1.addEventListener(MouseEvent.CLICK, sbBackToTitle);
awardText.text = sBAward;
if (this.parent.submittingScore == false){
statusAnnText.x = 601;
statusAnnText.y = 601;
awardText.x = 601;
awardText.y = 601;
emailAnnText.x = 601;
emailAnnText.y = 601;
mailer12.x = 601;
mailer12.y = 601;
this.parent.submittingScore = true;
this.returnRange(1, 10);
} else {
statusAnnText.x = 400;
statusAnnText.y = 200;
awardText.x = 400;
awardText.y = 300;
emailAnnText.x = 142;
emailAnnText.y = 403;
mailer12.x = 200;
mailer12.y = 422;
this.submitScore(localSubName, localSubEmail, this.parent.highScore);
};
stop();
}
function frame1(){
}
function frame2(){
submitErrorText1.text = "";
submitButton1.useHandCursor = false;
submitButton1.addEventListener(MouseEvent.CLICK, beginSubmit);
submitBackToTitle1.useHandCursor = false;
submitBackToTitle1.addEventListener(MouseEvent.CLICK, backToTitle);
hsFilmSiteButton1.addEventListener(MouseEvent.CLICK, hsGoToFilmSite);
if (this.parent.submittingScore == false){
gotoAndPlay(3);
};
stop();
}
public function next10Up(){
internalStart = (internalStart - 10);
internalFinish = (internalFinish - 10);
if (internalStart <= 0){
internalStart = 1;
internalFinish = 10;
};
returnRange(internalStart, internalFinish);
}
public function request10Down(_arg1:MouseEvent):void{
this.next10Down();
}
public function requestTop10(_arg1:MouseEvent):void{
this.top10();
}
public function init(){
}
public function mailScore(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:String, _arg7:String, _arg8:String){
var _local9:Responder;
var _local10:String;
connector.connect(gatewayURL);
_local9 = new Responder(onMailScoreResult, onMailScoreFault);
_local10 = ((((((((((((((_arg1 + ",") + _arg2) + ",") + _arg3) + ",") + _arg4) + ",") + _arg5) + ",") + _arg6) + ",") + _arg7) + ",") + _arg8);
connector.call("scoreBoard.mailOut", _local9, _local10);
}
public function submitScore(_arg1:String, _arg2:String, _arg3:String){
var _local4:Responder;
var _local5:String;
connector.connect(gatewayURL);
_local4 = new Responder(onSubmitResult, onSubmitFault);
_local5 = ((((_arg1 + ",") + _arg2) + ",") + _arg3);
connector.call("scoreBoard.submit", _local4, _local5);
}
public function onMailScoreResult(_arg1):void{
this.mailer12.gotoAndPlay(1);
connector.close();
}
public function onSubmitFault(_arg1:String):void{
this.hsNameText0.text = "Sorry,";
this.hsNameText1.text = "connection";
this.hsNameText2.text = "error.";
connector.close();
}
public function onMailScoreFault(_arg1:String):void{
this.mailer12.gotoAndPlay(1);
connector.close();
}
public function backToTitle(_arg1:MouseEvent):void{
this.parent.gotoAndPlay(2);
}
public function onSubmitResult(_arg1):void{
var tempCounter:int;
var result = _arg1;
tempCounter = 0;
while (tempCounter < 20) {
resultsArray[tempCounter] = result[tempCounter];
tempCounter = (tempCounter + 1);
};
this.hsNameText0.text = this.resultsArray[0];
this.hsNameText1.text = this.resultsArray[1];
this.hsNameText2.text = this.resultsArray[2];
this.hsNameText3.text = this.resultsArray[3];
this.hsNameText4.text = this.resultsArray[4];
this.hsNameText5.text = this.resultsArray[5];
this.hsNameText6.text = this.resultsArray[6];
this.hsNameText7.text = this.resultsArray[7];
this.hsNameText8.text = this.resultsArray[8];
this.hsNameText9.text = this.resultsArray[9];
this.hsScoreText0.text = this.resultsArray[10];
this.hsScoreText1.text = this.resultsArray[11];
this.hsScoreText2.text = this.resultsArray[12];
this.hsScoreText3.text = this.resultsArray[13];
this.hsScoreText4.text = this.resultsArray[14];
this.hsScoreText5.text = this.resultsArray[15];
this.hsScoreText6.text = this.resultsArray[16];
this.hsScoreText7.text = this.resultsArray[17];
this.hsScoreText8.text = this.resultsArray[18];
this.hsScoreText9.text = this.resultsArray[19];
if (result[20] >= 0){
internalRank = result[20];
internalStart = result[21];
internalFinish = result[22];
if (result[20] == result[21]){
this.hsPosText0.textColor = 0xFFFF00;
this.hsNameText0.textColor = 0xFFFF00;
this.hsScoreText0.textColor = 0xFFFF00;
} else {
if (result[20] == String((int(result[21]) + 1))){
this.hsPosText1.textColor = 0xFFFF00;
this.hsNameText1.textColor = 0xFFFF00;
this.hsScoreText1.textColor = 0xFFFF00;
} else {
if (result[20] == String((int(result[21]) + 2))){
this.hsPosText2.textColor = 0xFFFF00;
this.hsNameText2.textColor = 0xFFFF00;
this.hsScoreText2.textColor = 0xFFFF00;
} else {
if (result[20] == String((int(result[21]) + 3))){
this.hsPosText3.textColor = 0xFFFF00;
this.hsNameText3.textColor = 0xFFFF00;
this.hsScoreText3.textColor = 0xFFFF00;
} else {
if (result[20] == String((int(result[21]) + 4))){
this.hsPosText4.textColor = 0xFFFF00;
this.hsNameText4.textColor = 0xFFFF00;
this.hsScoreText4.textColor = 0xFFFF00;
} else {
if (result[20] == String((int(result[21]) + 5))){
this.hsPosText5.textColor = 0xFFFF00;
this.hsNameText5.textColor = 0xFFFF00;
this.hsScoreText5.textColor = 0xFFFF00;
} else {
if (result[20] == String((int(result[21]) + 6))){
this.hsPosText6.textColor = 0xFFFF00;
this.hsNameText6.textColor = 0xFFFF00;
this.hsScoreText6.textColor = 0xFFFF00;
} else {
if (result[20] == String((int(result[21]) + 7))){
this.hsPosText7.textColor = 0xFFFF00;
this.hsNameText7.textColor = 0xFFFF00;
this.hsScoreText7.textColor = 0xFFFF00;
} else {
if (result[20] == String((int(result[21]) + 8))){
this.hsPosText8.textColor = 0xFFFF00;
this.hsNameText8.textColor = 0xFFFF00;
this.hsScoreText8.textColor = 0xFFFF00;
} else {
if (result[20] == String((int(result[21]) + 9))){
this.hsPosText9.textColor = 0xFFFF00;
this.hsNameText9.textColor = 0xFFFF00;
this.hsScoreText9.textColor = 0xFFFF00;
};
};
};
};
};
};
};
};
};
};
} else {
try {
this.sorryText.text = ("Sorry, you didn't make the leaderboard! Your score was: " + this.parent.highScore);
} catch(error:Error) {
};
};
this.hsPosText0.text = (result[21] + ".");
this.hsPosText1.text = (String((int(result[21]) + 1)) + ".");
this.hsPosText2.text = (String((int(result[21]) + 2)) + ".");
this.hsPosText3.text = (String((int(result[21]) + 3)) + ".");
this.hsPosText4.text = (String((int(result[21]) + 4)) + ".");
this.hsPosText5.text = (String((int(result[21]) + 5)) + ".");
this.hsPosText6.text = (String((int(result[21]) + 6)) + ".");
this.hsPosText7.text = (String((int(result[21]) + 7)) + ".");
this.hsPosText8.text = (String((int(result[21]) + 8)) + ".");
this.hsPosText9.text = (String((int(result[21]) + 9)) + ".");
connector.close();
}
public function sbBackToTitle(_arg1:MouseEvent):void{
this.endConnection();
this.parent.channel3.stop();
this.parent.gotoAndPlay(2);
}
public function returnRange(_arg1:int, _arg2:int){
var _local3:Responder;
var _local4:String;
connector.connect(gatewayURL);
this.hsPosText0.textColor = 0xFFFFFF;
this.hsNameText0.textColor = 0xFFFFFF;
this.hsScoreText0.textColor = 0xFFFFFF;
this.hsPosText1.textColor = 0xFFFFFF;
this.hsNameText1.textColor = 0xFFFFFF;
this.hsScoreText1.textColor = 0xFFFFFF;
this.hsPosText2.textColor = 0xFFFFFF;
this.hsNameText2.textColor = 0xFFFFFF;
this.hsScoreText2.textColor = 0xFFFFFF;
this.hsPosText3.textColor = 0xFFFFFF;
this.hsNameText3.textColor = 0xFFFFFF;
this.hsScoreText3.textColor = 0xFFFFFF;
this.hsPosText4.textColor = 0xFFFFFF;
this.hsNameText4.textColor = 0xFFFFFF;
this.hsScoreText4.textColor = 0xFFFFFF;
this.hsPosText5.textColor = 0xFFFFFF;
this.hsNameText5.textColor = 0xFFFFFF;
this.hsScoreText5.textColor = 0xFFFFFF;
this.hsPosText6.textColor = 0xFFFFFF;
this.hsNameText6.textColor = 0xFFFFFF;
this.hsScoreText6.textColor = 0xFFFFFF;
this.hsPosText7.textColor = 0xFFFFFF;
this.hsNameText7.textColor = 0xFFFFFF;
this.hsScoreText7.textColor = 0xFFFFFF;
this.hsPosText8.textColor = 0xFFFFFF;
this.hsNameText8.textColor = 0xFFFFFF;
this.hsScoreText8.textColor = 0xFFFFFF;
this.hsPosText9.textColor = 0xFFFFFF;
this.hsNameText9.textColor = 0xFFFFFF;
this.hsScoreText9.textColor = 0xFFFFFF;
this.hsNameText0.text = "Please Wait...";
this.hsNameText1.text = "";
this.hsNameText2.text = "";
this.hsNameText3.text = "";
this.hsNameText4.text = "";
this.hsNameText5.text = "";
this.hsNameText6.text = "";
this.hsNameText7.text = "";
this.hsNameText8.text = "";
this.hsNameText9.text = "";
this.hsScoreText0.text = "";
this.hsScoreText1.text = "";
this.hsScoreText2.text = "";
this.hsScoreText3.text = "";
this.hsScoreText4.text = "";
this.hsScoreText5.text = "";
this.hsScoreText6.text = "";
this.hsScoreText7.text = "";
this.hsScoreText8.text = "";
this.hsScoreText9.text = "";
this.hsPosText0.text = "";
this.hsPosText1.text = "";
this.hsPosText2.text = "";
this.hsPosText3.text = "";
this.hsPosText4.text = "";
this.hsPosText5.text = "";
this.hsPosText6.text = "";
this.hsPosText7.text = "";
this.hsPosText8.text = "";
this.hsPosText9.text = "";
_local3 = new Responder(onReturnRangeResult, onReturnRangeFault);
_local4 = (((_arg1 + ",") + _arg2) + ",");
connector.call("scoreBoard.returnRange", _local3, _local4);
}
}
}//package
Section 60
//rightCar (rightCar)
package {
import flash.events.*;
public class rightCar extends obstacleContainer {
var goingLeft:Boolean;// = false
var speed:Number;// = 16
var finished:Boolean;// = false
public var carHitBox1:carHitBox;
var soundPlayed:Boolean;// = false
public function rightCar(){
finished = false;
speed = 16;
goingLeft = false;
soundPlayed = false;
super();
addFrameScript(0, frame1, 24, frame25);
this.addEventListener(Event.ENTER_FRAME, genericUpdate);
}
function frame1(){
this.setRelatives();
}
function frame25(){
stop();
}
public function genericUpdate(_arg1:Event){
var redundantEvent = _arg1;
try {
if ((((y > (0 - height))) && ((y < 700)))){
if (!finished){
if (goingLeft){
x = (x - speed);
if (x < -700){
x = 700;
};
} else {
x = (x + speed);
if (x > 700){
soundPlayed = false;
x = -700;
};
};
if ((((x > -600)) && (!(soundPlayed)))){
soundPlayed = true;
this.parent.carR2LSound.play();
};
if (this.carHitBox1.hitTestObject(this.parent.getChildByName("mainChar1"))){
this.parent.getChildByName("mainChar1").die(this.parent.getChildByName("mainChar1").FLYING_RIGHT);
finished = true;
};
};
} else {
if (y < (0 - height)){
dMExterminate();
};
};
} catch(error:Error) {
dMExterminate();
};
}
public function setRelatives(){
try {
this.parent.carArray.push(this);
} catch(error:Error) {
};
}
public function dMExterminate(){
this.removeEventListener(Event.ENTER_FRAME, genericUpdate);
}
}
}//package
Section 61
//rightDrinkThrower (rightDrinkThrower)
package {
import flash.display.*;
public class rightDrinkThrower extends thrower {
public function rightDrinkThrower(){
addFrameScript(54, frame55, 69, frame70, 74, frame75);
goingLeft = false;
}
override public function createProjectile():MovieClip{
var _local1:*;
_local1 = new drink();
_local1.setGoingLeft(false);
return (_local1);
}
function frame70(){
this.addProjectile();
}
function frame75(){
gotoAndPlay("normal");
}
function frame55(){
}
}
}//package
Section 62
//rightPieThrower (rightPieThrower)
package {
import flash.display.*;
public class rightPieThrower extends thrower {
public function rightPieThrower(){
addFrameScript(54, frame55, 69, frame70, 74, frame75);
goingLeft = false;
}
override public function createProjectile():MovieClip{
var _local1:int;
var _local2:*;
_local1 = throwerMathExt.randRange(1, 2);
if (_local1 == 1){
_local2 = new pie();
} else {
_local2 = new beer();
};
_local2.setGoingLeft(false);
return (_local2);
}
function frame70(){
this.addProjectile();
}
function frame75(){
gotoAndPlay("normal");
}
function frame55(){
}
}
}//package
Section 63
//rightSpeechBubble (rightSpeechBubble)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class rightSpeechBubble extends MovieClip {
public var speechBubbleText2:TextField;
public function rightSpeechBubble(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 64
//road10 (road10)
package {
public class road10 extends genericRoad {
public function setObstacles(){
var _local1:leftDrinkThrower;
var _local2:leftPieThrower;
var _local3:rightDrinkThrower;
var _local4:rightPieThrower;
_local1 = new leftDrinkThrower();
this.addObstacle(_local1, 521.3, -69.3);
_local2 = new leftPieThrower();
this.addObstacle(_local2, 533, 273.7);
_local3 = new rightDrinkThrower();
this.addObstacle(_local3, 85, 160);
_local4 = new rightPieThrower();
this.addObstacle(_local4, 77.4, 495.7);
oALength = obstacleArray.length;
}
}
}//package
Section 65
//road11 (road11)
package {
public class road11 extends genericRoad {
public function setObstacles(){
oALength = obstacleArray.length;
}
}
}//package
Section 66
//road12 (road12)
package {
public class road12 extends genericRoad {
public function setObstacles(){
var _local1:deliveryMan;
var _local2:deliveryMan;
var _local3:deliveryMan;
_local1 = new deliveryMan();
this.addObstacle(_local1, 700, 0);
_local1.setRelatives();
_local2 = new deliveryMan();
this.addObstacle(_local2, 810, 0);
_local2.setRelatives();
_local3 = new deliveryMan();
oALength = obstacleArray.length;
}
}
}//package
Section 67
//road13 (road13)
package {
public class road13 extends genericRoad {
public function setObstacles(){
var _local1:rightCar;
var _local2:car;
_local1 = new rightCar();
this.addObstacle(_local1, -700, 75);
_local1.setRelatives();
_local2 = new car();
this.addObstacle(_local2, 700, 260);
_local2.setRelatives();
oALength = obstacleArray.length;
}
}
}//package
Section 68
//road14 (road14)
package {
public class road14 extends genericRoad {
public function setObstacles(){
var _local1:leftDrinkThrower;
var _local2:leftPieThrower;
var _local3:rightDrinkThrower;
var _local4:rightPieThrower;
_local1 = new leftDrinkThrower();
this.addObstacle(_local1, 521.3, -69.3);
_local2 = new leftPieThrower();
this.addObstacle(_local2, 533, 273.7);
_local3 = new rightDrinkThrower();
this.addObstacle(_local3, 85, 160);
_local4 = new rightPieThrower();
this.addObstacle(_local4, 77.4, 495.7);
oALength = obstacleArray.length;
}
}
}//package
Section 69
//road15 (road15)
package {
public class road15 extends genericRoad {
public function setObstacles(){
var _local1:leftPieThrower;
var _local2:leftDrinkThrower;
var _local3:leftPieThrower;
_local1 = new leftPieThrower();
this.addObstacle(_local1, 500, 130);
_local2 = new leftDrinkThrower();
this.addObstacle(_local2, 500, 300);
_local3 = new leftPieThrower();
this.addObstacle(_local3, 500, 540);
oALength = obstacleArray.length;
}
}
}//package
Section 70
//road16 (road16)
package {
public class road16 extends genericRoad {
public function setObstacles(){
oALength = obstacleArray.length;
}
}
}//package
Section 71
//road17 (road17)
package {
public class road17 extends genericRoad {
public function setObstacles(){
oALength = obstacleArray.length;
}
}
}//package
Section 72
//road18 (road18)
package {
public class road18 extends genericRoad {
public function setObstacles(){
oALength = obstacleArray.length;
}
}
}//package
Section 73
//road4 (road4)
package {
public class road4 extends genericRoad {
public function setObstacles(){
var _local1:leftPieThrower;
var _local2:leftDrinkThrower;
var _local3:leftPieThrower;
_local1 = new leftPieThrower();
this.addObstacle(_local1, 500, 100);
_local2 = new leftDrinkThrower();
this.addObstacle(_local2, 500, 300);
_local3 = new leftPieThrower();
this.addObstacle(_local3, 500, 500);
oALength = obstacleArray.length;
}
}
}//package
Section 74
//road5 (road5)
package {
public class road5 extends genericRoad {
}
}//package
Section 75
//road6 (road6)
package {
public class road6 extends genericRoad {
public function setObstacles(){
oALength = obstacleArray.length;
}
}
}//package
Section 76
//road8 (road8)
package {
public class road8 extends genericRoad {
public function setObstacles(){
var _local1:leftPieThrower;
var _local2:leftDrinkThrower;
var _local3:leftPieThrower;
_local1 = new leftPieThrower();
this.addObstacle(_local1, 500, 100);
_local2 = new leftDrinkThrower();
this.addObstacle(_local2, 500, 300);
_local3 = new leftPieThrower();
this.addObstacle(_local3, 500, 500);
oALength = obstacleArray.length;
}
}
}//package
Section 77
//road9 (road9)
package {
public class road9 extends genericRoad {
public function setObstacles(){
var _local1:deliveryMan;
var _local2:deliveryMan;
var _local3:deliveryMan;
var _local4:rightCar;
var _local5:car;
_local1 = new deliveryMan();
this.addObstacle(_local1, 700, 0);
_local1.setRelatives();
_local2 = new deliveryMan();
this.addObstacle(_local2, 810, 0);
_local2.setRelatives();
_local3 = new deliveryMan();
this.addObstacle(_local3, 920, 0);
_local3.setRelatives();
_local4 = new rightCar();
this.addObstacle(_local4, -700, 75);
_local4.setRelatives();
_local5 = new car();
this.addObstacle(_local5, 700, 260);
_local5.setRelatives();
oALength = obstacleArray.length;
}
}
}//package
Section 78
//scooter1 (scooter1)
package {
import flash.media.*;
public dynamic class scooter1 extends Sound {
}
}//package
Section 79
//scooterClip (scooterClip)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class scooterClip extends MovieClip {
public function scooterClip(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 80
//scooterMan (scooterMan)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
public class scooterMan extends MovieClip {
var catchUpBoundary:Number;// = 10
var CHASING:int;// = 0
var ALONGSIDE:int;// = 1
var myState:int;
var speed;// = 20
var spatulaSpeechSound:Sound;
var targettingLeft:Boolean;// = true
var LEAVING:int;// = 2
var scooterSound:Sound;
var scooterChannel:SoundChannel;
var staticWidth:Number;
public function scooterMan(){
CHASING = 0;
ALONGSIDE = 1;
LEAVING = 2;
myState = CHASING;
targettingLeft = true;
catchUpBoundary = 10;
speed = 20;
super();
addFrameScript(0, frame1, 1, frame2, 9, frame10, 10, frame11, 33, frame34, 40, frame41, 41, frame42, 63, frame64, 71, frame72);
staticWidth = this.width;
scooterSound = new scooter1();
spatulaSpeechSound = new spatulaSpeech();
scooterChannel = new SoundChannel();
scooterChannel = scooterSound.play(0, 5000);
this.addEventListener(Event.ENTER_FRAME, update);
}
public function setDone(){
myState = LEAVING;
}
function frame64(){
if (this.parent.parent.gameOver == false){
this.parent.parent.updateDifficulty();
};
}
function frame72(){
this.setDone();
gotoAndPlay("chasing");
}
function frame10(){
gotoAndPlay("chasing");
}
function frame1(){
this.setRelatives();
}
function frame2(){
if (this.parent != null){
this.parent.parent.hud1.rightSpeechBubble1.x = 0;
this.parent.parent.hud1.rightSpeechBubble1.y = 120;
this.parent.parent.hud1.leftSpeechBubble1.x = 0;
this.parent.parent.hud1.leftSpeechBubble1.y = 120;
} else {
stop();
};
}
function frame34(){
if (this.parent.parent.gameOver == false){
this.parent.parent.updateDifficulty();
};
}
function frame11(){
switch (this.parent.parent.difficulty){
case 0:
this.parent.parent.hud1.leftSpeechBubble1.speechBubbleText1.text = "A 3 LEGGED DOG COULD DO BETTER.";
break;
case 1:
this.parent.parent.hud1.leftSpeechBubble1.speechBubbleText1.text = "A 3 LEGGED DOG COULD DO BETTER.";
break;
case 2:
this.parent.parent.hud1.leftSpeechBubble1.speechBubbleText1.text = "I SEE THAT PIES ARE A MAJOR FOOD GROUP TO YOU.";
break;
case 3:
this.parent.parent.hud1.leftSpeechBubble1.speechBubbleText1.text = "I AM NOT IMPRESSED... YET.";
break;
case 4:
this.parent.parent.hud1.leftSpeechBubble1.speechBubbleText1.text = "SEEING YOU RUN IS LIKE WATCHING LARD MELT.";
break;
case 5:
this.parent.parent.hud1.leftSpeechBubble1.speechBubbleText1.text = "A PASSABLE ATTEMPT. FOR A SLOTH.";
break;
case 6:
this.parent.parent.hud1.leftSpeechBubble1.speechBubbleText1.text = "I SEE MY SPATULA IS HELPING.";
break;
case 7:
this.parent.parent.hud1.leftSpeechBubble1.speechBubbleText1.text = "RUN YOU BEAUTIFUL FAT GAZELLE.";
break;
case 8:
this.parent.parent.hud1.leftSpeechBubble1.speechBubbleText1.text = "I SEE MY SPATULA IS HELPING.";
break;
case 9:
this.parent.parent.hud1.leftSpeechBubble1.speechBubbleText1.text = "RUN YOU BEAUTIFUL FAT GAZELLE.";
break;
case 10:
this.parent.parent.hud1.leftSpeechBubble1.speechBubbleText1.text = "RUN YOU BEAUTIFUL FAT GAZELLE.";
break;
default:
this.parent.parent.hud1.leftSpeechBubble1.speechBubbleText1.text = "A STUFFED DOG COULD DO BETTER.";
break;
};
}
function frame41(){
this.setDone();
gotoAndPlay("chasing");
}
function frame42(){
switch (this.parent.parent.difficulty){
case 0:
this.parent.parent.hud1.rightSpeechBubble1.speechBubbleText2.text = "A 3 LEGGED DOG COULD DO BETTER.";
break;
case 1:
this.parent.parent.hud1.rightSpeechBubble1.speechBubbleText2.text = "A 3 LEGGED DOG COULD DO BETTER.";
break;
case 2:
this.parent.parent.hud1.rightSpeechBubble1.speechBubbleText2.text = "I SEE THAT PIES ARE A MAJOR FOOD GROUP TO YOU.";
break;
case 3:
this.parent.parent.hud1.rightSpeechBubble1.speechBubbleText2.text = "SEEING YOU RUN IS LIKE WATCHING LARD MELT.";
break;
case 4:
this.parent.parent.hud1.rightSpeechBubble1.speechBubbleText2.text = "I AM NOT IMPRESSED... YET.";
break;
case 5:
this.parent.parent.hud1.rightSpeechBubble1.speechBubbleText2.text = "I PITY YOU.";
break;
case 6:
this.parent.parent.hud1.rightSpeechBubble1.speechBubbleText2.text = "A PASSABLE ATTEMPT. FOR A SLOTH.";
break;
case 7:
this.parent.parent.hud1.rightSpeechBubble1.speechBubbleText2.text = "I SEE MY SPATULA IS HELPING.";
break;
case 8:
this.parent.parent.hud1.rightSpeechBubble1.speechBubbleText2.text = "RUN YOU BEAUTIFUL FAT GAZELLE.";
break;
case 9:
this.parent.parent.hud1.rightSpeechBubble1.speechBubbleText2.text = "I SEE MY SPATULA IS HELPING.";
break;
case 10:
this.parent.parent.hud1.rightSpeechBubble1.speechBubbleText2.text = "RUN YOU BEAUTIFUL FAT GAZELLE.";
break;
default:
this.parent.parent.hud1.rightSpeechBubble1.speechBubbleText2.text = "A STUFFED DOG COULD DO BETTER.";
break;
};
}
public function update(_arg1:Event){
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
if (targettingLeft){
_local2 = (this.parent.parent.getChildByName("mainChar1").x - staticWidth);
} else {
_local2 = (this.parent.parent.getChildByName("mainChar1").x + staticWidth);
};
_local3 = this.parent.parent.getChildByName("mainChar1").y;
if (myState == CHASING){
_local7 = (_local2 - this.x);
_local6 = (_local3 - this.y);
_local4 = Math.sqrt((Math.pow(_local7, 2) + Math.pow(_local6, 2)));
_local5 = (speed / _local4);
this.x = (this.x + (_local7 * _local5));
this.y = (this.y + (_local6 * _local5));
if ((((Math.abs((this.x - _local2)) < catchUpBoundary)) && ((Math.abs((this.y - _local3)) < catchUpBoundary)))){
myState = ALONGSIDE;
spatulaSpeechSound.play();
if (targettingLeft){
this.gotoAndPlay("alongside");
this.parent.parent.hud1.getChildByName("leftSpeechBubble1").x = ((this.x + 30) + this.parent.parent.hud1.x);
this.parent.parent.hud1.getChildByName("leftSpeechBubble1").y = ((this.y + 70) + this.parent.parent.hud1.y);
} else {
this.gotoAndPlay("alongsideRight");
this.parent.parent.hud1.getChildByName("rightSpeechBubble1").x = ((this.x - 90) + this.parent.parent.hud1.x);
this.parent.parent.hud1.getChildByName("rightSpeechBubble1").y = ((this.y + 60) - this.parent.parent.hud1.y);
};
};
} else {
if (myState == ALONGSIDE){
if (targettingLeft){
this.parent.parent.hud1.getChildByName("leftSpeechBubble1").x = ((this.x + 30) + this.parent.parent.hud1.x);
this.parent.parent.hud1.getChildByName("leftSpeechBubble1").y = ((this.y + 70) - this.parent.parent.hud1.y);
} else {
this.parent.parent.hud1.getChildByName("rightSpeechBubble1").x = ((this.x - 90) + this.parent.parent.hud1.x);
this.parent.parent.hud1.getChildByName("rightSpeechBubble1").y = ((this.y + 60) - this.parent.parent.hud1.y);
};
if ((((_local2 >= 0)) && ((_local2 < 600)))){
this.x = _local2;
if (this.x < 85){
this.x = 85;
};
if (this.x > 450){
this.x = 450;
};
};
if ((((_local3 >= 0)) && ((_local3 < 600)))){
this.y = _local3;
};
} else {
if (myState == LEAVING){
this.y = (this.y - speed);
if (y < (0 - height)){
scooterChannel.stop();
this.removeEventListener(Event.ENTER_FRAME, update);
this.parent.removeChild(this);
};
};
};
};
}
public function setRelatives(){
if (this.parent.parent.getChildByName("mainChar1").x < (this.parent.parent.xLowerLimit + ((this.parent.parent.xUpperLimit - this.parent.parent.xLowerLimit) / 2))){
targettingLeft = false;
} else {
targettingLeft = true;
};
myState = CHASING;
}
}
}//package
Section 81
//screenBG (screenBG)
package {
import flash.display.*;
public dynamic class screenBG extends MovieClip {
}
}//package
Section 82
//shadow1 (shadow1)
package {
import flash.display.*;
public dynamic class shadow1 extends MovieClip {
}
}//package
Section 83
//skipPostVideoButton (skipPostVideoButton)
package {
import flash.display.*;
public dynamic class skipPostVideoButton extends SimpleButton {
}
}//package
Section 84
//skipPreVideoButton (skipPreVideoButton)
package {
import flash.display.*;
public dynamic class skipPreVideoButton extends SimpleButton {
}
}//package
Section 85
//slap1 (slap1)
package {
import flash.media.*;
public dynamic class slap1 extends Sound {
}
}//package
Section 86
//songLoopSlow (songLoopSlow)
package {
import flash.media.*;
public dynamic class songLoopSlow extends Sound {
}
}//package
Section 87
//spatulaSpeech (spatulaSpeech)
package {
import flash.media.*;
public dynamic class spatulaSpeech extends Sound {
}
}//package
Section 88
//splat1 (splat1)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class splat1 extends MovieClip {
public function splat1(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 89
//startGameButton (startGameButton)
package {
import flash.display.*;
public dynamic class startGameButton extends SimpleButton {
}
}//package
Section 90
//submitBackToTitle (submitBackToTitle)
package {
import flash.display.*;
public dynamic class submitBackToTitle extends SimpleButton {
}
}//package
Section 91
//submitButton (submitButton)
package {
import flash.display.*;
public dynamic class submitButton extends SimpleButton {
}
}//package
Section 92
//Symbol11 (Symbol11)
package {
import flash.display.*;
public dynamic class Symbol11 extends SimpleButton {
}
}//package
Section 93
//Symbol2 (Symbol2)
package {
import flash.display.*;
public dynamic class Symbol2 extends SimpleButton {
}
}//package
Section 94
//Symbol3 (Symbol3)
package {
import flash.display.*;
public dynamic class Symbol3 extends SimpleButton {
}
}//package
Section 95
//Symbol4 (Symbol4)
package {
import flash.display.*;
public dynamic class Symbol4 extends SimpleButton {
}
}//package
Section 96
//Symbol6 (Symbol6)
package {
import flash.display.*;
public dynamic class Symbol6 extends SimpleButton {
}
}//package
Section 97
//Symbol9 (Symbol9)
package {
import flash.display.*;
public dynamic class Symbol9 extends SimpleButton {
}
}//package
Section 98
//thrower (thrower)
package {
import flash.display.*;
public class thrower extends obstacleContainer {
var goingLeft:Boolean;// = true
var throwerMathExt:mathExt;
public function thrower(){
goingLeft = true;
super();
}
public function createProjectile():MovieClip{
}
public function addProjectile(){
var _local1:MovieClip;
throwerMathExt = new mathExt();
_local1 = createProjectile();
_local1.x = 0;
_local1.y = 0;
this.addChild(_local1);
}
}
}//package
Section 99
//topTenButton (topTenButton)
package {
import flash.display.*;
public dynamic class topTenButton extends SimpleButton {
}
}//package
Section 100
//trench (trench)
package {
import flash.events.*;
import flash.display.*;
public class trench extends MovieClip {
public var hitArea1_1:hitArea1;
var trenchMathExt:mathExt;
var finished:Boolean;// = false
public var workman1:MovieClip;
public var workman2:MovieClip;
public var workman3:MovieClip;
var safeZoneMinX:Number;
var safeZoneMaxX:Number;
public function trench(){
finished = false;
super();
addFrameScript(0, frame1, 35, frame36, 75, frame76, 115, frame116);
addEventListener(Event.ENTER_FRAME, update);
trenchMathExt = new mathExt();
}
function frame76(){
this.setSafeZone((this.x + 270), (this.x + 330));
}
function frame1(){
this.setRelatives();
this.setSafeZone((this.x + 30), (this.x + 90));
}
public function manualExterminate(){
removeEventListener(Event.ENTER_FRAME, update);
}
function frame36(){
this.setSafeZone((this.x + 150), (this.x + 210));
}
function frame116(){
this.setRelatives();
this.setSafeZone((this.x + 30), (this.x + 90));
}
public function setSafeZone(_arg1, _arg2){
safeZoneMinX = _arg1;
safeZoneMaxX = _arg2;
}
public function update(_arg1:Event){
var newExp:bonus2;
var redundantEvent = _arg1;
try {
if (!finished){
if (this.hitArea1_1.hitTestObject(this.parent.parent.parent.getChildByName("mainChar1"))){
if ((((((((this.parent.parent.parent.getChildByName("mainChar1").x >= safeZoneMinX)) && ((this.parent.parent.parent.getChildByName("mainChar1").x <= safeZoneMaxX)))) || (((((this.parent.parent.parent.getChildByName("mainChar1").x + this.parent.parent.parent.getChildByName("mainChar1").width) >= safeZoneMinX)) && (((this.parent.parent.parent.getChildByName("mainChar1").x + this.parent.parent.parent.getChildByName("mainChar1").width) <= safeZoneMaxX)))))) || (((((this.parent.parent.parent.getChildByName("mainChar1").x + (this.parent.parent.parent.getChildByName("mainChar1").width / 2)) >= safeZoneMinX)) && (((this.parent.parent.parent.getChildByName("mainChar1").x + (this.parent.parent.parent.getChildByName("mainChar1").width / 2)) <= safeZoneMaxX)))))){
this.getChildByName("workman1").gotoAndPlay("steppedOn");
this.getChildByName("workman2").gotoAndPlay("steppedOn");
this.getChildByName("workman3").gotoAndPlay("steppedOn");
newExp = new bonus2();
newExp.x = safeZoneMinX;
newExp.y = (this.parent.parent.parent.getChildByName("mainChar1").y + this.parent.parent.parent.getChildByName("mainChar1").height);
this.parent.parent.parent.addChild(newExp);
this.parent.parent.parent.getChildByName("mainChar1").parent.score = (this.parent.parent.parent.getChildByName("mainChar1").parent.score + 100);
this.parent.parent.parent.getChildByName("mainChar1").parent.scoreText.text = this.parent.parent.parent.getChildByName("mainChar1").parent.score;
this.stop();
finished = true;
} else {
this.parent.parent.parent.getChildByName("mainChar1").y = (((this.y + this.parent.y) + this.parent.parent.y) - 100);
this.parent.parent.parent.getChildByName("mainChar1").die(this.parent.parent.parent.getChildByName("mainChar1").FALLING_INTO_HOLE);
finished = true;
};
};
};
} catch(error:Error) {
removeEventListener(Event.ENTER_FRAME, update);
};
}
public function setRelatives(){
try {
} catch(error:Error) {
this.removeEventListener(Event.ENTER_FRAME, update);
};
}
}
}//package
Section 101
//trouserClip (trouserClip)
package {
import flash.display.*;
public dynamic class trouserClip extends MovieClip {
}
}//package
Section 102
//tryAgainButton (tryAgainButton)
package {
import flash.display.*;
public dynamic class tryAgainButton extends SimpleButton {
}
}//package
Section 103
//tryAgainButtonClass (tryAgainButtonClass)
package {
import flash.display.*;
public dynamic class tryAgainButtonClass extends SimpleButton {
}
}//package
Section 104
//tryAgainButtonX1 (tryAgainButtonX1)
package {
import flash.display.*;
public dynamic class tryAgainButtonX1 extends SimpleButton {
}
}//package
Section 105
//wall (wall)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
public class wall extends MovieClip {
var energyLevel:Number;
var energyDecline:Number;
public var energyBar1_1:energyBarC;
var completed:Boolean;// = false
var trackDate:Date;
public var timeText:TextField;
var waitingForA:Boolean;// = true
var wallTotal:Number;
var barWidth:Number;
var energyIncrement:Number;
var timeLimit:Number;
public function wall(){
var _local1:Sound;
waitingForA = true;
completed = false;
super();
addFrameScript(0, frame1);
trackDate = new Date();
addEventListener(Event.ENTER_FRAME, genericUpdate);
_local1 = new hitSoundWall();
_local1.play();
wallTotal = 200;
barWidth = 400;
energyLevel = 0;
energyIncrement = 3;
energyDecline = 0.3;
timeLimit = 10000;
}
function frame1(){
energyBar1_1.scaleX = 0;
stop();
}
public function handleKeyDown(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 65){
if (waitingForA){
energyLevel = (energyLevel + energyIncrement);
waitingForA = false;
};
};
if (_arg1.keyCode == 83){
if (!waitingForA){
energyLevel = (energyLevel + energyIncrement);
waitingForA = true;
};
};
}
public function isComplete():Boolean{
return (completed);
}
function genericUpdate(_arg1:Event){
var msTextVal:int;
var oldTime:Number;
var event1 = _arg1;
try {
oldTime = trackDate.getTime();
trackDate = new Date();
timeLimit = (timeLimit - (trackDate.getTime() - oldTime));
msTextVal = int(((timeLimit % 1000) / 10));
if (msTextVal < 10){
this.timeText.text = ((((timeLimit - (timeLimit % 1000)) / 1000) + ":0") + msTextVal);
} else {
this.timeText.text = ((((timeLimit - (timeLimit % 1000)) / 1000) + ":") + msTextVal);
};
if (timeLimit <= 0){
this.parent.mainChar1.die(this.parent.mainChar1.COLLAPSE);
this.parent.background1_1.stopMoving();
this.parent.background1_1.removeWall(this);
} else {
if (energyLevel >= wallTotal){
completed = true;
removeEventListener(Event.ENTER_FRAME, genericUpdate);
this.parent.background1_1.removeWall(this);
} else {
energyLevel = (energyLevel - energyDecline);
if (energyLevel < 0){
energyLevel = 0;
};
};
this.getChildByName("energyBar1_1").scaleX = (energyLevel / wallTotal);
};
} catch(error:Error) {
this.removeEventListener(Event.ENTER_FRAME, genericUpdate);
};
}
}
}//package
Section 106
//walltext (walltext)
package {
import flash.display.*;
public dynamic class walltext extends MovieClip {
}
}//package
Section 107
//wallWarn (wallWarn)
package {
import flash.display.*;
public dynamic class wallWarn extends MovieClip {
public var wallWarnText1:walltext;
}
}//package
Section 108
//viewHighScoresButton (viewHighScoresButton)
package {
import flash.display.*;
public dynamic class viewHighScoresButton extends SimpleButton {
}
}//package
Section 109
//viewScoreBoard (viewScoreBoard)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public class viewScoreBoard extends MovieClip {
public var resultsArray:Array;
public var hsNameText0:TextField;
public var hsNameText1:TextField;
public var hsNameText2:TextField;
public var hsNameText3:TextField;
public var hsNameText5:TextField;
public var hsNameText6:TextField;
public var hsNameText9:TextField;
public var hsNameText4:TextField;
public var hsNameText7:TextField;
public var hsNameText8:TextField;
public var connector:NetConnection;
public var statusAnnText:TextField;
public var internalRank:int;// = -1
public var next10DownButton1:next10DownButton;
public var hsScoreText1:TextField;
public var hsScoreText3:TextField;
public var hsScoreText5:TextField;
public var hsScoreText0:TextField;
public var hsScoreText8:TextField;
public var hsScoreText9:TextField;
public var hsScoreText4:TextField;
public var hsScoreText6:TextField;
public var hsScoreText2:TextField;
public var hsScoreText7:TextField;
public var localSubScore:String;
public var gatewayURL:String;// = "http://www.weebls-stuff.com/amfphp/gateway.php"
public var hsPosText0:TextField;
public var hsPosText1:TextField;
public var hsPosText2:TextField;
public var hsPosText3:TextField;
public var hsPosText4:TextField;
public var hsPosText5:TextField;
public var hsPosText6:TextField;
public var hsPosText7:TextField;
public var hsPosText9:TextField;
public var hsPosText8:TextField;
public var localSubName:String;
public var sbBackToTitle1:hsBackToTitle;
public var awardText:TextField;
public var hsFilmSiteButton1:Symbol9;
public var sBAward:String;
public var emailAnnText:TextField;
public var topTenButton1:topTenButton;
var internalStart:int;// = 1
var internalFinish:int;// = 10
public var submitErrorText1:TextField;
public var mailer12:mailer2;
public var dataProvider:Array;
public var localSubEmail:String;
public var next10UpButton1:next10UpButton;
public function viewScoreBoard(){
var _local1:int;
gatewayURL = "http://www.weebls-stuff.com/amfphp/gateway.php";
internalRank = -1;
internalStart = 1;
internalFinish = 10;
super();
addFrameScript(0, frame1, 1, frame2);
_local1 = 0;
resultsArray = new Array();
_local1 = 0;
while (_local1 < 20) {
resultsArray[_local1] = "Contacting High Score Table...";
_local1++;
};
connector = new NetConnection();
connector.objectEncoding = ObjectEncoding.AMF0;
}
public function request10Up(_arg1:MouseEvent):void{
this.next10Up();
}
public function top10(){
internalStart = 1;
internalFinish = 10;
returnRange(internalStart, internalFinish);
}
public function next10Down(){
internalStart = (internalStart + 10);
internalFinish = (internalFinish + 10);
if (internalStart <= 0){
internalStart = 1;
internalFinish = 10;
};
returnRange(internalStart, internalFinish);
}
public function onReturnRangeFault(_arg1:String):void{
this.hsNameText0.text = "Sorry,";
this.hsNameText1.text = "connection";
this.hsNameText2.text = "error.";
connector.close();
}
public function endConnection(){
connector.close();
connector = null;
}
public function onReturnRangeResult(_arg1):void{
this.hsNameText0.text = _arg1[0];
this.hsNameText1.text = _arg1[1];
this.hsNameText2.text = _arg1[2];
this.hsNameText3.text = _arg1[3];
this.hsNameText4.text = _arg1[4];
this.hsNameText5.text = _arg1[5];
this.hsNameText6.text = _arg1[6];
this.hsNameText7.text = _arg1[7];
this.hsNameText8.text = _arg1[8];
this.hsNameText9.text = _arg1[9];
this.hsScoreText0.text = _arg1[10];
this.hsScoreText1.text = _arg1[11];
this.hsScoreText2.text = _arg1[12];
this.hsScoreText3.text = _arg1[13];
this.hsScoreText4.text = _arg1[14];
this.hsScoreText5.text = _arg1[15];
this.hsScoreText6.text = _arg1[16];
this.hsScoreText7.text = _arg1[17];
this.hsScoreText8.text = _arg1[18];
this.hsScoreText9.text = _arg1[19];
this.hsPosText0.text = (_arg1[21] + ".");
this.hsPosText1.text = (String((int(_arg1[21]) + 1)) + ".");
this.hsPosText2.text = (String((int(_arg1[21]) + 2)) + ".");
this.hsPosText3.text = (String((int(_arg1[21]) + 3)) + ".");
this.hsPosText4.text = (String((int(_arg1[21]) + 4)) + ".");
this.hsPosText5.text = (String((int(_arg1[21]) + 5)) + ".");
this.hsPosText6.text = (String((int(_arg1[21]) + 6)) + ".");
this.hsPosText7.text = (String((int(_arg1[21]) + 7)) + ".");
this.hsPosText8.text = (String((int(_arg1[21]) + 8)) + ".");
this.hsPosText9.text = (String((int(_arg1[21]) + 9)) + ".");
internalStart = int(_arg1[21]);
internalFinish = (int(_arg1[21]) + 9);
connector.close();
}
function frame1(){
submitErrorText1.text = "";
sBAward = "Fatboy";
if (this.parent.highScore >= 10000){
sBAward = "Gold Medal";
} else {
if (this.parent.highScore >= 9000){
sBAward = "Silver Medal";
} else {
if (this.parent.highScore >= 8000){
sBAward = "Bronze Medal";
} else {
if (this.parent.highScore >= 7000){
sBAward = "Runner Up";
} else {
if (this.parent.highScore >= 6000){
sBAward = "Bubbling Under";
} else {
if (this.parent.highScore >= 5000){
sBAward = "A Bit Slobby";
} else {
if (this.parent.highScore >= 4000){
sBAward = "Pie Eater";
} else {
if (this.parent.highScore >= 3000){
sBAward = "Fry-Up Fanatic";
} else {
if (this.parent.highScore >= 2000){
sBAward = "Face Stuffer";
} else {
if (this.parent.highScore >= 1000){
sBAward = "Greasy Spoon";
} else {
sBAward = "Fatboy";
};
};
};
};
};
};
};
};
};
};
next10UpButton1.useHandCursor = false;
next10UpButton1.addEventListener(MouseEvent.CLICK, request10Up);
next10DownButton1.useHandCursor = false;
next10DownButton1.addEventListener(MouseEvent.CLICK, request10Down);
topTenButton1.useHandCursor = false;
topTenButton1.addEventListener(MouseEvent.CLICK, requestTop10);
sbBackToTitle1.useHandCursor = false;
sbBackToTitle1.addEventListener(MouseEvent.CLICK, sbBackToTitle);
awardText.text = sBAward;
if (this.parent.submittingScore == false){
statusAnnText.x = 601;
statusAnnText.y = 601;
awardText.x = 601;
awardText.y = 601;
emailAnnText.x = 601;
emailAnnText.y = 601;
mailer12.x = 601;
mailer12.y = 601;
this.parent.submittingScore = true;
this.returnRange(1, 10);
} else {
statusAnnText.x = 400;
statusAnnText.y = 200;
awardText.x = 400;
awardText.y = 300;
emailAnnText.x = 142;
emailAnnText.y = 403;
mailer12.x = 200;
mailer12.y = 422;
this.submitScore(localSubName, localSubEmail, this.parent.highScore);
};
stop();
}
function frame2(){
}
public function next10Up(){
internalStart = (internalStart - 10);
internalFinish = (internalFinish - 10);
if (internalStart <= 0){
internalStart = 1;
internalFinish = 10;
};
returnRange(internalStart, internalFinish);
}
public function request10Down(_arg1:MouseEvent):void{
this.next10Down();
}
public function requestTop10(_arg1:MouseEvent):void{
this.top10();
}
public function init(){
}
public function mailScore(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:String, _arg7:String, _arg8:String){
var _local9:Responder;
var _local10:String;
_local9 = new Responder(onMailScoreResult, onMailScoreFault);
_local10 = ((((((((((((((_arg1 + ",") + _arg2) + ",") + _arg3) + ",") + _arg4) + ",") + _arg5) + ",") + _arg6) + ",") + _arg7) + ",") + _arg8);
connector.call("scoreBoard.mailOut", _local9, _local10);
}
public function onMailScoreResult(_arg1):void{
this.mailer12.gotoAndPlay(1);
connector.close();
}
public function submitScore(_arg1:String, _arg2:String, _arg3:String){
var _local4:Responder;
var _local5:String;
connector.connect(gatewayURL);
_local4 = new Responder(onSubmitResult, onSubmitFault);
_local5 = ((((_arg1 + ",") + _arg2) + ",") + _arg3);
connector.call("scoreBoard.submit", _local4, _local5);
}
public function onSubmitFault(_arg1:String):void{
this.hsNameText0.text = "Sorry,";
this.hsNameText1.text = "connection";
this.hsNameText2.text = "error.";
connector.close();
}
public function onMailScoreFault(_arg1:String):void{
this.mailer12.gotoAndPlay(1);
connector.close();
}
public function onSubmitResult(_arg1):void{
var _local2:int;
_local2 = 0;
while (_local2 < 20) {
resultsArray[_local2] = _arg1[_local2];
_local2++;
};
this.hsNameText0.text = this.resultsArray[0];
this.hsNameText1.text = this.resultsArray[1];
this.hsNameText2.text = this.resultsArray[2];
this.hsNameText3.text = this.resultsArray[3];
this.hsNameText4.text = this.resultsArray[4];
this.hsNameText5.text = this.resultsArray[5];
this.hsNameText6.text = this.resultsArray[6];
this.hsNameText7.text = this.resultsArray[7];
this.hsNameText8.text = this.resultsArray[8];
this.hsNameText9.text = this.resultsArray[9];
this.hsScoreText0.text = this.resultsArray[10];
this.hsScoreText1.text = this.resultsArray[11];
this.hsScoreText2.text = this.resultsArray[12];
this.hsScoreText3.text = this.resultsArray[13];
this.hsScoreText4.text = this.resultsArray[14];
this.hsScoreText5.text = this.resultsArray[15];
this.hsScoreText6.text = this.resultsArray[16];
this.hsScoreText7.text = this.resultsArray[17];
this.hsScoreText8.text = this.resultsArray[18];
this.hsScoreText9.text = this.resultsArray[19];
if (_arg1[20] >= 0){
internalRank = _arg1[20];
internalStart = _arg1[21];
internalFinish = _arg1[22];
if (_arg1[20] == _arg1[21]){
this.hsPosText0.textColor = 0xFFFF00;
this.hsNameText0.textColor = 0xFFFF00;
this.hsScoreText0.textColor = 0xFFFF00;
} else {
if (_arg1[20] == String((int(_arg1[21]) + 1))){
this.hsPosText1.textColor = 0xFFFF00;
this.hsNameText1.textColor = 0xFFFF00;
this.hsScoreText1.textColor = 0xFFFF00;
} else {
if (_arg1[20] == String((int(_arg1[21]) + 2))){
this.hsPosText2.textColor = 0xFFFF00;
this.hsNameText2.textColor = 0xFFFF00;
this.hsScoreText2.textColor = 0xFFFF00;
} else {
if (_arg1[20] == String((int(_arg1[21]) + 3))){
this.hsPosText3.textColor = 0xFFFF00;
this.hsNameText3.textColor = 0xFFFF00;
this.hsScoreText3.textColor = 0xFFFF00;
} else {
if (_arg1[20] == String((int(_arg1[21]) + 4))){
this.hsPosText4.textColor = 0xFFFF00;
this.hsNameText4.textColor = 0xFFFF00;
this.hsScoreText4.textColor = 0xFFFF00;
} else {
if (_arg1[20] == String((int(_arg1[21]) + 5))){
this.hsPosText5.textColor = 0xFFFF00;
this.hsNameText5.textColor = 0xFFFF00;
this.hsScoreText5.textColor = 0xFFFF00;
} else {
if (_arg1[20] == String((int(_arg1[21]) + 6))){
this.hsPosText6.textColor = 0xFFFF00;
this.hsNameText6.textColor = 0xFFFF00;
this.hsScoreText6.textColor = 0xFFFF00;
} else {
if (_arg1[20] == String((int(_arg1[21]) + 7))){
this.hsPosText7.textColor = 0xFFFF00;
this.hsNameText7.textColor = 0xFFFF00;
this.hsScoreText7.textColor = 0xFFFF00;
} else {
if (_arg1[20] == String((int(_arg1[21]) + 8))){
this.hsPosText8.textColor = 0xFFFF00;
this.hsNameText8.textColor = 0xFFFF00;
this.hsScoreText8.textColor = 0xFFFF00;
} else {
if (_arg1[20] == String((int(_arg1[21]) + 9))){
this.hsPosText9.textColor = 0xFFFF00;
this.hsNameText9.textColor = 0xFFFF00;
this.hsScoreText9.textColor = 0xFFFF00;
};
};
};
};
};
};
};
};
};
};
};
this.hsPosText0.text = (_arg1[21] + ".");
this.hsPosText1.text = (String((int(_arg1[21]) + 1)) + ".");
this.hsPosText2.text = (String((int(_arg1[21]) + 2)) + ".");
this.hsPosText3.text = (String((int(_arg1[21]) + 3)) + ".");
this.hsPosText4.text = (String((int(_arg1[21]) + 4)) + ".");
this.hsPosText5.text = (String((int(_arg1[21]) + 5)) + ".");
this.hsPosText6.text = (String((int(_arg1[21]) + 6)) + ".");
this.hsPosText7.text = (String((int(_arg1[21]) + 7)) + ".");
this.hsPosText8.text = (String((int(_arg1[21]) + 8)) + ".");
this.hsPosText9.text = (String((int(_arg1[21]) + 9)) + ".");
connector.close();
}
public function sbBackToTitle(_arg1:MouseEvent):void{
this.endConnection();
this.parent.channel3.stop();
this.parent.gotoAndPlay(1, "Title");
}
public function returnRange(_arg1:int, _arg2:int){
var _local3:Responder;
var _local4:String;
connector.connect(gatewayURL);
this.hsPosText0.textColor = 0xFFFFFF;
this.hsNameText0.textColor = 0xFFFFFF;
this.hsScoreText0.textColor = 0xFFFFFF;
this.hsPosText1.textColor = 0xFFFFFF;
this.hsNameText1.textColor = 0xFFFFFF;
this.hsScoreText1.textColor = 0xFFFFFF;
this.hsPosText2.textColor = 0xFFFFFF;
this.hsNameText2.textColor = 0xFFFFFF;
this.hsScoreText2.textColor = 0xFFFFFF;
this.hsPosText3.textColor = 0xFFFFFF;
this.hsNameText3.textColor = 0xFFFFFF;
this.hsScoreText3.textColor = 0xFFFFFF;
this.hsPosText4.textColor = 0xFFFFFF;
this.hsNameText4.textColor = 0xFFFFFF;
this.hsScoreText4.textColor = 0xFFFFFF;
this.hsPosText5.textColor = 0xFFFFFF;
this.hsNameText5.textColor = 0xFFFFFF;
this.hsScoreText5.textColor = 0xFFFFFF;
this.hsPosText6.textColor = 0xFFFFFF;
this.hsNameText6.textColor = 0xFFFFFF;
this.hsScoreText6.textColor = 0xFFFFFF;
this.hsPosText7.textColor = 0xFFFFFF;
this.hsNameText7.textColor = 0xFFFFFF;
this.hsScoreText7.textColor = 0xFFFFFF;
this.hsPosText8.textColor = 0xFFFFFF;
this.hsNameText8.textColor = 0xFFFFFF;
this.hsScoreText8.textColor = 0xFFFFFF;
this.hsPosText9.textColor = 0xFFFFFF;
this.hsNameText9.textColor = 0xFFFFFF;
this.hsScoreText9.textColor = 0xFFFFFF;
this.hsNameText0.text = "Please Wait...";
this.hsNameText1.text = "";
this.hsNameText2.text = "";
this.hsNameText3.text = "";
this.hsNameText4.text = "";
this.hsNameText5.text = "";
this.hsNameText6.text = "";
this.hsNameText7.text = "";
this.hsNameText8.text = "";
this.hsNameText9.text = "";
this.hsScoreText0.text = "";
this.hsScoreText1.text = "";
this.hsScoreText2.text = "";
this.hsScoreText3.text = "";
this.hsScoreText4.text = "";
this.hsScoreText5.text = "";
this.hsScoreText6.text = "";
this.hsScoreText7.text = "";
this.hsScoreText8.text = "";
this.hsScoreText9.text = "";
this.hsPosText0.text = "";
this.hsPosText1.text = "";
this.hsPosText2.text = "";
this.hsPosText3.text = "";
this.hsPosText4.text = "";
this.hsPosText5.text = "";
this.hsPosText6.text = "";
this.hsPosText7.text = "";
this.hsPosText8.text = "";
this.hsPosText9.text = "";
_local3 = new Responder(onReturnRangeResult, onReturnRangeFault);
_local4 = (((_arg1 + ",") + _arg2) + ",");
connector.call("scoreBoard.returnRange", _local3, _local4);
}
}
}//package