Section 1
//Aboutgame_53 (SANTAMARATHON_fla.Aboutgame_53)
package SANTAMARATHON_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.net.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Aboutgame_53 extends MovieClip {
public var backBut:SimpleButton;
public var playBut:SimpleButton;
public function Aboutgame_53(){
addFrameScript(0, frame1);
}
public function omp(_arg1:Event){
MovieClip(root).gotoLink("http://www.newgrounds.com/portal/view/388128");
}
function frame1(){
backBut.addEventListener(MouseEvent.MOUSE_DOWN, omd);
playBut.addEventListener(MouseEvent.MOUSE_DOWN, omp);
}
public function omd(_arg1:Event){
playBut.removeEventListener(MouseEvent.MOUSE_DOWN, omp);
backBut.removeEventListener(MouseEvent.MOUSE_DOWN, omd);
MovieClip(root).transistion("TITLE");
}
}
}//package SANTAMARATHON_fla
Section 2
//ag_intro_mc_9 (SANTAMARATHON_fla.ag_intro_mc_9)
package SANTAMARATHON_fla {
import flash.display.*;
public dynamic class ag_intro_mc_9 extends MovieClip {
public function ag_intro_mc_9(){
addFrameScript(0, frame1, 160, frame161);
}
function frame161(){
MovieClip(parent).play();
stop();
}
function frame1(){
MovieClip(parent).stop();
gotoAndPlay(2);
}
}
}//package SANTAMARATHON_fla
Section 3
//CHIMNEY_49 (SANTAMARATHON_fla.CHIMNEY_49)
package SANTAMARATHON_fla {
import flash.display.*;
public dynamic class CHIMNEY_49 extends MovieClip {
public function CHIMNEY_49(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
stop();
}
function frame1(){
stop();
}
}
}//package SANTAMARATHON_fla
Section 4
//Competeenter_28 (SANTAMARATHON_fla.Competeenter_28)
package SANTAMARATHON_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Competeenter_28 extends MovieClip {
public var nam:TextField;
}
}//package SANTAMARATHON_fla
Section 5
//EOL_27 (SANTAMARATHON_fla.EOL_27)
package SANTAMARATHON_fla {
import flash.display.*;
import flash.text.*;
public dynamic class EOL_27 extends MovieClip {
public var Exit:SimpleButton;
public var days:TextField;
public var enterName:MovieClip;
public var score:TextField;
}
}//package SANTAMARATHON_fla
Section 6
//GAMEENGINE_26 (SANTAMARATHON_fla.GAMEENGINE_26)
package SANTAMARATHON_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.net.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class GAMEENGINE_26 extends MovieClip {
public var jumpTile:Boolean;
public var chuteTarg:Number;
public var demoMode:Boolean;
public var SANTA:MovieClip;
public var BG:MovieClip;
public var forceTile:Number;
public var C_FS:Number;
public var tileArray:Array;
public var stateArray:Array;
public var tOff:Number;
public var downKey:Boolean;
public var i:int;
public var INDI:MovieClip;
public var dead:Boolean;
public var spawnActive:int;
public var chuteAim:Number;
public var tutorialTimer:Number;
public var stateFreeze:Number;
public var score:Number;
public var rightKey:Boolean;
public var chuteTimer:int;
public var BG2:MovieClip;
public var _keys:Array;
public var GM:int;
public var EOL:MovieClip;
public var stateSelect:String;
public var lives:int;
public var SHADOW:MovieClip;
public var levelSpeed:Number;
public var multi:Number;
public var C_Off:Point;
public var C_OffD:Point;
public var deadTimer:Number;
public var TILES:MovieClip;
public var C_OffZ:Point;
public var C_OffT:Point;
public var helpCounter:int;
public var shakePower:Number;
public var eolDone:Boolean;
public var keyTaken:Boolean;
public var safetyBuffer:Number;
public var C_OffZD:Point;
public var sequence:Array;
public var C_OffZT:Point;
public var tutorialType:Number;
public var C_ST:Number;
public var upKey:Boolean;
public var C_CU:Number;
public var seqCount:Number;
public var shakeTimer:Number;
public var counter:Number;
public function GAMEENGINE_26(){
addFrameScript(0, frame1);
}
public function handleKeyUp(_arg1:KeyboardEvent):void{
var _local2:int;
_local2 = _keys.indexOf(_arg1.keyCode);
if (_local2 > -1){
_keys.splice(_local2, 1);
};
}
public function rand(_arg1:Number=10, _arg2:Number=0){
return (Math.round(((Math.random() * _arg1) + _arg2)));
}
public function exitGame(){
var _local1:int;
_local1 = 0;
while (_local1 < tileArray.length) {
TILES.removeChild(tileArray[_local1]);
delete tileArray[_local1];
_local1++;
};
tileArray = new Array();
tileArray = null;
removeChild(SHADOW);
SHADOW = null;
removeChild(TILES);
TILES = null;
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
destroyAS3Key();
this.visible = false;
MovieClip(root).transistion("TITLE");
}
public function pythagPoint(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int){
var _local6:Point;
var _local7:Point;
_local6 = new Point(_arg1, _arg3);
_local7 = new Point(_arg1, _arg3);
return (pythag(_local6, _local7, _arg5));
}
public function updateTiles(){
var _local1:int;
var _local2:MovieClip;
_local1 = 0;
while (_local1 < tileArray.length) {
_local2 = tileArray[_local1];
if (_local2.FLASHER.alpha > 0){
_local2.FLASHER.alpha = (_local2.FLASHER.alpha - 0.1);
};
_local2.x = (_local2.x - levelSpeed);
if ((((_local2.x < -100)) && ((_local2.act == 2)))){
safetyBuffer = 15;
_local2.act = 1;
_local2.FLASHER.alpha = 1;
INDI.alpha = 0;
if (demoMode == true){
stateFreeze = 20;
stateSelect = stateArray[_local2.tileType];
SANTA.gotoAndStop(stateSelect);
};
} else {
if ((((_local2.x < -200)) && ((_local2.act == 1)))){
if (stateSelect != stateArray[_local2.tileType]){
MovieClip(parent).HUD[("S" + lives)].alpha = 0.2;
lives--;
if (lives == 0){
stateFreeze = 1000;
stateSelect = "DEAD";
dead = true;
} else {
stateFreeze = 10;
stateSelect = "HURT";
};
multi = 1;
SANTA.gotoAndStop(stateSelect);
newShake();
} else {
multi++;
score = (score + (5 * multi));
if (_local2.tileType == 1){
_local2.sprite.CHIM.play();
tileArray[(_local1 + 1)].sprite.CHILD.gotoAndStop(2);
};
};
_local2.act = false;
} else {
if (_local2.x < -600){
TILES.removeChild(_local2);
delete tileArray[_local1];
tileArray.splice(_local1, 1);
_local1--;
};
};
};
_local1++;
};
safetyBuffer--;
MovieClip(root).HUD.score.text = score;
MovieClip(root).HUD.multi.text = ("x" + multi);
}
public function handleKeyDown(_arg1:KeyboardEvent):void{
if (_keys.indexOf(_arg1.keyCode) == -1){
_keys.push(_arg1.keyCode);
};
}
public function newTile(){
var _local1:MovieClip;
_local1 = new TILE1();
tileArray.push(_local1);
_local1.x = 400;
_local1.act = 0;
if ((((tutorialType > -2)) && ((jumpTile == true)))){
forceTile = (tutorialType + 5);
tutorialType--;
tutorialTimer = 60;
} else {
if (tutorialType == 0){
tutorialType--;
tutorialTimer = 60;
} else {
if (tutorialType == -1){
tutorialType--;
tutorialTimer = 60;
} else {
if (tutorialType == -2){
};
};
};
};
_local1.tileType = (forceTile - 5);
_local1.gotoAndStop(forceTile);
_local1.FLASHER.alpha = 0;
if (forceTile == 6){
forceTile = 9;
} else {
forceTile = Math.floor(((Math.random() * 5) + 1));
};
if (jumpTile == true){
_local1.act = 2;
INDI.gotoAndStop(_local1.tileType);
if (helpCounter > 0){
helpCounter--;
INDI.alpha = 1;
};
jumpTile = false;
};
TILES.addChild(_local1);
}
function frame1(){
this.visible = true;
_keys = new Array();
stage.addEventListener(KeyboardEvent.KEY_DOWN, this.handleKeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, this.handleKeyUp);
MovieClip(root).SOUND.gotoAndPlay(1);
addEventListener(Event.ENTER_FRAME, onEnterFrame);
sequence = new Array(535, 730, 926, 1122, 1318, 1367, 1417, 1466, 1514, 1563, 1612, 1662, 1687, 1711, 1760, 1809, 1857, 1906, 1955, 2005, 2053, 2078, 2104, 2152, 2201, 2250, 2300, 2348, 2397, 2447, 2472, 2495, 2543, 2593, 2642, 2692, 2740, 2789, 2839, 2863, 2888, 2936, 2960, 2987, 3036, 3060, 3085, 3134, 3157, 3182, 3232, 3256, 3280, 3299, 3476, 3494, 3673, 3693, 3723, 3771, 3820, 3869, 3917, 3966, 4015, 4064, 4091, 4115, 4163, 4188, 4211, 4263, 4286, 4310, 4360, 4386, 4408, 4458, 4483, 4506, 4554, 4604, 4629, 4653, 4702, 4727, 4751, 4801, 4825, 4849, 4899, 4923, 4960, 4996, 5022, 5046, 5094, 5119, 5144, 5195, 5219, 5242, 5292, 5316, 5340);
tOff = -5;
seqCount = 0;
counter = 0;
levelSpeed = 15;
eolDone = false;
tileArray = new Array();
TILES = new MovieClip();
helpCounter = 5;
forceTile = 1;
addChild(TILES);
SHADOW = new GAMESHADOW();
addChild(SHADOW);
GM = MovieClip(root).gameType;
lives = ((GM * 2) + 3);
i = 1;
while (i < 10) {
if (i > lives){
MovieClip(parent).HUD[("S" + i)].alpha = 0.2;
};
i++;
};
INDI.alpha = 0;
if (GM != 3){
INDI.visible = false;
};
MovieClip(parent).TUTORIAL.alpha = 0;
if (GM > 1){
MovieClip(parent).TUTORIAL.alpha = 1;
SHADOW.visible = false;
};
newTile();
chuteTimer = 140;
jumpTile = false;
safetyBuffer = 0;
stateFreeze = 1;
stateSelect = "RUN";
SANTA.gotoAndStop("CHUTE");
SANTA.y = (SANTA.y - 205);
SANTA.x = (SANTA.x - 200);
demoMode = false;
upKey = false;
rightKey = false;
downKey = false;
keyTaken = false;
tutorialType = 3;
tutorialTimer = 300;
score = 0;
multi = 1;
dead = false;
deadTimer = 100;
chuteTarg = 1;
spawnActive = 120;
chuteAim = 1;
stateArray = new Array("RUN", "DIVE", "JUMP", "DUCK");
scaleX = 1;
scaleY = 1;
C_FS = 1.1;
C_CU = 1.8;
C_ST = C_FS;
C_Off = new Point(0, 0);
C_OffT = new Point(0, 0);
C_OffD = new Point(0, 0);
C_OffZ = new Point(0, 0);
C_OffZT = new Point(0, 0);
C_OffZD = new Point(0, 0);
shakePower = 0;
shakeTimer = 0;
}
public function cameraControl(){
scaleX = (scaleX + (((C_ST - scaleX) + C_OffZ.x) / 50));
scaleY = scaleX;
}
public function onEnterFrame(_arg1:Event){
var t:Date;
var days:Number;
var e = _arg1;
if (dead == true){
SANTA.sprite.rotation = (SANTA.sprite.rotation + 10);
SANTA.x = (SANTA.x + levelSpeed);
SANTA.y = (SANTA.y - (deadTimer - 90));
deadTimer--;
if (deadTimer == -50){
exitGame();
};
} else {
tutorialTimer--;
if (tutorialTimer == 0){
MovieClip(root).TUTORIAL.nextFrame();
};
playerInput();
BG.x = (BG.x - (levelSpeed / 3));
if (BG.x < (-(BG.width) / 1.5)){
BG.x = (BG.x + (BG.width / 2));
};
BG2.x = (BG2.x - (levelSpeed / 6));
if (BG2.x < (-(BG2.width) / 1.5)){
BG2.x = (BG2.x + (BG2.width / 2));
};
updateTiles();
if (spawnActive > 0){
if ((tileArray[(tileArray.length - 1)].x - levelSpeed) < 300){
newTile();
};
} else {
if (spawnActive == -45){
stateFreeze = 10000;
SANTA.gotoAndStop("DIVE");
} else {
if (spawnActive == -60){
stateFreeze = 10000;
SANTA.gotoAndStop("CHUTE");
t = new Date();
days = (Math.floor((t.getTime() / 86400000)) - 14238);
EOL.days.text = (("" + days) + " Days late!");
EOL.score.text = (("" + score) + " Points!");
if (GM != 1){
EOL.enterName.x = (EOL.enterName.x + 1000000);
};
EOL.Exit.addEventListener(MouseEvent.MOUSE_DOWN, submitScore);
} else {
if (spawnActive < -60){
SANTA.x = (SANTA.x + 0.5);
SANTA.y = (SANTA.y - 0.5);
SHADOW.alpha = (SHADOW.alpha / 1.05);
if (SHADOW.alpha < 0.1){
SHADOW.y = (SHADOW.y - 10000);
};
EOL.y = (EOL.y + ((-100 - EOL.y) / 100));
};
};
};
};
seqCount++;
if (counter > (sequence.length - 1)){
spawnActive--;
};
if (seqCount == ((sequence[counter] + tOff) - 40)){
jumpTile = true;
forceTile = (Math.floor((Math.random() * 3)) + 6);
if (counter <= sequence.length){
counter++;
};
};
if (chuteTimer > 0){
chuteTarg = 1;
chuteTimer--;
SANTA.y = (SANTA.y + (200 / 140));
SANTA.x = (SANTA.x + (200 / 140));
} else {
chuteTarg = 0;
stateFreeze--;
if (stateFreeze == 0){
stateSelect = "RUN";
SANTA.gotoAndStop(stateSelect);
};
};
cameraControl();
controlShake();
};
}
public function destroyAS3Key(){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, this.handleKeyDown);
stage.removeEventListener(KeyboardEvent.KEY_UP, this.handleKeyUp);
}
public function angle(_arg1:int, _arg2:int, _arg3:int, _arg4:int){
return ((Math.round(((Math.atan2((_arg4 - _arg2), (_arg3 - _arg1)) / 3.141593) * 180)) + 90));
}
public function calcSpeed(_arg1:int=0, _arg2:int=10){
var _local3:Number;
var _local4:Point;
_local3 = (_arg1 * 0.01745329);
_local4 = new Point();
_local4.x = (_arg2 * Math.cos(_local3));
_local4.y = (_arg2 * Math.sin(_local3));
return (_local4);
}
public function checkKeys(){
if (demoMode == false){
upKey = ((isKeyPressed(87)) || (isKeyPressed(38)));
rightKey = ((isKeyPressed(68)) || (isKeyPressed(39)));
downKey = ((isKeyPressed(83)) || (isKeyPressed(40)));
};
}
public function pythag(_arg1:Object, _arg2:Object, _arg3:int){
return ((Math.sqrt((Math.pow((_arg1.y - _arg2.y), 2) + Math.pow((_arg1.x - _arg2.x), 2))) < _arg3));
}
public function rotatedXY(_arg1:Number, _arg2:Number, _arg3){
var _local4:Point;
var _local5:*;
var _local6:*;
var _local7:*;
_local4 = new Point();
_local5 = ((6.28 / 360) * _arg3.rotation);
_local6 = Math.sin(_local5);
_local7 = Math.cos(_local5);
_local4.x = (((_arg1 * _local7) - (_arg2 * _local6)) + _arg3.x);
_local4.y = (((_arg1 * _local6) + (_arg2 * _local7)) + _arg3.y);
return (_local4);
}
public function newShake(_arg1:Number=5, _arg2:int=5){
shakeTimer = _arg2;
shakePower = _arg1;
}
public function submitScore(_arg1:Event){
var dataOnLoad:Function;
var abrazor30Data:URLRequest;
var variables:URLVariables;
var verbs:Number;
var viper:String;
var loader:URLLoader;
var e = _arg1;
dataOnLoad = function (_arg1:Event){
loader.removeEventListener(Event.COMPLETE, dataOnLoad);
};
if (EOL.enterName.nam.text != ""){
EOL.Exit.removeEventListener(MouseEvent.MOUSE_DOWN, submitScore);
try {
abrazor30Data = new URLRequest("http://rankz.armorbot.com/submit/as3_v0.php");
abrazor30Data.method = URLRequestMethod.POST;
variables = new URLVariables();
variables.flashkey = "Q0FQUnpvV3g=";
variables.SU0249 = "MzIwNGolZSVhJW4lcw==";
variables.bmFtZTE = EOL.enterName.nam.text;
verbs = score;
viper = (verbs + "Z");
variables.c2NvcmUx = viper.split("0").join("U");
variables.c2NvcmUx = variables.c2NvcmUx.split("").join("A");
variables.c2NvcmUx = variables.c2NvcmUx.split("AU").join("Y");
variables.c2NvcmUx = variables.c2NvcmUx.split("A1").join("B");
variables.c2NvcmUx = variables.c2NvcmUx.split(".").join("N");
abrazor30Data.data = variables;
loader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.addEventListener(Event.COMPLETE, dataOnLoad);
loader.load(abrazor30Data);
} catch(error:Error) {
};
};
exitGame();
}
public function playerInput(){
checkKeys();
if (stateFreeze <= 0){
if (keyTaken == false){
if (upKey){
keyTaken = true;
stateFreeze = 20;
stateSelect = "JUMP";
SANTA.gotoAndStop(stateSelect);
};
if (rightKey){
keyTaken = true;
stateFreeze = 20;
stateSelect = "DIVE";
SANTA.gotoAndStop(stateSelect);
};
if (downKey){
keyTaken = true;
stateFreeze = 20;
stateSelect = "DUCK";
SANTA.gotoAndStop(stateSelect);
};
};
};
if ((((stateFreeze < 10)) && ((((upKey == rightKey) == downKey) == false)))){
keyTaken = false;
};
}
public function calcAngle(_arg1:int, _arg2:int){
return (angle(0, 0, _arg1, _arg2));
}
public function isKeyPressed(_arg1:int):Boolean{
return ((_keys.indexOf(_arg1) > -1));
}
public function controlShake(){
if (C_OffT.x == 0){
C_OffT.x = rand(200, 100);
C_OffD.x = (rand(100) - 50);
};
if (C_OffT.y == 0){
C_OffT.y = rand(200, 100);
C_OffD.y = (rand(100) - 50);
};
if (C_OffZT.x == 0){
C_OffZT.x = rand(200, 100);
C_OffZD.x = ((rand(100) - 50) / 200);
};
if (C_OffZT.y == 0){
C_OffZT.y = rand(100, 50);
C_OffZD.y = ((rand(50) - 25) / 10);
};
C_OffT.x--;
C_OffT.y--;
C_OffZT.x--;
C_OffZT.y--;
C_Off.x = (C_Off.x + ((C_OffD.x - C_Off.x) / 200));
C_Off.y = (C_Off.y + ((C_OffD.y - C_Off.y) / 200));
C_OffZ.x = (C_OffZ.x + ((C_OffZD.x - C_OffZ.x) / 200));
C_OffZ.y = (C_OffZ.y + ((C_OffZD.y - C_OffZ.y) / 200));
x = (x + (((300 + C_Off.x) - x) / 10));
y = (y + (((200 + C_Off.y) - y) / 10));
rotation = (rotation + (((0 + C_OffZ.y) - rotation) / 10));
shakePower = (shakePower / 1.05);
if (shakeTimer > 0){
shakeTimer--;
x = ((rand(shakePower) - (shakePower / 2)) + 275);
y = ((rand(shakePower) - (shakePower / 2)) + 200);
};
}
public function reduceVar(_arg1:Number=0, _arg2:Number=1.1){
return ((_arg1 / _arg2));
}
}
}//package SANTAMARATHON_fla
Section 7
//Highscores_52 (SANTAMARATHON_fla.Highscores_52)
package SANTAMARATHON_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.net.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Highscores_52 extends MovieClip {
public var rankz_n10:TextField;
public var backBut:SimpleButton;
public var rankz_v10:TextField;
public var loader:URLLoader;
public var rankz_v5:TextField;
public var rankz_v6:TextField;
public var rankz_n2:TextField;
public var rankz_n4:TextField;
public var rankz_n5:TextField;
public var rankz_n6:TextField;
public var rankz_n7:TextField;
public var rankz_n3:TextField;
public var rankz_v7:TextField;
public var rankz_v3:TextField;
public var rankz_v4:TextField;
public var rankz_v9:TextField;
public var rankz_v2:TextField;
public var variables:URLVariables;
public var rankz_n8:TextField;
public var rankz_v8:TextField;
public var rankz_v1:TextField;
public var abrazor30Data:URLRequest;
public var rankz_n9:TextField;
public var rankz_n1:TextField;
public function Highscores_52(){
addFrameScript(0, frame1);
}
function frame1(){
abrazor30Data = new URLRequest("http://rankz.armorbot.com/get/top10.php");
abrazor30Data.method = URLRequestMethod.POST;
variables = new URLVariables();
variables.flashkey = "Q0FQUnpvV3g=";
variables.SU0249 = "MzIwNGolZSVhJW4lcw==";
abrazor30Data.data = variables;
loader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.addEventListener(Event.COMPLETE, dataOnLoad);
loader.load(abrazor30Data);
backBut.addEventListener(MouseEvent.MOUSE_DOWN, omd);
}
public function omd(_arg1:Event){
backBut.removeEventListener(MouseEvent.MOUSE_DOWN, omd);
MovieClip(root).transistion("TITLE");
}
public function dataOnLoad(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:*;
loader.removeEventListener(Event.COMPLETE, dataOnLoad);
_local2 = loader.data.substring(6, loader.data.length).split("<u/*/u>");
_local3 = 0;
while (_local3 < _local2.length) {
_local4 = _local2[_local3].split("</*/>");
this[("rankz_n" + (_local3 + 1))].text = _local4[0];
this[("rankz_v" + (_local3 + 1))].text = _local4[1];
_local3++;
};
}
}
}//package SANTAMARATHON_fla
Section 8
//HUD_51 (SANTAMARATHON_fla.HUD_51)
package SANTAMARATHON_fla {
import flash.display.*;
import flash.text.*;
public dynamic class HUD_51 extends MovieClip {
public var S1:MovieClip;
public var S2:MovieClip;
public var S6:MovieClip;
public var S7:MovieClip;
public var S8:MovieClip;
public var multi:TextField;
public var S4:MovieClip;
public var S3:MovieClip;
public var S5:MovieClip;
public var S9:MovieClip;
public var score:TextField;
}
}//package SANTAMARATHON_fla
Section 9
//INDICATOR_42 (SANTAMARATHON_fla.INDICATOR_42)
package SANTAMARATHON_fla {
import flash.display.*;
public dynamic class INDICATOR_42 extends MovieClip {
public function INDICATOR_42(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SANTAMARATHON_fla
Section 10
//MainTimeline (SANTAMARATHON_fla.MainTimeline)
package SANTAMARATHON_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.ui.*;
public dynamic class MainTimeline extends MovieClip {
public var HS:MovieClip;
public var TITLEM:MovieClip;
public var BG:MovieClip;
public var FADER:MovieClip;
public var myContextMenu:ContextMenu;
public var TUTORIAL:MovieClip;
public var playB:MovieClip;
public var BG2:MovieClip;
public var HUD:MovieClip;
public var plb:MovieClip;
public var SOUND:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 5, frame6, 6, frame7);
}
public function CF(_arg1:Event){
if (FADER.alpha > 0){
FADER.scaleX = 1;
FADER.alpha = (FADER.alpha - 0.1);
} else {
FADER.scaleX = 0;
};
}
function frame7(){
stop();
TITLEM.gotoAndStop(1);
}
function frame1(){
stop();
playB.visible = false;
addEventListener(Event.ENTER_FRAME, preLoader);
myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
contextMenu = myContextMenu;
}
function frame6(){
addEventListener(Event.ENTER_FRAME, CF);
stop();
SOUND.gotoAndStop(1);
TITLEM.gotoAndPlay(2);
}
function frame2(){
stop();
}
public function preLoader(_arg1:Event){
var _local2:*;
var _local3:*;
_local2 = stage.loaderInfo.bytesTotal;
_local3 = stage.loaderInfo.bytesLoaded;
plb.scaleX = ((1 / _local2) * _local3);
if (_local3 >= _local2){
removeEventListener(Event.ENTER_FRAME, preLoader);
play();
};
}
public function transistion(_arg1){
FADER.alpha = 2;
FADER.scaleX = 1;
gotoAndStop(_arg1);
}
public function gotoLink(_arg1){
var url:String;
var request:URLRequest;
var targ = _arg1;
url = targ;
request = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
};
}
}
}//package SANTAMARATHON_fla
Section 11
//MENU_17 (SANTAMARATHON_fla.MENU_17)
package SANTAMARATHON_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.net.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MENU_17 extends MovieClip {
public var HF:SimpleButton;
public var AG:SimpleButton;
public var CR:SimpleButton;
public var gameC:SimpleButton;
public var MD:MovieClip;
public var gameE:SimpleButton;
public var gameN:SimpleButton;
public function MENU_17(){
addFrameScript(0, frame1);
}
public function oMU(_arg1:Event){
var _local2:Boolean;
var _local3:String;
MD.x = mouseX;
MD.y = mouseY;
_local2 = false;
_local3 = "";
if (MD.hitTestObject(gameE)){
MovieClip(root).gameType = 3;
_local3 = "GAME";
_local2 = true;
};
if (MD.hitTestObject(gameN)){
MovieClip(root).gameType = 2;
_local3 = "GAME";
_local2 = true;
};
if (MD.hitTestObject(gameC)){
MovieClip(root).gameType = 1;
_local3 = "GAME";
_local2 = true;
};
if (MD.hitTestObject(HF)){
_local3 = "SCORES";
_local2 = true;
};
if (MD.hitTestObject(CR)){
_local3 = "ABOUT";
_local2 = true;
};
if (MD.hitTestObject(AG)){
MovieClip(root).gotoLink("http://www.armorgames.com");
};
if (_local2 == true){
stage.removeEventListener(MouseEvent.MOUSE_UP, oMU);
MovieClip(root).transistion(_local3);
};
}
function frame1(){
stage.addEventListener(MouseEvent.MOUSE_UP, oMU);
}
}
}//package SANTAMARATHON_fla
Section 12
//playB_7 (SANTAMARATHON_fla.playB_7)
package SANTAMARATHON_fla {
import flash.display.*;
public dynamic class playB_7 extends MovieClip {
public var playB:SimpleButton;
}
}//package SANTAMARATHON_fla
Section 13
//RandomWindow_57 (SANTAMARATHON_fla.RandomWindow_57)
package SANTAMARATHON_fla {
import flash.display.*;
public dynamic class RandomWindow_57 extends MovieClip {
public function RandomWindow_57(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
stop();
if ((Math.random() * 10) < 1){
visible = true;
gotoAndStop(Math.ceil((Math.random() * 5)));
};
}
}
}//package SANTAMARATHON_fla
Section 14
//SADCHILD_63 (SANTAMARATHON_fla.SADCHILD_63)
package SANTAMARATHON_fla {
import flash.display.*;
public dynamic class SADCHILD_63 extends MovieClip {
public function SADCHILD_63(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SANTAMARATHON_fla
Section 15
//SANTA_29 (SANTAMARATHON_fla.SANTA_29)
package SANTAMARATHON_fla {
import flash.display.*;
public dynamic class SANTA_29 extends MovieClip {
public var CHUTE:MovieClip;
public var sprite:MovieClip;
public function SANTA_29(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SANTAMARATHON_fla
Section 16
//SantaDive_36 (SANTAMARATHON_fla.SantaDive_36)
package SANTAMARATHON_fla {
import flash.display.*;
public dynamic class SantaDive_36 extends MovieClip {
public function SantaDive_36(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package SANTAMARATHON_fla
Section 17
//TILE_CHILD_62 (SANTAMARATHON_fla.TILE_CHILD_62)
package SANTAMARATHON_fla {
import flash.display.*;
public dynamic class TILE_CHILD_62 extends MovieClip {
public var CHILD:MovieClip;
}
}//package SANTAMARATHON_fla
Section 18
//TILE_CHIMNEY_59 (SANTAMARATHON_fla.TILE_CHIMNEY_59)
package SANTAMARATHON_fla {
import flash.display.*;
public dynamic class TILE_CHIMNEY_59 extends MovieClip {
public var CHIM:MovieClip;
}
}//package SANTAMARATHON_fla
Section 19
//TITLEMUSIC_24 (SANTAMARATHON_fla.TITLEMUSIC_24)
package SANTAMARATHON_fla {
import flash.display.*;
public dynamic class TITLEMUSIC_24 extends MovieClip {
public function TITLEMUSIC_24(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SANTAMARATHON_fla
Section 20
//Titlesparkle_21 (SANTAMARATHON_fla.Titlesparkle_21)
package SANTAMARATHON_fla {
import flash.display.*;
public dynamic class Titlesparkle_21 extends MovieClip {
public function Titlesparkle_21(){
addFrameScript(0, frame1, 31, frame32);
}
function frame1(){
gotoAndPlay(Math.ceil((Math.random() * 30)));
}
function frame32(){
gotoAndPlay(2);
}
}
}//package SANTAMARATHON_fla
Section 21
//TUTORIAL_47 (SANTAMARATHON_fla.TUTORIAL_47)
package SANTAMARATHON_fla {
import flash.events.*;
import flash.display.*;
public dynamic class TUTORIAL_47 extends MovieClip {
public var CHIM:MovieClip;
public var c:int;
public function TUTORIAL_47(){
addFrameScript(0, frame1, 1, frame2, 4, frame5);
}
function frame1(){
stop();
}
function frame5(){
addEventListener(Event.ENTER_FRAME, EF);
c = 0;
}
function frame2(){
stop();
}
public function EF(_arg1:Event){
c++;
if (c == 180){
visible = false;
removeEventListener(Event.ENTER_FRAME, EF);
};
}
}
}//package SANTAMARATHON_fla
Section 22
//GAMESHADOW (GAMESHADOW)
package {
import flash.display.*;
public dynamic class GAMESHADOW extends MovieClip {
}
}//package
Section 23
//TILE1 (TILE1)
package {
import flash.display.*;
public dynamic class TILE1 extends MovieClip {
public var FLASHER:MovieClip;
public var sprite:MovieClip;
}
}//package