Section 1
//logoineffect_15 (Slimey730x35390sec_fla.logoineffect_15)
package Slimey730x35390sec_fla {
import flash.display.*;
public dynamic class logoineffect_15 extends MovieClip {
public function logoineffect_15(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package Slimey730x35390sec_fla
Section 2
//MainTimeline (Slimey730x35390sec_fla.MainTimeline)
package Slimey730x35390sec_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var percent:Number;
public var _mochiads_game_id:String;
public var preloaderAnimation_mc:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
}
public function flyAway(_arg1:Event):void{
if (preloaderAnimation_mc.flyAway_mc.currentFrame >= 70){
gotoAndStop(2);
preloaderAnimation_mc.blackBox_mc.alpha = (preloaderAnimation_mc.blackBox_mc.alpha - 0.1);
preloaderAnimation_mc.logoAnimation_mc.alpha = 0;
};
if (preloaderAnimation_mc.blackBox_mc.alpha <= 0){
preloaderAnimation_mc.blackBox_mc.visible = false;
preloaderAnimation_mc.flyAway_mc.visible = false;
preloaderAnimation_mc.logoAnimation_mc.visible = false;
preloaderAnimation_mc.progress_mc.visible = false;
removeEventListener(Event.ENTER_FRAME, flyAway);
};
}
public function loadProgress(_arg1:ProgressEvent):void{
percent = ((_arg1.bytesLoaded / _arg1.bytesTotal) * 100);
}
public function startApp(_arg1:MouseEvent):void{
preloaderAnimation_mc.logoAnimation_mc.buttonMode = false;
preloaderAnimation_mc.logoAnimation_mc.removeEventListener(MouseEvent.MOUSE_UP, startApp);
preloaderAnimation_mc.logoAnimation_mc.play();
preloaderAnimation_mc.flyAway_mc.play();
}
function frame1(){
_mochiads_game_id = "9efaa7bb5d96ed08";
stop();
loaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
addEventListener(Event.ENTER_FRAME, animation);
preloaderAnimation_mc.flyAway_mc.buttonMode = true;
preloaderAnimation_mc.flyAway_mc.addEventListener(MouseEvent.CLICK, callLink);
}
public function callLink(_arg1:MouseEvent):void{
var _local2:String;
var _local3:URLRequest;
_local2 = "http://www.ufogamer.com/";
_local3 = new URLRequest(_local2);
navigateToURL(_local3);
}
public function animation(_arg1:Event):void{
if (preloaderAnimation_mc.progress_mc.currentFrame < Math.round(percent)){
preloaderAnimation_mc.progress_mc.nextFrame();
};
if (Math.round(percent) >= 100){
preloaderAnimation_mc.progress_mc.visible = 0;
preloaderAnimation_mc.progress_mc.gotoAndStop(100);
};
if (preloaderAnimation_mc.progress_mc.currentFrame == 100){
loaderInfo.removeEventListener(ProgressEvent.PROGRESS, loadProgress);
preloaderAnimation_mc.logoAnimation_mc.play();
};
if (preloaderAnimation_mc.logoAnimation_mc.currentFrame >= 20){
removeEventListener(Event.ENTER_FRAME, animation);
preloaderAnimation_mc.logoAnimation_mc.addEventListener(MouseEvent.MOUSE_UP, startApp);
preloaderAnimation_mc.logoAnimation_mc.buttonMode = true;
addEventListener(Event.ENTER_FRAME, flyAway);
};
}
function frame2(){
MochiBot.track(this, "61faee53");
}
}
}//package Slimey730x35390sec_fla
Section 3
//MC_allTheLittleGuys_26 (Slimey730x35390sec_fla.MC_allTheLittleGuys_26)
package Slimey730x35390sec_fla {
import flash.display.*;
public dynamic class MC_allTheLittleGuys_26 extends MovieClip {
public var guy26_mc:MovieClip;
public var guy12_mc:MovieClip;
public var guy6_mc:MovieClip;
public var guy29_mc:MovieClip;
public var guy21_mc:MovieClip;
public var guy15_mc:MovieClip;
public var guy9_mc:MovieClip;
public var guy1_mc:MovieClip;
public var guy17_mc:MovieClip;
public var guy18_mc:MovieClip;
public var guy24_mc:MovieClip;
public var guy4_mc:MovieClip;
public var guy10_mc:MovieClip;
public var guy7_mc:MovieClip;
public var guy13_mc:MovieClip;
public var guy27_mc:MovieClip;
public var guy22_mc:MovieClip;
public var guy16_mc:MovieClip;
public var guy19_mc:MovieClip;
public var thinRedLine_mc:MovieClip;
public var guy2_mc:MovieClip;
public var guy11_mc:MovieClip;
public var guy5_mc:MovieClip;
public var heli_mc:MovieClip;
public var guy25_mc:MovieClip;
public var guy20_mc:MovieClip;
public var guy14_mc:MovieClip;
public var guy8_mc:MovieClip;
public var guy28_mc:MovieClip;
public var guy0_mc:MovieClip;
public var guy23_mc:MovieClip;
public var guy3_mc:MovieClip;
}
}//package Slimey730x35390sec_fla
Section 4
//MC_arm1_21 (Slimey730x35390sec_fla.MC_arm1_21)
package Slimey730x35390sec_fla {
import flash.display.*;
public dynamic class MC_arm1_21 extends MovieClip {
public function MC_arm1_21(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Slimey730x35390sec_fla
Section 5
//MC_arm2_20 (Slimey730x35390sec_fla.MC_arm2_20)
package Slimey730x35390sec_fla {
import flash.display.*;
public dynamic class MC_arm2_20 extends MovieClip {
public function MC_arm2_20(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Slimey730x35390sec_fla
Section 6
//MC_endGame_59 (Slimey730x35390sec_fla.MC_endGame_59)
package Slimey730x35390sec_fla {
import flash.display.*;
import flash.text.*;
public dynamic class MC_endGame_59 extends MovieClip {
public var finalScore_txt:TextField;
public var restart_mc:MovieClip;
}
}//package Slimey730x35390sec_fla
Section 7
//MC_first_63 (Slimey730x35390sec_fla.MC_first_63)
package Slimey730x35390sec_fla {
import flash.display.*;
public dynamic class MC_first_63 extends MovieClip {
public function MC_first_63(){
addFrameScript(44, frame45);
}
function frame45(){
stop();
}
}
}//package Slimey730x35390sec_fla
Section 8
//MC_flyAway_4 (Slimey730x35390sec_fla.MC_flyAway_4)
package Slimey730x35390sec_fla {
import flash.display.*;
public dynamic class MC_flyAway_4 extends MovieClip {
public function MC_flyAway_4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Slimey730x35390sec_fla
Section 9
//MC_heli_47 (Slimey730x35390sec_fla.MC_heli_47)
package Slimey730x35390sec_fla {
import flash.display.*;
public dynamic class MC_heli_47 extends MovieClip {
public function MC_heli_47(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Slimey730x35390sec_fla
Section 10
//MC_LinktoSite_67 (Slimey730x35390sec_fla.MC_LinktoSite_67)
package Slimey730x35390sec_fla {
import flash.display.*;
public dynamic class MC_LinktoSite_67 extends MovieClip {
public function MC_LinktoSite_67(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Slimey730x35390sec_fla
Section 11
//MC_logoAnimation_11 (Slimey730x35390sec_fla.MC_logoAnimation_11)
package Slimey730x35390sec_fla {
import flash.display.*;
public dynamic class MC_logoAnimation_11 extends MovieClip {
public var glowLights_mc:MovieClip;
public var URLlink_mc:MovieClip;
public function MC_logoAnimation_11(){
addFrameScript(0, frame1, 24, frame25, 29, frame30);
}
function frame1(){
stop();
}
function frame25(){
stop();
}
function frame30(){
stop();
}
}
}//package Slimey730x35390sec_fla
Section 12
//MC_preloaderAnimation_1 (Slimey730x35390sec_fla.MC_preloaderAnimation_1)
package Slimey730x35390sec_fla {
import flash.display.*;
public dynamic class MC_preloaderAnimation_1 extends MovieClip {
public var blackBox_mc:MovieClip;
public var logoAnimation_mc:MovieClip;
public var flyAway_mc:MovieClip;
public var progress_mc:MovieClip;
}
}//package Slimey730x35390sec_fla
Section 13
//MC_slimey_22 (Slimey730x35390sec_fla.MC_slimey_22)
package Slimey730x35390sec_fla {
import flash.display.*;
public dynamic class MC_slimey_22 extends MovieClip {
public function MC_slimey_22(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Slimey730x35390sec_fla
Section 14
//MC_SlimeyGame_packed_17 (Slimey730x35390sec_fla.MC_SlimeyGame_packed_17)
package Slimey730x35390sec_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MC_SlimeyGame_packed_17 extends MovieClip {
public var smashHitArea2_mc:MovieClip;
public var overlayFrame_mc:MovieClip;
public var _numOfTypes:int;
public var _areaTarget:Number;
public var _type:Array;
public var UFOoutro_mc:MovieClip;
public var startGame_mc:MovieClip;
public var outro_mc:MovieClip;
public var _ping:PING;
public var _finalScore:Number;
public var _currentTypes:int;
public var _switch:Number;
public var _totalGuys:int;
public var _gameTimeLeft:Number;
public var clouds_mc:MovieClip;
public var _numOfGuys:int;
public var _heliTimer:int;
public var _temp:Number;
public var arm1_mc:MovieClip;
public var newArea_mc:MovieClip;
public var _soundChannel:SoundChannel;
public var _pausePoint:Number;
public var _smash:SMASH;
public var _runTimer:Array;
public var city_mc:MovieClip;
public var _blobFactor:Number;
public var eatHitArea_mc:MovieClip;
public var _mute:Boolean;
public var _runDirection:Array;
public var controller_mc:MovieClip;
public var sound:SoundChannel;
public var _gameTimer:Timer;
public var arm2_mc:MovieClip;
public var UFOAnimation_mc:MovieClip;
public var _music:MUSIC;
public var _speed:Number;
public var gameTimeText_txt:TextField;
public var _moveArea:Number;
public var _currentLevel:Number;
public var gameScore_txt:TextField;
public var mute_mc:MovieClip;
public var _state:Array;
public var _score:Number;
public var allTheLittleGuys_mc:MovieClip;
public var smashHitArea1_mc:MovieClip;
public var _munch:MUNCH;
public var endGame_mc:MovieClip;
public var linktoSite_mc:MovieClip;
public var _runSpeed:Array;
public var slimey_mc:MovieClip;
public var _quake:Number;
public var _i:int;
public var _heliState:int;
public var _stage:Number;
public function MC_SlimeyGame_packed_17(){
addFrameScript(0, frame1);
}
public function eaten(_arg1:Event):void{
_i = 0;
while (_i < _numOfGuys) {
if ((((_state[_i] == 2)) && (eatHitArea_mc.hitTestObject(allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")))))){
_state[_i] = 3;
_runTimer[_i] = 0;
if ((((slimey_mc.currentFrame < 5)) || ((slimey_mc.currentFrame < 28)))){
slimey_mc.gotoAndPlay("munch");
if (_mute == false){
_munch.play();
};
};
};
_i++;
};
if ((((_heliState == 2)) && (allTheLittleGuys_mc.heli_mc.hitTestObject(eatHitArea_mc)))){
allTheLittleGuys_mc.heli_mc.y = (allTheLittleGuys_mc.heli_mc.y - 30);
_heliState = 3;
allTheLittleGuys_mc.heli_mc.gotoAndStop(3);
_quake = 16;
if ((((slimey_mc.currentFrame < 5)) || ((slimey_mc.currentFrame < 28)))){
slimey_mc.gotoAndPlay("munch");
if (_mute == false){
_munch.play();
};
};
};
}
public function restart(_arg1:MouseEvent):void{
endGame_mc.x = (endGame_mc.y = (stage.stageWidth * 2));
startGame_mc.x = (startGame_mc.y = 0);
linktoSite_mc.scaleX = (linktoSite_mc.scaleY = 1);
linktoSite_mc.gotoAndStop(1);
_stage = 0;
_currentLevel = 0;
_areaTarget = (620 * this.scaleX);
_moveArea = 0;
allTheLittleGuys_mc.thinRedLine_mc.width = (_areaTarget / this.scaleX);
allTheLittleGuys_mc.thinRedLine_mc.x = (_moveArea / this.scaleX);
allTheLittleGuys_mc.x = (-(allTheLittleGuys_mc.thinRedLine_mc.x) + ((controller_mc.x * (stage.stageWidth - (allTheLittleGuys_mc.thinRedLine_mc.width * this.scaleX))) / stage.stageWidth));
city_mc.x = allTheLittleGuys_mc.x;
_score = 0;
gameScore_txt.text = _score.toString();
allTheLittleGuys_mc.heli_mc.x = -100;
_i = 0;
while (_i < _totalGuys) {
allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).x = -100;
_i++;
};
SoundMixer.stopAll();
_pausePoint = 0;
_soundChannel = _music.play(_pausePoint);
}
public function navigation(_arg1:Event):void{
controller_mc.x = (controller_mc.x - (Math.round(((controller_mc.x - mouseX) / _speed)) * this.scaleX));
slimey_mc.x = (slimey_mc.x + ((mouseX - slimey_mc.x) / _speed));
arm1_mc.x = (slimey_mc.x - 60);
arm2_mc.x = (slimey_mc.x + 60);
eatHitArea_mc.x = (slimey_mc.x - 30);
smashHitArea1_mc.x = (slimey_mc.x - 185);
smashHitArea2_mc.x = (slimey_mc.x + 80);
allTheLittleGuys_mc.x = (-(allTheLittleGuys_mc.thinRedLine_mc.x) + ((controller_mc.x * (stage.stageWidth - (allTheLittleGuys_mc.thinRedLine_mc.width * this.scaleX))) / stage.stageWidth));
city_mc.x = allTheLittleGuys_mc.x;
clouds_mc.x--;
if (clouds_mc.x < -(clouds_mc.width)){
clouds_mc.x = (stage.stageWidth / this.scaleX);
};
}
public function gameStage(_arg1:Event):void{
if (_stage == 0){
startGame_mc.addEventListener(MouseEvent.MOUSE_UP, startGame);
startGame_mc.x = (startGame_mc.y = 0);
_gameTimeLeft = 90;
gameTimeText_txt.text = _gameTimeLeft.toString();
linktoSite_mc.x = 225;
linktoSite_mc.y = 288;
_moveArea = 0;
_areaTarget = (620 * this.scaleX);
_currentLevel = 1;
_score = 0;
_finalScore = 0;
_stage = 0;
_speed = 8;
_numOfGuys;
_totalGuys = 30;
_numOfTypes = 9;
_currentTypes = 3;
_temp = 0;
_i = 0;
_i = 0;
while (_i < _totalGuys) {
_temp = Math.ceil((Math.random() * 64));
_runTimer[_i] = _temp.toString();
_temp = 1;
_runDirection[_i] = _temp.toString();
_temp = 1;
_state[_i] = _temp.toString();
_temp = Math.ceil((Math.random() * _currentTypes));
_type[_i] = _temp.toString();
if ((((((((((_type[_i] == 1)) || ((_type[_i] == 2)))) || ((_type[_i] == 3)))) || ((_type[_i] == 5)))) || ((_type[_i] == 8)))){
_temp = ((Math.random() * 2) + 2);
_runSpeed[_i] = _temp.toString();
} else {
_temp = (Math.random() + 1);
_runSpeed[_i] = _temp.toString();
};
MovieClip(allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc"))).gotoAndStop(_type[_i]);
_i++;
};
_heliState = 0;
_heliTimer = ((Math.random() * 320) + 320);
_quake = 0;
};
if (_stage == 1){
stage.addEventListener(MouseEvent.MOUSE_UP, smash);
addEventListener(Event.ENTER_FRAME, navigation);
addEventListener(Event.ENTER_FRAME, run);
addEventListener(Event.ENTER_FRAME, flyUp);
addEventListener(Event.ENTER_FRAME, eaten);
addEventListener(Event.ENTER_FRAME, levelControl);
addEventListener(Event.ENTER_FRAME, expandArea);
_gameTimer.addEventListener(TimerEvent.TIMER, updateTime);
addEventListener(Event.ENTER_FRAME, slimeyAnimation);
};
if (_stage == 2){
stage.removeEventListener(MouseEvent.MOUSE_UP, smash);
startGame_mc.removeEventListener(MouseEvent.MOUSE_UP, startGame);
removeEventListener(Event.ENTER_FRAME, run);
removeEventListener(Event.ENTER_FRAME, flyUp);
removeEventListener(Event.ENTER_FRAME, eaten);
removeEventListener(Event.ENTER_FRAME, levelControl);
removeEventListener(Event.ENTER_FRAME, expandArea);
_gameTimer.removeEventListener(TimerEvent.TIMER, updateTime);
removeEventListener(Event.ENTER_FRAME, slimeyAnimation);
if (_finalScore < _score){
_finalScore = (_finalScore + 100);
endGame_mc.finalScore_txt.text = _finalScore.toString();
} else {
if (_stage == 2){
_finalScore = _score;
endGame_mc.finalScore_txt.text = _finalScore.toString();
};
};
};
if ((((_stage == 3)) && ((UFOAnimation_mc.currentFrame < 50)))){
slimey_mc.x = (UFOAnimation_mc.UFO_mc.x - (100 * slimey_mc.scaleX));
slimey_mc.y = (UFOAnimation_mc.UFO_mc.y + (210 * slimey_mc.scaleX));
arm1_mc.x = (slimey_mc.x - (60 * slimey_mc.scaleX));
arm1_mc.y = slimey_mc.y;
arm2_mc.x = (slimey_mc.x + (60 * slimey_mc.scaleX));
arm2_mc.y = slimey_mc.y;
arm1_mc.rotation = slimey_mc.rotation;
slimey_mc.rotation = UFOAnimation_mc.UFO_mc.rotation;
arm1_mc.play();
arm2_mc.play();
linktoSite_mc.x = 605;
linktoSite_mc.y = 58;
};
if (((!((_stage == 1))) && ((UFOAnimation_mc.currentFrame >= 70)))){
_stage = 1;
UFOAnimation_mc.gotoAndStop(1);
eatHitArea_mc.y = (221.8 * slimey_mc.scaleX);
smashHitArea1_mc.y = (272.6 * slimey_mc.scaleX);
smashHitArea2_mc.y = (272.6 * slimey_mc.scaleX);
_gameTimer.start();
};
if (_stage == 4){
UFOoutro_mc.x = slimey_mc.x;
if (Math.abs((UFOoutro_mc.y - slimey_mc.y)) > 150){
UFOoutro_mc.y = (UFOoutro_mc.y - ((UFOoutro_mc.y - slimey_mc.y) / 32));
} else {
_stage = 5;
};
};
if (_stage == 5){
if (Math.abs((UFOoutro_mc.y - outro_mc.y)) > 100){
UFOoutro_mc.y = (UFOoutro_mc.y - ((UFOoutro_mc.y - outro_mc.y) / 64));
slimey_mc.x = (slimey_mc.x + ((UFOoutro_mc.x - slimey_mc.x) / 16));
slimey_mc.y = (slimey_mc.y + ((UFOoutro_mc.y - slimey_mc.y) / 16));
arm1_mc.x = (slimey_mc.x - (60 * slimey_mc.scaleX));
arm1_mc.y = slimey_mc.y;
arm2_mc.x = (slimey_mc.x + (60 * slimey_mc.scaleX));
arm2_mc.y = slimey_mc.y;
arm1_mc.play();
arm2_mc.play();
eatHitArea_mc.y = (slimey_mc.y * slimey_mc.scaleX);
smashHitArea1_mc.y = (slimey_mc.y * slimey_mc.scaleX);
smashHitArea2_mc.y = (slimey_mc.y * slimey_mc.scaleX);
stage.removeEventListener(MouseEvent.MOUSE_UP, smash);
removeEventListener(Event.ENTER_FRAME, flyUp);
} else {
_stage = 2;
endGame_mc.x = (endGame_mc.y = 0);
endGame_mc.restart_mc.addEventListener(MouseEvent.MOUSE_UP, restart);
linktoSite_mc.x = 615;
linktoSite_mc.y = 300;
linktoSite_mc.gotoAndStop(2);
linktoSite_mc.scaleX = (linktoSite_mc.scaleY = 1.7);
};
};
}
public function mute(_arg1:MouseEvent):void{
mute_mc.removeEventListener(MouseEvent.MOUSE_UP, mute);
mute_mc.addEventListener(MouseEvent.MOUSE_UP, unmute);
mute_mc.gotoAndStop(2);
_pausePoint = _soundChannel.position;
_soundChannel.stop();
_mute = true;
}
public function expandArea(_arg1:Event):void{
if ((allTheLittleGuys_mc.thinRedLine_mc.width * this.scaleX) < _areaTarget){
allTheLittleGuys_mc.thinRedLine_mc.width = (allTheLittleGuys_mc.thinRedLine_mc.width + 10);
newArea_mc.alpha = 1;
} else {
if ((allTheLittleGuys_mc.thinRedLine_mc.x * this.scaleX) < _moveArea){
allTheLittleGuys_mc.thinRedLine_mc.x = (allTheLittleGuys_mc.thinRedLine_mc.x + 10);
newArea_mc.alpha = 1;
} else {
allTheLittleGuys_mc.thinRedLine_mc.x = (_moveArea / this.scaleX);
newArea_mc.alpha = 0;
};
};
}
public function flyUp(_arg1:Event):void{
if (arm1_mc.currentFrame == 22){
if (_mute == false){
_smash.play();
};
_quake = 16;
_i = 0;
while (_i < _numOfGuys) {
if ((((_state[_i] == 1)) && (smashHitArea1_mc.hitTestObject(allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")))))){
_state[_i] = 2;
_runTimer[_i] = Math.ceil(((Math.random() * 4) + 6)).toString();
_temp = _type[_i];
_temp = (_temp + _numOfTypes);
_type[_i] = _temp.toString();
MovieClip(allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc"))).gotoAndStop(_type[_i]);
};
if ((((_state[_i] == 1)) && (smashHitArea2_mc.hitTestObject(allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")))))){
_state[_i] = 2;
_runTimer[_i] = Math.ceil(((Math.random() * 4) + 6)).toString();
_temp = _type[_i];
_temp = (_temp + _numOfTypes);
_type[_i] = _temp.toString();
MovieClip(allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc"))).gotoAndStop(_type[_i]);
};
_i++;
};
};
_i = 0;
while (_i < _numOfGuys) {
if (allTheLittleGuys_mc.heli_mc.hitTestObject(allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")))){
_heliState = 2;
};
_i++;
};
if (_quake > 0){
_switch = (_switch * -1);
this.x = (this.x + (_switch * Math.random()));
this.y = (this.y + (_switch * Math.random()));
_quake--;
} else {
this.x = (this.y = 0);
};
}
function frame1(){
_soundChannel = new SoundChannel();
_mute = false;
_pausePoint = 0;
_moveArea = 0;
_areaTarget = (620 * this.scaleX);
_currentLevel = 1;
_score = 0;
_finalScore = 0;
_stage = 0;
_speed = 8;
_totalGuys = 30;
_numOfTypes = 9;
_currentTypes = 3;
_temp = 0;
_i = 0;
_runTimer = new Array();
_runDirection = new Array();
_runSpeed = new Array();
_state = new Array();
_type = new Array();
_heliState = 0;
_heliTimer = ((Math.random() * 320) + 320);
_quake = 0;
_switch = 1;
_gameTimer = new Timer(1000);
_blobFactor = 1;
_ping = new PING();
_smash = new SMASH();
_munch = new MUNCH();
_music = new MUSIC();
_soundChannel = _music.play();
eatHitArea_mc.visible = false;
smashHitArea1_mc.visible = false;
smashHitArea2_mc.visible = false;
allTheLittleGuys_mc.thinRedLine_mc.visible = false;
controller_mc.visible = false;
allTheLittleGuys_mc.thinRedLine_mc.width = (_areaTarget / this.scaleX);
endGame_mc.restart_mc.buttonMode = true;
linktoSite_mc.buttonMode = true;
gameTimeText_txt.selectable = false;
endGame_mc.finalScore_txt.selectable = false;
gameScore_txt.selectable = false;
addEventListener(Event.ENTER_FRAME, gameStage);
addEventListener(Event.ENTER_FRAME, levelControl);
addEventListener(Event.ENTER_FRAME, expandArea);
_i = 0;
while (_i < _totalGuys) {
_temp = Math.ceil((Math.random() * 64));
_runTimer.push(_temp.toString());
_temp = 1;
_runDirection.push(_temp.toString());
_temp = 1;
_state.push(_temp.toString());
_temp = Math.ceil((Math.random() * _currentTypes));
_type.push(_temp.toString());
if ((((((((((_type[_i] == 1)) || ((_type[_i] == 2)))) || ((_type[_i] == 3)))) || ((_type[_i] == 5)))) || ((_type[_i] == 8)))){
_temp = ((Math.random() * 2) + 2);
_runSpeed.push(_temp.toString());
} else {
_temp = (Math.random() + 1);
_runSpeed.push(_temp.toString());
};
MovieClip(allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc"))).gotoAndStop(_type[_i]);
_i++;
};
linktoSite_mc.addEventListener(MouseEvent.CLICK, callLinktoSite);
_gameTimer.addEventListener(TimerEvent.TIMER, updateTime);
mute_mc.buttonMode = true;
mute_mc.addEventListener(MouseEvent.MOUSE_UP, mute);
mute_mc.gotoAndStop(1);
}
public function unmute(_arg1:MouseEvent):void{
mute_mc.removeEventListener(MouseEvent.MOUSE_UP, unmute);
mute_mc.addEventListener(MouseEvent.MOUSE_UP, mute);
mute_mc.gotoAndStop(1);
_soundChannel = _music.play(_pausePoint);
_mute = false;
}
public function run(_arg1:Event):void{
_i = 0;
while (_i < _numOfGuys) {
if (_state[_i] == 1){
if (_runTimer[_i] > 0){
allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).x = (allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).x + (_runDirection[_i] * _runSpeed[_i]));
allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).scaleX = _runDirection[_i];
var _local2 = _runTimer;
var _local3 = _i;
var _local4 = (_local2[_local3] - 1);
_local2[_local3] = _local4;
} else {
_runDirection[_i] = (_runDirection[_i] * -1);
allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).scaleX = _runDirection[_i];
_runTimer[_i] = Math.ceil((Math.random() * 64)).toString();
};
if ((((allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).x < allTheLittleGuys_mc.thinRedLine_mc.x)) || ((allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).x > (allTheLittleGuys_mc.thinRedLine_mc.x + allTheLittleGuys_mc.thinRedLine_mc.width))))){
MovieClip(allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc"))).alpha = 0;
allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).rotation = 0;
allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).x = (Math.random() * (allTheLittleGuys_mc.thinRedLine_mc.x + allTheLittleGuys_mc.thinRedLine_mc.width));
allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).y = 0;
};
if (MovieClip(allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc"))).alpha < 1){
MovieClip(allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc"))).alpha = (MovieClip(allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc"))).alpha + 0.1);
};
};
if (_state[_i] == 2){
if (_runTimer[_i] > -4){
_runTimer[_i] = (_runTimer[_i] - 0.2);
};
allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).y = (allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).y - _runTimer[_i]);
allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).x = (allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).x + _runDirection[_i]);
allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).rotation = (allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).rotation + (_runDirection[_i] * 5));
if (allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).y > allTheLittleGuys_mc.thinRedLine_mc.y){
_runTimer[_i] = Math.ceil((Math.random() * 64)).toString();
_state[_i] = 1;
_temp = _type[_i];
_temp = (_temp - _numOfTypes);
_type[_i] = _temp.toString();
MovieClip(allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc"))).gotoAndStop(_type[_i]);
allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).rotation = 0;
};
MovieClip(allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc"))).alpha = 1;
};
if (_state[_i] == 3){
_temp = _type[_i];
_temp = (_temp - _numOfTypes);
_type[_i] = _temp.toString();
if ((((_type[_i] == 2)) || ((_type[_i] == 3)))){
_gameTimeLeft = (_gameTimeLeft + 1);
gameTimeText_txt.text = _gameTimeLeft.toString();
};
if ((((((((((_type[_i] == 1)) || ((_type[_i] == 2)))) || ((_type[_i] == 3)))) || ((_type[_i] == 5)))) || ((_type[_i] == 8)))){
_score = (_score + 10);
gameScore_txt.text = _score.toString();
};
if ((((_type[_i] >= 4)) && ((_type[_i] <= 7)))){
_score = (_score + 50);
gameScore_txt.text = _score.toString();
};
if (_type[_i] == 5){
_gameTimeLeft = (_gameTimeLeft + 3);
gameTimeText_txt.text = _gameTimeLeft.toString();
};
if (_type[_i] == 6){
_gameTimeLeft = (_gameTimeLeft - 7);
gameTimeText_txt.text = _gameTimeLeft.toString();
};
if (_type[_i] == 7){
_gameTimeLeft = (_gameTimeLeft + 5);
gameTimeText_txt.text = _gameTimeLeft.toString();
};
if ((((_type[_i] == 8)) && ((_speed > 4)))){
_speed = (_speed - 1);
};
if ((((_type[_i] == 9)) && ((_speed / 32)))){
_speed = (_speed + 1);
};
_runTimer[_i] = Math.ceil((Math.random() * 64)).toString();
_state[_i] = 1;
_temp = Math.ceil((Math.random() * _currentTypes));
_type[_i] = _temp.toString();
if ((((_type[_i] >= 1)) && ((_type[_i] <= 5)))){
_temp = ((Math.random() * 2) + 2);
_runSpeed[_i] = _temp.toString();
} else {
_temp = (Math.random() + 0.5);
_runSpeed[_i] = _temp.toString();
};
MovieClip(allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc"))).gotoAndStop(_type[_i]);
MovieClip(allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc"))).alpha = 0;
allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).rotation = 0;
allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).x = (Math.random() * stage.stageWidth);
allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).y = 0;
};
_i++;
};
_i = _numOfGuys;
while (_i < _totalGuys) {
allTheLittleGuys_mc.getChildByName((("guy" + _i) + "_mc")).x = -100;
_i++;
};
if (_heliTimer > 0){
_heliTimer--;
} else {
if (_heliState == 0){
allTheLittleGuys_mc.heli_mc.rotation = 0;
allTheLittleGuys_mc.heli_mc.gotoAndStop(1);
allTheLittleGuys_mc.heli_mc.x = ((allTheLittleGuys_mc.thinRedLine_mc.x + allTheLittleGuys_mc.thinRedLine_mc.width) + allTheLittleGuys_mc.heli_mc.width);
allTheLittleGuys_mc.heli_mc.y = -200;
_heliState = 1;
};
};
if (_heliState == 1){
allTheLittleGuys_mc.heli_mc.x = (allTheLittleGuys_mc.heli_mc.x - 6);
};
if ((((_heliState == 1)) && ((allTheLittleGuys_mc.heli_mc.x < 0)))){
allTheLittleGuys_mc.heli_mc.x = ((allTheLittleGuys_mc.thinRedLine_mc.x + allTheLittleGuys_mc.thinRedLine_mc.width) + allTheLittleGuys_mc.heli_mc.width);
allTheLittleGuys_mc.heli_mc.y = stage.stageHeight;
_heliState = 0;
_heliTimer = ((Math.random() * 320) + 320);
};
if (_heliState == 2){
allTheLittleGuys_mc.heli_mc.gotoAndStop(2);
allTheLittleGuys_mc.heli_mc.x = (allTheLittleGuys_mc.heli_mc.x - 3);
allTheLittleGuys_mc.heli_mc.rotation = (allTheLittleGuys_mc.heli_mc.rotation - 15);
allTheLittleGuys_mc.heli_mc.y = (allTheLittleGuys_mc.heli_mc.y + 5);
};
if (_heliState == 3){
allTheLittleGuys_mc.heli_mc.gotoAndStop(2);
allTheLittleGuys_mc.heli_mc.rotation = (allTheLittleGuys_mc.heli_mc.rotation - 5);
allTheLittleGuys_mc.heli_mc.y = (allTheLittleGuys_mc.heli_mc.y - 2);
allTheLittleGuys_mc.heli_mc.alpha = (allTheLittleGuys_mc.heli_mc.alpha - 0.1);
};
if ((((_heliState == 3)) && ((allTheLittleGuys_mc.heli_mc.y > stage.stageHeight)))){
allTheLittleGuys_mc.heli_mc.x = ((allTheLittleGuys_mc.thinRedLine_mc.x + allTheLittleGuys_mc.thinRedLine_mc.width) + allTheLittleGuys_mc.heli_mc.width);
allTheLittleGuys_mc.heli_mc.y = stage.stageHeight;
_heliState = 0;
_heliTimer = ((Math.random() * 320) + 320);
};
if (allTheLittleGuys_mc.heli_mc.alpha <= 0){
allTheLittleGuys_mc.heli_mc.alpha = 1;
allTheLittleGuys_mc.heli_mc.x = ((allTheLittleGuys_mc.thinRedLine_mc.x + allTheLittleGuys_mc.thinRedLine_mc.width) + allTheLittleGuys_mc.heli_mc.width);
allTheLittleGuys_mc.heli_mc.y = stage.stageHeight;
_heliState = 0;
_heliTimer = ((Math.random() * 320) + 320);
_score = (_score + 500);
gameScore_txt.text = _score.toString();
};
}
public function updateTime(_arg1:TimerEvent):void{
_gameTimeLeft--;
gameTimeText_txt.text = _gameTimeLeft.toString();
if ((((_gameTimeLeft <= 10)) && ((_gameTimeLeft > 0)))){
if (_mute == false){
_ping.play();
};
};
if (_gameTimeLeft <= 0){
_gameTimer.stop();
_stage = 4;
stage.removeEventListener(MouseEvent.MOUSE_UP, smash);
removeEventListener(Event.ENTER_FRAME, navigation);
removeEventListener(Event.ENTER_FRAME, slimeyAnimation);
};
}
public function levelControl(_arg1:Event):void{
if (_score < 100){
_areaTarget = (620 * this.scaleX);
_currentLevel = 1;
_currentTypes = 3;
_numOfGuys = 3;
_speed = (8 * _currentLevel);
_heliTimer = 1;
} else {
if (_score < 200){
_areaTarget = (1240 * this.scaleX);
_currentLevel = 2;
_currentTypes = 4;
_numOfGuys = 5;
_speed = (8 * _currentLevel);
_heliTimer = 1;
} else {
if (_score < 400){
_moveArea = (620 * this.scaleX);
_currentLevel = 3;
_numOfGuys = 7;
_heliTimer = 1;
} else {
if (_score < 800){
_moveArea = (1240 * this.scaleX);
_currentLevel = 4;
_currentTypes = 5;
_numOfGuys = 8;
_heliTimer = 1;
} else {
if (_score < 1300){
_moveArea = (1860 * this.scaleX);
_currentLevel = 5;
_currentTypes = 6;
_numOfGuys = 9;
} else {
if (_score < 1900){
_moveArea = (2480 * this.scaleX);
_currentLevel = 6;
_currentTypes = 7;
_numOfGuys = 10;
} else {
if (_score < 2600){
_moveArea = (3100 * this.scaleX);
_currentLevel = 7;
_currentTypes = 8;
_numOfGuys = 11;
} else {
if (_score < 3400){
_moveArea = (3720 * this.scaleX);
_currentLevel = 8;
_numOfGuys = 12;
} else {
if (_score < 4300){
_moveArea = (4340 * this.scaleX);
_currentLevel = 9;
_numOfGuys = 13;
} else {
if (_score < 5300){
_moveArea = (4960 * this.scaleX);
_currentLevel = 10;
_currentTypes = 9;
_numOfGuys = 14;
} else {
if (_score < 0x1900){
_moveArea = (5580 * this.scaleX);
_currentLevel = 11;
_numOfGuys = 15;
} else {
if (_score < 7600){
_moveArea = (6200 * this.scaleX);
_currentLevel = 12;
_numOfGuys = 16;
} else {
if (_score < 8900){
_moveArea = (6840 * this.scaleX);
_currentLevel = 13;
_numOfGuys = 17;
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function startGame(_arg1:MouseEvent):void{
if (_stage == 0){
linktoSite_mc.x = 225;
linktoSite_mc.y = 288;
linktoSite_mc.gotoAndStop(1);
if (startGame_mc.currentFrame < 54){
startGame_mc.gotoAndStop(55);
} else {
if (startGame_mc.currentFrame == 55){
startGame_mc.gotoAndStop(56);
} else {
if (startGame_mc.currentFrame == 56){
_stage = 3;
startGame_mc.x = (startGame_mc.y = (stage.stageWidth * 2));
UFOAnimation_mc.play();
};
};
};
};
}
public function slimeyAnimation(_arg1:Event):void{
_blobFactor = Math.abs((mouseX - slimey_mc.x));
slimey_mc.scaleY = ((-(_blobFactor) / 620) + 1);
}
public function callLinktoSite(_arg1:MouseEvent):void{
var _local2:String;
var _local3:URLRequest;
_local2 = "http://www.ufogamer.com/";
_local3 = new URLRequest(_local2);
navigateToURL(_local3);
}
public function smash(_arg1:MouseEvent):void{
arm1_mc.play();
arm2_mc.play();
}
}
}//package Slimey730x35390sec_fla
Section 15
//MC_startGame_61 (Slimey730x35390sec_fla.MC_startGame_61)
package Slimey730x35390sec_fla {
import flash.display.*;
public dynamic class MC_startGame_61 extends MovieClip {
public function MC_startGame_61(){
addFrameScript(54, frame55);
}
function frame55(){
stop();
}
}
}//package Slimey730x35390sec_fla
Section 16
//MC_UFOIntro_52 (Slimey730x35390sec_fla.MC_UFOIntro_52)
package Slimey730x35390sec_fla {
import flash.display.*;
public dynamic class MC_UFOIntro_52 extends MovieClip {
public var UFO_mc:MovieClip;
public function MC_UFOIntro_52(){
addFrameScript(0, frame1, 69, frame70);
}
function frame70(){
stop();
}
function frame1(){
stop();
}
}
}//package Slimey730x35390sec_fla
Section 17
//MC_guyThin (MC_guyThin)
package {
import flash.display.*;
public dynamic class MC_guyThin extends MovieClip {
}
}//package
Section 18
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 19
//MUNCH (MUNCH)
package {
import flash.media.*;
public dynamic class MUNCH extends Sound {
}
}//package
Section 20
//MUSIC (MUSIC)
package {
import flash.media.*;
public dynamic class MUSIC extends Sound {
}
}//package
Section 21
//PING (PING)
package {
import flash.media.*;
public dynamic class PING extends Sound {
}
}//package
Section 22
//SMASH (SMASH)
package {
import flash.media.*;
public dynamic class SMASH extends Sound {
}
}//package