Section 1
//barholder_26 (santa_fla.barholder_26)
package santa_fla {
import flash.display.*;
import flash.text.*;
public dynamic class barholder_26 extends MovieClip {
public var bar:MovieClip;
public var leveltxt:TextField;
public var scoretxt:TextField;
}
}//package santa_fla
Section 2
//credits_20 (santa_fla.credits_20)
package santa_fla {
import flash.display.*;
public dynamic class credits_20 extends MovieClip {
public var ugobtn2:SimpleButton;
public var djbtn:SimpleButton;
public var ugobtn:SimpleButton;
public var returnbtn:SimpleButton;
public var sdbtn:SimpleButton;
public var prankardbtn:SimpleButton;
}
}//package santa_fla
Section 3
//instructions_14 (santa_fla.instructions_14)
package santa_fla {
import flash.display.*;
public dynamic class instructions_14 extends MovieClip {
public var startbtn:SimpleButton;
}
}//package santa_fla
Section 4
//item_cranberry_17 (santa_fla.item_cranberry_17)
package santa_fla {
import flash.display.*;
public dynamic class item_cranberry_17 extends MovieClip {
public function item_cranberry_17(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(Math.ceil((Math.random() * 4)));
}
}
}//package santa_fla
Section 5
//main_21 (santa_fla.main_21)
package santa_fla {
import flash.display.*;
public dynamic class main_21 extends MovieClip {
public var highscorepagebtn:SimpleButton;
public var moregamesbtn:SimpleButton;
public var sumobtn:SimpleButton;
public var creditsbtn:SimpleButton;
public var instructionsbtn:SimpleButton;
}
}//package santa_fla
Section 6
//MainTimeline (santa_fla.MainTimeline)
package santa_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var varUp:Boolean;
public var enemy1Array:Array;
public var xspd:Number;
public var boundry:int;
public var varDown:Boolean;
public var dieSound:deadSound;
public var intro:MovieClip;
public var preloader:MovieClip;
public var acc:Number;
public var yspd:Number;
public var foodcont:MovieClip;
public var score:int;
public var endmoregamesbtn:SimpleButton;
public var enemycont:MovieClip;
public var loopSound:runaway;
public var step:int;
public var enemy2Array:Array;
public var step2:int;
public var soundbtn:SimpleButton;
public var replaybtn:SimpleButton;
public var titles:MovieClip;
public var varRight:Boolean;
public var vomitSound:sickSound;
public var namebox:TextField;
public var sickcont:MovieClip;
public var walking:Boolean;
public var barholder:MovieClip;
public var sumo:MovieClip;
public var level:int;
public var levelscore:Number;
public var plusSound:scoreSound;
public var maxspd:Number;
public var noSound:Boolean;
public var submitholder:MovieClip;
public var varLeft:Boolean;
public var loopChannel:SoundChannel;
public var randomnumber:int;
public var soundOff:MovieClip;
public var levelSound:levelPlus;
public var scorebox:TextField;
public var sentscore:Boolean;
public var stepcont:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
public function enemymove2(_arg1:Event):void{
_arg1.target.x = (_arg1.target.x + _arg1.target.xspd);
_arg1.target.y = (_arg1.target.y + _arg1.target.yspd);
if (_arg1.target.hitTestObject(sumo)){
_arg1.target.parent.removeChild(_arg1.target);
createenemy();
_arg1.target.removeEventListener("enterFrame", enemymove2);
levelscore = (levelscore - (Math.pow(level, 1.5) * 2.5));
score = (score - _arg1.target.worth);
if (score < 0){
score = 0;
};
if (!noSound){
vomitSound.play();
};
addsick();
};
if ((((((((_arg1.target.x < -5)) || ((_arg1.target.x > 555)))) || ((_arg1.target.y < -5)))) || ((_arg1.target.y > 405)))){
_arg1.target.parent.removeChild(_arg1.target);
createenemy();
_arg1.target.removeEventListener("enterFrame", enemymove2);
};
}
public function sendscore():void{
var _local1:URLRequest;
var _local2:URLRequest;
var _local3:URLVariables;
var _local4:Number;
var _local5:String;
_local1 = new URLRequest("http://rankz.armorbot.com/fatsanta/");
_local2 = new URLRequest("http://rankz.armorbot.com/submit/as3_v0.php");
_local2.method = URLRequestMethod.POST;
_local3 = new URLVariables();
_local3.flashkey = "T0hma2pZZnM=";
_local3.SU0249 = "MjAzOWolZSVhJW4lcw==";
_local3.bmFtZTE = namebox.text;
_local4 = score;
_local5 = (_local4 + "Z");
_local3.c2NvcmUx = _local5.split("0").join("U");
_local3.c2NvcmUx = _local3.c2NvcmUx.split("").join("A");
_local3.c2NvcmUx = _local3.c2NvcmUx.split("AU").join("Y");
_local3.c2NvcmUx = _local3.c2NvcmUx.split("A1").join("B");
_local3.c2NvcmUx = _local3.c2NvcmUx.split(".").join("N");
_local3.c2NvcmUy = level;
_local2.data = _local3;
sendToURL(_local2);
navigateToURL(_local1, "_blank");
}
public function createenemy():void{
var _local1:*;
trace(numChildren);
_local1 = new enemy2();
_local1.scaleX = (_local1.scaleX * (1 + (level / 5)));
_local1.scaleY = _local1.scaleX;
if (_local1.xspd < 0){
_local1.scaleX = -(_local1.scaleX);
};
enemycont.addChild(_local1);
enemy2Array.push(_local1);
_local1.addEventListener("enterFrame", enemymove2);
}
public function prankardclicker(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.prankard.com");
navigateToURL(_local2, "_blank");
}
public function moregamesclicker(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com");
navigateToURL(_local2, "_blank");
}
public function sumoclicker(_arg1:MouseEvent):void{
removeTitles();
gotoAndStop(4);
}
public function soundclicker(_arg1:MouseEvent):void{
if (noSound){
soundOff.visible = false;
noSound = false;
loopChannel = loopSound.play(0, 9999);
} else {
soundOff.visible = true;
noSound = true;
loopChannel.stop();
};
}
public function keyUps(_arg1:KeyboardEvent){
if (_arg1.keyCode == 39){
varRight = false;
};
if (_arg1.keyCode == 38){
varUp = false;
};
if (_arg1.keyCode == 37){
varLeft = false;
};
if (_arg1.keyCode == 40){
varDown = false;
};
}
public function creditsclicker(_arg1:MouseEvent):void{
titles.gotoAndPlay("tocredits");
}
function frame3(){
stop();
soundOff.visible = false;
noSound = false;
loopSound = new runaway();
soundbtn.addEventListener("click", soundclicker);
loopChannel = loopSound.play(0, 9999);
titles.main.sumobtn.addEventListener("click", sumoclicker);
titles.main.instructionsbtn.addEventListener("click", instructionsclicker);
titles.main.moregamesbtn.addEventListener("click", moregamesclicker);
titles.main.highscorepagebtn.addEventListener("click", highscorepageclicker);
titles.main.creditsbtn.addEventListener("click", creditsclicker);
titles.credits.returnbtn.addEventListener("click", returnclicker);
titles.credits.sdbtn.addEventListener("click", sdclicker);
titles.credits.prankardbtn.addEventListener("click", prankardclicker);
titles.credits.djbtn.addEventListener("click", djclicker);
titles.credits.ugobtn.addEventListener("click", moregamesclicker);
titles.credits.ugobtn2.addEventListener("click", moregamesclicker);
titles.instructions.startbtn.addEventListener("click", startclicker);
}
function frame4(){
stage.addEventListener("keyDown", checkKeys);
stage.addEventListener("keyUp", keyUps);
stage.addEventListener("enterFrame", spaceshipmove);
stop();
score = 0;
levelscore = 0;
level = 1;
varRight = false;
varLeft = false;
varUp = false;
varDown = false;
yspd = 0;
acc = 1;
maxspd = 7;
xspd = 0;
step = 0;
step2 = 3;
randomnumber = 0;
walking = false;
boundry = 50;
enemy1Array = new Array();
enemy2Array = new Array();
foodcont = new MovieClip();
enemycont = new MovieClip();
sickcont = new MovieClip();
stepcont = new MovieClip();
addChildAt(stepcont, getChildIndex(sumo));
addChild(foodcont);
addChild(enemycont);
addChildAt(sickcont, getChildIndex(sumo));
setChildIndex(barholder, (numChildren - 1));
vomitSound = new sickSound();
dieSound = new deadSound();
plusSound = new scoreSound();
levelSound = new levelPlus();
createfood();
createfood();
createfood();
createfood();
createfood();
createfood();
createenemy();
}
function frame5(){
scorebox.text = (score + "");
sentscore = false;
replaybtn.addEventListener("click", replayclicker);
endmoregamesbtn.addEventListener("click", moregamesclicker);
submitholder.submit.submitbtn.addEventListener("click", submitclicker);
}
function frame1(){
stop();
this.addEventListener("enterFrame", load_bar);
}
public function replayclicker(_arg1:MouseEvent):void{
removeEndTitles();
gotoAndStop(4);
}
function frame2(){
stop();
this.addEventListener(Event.ENTER_FRAME, enterFrameIntro);
}
public function highscorepageclicker(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://rankz.armorbot.com/fatsanta/");
navigateToURL(_local2, "_blank");
}
public function removeTitles():void{
titles.main.sumobtn.removeEventListener("click", sumoclicker);
titles.main.instructionsbtn.removeEventListener("click", instructionsclicker);
titles.main.moregamesbtn.removeEventListener("click", moregamesclicker);
titles.main.creditsbtn.removeEventListener("click", creditsclicker);
titles.main.highscorepagebtn.removeEventListener("click", highscorepageclicker);
titles.credits.returnbtn.removeEventListener("click", returnclicker);
titles.instructions.startbtn.removeEventListener("click", startclicker);
titles.credits.prankardbtn.removeEventListener("click", prankardclicker);
titles.credits.djbtn.removeEventListener("click", djclicker);
titles.credits.ugobtn.removeEventListener("click", moregamesclicker);
titles.credits.ugobtn2.removeEventListener("click", moregamesclicker);
titles.credits.sdbtn.removeEventListener("click", sdclicker);
}
public function sdclicker(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.sounddogs.com/");
navigateToURL(_local2, "_blank");
}
public function djclicker(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://thehappysheep.newgrounds.com/");
navigateToURL(_local2, "_blank");
}
public function instructionsclicker(_arg1:MouseEvent):void{
titles.gotoAndPlay("toinstructions");
}
public function returnclicker(_arg1:MouseEvent):void{
titles.gotoAndPlay("fromcredits");
}
public function spaceshipmove(_arg1:Event):void{
var _local2:*;
var _local3:*;
barholder.scoretxt.text = score;
barholder.leveltxt.text = level;
barholder.bar.scaleX = (levelscore / (Math.pow(level, 1.5) * 10));
if (levelscore >= (Math.pow(level, 1.5) * 10)){
if (!noSound){
levelSound.play();
};
level++;
levelscore = 0;
createfood();
createenemy();
sumo.scaleX = (sumo.scaleX * 1.1);
sumo.scaleY = sumo.scaleX;
boundry = (boundry * 1.1);
};
step++;
step2++;
if (step > 6){
if ((((Math.abs(yspd) > (maxspd / 2))) || ((Math.abs(xspd) > (maxspd / 2))))){
_local2 = new stepClass();
_local2.x = sumo.x;
_local2.y = sumo.y;
_local2.rotation = sumo.rotation;
_local2.scaleX = 1;
_local2.addEventListener("enterFrame", stepFade);
stepcont.addChild(_local2);
step = 0;
};
} else {
if (step2 > 6){
if ((((Math.abs(yspd) > (maxspd / 2))) || ((Math.abs(xspd) > (maxspd / 2))))){
_local3 = new stepClass();
_local3.x = sumo.x;
_local3.y = sumo.y;
_local3.rotation = sumo.rotation;
_local3.scaleX = -1;
trace(_local3.alpha);
_local3.addEventListener("enterFrame", stepFade);
stepcont.addChild(_local3);
step2 = 0;
};
};
};
if (varRight == true){
if (xspd < maxspd){
xspd = (xspd + acc);
};
} else {
if (varLeft == true){
if (xspd > -(maxspd)){
xspd = (xspd - acc);
};
} else {
if (xspd > 0){
xspd = (xspd - (acc / 2));
} else {
xspd = (xspd + (acc / 2));
};
if ((((xspd > -1)) && ((xspd < 1)))){
xspd = 0;
};
};
};
if (varUp == true){
if (yspd < maxspd){
yspd = (yspd + acc);
};
} else {
if (varDown == true){
if (yspd > -(maxspd)){
yspd = (yspd - acc);
};
} else {
if (yspd > 0){
yspd = (yspd - (acc / 2));
} else {
yspd = (yspd + (acc / 2));
};
if ((((yspd > -1)) && ((yspd < 1)))){
yspd = 0;
};
};
};
if ((sumo.y + (sumo.height / 2)) < (30 + boundry)){
if (yspd > 0){
yspd = 0;
};
} else {
if ((sumo.y - (sumo.height / 2)) > (400 - boundry)){
if (yspd < 0){
yspd = 0;
};
};
};
if ((sumo.x + (sumo.width / 2)) < boundry){
if (xspd < 0){
xspd = 0;
};
} else {
if ((sumo.x - (sumo.width / 2)) > (550 - boundry)){
if (xspd > 0){
xspd = 0;
};
};
};
sumo.x = (sumo.x + xspd);
sumo.y = (sumo.y - yspd);
if ((((!(yspd) == 0)) || ((!(xspd) == 0)))){
walking = true;
} else {
walking = false;
};
if (walking == true){
sumo.char.play();
} else {
sumo.char.stop();
};
if (xspd > 0){
if (yspd > 0){
sumo.rotation = 45;
} else {
if (yspd < 0){
sumo.rotation = 135;
} else {
sumo.rotation = 90;
};
};
} else {
if (xspd < 0){
if (yspd > 0){
sumo.rotation = 315;
} else {
if (yspd < 0){
sumo.rotation = 225;
} else {
sumo.rotation = 270;
};
};
} else {
if (yspd > 0){
sumo.rotation = 0;
} else {
if (yspd < 0){
sumo.rotation = 180;
};
};
};
};
if (levelscore < 0){
trace("dead");
if (!noSound){
dieSound.play();
};
gameover();
};
}
public function submitclicker(_arg1:MouseEvent):void{
if (namebox.text !== "name here"){
if (sentscore == false){
sendscore();
submitholder.play();
sentscore = true;
};
};
}
public function load_bar(_arg1:Event){
preloader.lbar.scaleX = (this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal);
trace(((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 100));
if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal){
gotoAndStop(2);
this.removeEventListener("enterFrame", load_bar);
};
}
public function checkKeys(_arg1:KeyboardEvent){
if (_arg1.keyCode == 39){
varRight = true;
};
if (_arg1.keyCode == 38){
varUp = true;
};
if (_arg1.keyCode == 37){
varLeft = true;
};
if (_arg1.keyCode == 40){
varDown = true;
};
}
public function createfood():void{
var _local1:*;
_local1 = new enemy1();
_local1.scaleX = (_local1.scaleX * (1 + (level / 5)));
_local1.scaleY = _local1.scaleX;
if (_local1.xspd < 0){
_local1.scaleX = -(_local1.scaleX);
};
foodcont.addChild(_local1);
enemy1Array.push(_local1);
_local1.addEventListener("enterFrame", enemymove);
}
public function addsick():void{
var _local1:*;
_local1 = new sickClass();
_local1.scaleX = (-(sumo.scaleX) * 1.5);
_local1.scaleY = (sumo.scaleY * 1.5);
_local1.x = sumo.x;
_local1.y = sumo.y;
_local1.rotation = (sumo.rotation - 180);
sickcont.addChild(_local1);
_local1.addEventListener("enterFrame", fadesick);
}
public function enemymove(_arg1:Event):void{
_arg1.target.x = (_arg1.target.x + _arg1.target.xspd);
_arg1.target.y = (_arg1.target.y + _arg1.target.yspd);
if (_arg1.target.hitTestObject(sumo)){
if (!noSound){
plusSound.play();
};
_arg1.target.parent.removeChild(_arg1.target);
createfood();
_arg1.target.removeEventListener("enterFrame", enemymove);
levelscore = (levelscore + _arg1.target.worth);
score = (score + _arg1.target.worth);
};
if ((((((((_arg1.target.x < -5)) || ((_arg1.target.x > 555)))) || ((_arg1.target.y < -5)))) || ((_arg1.target.y > 405)))){
_arg1.target.parent.removeChild(_arg1.target);
createfood();
_arg1.target.removeEventListener("enterFrame", enemymove);
};
}
public function stepFade(_arg1:Event):void{
if (_arg1.target.alpha < 0.05){
_arg1.target.parent.removeChild(_arg1.target);
_arg1.target.removeEventListener("enterFrame", stepFade);
} else {
_arg1.target.alpha = (_arg1.target.alpha - 0.01);
};
}
public function startclicker(_arg1:MouseEvent):void{
removeTitles();
gotoAndStop(4);
}
public function removeEndTitles():void{
replaybtn.removeEventListener("click", replayclicker);
submitholder.submit.submitbtn.removeEventListener("click", submitclicker);
endmoregamesbtn.removeEventListener("click", moregamesclicker);
}
public function fadesick(_arg1:Event):void{
_arg1.target.alpha = (_arg1.target.alpha - 0.02);
if (_arg1.target.alpha < 0.05){
_arg1.target.removeEventListener("enterFrame", fadesick);
_arg1.target.parent.removeChild(_arg1.target);
};
}
public function gameover():void{
var _local1:int;
stage.removeEventListener("keyDown", checkKeys);
stage.removeEventListener("keyUp", keyUps);
stage.removeEventListener("enterFrame", spaceshipmove);
_local1 = 0;
while (_local1 < enemy1Array.length) {
enemy1Array[_local1].removeEventListener("enterFrame", enemymove);
_local1++;
};
_local1 = 0;
while (_local1 < enemy2Array.length) {
enemy2Array[_local1].removeEventListener("enterFrame", enemymove2);
_local1++;
};
removeChild(foodcont);
removeChild(enemycont);
removeChild(sickcont);
removeChild(barholder);
removeChild(stepcont);
while (stepcont.numChildren > 0) {
stepcont.getChildAt(0).removeEventListener("enterFrame", stepFade);
stepcont.removeChildAt(0);
};
while (sickcont.numChildren > 0) {
sickcont.getChildAt(0).removeEventListener("enterFrame", fadesick);
sickcont.removeChildAt(0);
};
gotoAndStop("dead");
}
public function enterFrameIntro(_arg1:Event):void{
if (intro.currentFrame == intro.totalFrames){
this.removeEventListener(Event.ENTER_FRAME, enterFrameIntro);
nextFrame();
};
}
}
}//package santa_fla
Section 7
//Soundholder_22 (santa_fla.Soundholder_22)
package santa_fla {
import flash.display.*;
public dynamic class Soundholder_22 extends MovieClip {
public function Soundholder_22(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package santa_fla
Section 8
//Sponsor_6 (santa_fla.Sponsor_6)
package santa_fla {
import flash.display.*;
import flash.net.*;
public dynamic class Sponsor_6 extends MovieClip {
public var clicktagbtn:SimpleButton;
public function Sponsor_6(){
addFrameScript(0, frame1);
}
function frame1(){
nielsen("game_intro");
}
public function nielsen(_arg1){
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:URLRequest;
var _local6:Loader;
_local2 = "us-ugo";
_local3 = "ugoplayer_flashgames";
_local4 = escape(_arg1);
_local5 = new URLRequest(((((((("http://secure-us.imrworldwide.com/cgi-bin/m?ci=" + _local2) + "&cg=") + _local3) + "&si=") + _local4) + "&rnd=") + Math.ceil((Math.random() * 100000000))));
_local6 = new Loader();
_local6.load(_local5);
addChild(_local6);
}
}
}//package santa_fla
Section 9
//submit_38 (santa_fla.submit_38)
package santa_fla {
import flash.display.*;
public dynamic class submit_38 extends MovieClip {
public var submitbtn:SimpleButton;
}
}//package santa_fla
Section 10
//submitholder_37 (santa_fla.submitholder_37)
package santa_fla {
import flash.display.*;
public dynamic class submitholder_37 extends MovieClip {
public var submit:MovieClip;
public function submitholder_37(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package santa_fla
Section 11
//Symbol1_28 (santa_fla.Symbol1_28)
package santa_fla {
import flash.display.*;
public dynamic class Symbol1_28 extends MovieClip {
public var char:MovieClip;
public function Symbol1_28(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package santa_fla
Section 12
//Symbol11_2 (santa_fla.Symbol11_2)
package santa_fla {
import flash.display.*;
public dynamic class Symbol11_2 extends MovieClip {
public var lbar:MovieClip;
}
}//package santa_fla
Section 13
//Symbol12_5 (santa_fla.Symbol12_5)
package santa_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Symbol12_5 extends MovieClip {
public var sponsor:MovieClip;
public var preloader:MovieClip;
public function Symbol12_5(){
addFrameScript(20, frame21, 108, frame109, 118, frame119);
}
function frame109(){
sponsor.clicktagbtn.removeEventListener("click", sponsorclicker);
}
function frame21(){
sponsor.clicktagbtn.addEventListener("click", sponsorclicker);
}
function frame119(){
stop();
}
public function sponsorclicker(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com");
navigateToURL(_local2, "_blank");
}
}
}//package santa_fla
Section 14
//titles_10 (santa_fla.titles_10)
package santa_fla {
import flash.display.*;
public dynamic class titles_10 extends MovieClip {
public var credits:MovieClip;
public var instructions:MovieClip;
public var main:MovieClip;
public function titles_10(){
addFrameScript(0, frame1, 14, frame15, 29, frame30, 44, frame45);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
function frame30(){
gotoAndStop(1);
}
function frame45(){
stop();
}
}
}//package santa_fla
Section 15
//txt_7 (santa_fla.txt_7)
package santa_fla {
import flash.display.*;
public dynamic class txt_7 extends MovieClip {
public function txt_7(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package santa_fla
Section 16
//deadSound (deadSound)
package {
import flash.media.*;
public dynamic class deadSound extends Sound {
}
}//package
Section 17
//enemy1 (enemy1)
package {
import flash.display.*;
public class enemy1 extends MovieClip {
public var xspd:Number;// = 0
public var worth:int;
public var yspd:Number;// = 0
public var randomnumber:int;
public function enemy1():void{
worth = ((Math.random() * 3) + 1);
randomnumber = (Math.random() * 4);
yspd = 0;
xspd = 0;
super();
gotoAndStop(Math.ceil((Math.random() * 4)));
scaleX = 0.3;
scaleY = scaleX;
scaleX = (scaleX * (1 + (worth / 4)));
scaleY = (scaleY * (1 + (worth / 4)));
if (randomnumber < 1){
x = ((Math.random() * 500) + width);
y = 0;
yspd = (worth * 1.5);
rotation = 180;
} else {
if (randomnumber < 2){
x = ((Math.random() * 500) + width);
y = 400;
yspd = (-(worth) * 1.5);
} else {
if (randomnumber < 3){
x = 0;
y = (((Math.random() * 320) + height) + 30);
xspd = (worth * 1.5);
rotation = 90;
} else {
x = 550;
y = (((Math.random() * 320) + height) + 30);
xspd = (-(worth) * 1.5);
rotation = 90;
scaleX = -(scaleX);
};
};
};
}
}
}//package
Section 18
//enemy2 (enemy2)
package {
import flash.display.*;
public class enemy2 extends MovieClip {
public var xspd:Number;// = 0
public var worth:int;
public var yspd:Number;// = 0
public var randomnumber:int;
public function enemy2():void{
worth = ((Math.random() * 3) + 1);
randomnumber = (Math.random() * 4);
yspd = 0;
xspd = 0;
super();
scaleX = 0.3;
scaleY = scaleX;
scaleX = (scaleX * (1 + (3 / 4)));
scaleY = (scaleY * (1 + (3 / 4)));
if (randomnumber < 1){
x = ((Math.random() * 500) + width);
y = 0;
yspd = (worth * 1.5);
rotation = 180;
} else {
if (randomnumber < 2){
x = ((Math.random() * 500) + width);
y = 400;
yspd = (-(worth) * 1.5);
} else {
if (randomnumber < 3){
x = 0;
y = ((Math.random() * 350) + height);
xspd = (worth * 1.5);
rotation = 90;
} else {
x = 550;
y = ((Math.random() * 350) + height);
xspd = (-(worth) * 1.5);
rotation = 90;
scaleX = -(scaleX);
};
};
};
}
}
}//package
Section 19
//levelPlus (levelPlus)
package {
import flash.media.*;
public dynamic class levelPlus extends Sound {
}
}//package
Section 20
//runaway (runaway)
package {
import flash.media.*;
public dynamic class runaway extends Sound {
}
}//package
Section 21
//scoreSound (scoreSound)
package {
import flash.media.*;
public dynamic class scoreSound extends Sound {
}
}//package
Section 22
//sickClass (sickClass)
package {
import flash.display.*;
public dynamic class sickClass extends MovieClip {
public function sickClass(){
addFrameScript(3, frame4);
}
function frame4(){
stop();
}
}
}//package
Section 23
//sickSound (sickSound)
package {
import flash.media.*;
public dynamic class sickSound extends Sound {
}
}//package
Section 24
//stepClass (stepClass)
package {
import flash.display.*;
public dynamic class stepClass extends MovieClip {
}
}//package