Section 1
//back_move_2 (easter_fla.back_move_2)
package easter_fla {
import flash.display.*;
public dynamic class back_move_2 extends MovieClip {
public var backObject2:MovieClip;
public var backObject1:MovieClip;
public var house2:MovieClip;
public var house3:MovieClip;
public var house4:MovieClip;
public var house1:MovieClip;
}
}//package easter_fla
Section 2
//backObject_6 (easter_fla.backObject_6)
package easter_fla {
import flash.display.*;
public dynamic class backObject_6 extends MovieClip {
public function backObject_6(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
stop();
}
}
}//package easter_fla
Section 3
//bloodSuck_30 (easter_fla.bloodSuck_30)
package easter_fla {
import flash.display.*;
public dynamic class bloodSuck_30 extends MovieClip {
public function bloodSuck_30(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package easter_fla
Section 4
//crusher_symbol_26 (easter_fla.crusher_symbol_26)
package easter_fla {
import flash.display.*;
public dynamic class crusher_symbol_26 extends MovieClip {
public var blood:MovieClip;
public var kill:MovieClip;
public var box:MovieClip;
}
}//package easter_fla
Section 5
//enemyBunny_76 (easter_fla.enemyBunny_76)
package easter_fla {
import flash.display.*;
public dynamic class enemyBunny_76 extends MovieClip {
public function enemyBunny_76(){
addFrameScript(12, frame13);
}
function frame13(){
gotoAndPlay(1);
}
}
}//package easter_fla
Section 6
//enemyChicken_77 (easter_fla.enemyChicken_77)
package easter_fla {
import flash.display.*;
public dynamic class enemyChicken_77 extends MovieClip {
public function enemyChicken_77(){
addFrameScript(28, frame29);
}
function frame29(){
gotoAndPlay(1);
}
}
}//package easter_fla
Section 7
//enemyMan_78 (easter_fla.enemyMan_78)
package easter_fla {
import flash.display.*;
public dynamic class enemyMan_78 extends MovieClip {
public function enemyMan_78(){
addFrameScript(8, frame9);
}
function frame9(){
gotoAndPlay(1);
}
}
}//package easter_fla
Section 8
//enemyWoman_79 (easter_fla.enemyWoman_79)
package easter_fla {
import flash.display.*;
public dynamic class enemyWoman_79 extends MovieClip {
public function enemyWoman_79(){
addFrameScript(8, frame9);
}
function frame9(){
gotoAndPlay(1);
}
}
}//package easter_fla
Section 9
//gameover_text_32 (easter_fla.gameover_text_32)
package easter_fla {
import flash.display.*;
public dynamic class gameover_text_32 extends MovieClip {
public var box:MovieClip;
}
}//package easter_fla
Section 10
//highScore_65 (easter_fla.highScore_65)
package easter_fla {
import flash.display.*;
import flash.text.*;
public dynamic class highScore_65 extends MovieClip {
public var highScoreText:TextField;
}
}//package easter_fla
Section 11
//house_5 (easter_fla.house_5)
package easter_fla {
import flash.display.*;
public dynamic class house_5 extends MovieClip {
public function house_5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package easter_fla
Section 12
//hub_bar_fuel_43 (easter_fla.hub_bar_fuel_43)
package easter_fla {
import flash.display.*;
public dynamic class hub_bar_fuel_43 extends MovieClip {
public var maxfuel:MovieClip;
public var bar2:MovieClip;
public var bar1:MovieClip;
}
}//package easter_fla
Section 13
//hub_bar_instruct_63 (easter_fla.hub_bar_instruct_63)
package easter_fla {
import flash.display.*;
import flash.text.*;
public dynamic class hub_bar_instruct_63 extends MovieClip {
public var box:MovieClip;
public var tutText:TextField;
}
}//package easter_fla
Section 14
//hub_bar_menu_56 (easter_fla.hub_bar_menu_56)
package easter_fla {
import flash.display.*;
public dynamic class hub_bar_menu_56 extends MovieClip {
public var menuText:MovieClip;
public var soundSymbol:MovieClip;
public var musicNote:MovieClip;
}
}//package easter_fla
Section 15
//hub_bar_rage_50 (easter_fla.hub_bar_rage_50)
package easter_fla {
import flash.display.*;
public dynamic class hub_bar_rage_50 extends MovieClip {
public var bar2:MovieClip;
public var bar1:MovieClip;
}
}//package easter_fla
Section 16
//hub_bar_score_54 (easter_fla.hub_bar_score_54)
package easter_fla {
import flash.display.*;
import flash.text.*;
public dynamic class hub_bar_score_54 extends MovieClip {
public var multiplierText:TextField;
public var score:TextField;
public var swish:MovieClip;
public function hub_bar_score_54(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package easter_fla
Section 17
//hub_oil_68 (easter_fla.hub_oil_68)
package easter_fla {
import flash.display.*;
public dynamic class hub_oil_68 extends MovieClip {
public var bar:MovieClip;
public var box:MovieClip;
}
}//package easter_fla
Section 18
//hub_tar_70 (easter_fla.hub_tar_70)
package easter_fla {
import flash.display.*;
public dynamic class hub_tar_70 extends MovieClip {
public var bar:MovieClip;
public var box:MovieClip;
}
}//package easter_fla
Section 19
//load_items_13 (easter_fla.load_items_13)
package easter_fla {
import flash.display.*;
import flash.net.*;
public dynamic class load_items_13 extends MovieClip {
public var preloader:MovieClip;
public function load_items_13(){
addFrameScript(10, frame11, 173, frame174);
}
function frame174(){
stop();
}
function frame11(){
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 easter_fla
Section 20
//loading_bar_16 (easter_fla.loading_bar_16)
package easter_fla {
import flash.display.*;
public dynamic class loading_bar_16 extends MovieClip {
public var lbar:MovieClip;
}
}//package easter_fla
Section 21
//mainmenu_text_34 (easter_fla.mainmenu_text_34)
package easter_fla {
import flash.display.*;
public dynamic class mainmenu_text_34 extends MovieClip {
public var box:MovieClip;
}
}//package easter_fla
Section 22
//MainTimeline (easter_fla.MainTimeline)
package easter_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var stain_container:MovieClip;
public var toggleSound:int;
public var trackSound1:highway;
public var gameStarted:Boolean;
public var stageScore:int;
public var ranObject:int;
public var myName:String;
public var ranHouse:int;
public var oil_container:MovieClip;
public var so:SharedObject;
public var myContextMenu:ContextMenu;
public var i:int;
public var j:int;
public var dead:Boolean;
public var gameTimerInt:int;
public var sign_container:MovieClip;
public var enemy_container:MovieClip;
public var scoreSubmitted:Boolean;
public var eggTimer:int;
public var oilTimer:int;
public var enemyTimer:int;
public var credits:credits_fade;
public var readTut:Boolean;
public var gameOilTimer:int;
public var loadItems:MovieClip;
public var gamePhase:int;
public var gameQuality:String;
public var warn:tutwarn;
public var gameTimer:int;
public var crush:crusher;
public var gameo:gameover;
public var blood_container:MovieClip;
public var egg_container:MovieClip;
public var sponsorbutton:SimpleButton;
public var explode:explosion;
public var hub:hub_display;
public var masterSpeed:Number;
public var soundVolume:SoundTransform;
public var roadSpeed:int;
public var totalFuel:Number;
public var musicChannel:SoundChannel;
public var roadMove:Boolean;
public var topBound:int;
public var signAccel:int;
public var road:road_back;
public var sponsor:sponsor_fade;
public var menuRoll2:Boolean;
public var toggleMusic:int;
public var menuRoll3:Boolean;
public var tutPhase:int;
public var more_fade_int:int;
public var maxFuel:Number;
public var item2:ContextMenuItem;
public var item4:ContextMenuItem;
public var item5:ContextMenuItem;
public var item3:ContextMenuItem;
public var keyLetterK:Boolean;
public var musicVolume:SoundTransform;
public var credits_fade_int:int;
public var totalScore:int;
public var sign:signpost;
public var multiplier:int;
public var keySpace:Boolean;
public function MainTimeline(){
addFrameScript(0, frame1, 19, frame20);
}
public function squishSound(){
var _local1:fxSquish;
_local1 = new fxSquish();
_local1.play(0, 0, soundVolume);
}
public function startClick(_arg1:MouseEvent):void{
var _local2:URLRequest;
var _local3:URLRequest;
var _local4:URLVariables;
var _local5:Number;
var _local6:String;
if (hub.sponsorBox.hitTestPoint(mouseX, mouseY, true)){
getURL("http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com", "_blank");
};
if (hub.creditsBox.hitTestPoint(mouseX, mouseY, true)){
getURL("http://www.chromeshark.com", "_blank");
};
if (warn.hitTestPoint(mouseX, mouseY, true)){
readTut = true;
warn.x = -300;
if (gamePhase > 0){
sign_container.removeChildAt(0);
signAccel = 47;
tutPhase = 1;
gamePhase = 0;
};
maxFuel = 100;
totalFuel = 100;
totalScore = 0;
dead = false;
hub.gotoAndPlay("menu_out");
};
if (hub.menuPlay.hitTestPoint(mouseX, mouseY, true)){
if (readTut == true){
if (gamePhase > 0){
sign_container.removeChildAt(0);
signAccel = 47;
tutPhase = 1;
gamePhase = 0;
};
maxFuel = 100;
totalFuel = 100;
totalScore = 0;
dead = false;
hub.gotoAndPlay("menu_out");
} else {
warn.x = 170;
};
};
if (hub.instruct.hitTestPoint(mouseX, mouseY, true)){
warn.x = -300;
if (gamePhase == 0){
gamePhase = 1;
signCreate(tutPhase);
};
};
if (gamePhase == 2){
if (sign_container.hitTestPoint(mouseX, mouseY, true)){
warn.x = -300;
gamePhase = 3;
};
};
if (hub.menuBack.menuText.hitTestPoint(mouseX, mouseY, true)){
backToMenu();
};
if (gameo.menuPlay.hitTestPoint(mouseX, mouseY, true)){
gameo.play();
masterSpeed = 10;
roadSpeed = 0;
maxFuel = 100;
totalFuel = 100;
totalScore = 0;
gameStarted = true;
scoreSubmitted = false;
dead = false;
};
if (gameo.moreGames.hitTestPoint(mouseX, mouseY, true)){
getURL("http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com", "_blank");
};
if (gameo.scoreBox.scoreSubmit.hitTestPoint(mouseX, mouseY, true)){
myName = gameo.scoreBox.scoreText.text;
if (myName != "Enter a Name"){
if (scoreSubmitted == false){
scoreSubmitted = true;
_local2 = new URLRequest("http://rankz.armorbot.com/easter_rampage/");
_local3 = new URLRequest("http://rankz.armorbot.com/submit/as3_v0.php");
_local3.method = URLRequestMethod.POST;
_local4 = new URLVariables();
_local4.flashkey = "ZExFRVlGWGo=";
_local4.SU0249 = "MjQwMmolZSVhJW4lcw==";
_local4.bmFtZTE = myName;
_local5 = totalScore;
_local6 = (_local5 + "Z");
_local4.c2NvcmUx = _local6.split("0").join("U");
_local4.c2NvcmUx = _local4.c2NvcmUx.split("").join("A");
_local4.c2NvcmUx = _local4.c2NvcmUx.split("AU").join("Y");
_local4.c2NvcmUx = _local4.c2NvcmUx.split("A1").join("B");
_local3.data = _local4;
sendToURL(_local3);
navigateToURL(_local2, "_blank");
};
};
};
if (hub.menuBack.musicNote.hitTestPoint(mouseX, mouseY, true)){
if (toggleMusic == 1){
toggleMusic = 0;
musicVolume = new SoundTransform(0, 0);
} else {
toggleMusic = 1;
musicVolume = new SoundTransform(1, 0);
};
musicChannel.stop();
musicChannel = trackSound1.play(0, 99, musicVolume);
};
if (hub.menuBack.soundSymbol.hitTestPoint(mouseX, mouseY, true)){
if (toggleSound == 1){
toggleSound = 0;
soundVolume = new SoundTransform(0, 0);
} else {
toggleSound = 1;
soundVolume = new SoundTransform(0.5, 0);
};
};
}
public function getURL(_arg1:String, _arg2:String){
var web:String;
var request:URLRequest;
var url = _arg1;
var method = _arg2;
web = url;
request = new URLRequest(web);
try {
navigateToURL(request, method);
} catch(e:Error) {
};
}
public function backToMenu():void{
gameo.y = -180;
gameStarted = false;
scoreSubmitted = false;
masterSpeed = 10;
roadSpeed = 0;
gamePhase = 0;
tutPhase = 1;
while (sign_container.numChildren > 0) {
sign_container.removeChildAt(0);
};
hub.gotoAndPlay("hub_out");
}
public function menuSelectHandler2(_arg1:ContextMenuEvent):void{
getURL("http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com", "_blank");
}
public function menuSelectHandler3(_arg1:ContextMenuEvent):void{
gameQuality = "low";
}
public function menuSelectHandler5(_arg1:ContextMenuEvent):void{
gameQuality = "high";
}
public function menuSelectHandler4(_arg1:ContextMenuEvent):void{
gameQuality = "medium";
}
public function sponsorClick(_arg1:MouseEvent):void{
getURL("http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com", "_blank");
}
function frame20(){
stop();
i = 0;
j = 0;
myName = "Enter a Name";
scoreSubmitted = false;
enemyTimer = 0;
eggTimer = 0;
oilTimer = 0;
menuRoll2 = false;
menuRoll3 = false;
credits_fade_int = 0;
more_fade_int = 0;
topBound = 0;
roadMove = true;
gameStarted = false;
dead = false;
gameTimer = 0;
gameOilTimer = 0;
gameTimerInt = 0;
readTut = false;
if (stageScore > 0){
readTut = true;
};
gamePhase = 0;
tutPhase = 1;
signAccel = 47;
masterSpeed = 10;
roadSpeed = 0;
ranHouse = 0;
ranObject = 0;
maxFuel = 100;
totalFuel = 100;
totalScore = 0;
multiplier = 1;
keySpace = false;
keyLetterK = false;
trackSound1 = new highway();
toggleMusic = 1;
toggleSound = 1;
musicVolume = new SoundTransform(1, 0);
soundVolume = new SoundTransform(0.5, 0);
musicChannel = trackSound1.play(0, 99, musicVolume);
stain_container = new MovieClip();
addChild(stain_container);
egg_container = new MovieClip();
addChild(egg_container);
oil_container = new MovieClip();
addChild(oil_container);
crush = new crusher(road.box.y, (road.box.y + road.box.height), 10);
this.addChild(crush);
enemy_container = new MovieClip();
addChild(enemy_container);
blood_container = new MovieClip();
addChild(blood_container);
explode = new explosion();
this.addChild(explode);
hub = new hub_display();
this.addChild(hub);
sign_container = new MovieClip();
addChild(sign_container);
sign = new signpost();
warn = new tutwarn();
this.addChild(warn);
warn.x = -300;
warn.y = 150;
credits = new credits_fade();
this.addChild(credits);
credits.x = 275;
credits.y = 225;
sponsor = new sponsor_fade();
this.addChild(sponsor);
sponsor.x = 275;
sponsor.y = 225;
gameo = new gameover();
this.addChild(gameo);
gameo.x = 275;
gameo.y = -180;
stage.addEventListener(Event.ENTER_FRAME, gameEnterFrame);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownFunction);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUpFunction);
stage.addEventListener("click", startClick);
}
public function keyDownFunction(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 37){
crush.keyLeftArrow = true;
};
if (_arg1.keyCode == 38){
crush.keyUpArrow = true;
};
if (_arg1.keyCode == 39){
crush.keyRightArrow = true;
i = 0;
while (i < enemy_container.numChildren) {
Object(enemy_container.getChildAt(i)).keyRightArrow = true;
i++;
};
};
if (_arg1.keyCode == 40){
crush.keyDownArrow = true;
};
if (_arg1.keyCode == 32){
keySpace = true;
};
if (_arg1.keyCode == 75){
keyLetterK = true;
};
}
function frame1(){
stop();
gameQuality = "medium";
so = SharedObject.getLocal("userData");
stageScore = 0;
if (so.size == 0){
stageScore = 0;
} else {
stageScore = so.data.stageScore;
};
this.addEventListener("enterFrame", load_bar);
sponsorbutton.addEventListener("click", sponsorClick);
myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
item2 = new ContextMenuItem("Play More Games");
myContextMenu.customItems.push(item2);
item2.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuSelectHandler2);
item3 = new ContextMenuItem("Game Quality: Low");
myContextMenu.customItems.push(item3);
item3.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuSelectHandler3);
item4 = new ContextMenuItem("Game Quality: Medium");
myContextMenu.customItems.push(item4);
item4.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuSelectHandler4);
item5 = new ContextMenuItem("Game Quality: High");
myContextMenu.customItems.push(item5);
item5.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuSelectHandler5);
this.contextMenu = myContextMenu;
}
public function bloodSpew(_arg1, _arg2, _arg3):void{
var _local4:blood;
j = 0;
while (j < _arg1) {
_local4 = new blood(_arg2, _arg3);
blood_container.addChild(_local4);
j++;
};
}
public function signCreate(_arg1):void{
sign_container.addChild(sign);
sign.gotoAndStop(_arg1);
sign.x = 600;
sign.y = 280;
}
public function linkChromeShark(_arg1:MouseEvent):void{
getURL("http://www.chromeshark.com", "_blank");
}
public function load_bar(_arg1:Event):void{
if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal){
loadItems.play();
} else {
loadItems.preloader.lbar.scaleX = (this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal);
};
if (loadItems.currentFrame == loadItems.totalFrames){
gotoAndPlay("loader");
this.removeEventListener("enterFrame", load_bar);
};
}
public function gameEnterFrame(_arg1:Event):void{
var _local2:scream_man;
var _local3:scream_woman;
var _local4:fxExplode;
var _local5:oil_spill;
var _local6:easter_egg;
var _local7:int;
var _local8:enemy;
var _local9:blood_ground;
stage.quality = gameQuality;
hub.highScore.highScoreText.text = ("Best Rampage: " + stageScore);
if (hub.creditsBox.hitTestPoint(mouseX, mouseY)){
hub.creditsBox.box.alpha = 1;
if (menuRoll3 == false){
menuRoll3 = true;
};
if (credits_fade_int <= credits.totalFrames){
credits_fade_int++;
};
} else {
hub.creditsBox.box.alpha = 0.8;
menuRoll3 = false;
if (credits_fade_int > 1){
credits_fade_int--;
};
};
credits.gotoAndStop(credits_fade_int);
if (hub.sponsorBox.hitTestPoint(mouseX, mouseY)){
hub.sponsorBox.box.alpha = 1;
if (menuRoll2 == false){
menuRoll2 = true;
};
if (more_fade_int <= sponsor.totalFrames){
more_fade_int++;
};
} else {
hub.sponsorBox.box.alpha = 0.8;
menuRoll2 = false;
if (more_fade_int > 1){
more_fade_int--;
};
};
sponsor.gotoAndStop(more_fade_int);
hub.rage.bar1.scaleX = (1 - ((20 - (masterSpeed - 10)) / 20));
hub.rage.bar2.scaleX = (1 - ((20 - (masterSpeed - 10)) / 20));
hub.fuel.bar1.scaleX = (totalFuel / 100);
hub.fuel.bar2.scaleX = (totalFuel / 100);
hub.fuel.maxfuel.scaleX = (1 - (maxFuel / 100));
hub.menuBack.musicNote.gotoAndStop((toggleMusic + 1));
hub.menuBack.soundSymbol.gotoAndStop((toggleSound + 1));
if ((Math.floor(((masterSpeed - 10) / 5)) + 1) > multiplier){
hub.score.play();
};
multiplier = (Math.floor(((masterSpeed - 10) / 5)) + 1);
hub.score.multiplierText.text = ("X" + multiplier);
if (crush.tar > 1){
hub.tar.alpha = 1;
} else {
hub.tar.alpha = 0;
};
hub.tar.bar.scaleX = ((crush.tar - 1) / 4);
crush.tarTrail.alpha = ((crush.tar - 1) / 4);
if (crush.oil > 1){
hub.oil.alpha = 1;
} else {
hub.oil.alpha = 0;
};
hub.oil.bar.scaleX = ((crush.oil - 1) / 4);
crush.oilTrail.alpha = ((crush.oil - 1) / 4);
if (hub.menuBack.menuText.hitTestPoint(mouseX, mouseY, true)){
hub.menuBack.menuText.alpha = 1;
} else {
hub.menuBack.menuText.alpha = 0.5;
};
if (hub.menuBack.musicNote.hitTestPoint(mouseX, mouseY, true)){
hub.menuBack.musicNote.alpha = 1;
} else {
hub.menuBack.musicNote.alpha = 0.5;
};
if (hub.menuBack.soundSymbol.hitTestPoint(mouseX, mouseY, true)){
hub.menuBack.soundSymbol.alpha = 1;
} else {
hub.menuBack.soundSymbol.alpha = 0.5;
};
if (gameo.menuPlay.hitTestPoint(mouseX, mouseY, true)){
gameo.menuPlay.box.alpha = 1;
} else {
gameo.menuPlay.box.alpha = 0.8;
};
if (gameo.moreGames.hitTestPoint(mouseX, mouseY, true)){
gameo.moreGames.box.alpha = 1;
} else {
gameo.moreGames.box.alpha = 0.8;
};
if ((((gameo.scoreBox.scoreText.text == "Enter a Name")) || ((scoreSubmitted == true)))){
gameo.scoreBox.scoreSubmit.box.alpha = 0.3;
} else {
if (gameo.scoreBox.scoreSubmit.hitTestPoint(mouseX, mouseY, true)){
gameo.scoreBox.scoreSubmit.box.alpha = 1;
} else {
gameo.scoreBox.scoreSubmit.box.alpha = 0.8;
};
};
if (hub.menuPlay.hitTestPoint(mouseX, mouseY, true)){
hub.menuPlay.box.alpha = 1;
} else {
hub.menuPlay.box.alpha = 0.8;
};
if ((((gamePhase > 0)) && ((hub.instruct.box.alpha > 0)))){
hub.instruct.box.alpha = (hub.instruct.box.alpha - 0.1);
hub.instruct.tutText.text = "";
};
if ((((gamePhase == 0)) && ((hub.instruct.box.alpha < 0.8)))){
hub.instruct.tutText.text = "Instructions";
if (hub.instruct.hitTestPoint(mouseX, mouseY, true)){
hub.instruct.box.alpha = 1;
} else {
hub.instruct.box.alpha = (hub.instruct.box.alpha + 0.1);
};
};
if (hub.currentFrame == 80){
gameStarted = true;
};
if (roadMove == true){
roadSpeed = masterSpeed;
crush.machine.play();
i = 0;
while (i < enemy_container.numChildren) {
Object(enemy_container.getChildAt(i)).speedInt = masterSpeed;
if ((((dead == true)) || ((gameStarted == false)))){
Object(enemy_container.getChildAt(i)).fadeout = true;
};
Object(enemy_container.getChildAt(i)).xMin = road.box.y;
Object(enemy_container.getChildAt(i)).xMax = (road.box.y + road.box.height);
if (Object(enemy_container.getChildAt(i)).x < 550){
if (Object(enemy_container.getChildAt(i)).alive == true){
if (Math.random() > 0.99){
if (crush.y < (road.box.y + (road.box.height / 2))){
Object(enemy_container.getChildAt(i)).enemyDirection = "down";
} else {
Object(enemy_container.getChildAt(i)).enemyDirection = "up";
};
};
if (Object(enemy_container.getChildAt(i)).enemyDirection == "down"){
if (Object(enemy_container.getChildAt(i)).yAccel < (Object(enemy_container.getChildAt(i)).dodgeLevel * 10)){
Object(enemy_container.getChildAt(i)).yAccel = (Object(enemy_container.getChildAt(i)).yAccel + Object(enemy_container.getChildAt(i)).dodgeLevel);
};
} else {
if (Object(enemy_container.getChildAt(i)).yAccel > (Object(enemy_container.getChildAt(i)).dodgeLevel * -10)){
Object(enemy_container.getChildAt(i)).yAccel = (Object(enemy_container.getChildAt(i)).yAccel - Object(enemy_container.getChildAt(i)).dodgeLevel);
};
};
};
};
if (crush.machine.hitTestObject(enemy_container.getChildAt(i))){
if ((((crush.y < enemy_container.getChildAt(i).y)) && ((getChildIndex(crush) > getChildIndex(enemy_container))))){
setChildIndex(crush, getChildIndex(enemy_container));
};
if ((((crush.y > enemy_container.getChildAt(i).y)) && ((getChildIndex(crush) < getChildIndex(enemy_container))))){
setChildIndex(crush, getChildIndex(enemy_container));
};
};
if ((((dead == false)) && ((gameStarted == true)))){
if (crush.screamBox.hitTestObject(MovieClip(enemy_container.getChildAt(i)).box)){
if (MovieClip(enemy_container.getChildAt(i)).screamed == false){
MovieClip(enemy_container.getChildAt(i)).screamed = true;
if (MovieClip(enemy_container.getChildAt(i)).enemyName == "man"){
_local2 = new scream_man();
_local2.play(0, 0, soundVolume);
};
if (MovieClip(enemy_container.getChildAt(i)).enemyName == "woman"){
_local3 = new scream_woman();
_local3.play(0, 0, soundVolume);
};
};
};
if (crush.machine.kill.hitTestObject(MovieClip(enemy_container.getChildAt(i)).box)){
if (Object(enemy_container.getChildAt(i)).alive == true){
crush.gotoAndPlay(MovieClip(enemy_container.getChildAt(i)).enemyName);
squishSound();
if (dead == false){
totalScore = (totalScore + (100 * multiplier));
};
masterSpeed = (masterSpeed + 1);
if (masterSpeed > 30){
masterSpeed = 30;
};
totalFuel = (totalFuel + (5 * Object(enemy_container.getChildAt(i)).sizeLevel));
if (totalFuel > maxFuel){
totalFuel = maxFuel;
};
if (totalFuel >= 100){
totalFuel = 100;
};
Object(enemy_container.getChildAt(i)).alive = false;
Object(enemy_container.getChildAt(i)).crushed = true;
bloodSpew(50, ((crush.x + 80) - (Math.random() * 10)), (enemy_container.getChildAt(i).y - (Math.random() * 60)));
};
} else {
if (crush.machine.box.hitTestObject(Object(enemy_container.getChildAt(i)).box)){
if (Object(enemy_container.getChildAt(i)).alive == true){
squishSound();
if (dead == false){
totalScore = (totalScore + (100 * multiplier));
};
masterSpeed = (masterSpeed + 1);
if (masterSpeed > 30){
masterSpeed = 30;
};
Object(enemy_container.getChildAt(i)).enemySelect.gotoAndStop("dead");
Object(enemy_container.getChildAt(i)).enemySelect2.gotoAndStop("dead");
Object(enemy_container.getChildAt(i)).alive = false;
bloodSpew(20, (enemy_container.getChildAt(i).x - 20), enemy_container.getChildAt(i).y);
};
};
};
};
i++;
};
i = 0;
while (i < oil_container.numChildren) {
Object(oil_container.getChildAt(i)).speed = masterSpeed;
if ((((dead == true)) || ((gameStarted == false)))){
Object(oil_container.getChildAt(i)).fadeout = true;
};
if (crush.machine.box.hitTestObject(oil_container.getChildAt(i))){
if (Object(oil_container.getChildAt(i)).alive == true){
Object(oil_container.getChildAt(i)).alive = false;
if (Object(oil_container.getChildAt(i)).obstacle == "tar"){
crush.tar = 5;
} else {
if (Object(oil_container.getChildAt(i)).obstacle == "oil"){
crush.oil = 5;
} else {
if (Object(oil_container.getChildAt(i)).obstacle == "mine"){
explode.x = Object(oil_container.getChildAt(i)).x;
explode.y = Object(oil_container.getChildAt(i)).y;
explode.play();
_local4 = new fxExplode();
_local4.play(0, 0, soundVolume);
maxFuel = (maxFuel - Math.ceil((maxFuel / 5)));
if (totalFuel > maxFuel){
totalFuel = maxFuel;
};
};
};
};
};
};
i++;
};
i = 0;
while (i < egg_container.numChildren) {
Object(egg_container.getChildAt(i)).speed = masterSpeed;
if ((((dead == true)) || ((gameStarted == false)))){
Object(egg_container.getChildAt(i)).fadeout = true;
};
if (crush.machine.box.hitTestObject(Object(egg_container.getChildAt(i)).box)){
if (Object(egg_container.getChildAt(i)).alive == true){
Object(egg_container.getChildAt(i)).alive = false;
masterSpeed = 10;
};
};
i++;
};
if (gameStarted == true){
gameTimerInt = (gameTimerInt + 1);
if (gameTimerInt > 30){
gameTimerInt = 0;
gameTimer = (gameTimer + 1);
};
if ((((dead == false)) && ((totalFuel <= 0)))){
if (totalScore > stageScore){
stageScore = totalScore;
so.data.stageScore = stageScore;
};
dead = true;
gameo.play();
gameo.x = 275;
gameo.y = 180;
gameo.scoreBox.scoreText.text = myName;
} else {
if (totalFuel <= 0){
totalFuel = 0;
} else {
totalFuel = (totalFuel - 0.12);
};
};
oilTimer++;
gameOilTimer = (gameTimer * 3);
if (gameOilTimer > 500){
gameOilTimer = 500;
};
if (oilTimer >= (((600 - gameOilTimer) + (Math.random() * 100)) - masterSpeed)){
oilTimer = 0;
topBound = (road.box.y + (Math.random() * ((road.box.y + road.box.height) - road.box.y)));
_local5 = new oil_spill(topBound, masterSpeed);
oil_container.addChild(_local5);
};
eggTimer++;
if (eggTimer >= ((100 + (Math.random() * 40)) - masterSpeed)){
eggTimer = 0;
topBound = (road.box.y + (Math.random() * ((road.box.y + road.box.height) - road.box.y)));
_local6 = new easter_egg(topBound, masterSpeed);
egg_container.addChild(_local6);
};
enemyTimer++;
if (enemyTimer >= (50 + (Math.random() * (40 - masterSpeed)))){
enemyTimer = 0;
topBound = (road.box.y + (Math.random() * ((road.box.y + road.box.height) - road.box.y)));
_local7 = Math.ceil((Math.random() * 4));
_local8 = new enemy(topBound, masterSpeed, _local7);
enemy_container.addChild(_local8);
};
};
} else {
if (roadSpeed > 0){
roadSpeed--;
};
if ((((crush.keyRightArrow == true)) || ((crush.keyLeftArrow == true)))){
crush.machine.play();
} else {
crush.machine.stop();
};
};
i = 0;
while (i < blood_container.numChildren) {
if (Object(blood_container.getChildAt(i)).ySpeed > 5){
_local9 = new blood_ground(blood_container.getChildAt(i).x, blood_container.getChildAt(i).y, masterSpeed);
stain_container.addChild(_local9);
blood(blood_container.getChildAt(i)).removeSelf();
};
i++;
};
road.road.x = (road.road.x - roadSpeed);
if (road.road.x <= -330){
road.road.x = 1070;
ranHouse = Math.ceil((Math.random() * 3));
ranObject = Math.ceil((Math.random() * 5));
i = 1;
while (i < 4) {
road.road[("house" + i)].gotoAndStop(ranHouse);
i++;
};
i = 1;
while (i < 2) {
road.road[("backObject" + i)].gotoAndStop(ranObject);
i++;
};
};
crush.speedInt = masterSpeed;
if (sign_container.numChildren > 0){
sign.x = (sign.x - signAccel);
if (gamePhase == 1){
signAccel = (signAccel - 2);
if (signAccel < 0){
signAccel = 0;
gamePhase = 2;
};
};
if (gamePhase == 3){
signAccel = (signAccel + 2);
};
if (sign.x <= -330){
sign_container.removeChildAt(0);
signAccel = 47;
if (tutPhase == 5){
readTut = true;
warn.x = -300;
tutPhase = 1;
gamePhase = 0;
} else {
tutPhase++;
signCreate(tutPhase);
gamePhase = 1;
};
};
};
hub.score.score.text = ("Score: " + totalScore);
}
public function keyUpFunction(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 37){
crush.keyLeftArrow = false;
};
if (_arg1.keyCode == 38){
crush.keyUpArrow = false;
};
if (_arg1.keyCode == 39){
crush.keyRightArrow = false;
i = 0;
while (i < enemy_container.numChildren) {
Object(enemy_container.getChildAt(i)).keyRightArrow = false;
i++;
};
};
if (_arg1.keyCode == 40){
crush.keyDownArrow = false;
};
if (_arg1.keyCode == 32){
keySpace = false;
};
if (_arg1.keyCode == 75){
keyLetterK = false;
};
}
}
}//package easter_fla
Section 23
//menu_box_credits_62 (easter_fla.menu_box_credits_62)
package easter_fla {
import flash.display.*;
public dynamic class menu_box_credits_62 extends MovieClip {
public var box:MovieClip;
}
}//package easter_fla
Section 24
//menu_box_more_61 (easter_fla.menu_box_more_61)
package easter_fla {
import flash.display.*;
public dynamic class menu_box_more_61 extends MovieClip {
public var box:MovieClip;
}
}//package easter_fla
Section 25
//menu_box_play_60 (easter_fla.menu_box_play_60)
package easter_fla {
import flash.display.*;
public dynamic class menu_box_play_60 extends MovieClip {
public var box:MovieClip;
}
}//package easter_fla
Section 26
//moregames_text_35 (easter_fla.moregames_text_35)
package easter_fla {
import flash.display.*;
public dynamic class moregames_text_35 extends MovieClip {
public var box:MovieClip;
}
}//package easter_fla
Section 27
//oil_trail_4_22 (easter_fla.oil_trail_4_22)
package easter_fla {
import flash.display.*;
public dynamic class oil_trail_4_22 extends MovieClip {
public var oil1:MovieClip;
public var oil3:MovieClip;
public var oil2:MovieClip;
public var oil4:MovieClip;
}
}//package easter_fla
Section 28
//scoreBox_36 (easter_fla.scoreBox_36)
package easter_fla {
import flash.display.*;
import flash.text.*;
public dynamic class scoreBox_36 extends MovieClip {
public var scoreSubmit:MovieClip;
public var scoreText:TextField;
}
}//package easter_fla
Section 29
//submitButton_37 (easter_fla.submitButton_37)
package easter_fla {
import flash.display.*;
public dynamic class submitButton_37 extends MovieClip {
public var box:MovieClip;
}
}//package easter_fla
Section 30
//Symbol1_20 (easter_fla.Symbol1_20)
package easter_fla {
import flash.display.*;
public dynamic class Symbol1_20 extends MovieClip {
public function Symbol1_20(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package easter_fla
Section 31
//tarl_trail_4_24 (easter_fla.tarl_trail_4_24)
package easter_fla {
import flash.display.*;
public dynamic class tarl_trail_4_24 extends MovieClip {
public var oil1:MovieClip;
public var oil3:MovieClip;
public var oil2:MovieClip;
public var oil4:MovieClip;
}
}//package easter_fla
Section 32
//arrow_marker (arrow_marker)
package {
import flash.events.*;
import flash.display.*;
public class arrow_marker extends MovieClip {
public var speedInt:Number;// = 0
public var alive:Boolean;// = true
public function arrow_marker(_arg1, _arg2, _arg3):void{
speedInt = 0;
alive = true;
super();
gotoAndStop(_arg2);
speedInt = _arg3;
x = 530;
y = _arg1;
alpha = 0;
addEventListener("enterFrame", arrowMove);
}
public function arrowMove(_arg1:Event):void{
if (alpha >= 1){
removeSelf();
};
}
public function removeSelf():void{
parent.removeChild(this);
this.removeEventListener("enterFrame", arrowMove);
}
}
}//package
Section 33
//blood (blood)
package {
import flash.events.*;
import flash.display.*;
public class blood extends Sprite {
public var ySpeed:Number;
public var xSpeed:Number;
public function blood(_arg1, _arg2):void{
xSpeed = (8 - (Math.random() * 10));
ySpeed = (-3 - (Math.random() * 4));
super();
x = _arg1;
y = _arg2;
scaleX = (scaleY = Math.random());
alpha = ((Math.random() * 0.5) + 0.5);
addEventListener("enterFrame", bloodMove);
}
public function bloodMove(_arg1:Event):void{
ySpeed = (ySpeed + 0.5);
y = (y + ySpeed);
xSpeed = (xSpeed - 0.2);
x = (x + xSpeed);
}
public function removeSelf():void{
parent.removeChild(this);
this.removeEventListener("enterFrame", bloodMove);
}
}
}//package
Section 34
//blood_ground (blood_ground)
package {
import flash.events.*;
import flash.display.*;
public class blood_ground extends Sprite {
public var speedInt:int;// = 0
public var ySpeed:Number;// = -5
public var xSpeed:Number;
public function blood_ground(_arg1, _arg2, _arg3):void{
xSpeed = (8 - (Math.random() * 10));
ySpeed = -5;
speedInt = 0;
super();
x = _arg1;
y = _arg2;
speedInt = _arg3;
scaleX = Math.random();
scaleY = Math.random();
alpha = ((Math.random() * 0.5) + 0.5);
addEventListener("enterFrame", bloodMove);
}
public function bloodMove(_arg1:Event):void{
x = (x - speedInt);
if (x < 0){
parent.removeChild(this);
this.removeEventListener("enterFrame", bloodMove);
};
}
}
}//package
Section 35
//credits_fade (credits_fade)
package {
import flash.display.*;
public dynamic class credits_fade extends MovieClip {
public function credits_fade(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 36
//crusher (crusher)
package {
import flash.events.*;
import flash.display.*;
public class crusher extends MovieClip {
public var keyRightArrow:Boolean;// = false
public var topBound2:int;// = 0
public var xAccel:Number;// = 0
public var oilTrail:MovieClip;
public var machine:MovieClip;
public var screamBox:MovieClip;
public var startMove:int;// = 60
public var tarTrail:MovieClip;
public var speedInt:Number;// = 0
public var bottomBound2:int;// = 0
public var tar:Number;// = 1
public var keyLeftArrow:Boolean;// = false
public var keyUpArrow:Boolean;// = false
public var oil:Number;// = 1
public var keyDownArrow:Boolean;// = false
public var yAccel:Number;// = 0
public function crusher(_arg1, _arg2, _arg3):void{
keyRightArrow = false;
keyUpArrow = false;
keyDownArrow = false;
keyLeftArrow = false;
startMove = 60;
topBound2 = 0;
bottomBound2 = 0;
oil = 1;
tar = 1;
xAccel = 0;
yAccel = 0;
speedInt = 0;
super();
addFrameScript(0, frame1, 25, frame26, 53, frame54, 70, frame71, 87, frame88);
speedInt = _arg3;
x = -75;
y = 300;
topBound2 = (_arg1 - 5);
bottomBound2 = (_arg2 + 5);
addEventListener("enterFrame", crushMove);
}
function frame71(){
machine.blood.play();
gotoAndStop(1);
}
public function crushMove(_arg1:Event):void{
if (startMove > 0){
startMove--;
x = (x + 5);
};
if (oil > 1){
oil = (oil - 0.05);
};
if (tar > 1){
tar = (tar - 0.05);
};
scaleX = (scaleY = (0.8 + ((y - topBound2) / 500)));
if (keyLeftArrow == true){
if (xAccel > -5){
xAccel = (xAccel - 1);
};
} else {
if (keyRightArrow == true){
if (xAccel < 5){
xAccel = (xAccel + 1);
};
} else {
if (xAccel < 0){
xAccel = (xAccel + 1);
} else {
if (xAccel > 0){
xAccel = (xAccel - 1);
};
};
};
};
if ((((((xAccel < 0)) && ((x > 75)))) || ((((xAccel > 0)) && ((x < (550 - 75))))))){
x = (x + (Math.ceil(oil) * (xAccel / Math.ceil(tar))));
};
if (keyUpArrow == true){
if (yAccel > -((4 + (speedInt / 10)))){
yAccel = (yAccel - Math.floor(((speedInt / 30) + 1)));
};
} else {
if (keyDownArrow == true){
if (yAccel < (4 + (speedInt / 10))){
yAccel = (yAccel + Math.ceil(((speedInt / 30) + 1)));
};
} else {
if (yAccel < 0){
yAccel = (yAccel + Math.floor((((speedInt / 30) + 1) / Math.ceil(oil))));
} else {
if (yAccel > 0){
yAccel = (yAccel - Math.ceil((((speedInt / 30) + 1) / Math.ceil(oil))));
};
};
};
};
if ((((((yAccel < 0)) && ((y > topBound2)))) || ((((yAccel > 0)) && ((y < bottomBound2)))))){
y = (y + (yAccel / Math.ceil(tar)));
};
}
function frame88(){
machine.blood.play();
gotoAndStop(1);
}
function frame26(){
machine.blood.play();
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame54(){
machine.blood.play();
gotoAndStop(1);
}
}
}//package
Section 37
//easter_egg (easter_egg)
package {
import flash.events.*;
import flash.display.*;
public class easter_egg extends MovieClip {
public var speed:int;// = 0
public var fadeout:Boolean;// = false
public var alive:Boolean;// = true
public var box:MovieClip;
public function easter_egg(_arg1, _arg2):void{
speed = 0;
alive = true;
fadeout = false;
super();
speed = _arg2;
x = 1000;
y = _arg1;
addEventListener("enterFrame", eggMove);
}
public function eggMove(_arg1:Event):void{
if (fadeout == true){
if (alpha > 0){
alpha = (alpha - 0.2);
};
};
x = (x - speed);
if ((((x < -100)) || ((alpha == 0)))){
removeSelf();
};
if (alive == false){
alpha = (alpha - 0.2);
};
}
public function removeSelf():void{
parent.removeChild(this);
this.removeEventListener("enterFrame", eggMove);
}
}
}//package
Section 38
//enemy (enemy)
package {
import flash.events.*;
import flash.display.*;
public class enemy extends MovieClip {
public var enemySelect2:MovieClip;
public var sizeLevel:Number;// = 0
public var keyRightArrow:Boolean;// = false
public var topBound2:int;// = 0
public var enemyName:String;// = ""
public var speedInt:int;// = 0
public var fadeout:Boolean;// = false
public var crushed:Boolean;// = false
public var enemySelect:MovieClip;
public var xMin:Number;// = 0
public var xMax:Number;// = 0
public var alive:Boolean;// = true
public var screamed:Boolean;// = false
public var box:MovieClip;
public var enemyDirection:String;// = "up"
public var enemyType:Number;// = 1
public var dodgeLevel:Number;// = 0
public var yAccel:Number;// = 0
public var yMove:Number;// = 0
public function enemy(_arg1, _arg2, _arg3):void{
speedInt = 0;
yAccel = 0;
yMove = 0;
enemyType = 1;
enemyDirection = "up";
xMin = 0;
xMax = 0;
topBound2 = 0;
alive = true;
crushed = false;
fadeout = false;
screamed = false;
dodgeLevel = 0;
sizeLevel = 0;
enemyName = "";
keyRightArrow = false;
super();
speedInt = _arg2;
if (_arg3 == 1){
dodgeLevel = 0.3;
sizeLevel = 1.3;
enemyName = "chicken";
} else {
if (_arg3 == 2){
dodgeLevel = 0.5;
sizeLevel = 1.6;
enemyName = "bunny";
} else {
if (_arg3 == 3){
dodgeLevel = 1;
sizeLevel = 2;
enemyName = "man";
} else {
if (_arg3 == 4){
dodgeLevel = 1;
sizeLevel = 2;
enemyName = "woman";
};
};
};
};
enemyType = _arg3;
if (Math.random() > 0.5){
enemyDirection = "down";
};
x = 1000;
y = _arg1;
topBound2 = _arg1;
gotoAndStop(((_arg3 * 10) - 9));
addEventListener("enterFrame", enemyMove);
}
public function enemyMove(_arg1:Event):void{
if (fadeout == true){
if (alpha > 0){
alpha = (alpha - 0.2);
};
};
scaleX = (scaleY = (0.8 + ((y - topBound2) / 500)));
if (alive == true){
x = (x - ((speedInt / 4) + 7));
} else {
x = (x - speedInt);
};
if ((((x < -100)) || ((crushed == true)))){
removeSelf();
};
if (keyRightArrow == true){
yMove = (yAccel / 2);
} else {
yMove = yAccel;
};
if (alive == true){
if ((((((y > xMin)) && ((yAccel < 0)))) || ((((y < xMax)) && ((yAccel > 0)))))){
y = (y + (yMove / (speedInt / 5)));
};
};
}
public function removeSelf():void{
parent.removeChild(this);
this.removeEventListener("enterFrame", enemyMove);
}
}
}//package
Section 39
//explosion (explosion)
package {
import flash.display.*;
public dynamic class explosion extends MovieClip {
public function explosion(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 40
//fxExplode (fxExplode)
package {
import flash.media.*;
public dynamic class fxExplode extends Sound {
}
}//package
Section 41
//fxSquish (fxSquish)
package {
import flash.media.*;
public dynamic class fxSquish extends Sound {
}
}//package
Section 42
//gameover (gameover)
package {
import flash.display.*;
public dynamic class gameover extends MovieClip {
public var menuPlay:MovieClip;
public var moreGames:MovieClip;
public var scoreBox:MovieClip;
public function gameover(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package
Section 43
//highway (highway)
package {
import flash.media.*;
public dynamic class highway extends Sound {
}
}//package
Section 44
//hub_display (hub_display)
package {
import flash.display.*;
public dynamic class hub_display extends MovieClip {
public var highScore:MovieClip;
public var menuPlay:MovieClip;
public var sponsorBox:MovieClip;
public var score:MovieClip;
public var instruct:MovieClip;
public var rage:MovieClip;
public var tar:MovieClip;
public var logo:MovieClip;
public var fuel:MovieClip;
public var creditsBox:MovieClip;
public var oil:MovieClip;
public var menuBack:MovieClip;
public function hub_display(){
addFrameScript(19, frame20, 79, frame80);
}
function frame80(){
stop();
}
function frame20(){
stop();
}
}
}//package
Section 45
//oil_spill (oil_spill)
package {
import flash.events.*;
import flash.display.*;
public class oil_spill extends MovieClip {
public var speed:int;// = 0
public var fadeout:Boolean;// = false
public var obstacle:String;// = ""
public var alive:Boolean;// = true
public var ranType:Number;
public function oil_spill(_arg1, _arg2):void{
speed = 0;
alive = true;
fadeout = false;
ranType = (Math.random() * 3);
obstacle = "";
super();
if (ranType > 2){
obstacle = "mine";
} else {
if (ranType > 1){
obstacle = "oil";
} else {
if (ranType > 0){
obstacle = "tar";
};
};
};
gotoAndStop(obstacle);
speed = _arg2;
x = 1000;
y = _arg1;
addEventListener("enterFrame", oilMove);
}
public function oilMove(_arg1:Event):void{
if (fadeout == true){
if (alpha > 0){
alpha = (alpha - 0.2);
};
};
x = (x - speed);
if ((((x < -100)) || ((alpha == 0)))){
removeSelf();
};
if (alive == false){
alpha = (alpha - 0.2);
};
}
public function removeSelf():void{
parent.removeChild(this);
this.removeEventListener("enterFrame", oilMove);
}
}
}//package
Section 46
//road_back (road_back)
package {
import flash.display.*;
public dynamic class road_back extends MovieClip {
public var road:MovieClip;
public var box:MovieClip;
}
}//package
Section 47
//scream_man (scream_man)
package {
import flash.media.*;
public dynamic class scream_man extends Sound {
}
}//package
Section 48
//scream_woman (scream_woman)
package {
import flash.media.*;
public dynamic class scream_woman extends Sound {
}
}//package
Section 49
//signpost (signpost)
package {
import flash.display.*;
public dynamic class signpost extends MovieClip {
}
}//package
Section 50
//sponsor_fade (sponsor_fade)
package {
import flash.display.*;
public dynamic class sponsor_fade extends MovieClip {
public function sponsor_fade(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 51
//tutwarn (tutwarn)
package {
import flash.display.*;
public dynamic class tutwarn extends MovieClip {
}
}//package