Section 1
//Credits_99 (preloader_bunnyfreshnomochi_fla.Credits_99)
package preloader_bunnyfreshnomochi_fla {
import flash.display.*;
public dynamic class Credits_99 extends MovieClip {
public var hero:Hero;
}
}//package preloader_bunnyfreshnomochi_fla
Section 2
//fmi_preloader_2 (preloader_bunnyfreshnomochi_fla.fmi_preloader_2)
package preloader_bunnyfreshnomochi_fla {
import flash.display.*;
public dynamic class fmi_preloader_2 extends MovieClip {
public var loaderbar:MovieClip;
public function fmi_preloader_2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package preloader_bunnyfreshnomochi_fla
Section 3
//Level1_35 (preloader_bunnyfreshnomochi_fla.Level1_35)
package preloader_bunnyfreshnomochi_fla {
import flash.display.*;
public dynamic class Level1_35 extends MovieClip {
public var hero:Hero;
public var enemy1:Enemy;
public var enemy4:Enemy;
public var enemy2:Enemy;
public var enemy3:Enemy;
public function Level1_35(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package preloader_bunnyfreshnomochi_fla
Section 4
//Level2_51 (preloader_bunnyfreshnomochi_fla.Level2_51)
package preloader_bunnyfreshnomochi_fla {
import flash.display.*;
public dynamic class Level2_51 extends MovieClip {
public var hero:Hero;
public var enemy1:Enemy;
public var enemy4:Enemy;
public var enemy5:Enemy;
public var enemy2:Enemy;
public var enemy6:Enemy;
public var enemy3:Enemy;
public function Level2_51(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package preloader_bunnyfreshnomochi_fla
Section 5
//Level3_55 (preloader_bunnyfreshnomochi_fla.Level3_55)
package preloader_bunnyfreshnomochi_fla {
import flash.display.*;
public dynamic class Level3_55 extends MovieClip {
public var hero:Hero;
public var enemy1:Enemy;
public var enemy4:Enemy;
public var enemy5:Enemy;
public var enemy2:Enemy;
public var enemy6:Enemy;
public var enemy3:Enemy;
public function Level3_55(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package preloader_bunnyfreshnomochi_fla
Section 6
//Level4_60 (preloader_bunnyfreshnomochi_fla.Level4_60)
package preloader_bunnyfreshnomochi_fla {
import flash.display.*;
public dynamic class Level4_60 extends MovieClip {
public var hero:Hero;
public var spiker2:Spiker;
public var spiker1:Spiker;
public var enemy1:Enemy;
public var enemy4:Enemy;
public var enemy5:Enemy;
public var enemy7:Enemy;
public var enemy2:Enemy;
public var enemy6:Enemy;
public var enemy3:Enemy;
public function Level4_60(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package preloader_bunnyfreshnomochi_fla
Section 7
//Level5_72 (preloader_bunnyfreshnomochi_fla.Level5_72)
package preloader_bunnyfreshnomochi_fla {
import flash.display.*;
public dynamic class Level5_72 extends MovieClip {
public var hero:Hero;
public var spiker3:Spiker;
public var spiker5:Spiker;
public var spiker2:Spiker;
public var spiker4:Spiker;
public var spiker1:Spiker;
public var enemy1:Enemy;
public var enemy4:Enemy;
public var enemy5:Enemy;
public var enemy2:Enemy;
public var enemy3:Enemy;
public function Level5_72(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package preloader_bunnyfreshnomochi_fla
Section 8
//Level6_76 (preloader_bunnyfreshnomochi_fla.Level6_76)
package preloader_bunnyfreshnomochi_fla {
import flash.display.*;
public dynamic class Level6_76 extends MovieClip {
public var hero:Hero;
public var spiker3:Spiker;
public var spiker6:Spiker;
public var spiker5:Spiker;
public var spiker2:Spiker;
public var spiker4:Spiker;
public var spiker1:Spiker;
public var enemy1:Enemy;
public var enemy4:Enemy;
public var enemy2:Enemy;
public var enemy3:Enemy;
public function Level6_76(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package preloader_bunnyfreshnomochi_fla
Section 9
//Level7_78 (preloader_bunnyfreshnomochi_fla.Level7_78)
package preloader_bunnyfreshnomochi_fla {
import flash.display.*;
public dynamic class Level7_78 extends MovieClip {
public var hero:Hero;
public var spiker3:Spiker;
public var spiker2:Spiker;
public var spiker1:Spiker;
public function Level7_78(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package preloader_bunnyfreshnomochi_fla
Section 10
//Level8_83 (preloader_bunnyfreshnomochi_fla.Level8_83)
package preloader_bunnyfreshnomochi_fla {
import flash.display.*;
public dynamic class Level8_83 extends MovieClip {
public var hero:Hero;
public var header1:Header;
public var header2:Header;
public var header3:Header;
public var spiker1:Spiker;
public var enemy1:Enemy;
public function Level8_83(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package preloader_bunnyfreshnomochi_fla
Section 11
//Twssssssssssssseen2_16 (preloader_bunnyfreshnomochi_fla.Twssssssssssssseen2_16)
package preloader_bunnyfreshnomochi_fla {
import flash.display.*;
public dynamic class Twssssssssssssseen2_16 extends MovieClip {
public function Twssssssssssssseen2_16(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package preloader_bunnyfreshnomochi_fla
Section 12
//angels (angels)
package {
import flash.media.*;
public dynamic class angels extends Sound {
}
}//package
Section 13
//Arial (Arial)
package {
import flash.text.*;
public dynamic class Arial extends Font {
}
}//package
Section 14
//awesome (awesome)
package {
import flash.media.*;
public dynamic class awesome extends Sound {
}
}//package
Section 15
//BasicButton (BasicButton)
package {
import flash.display.*;
public dynamic class BasicButton extends SimpleButton {
}
}//package
Section 16
//BDoor (BDoor)
package {
import flash.display.*;
public dynamic class BDoor extends MovieClip {
}
}//package
Section 17
//BDoorx2 (BDoorx2)
package {
import flash.display.*;
public dynamic class BDoorx2 extends MovieClip {
}
}//package
Section 18
//BDoorx3 (BDoorx3)
package {
import flash.display.*;
public dynamic class BDoorx3 extends MovieClip {
}
}//package
Section 19
//begunback (begunback)
package {
import flash.display.*;
import flash.events.*;
public dynamic class begunback extends MovieClip {
public var beginextra:Symbol1;
public var instextra:Symbol5;
public function begunback(){
addFrameScript(0, frame1);
}
public function clickStartn(_arg1:MouseEvent){
nextFrame();
}
public function instStartn(_arg1:MouseEvent){
gotoAndStop("instruct");
}
function frame1(){
stop();
beginextra.addEventListener(MouseEvent.CLICK, clickStartn);
instextra.addEventListener(MouseEvent.CLICK, instStartn);
}
}
}//package
Section 20
//BigCarrot (BigCarrot)
package {
import flash.display.*;
public dynamic class BigCarrot extends MovieClip {
}
}//package
Section 21
//BKey (BKey)
package {
import flash.display.*;
public dynamic class BKey extends MovieClip {
}
}//package
Section 22
//BKeyx2 (BKeyx2)
package {
import flash.display.*;
public dynamic class BKeyx2 extends MovieClip {
}
}//package
Section 23
//BKeyx3 (BKeyx3)
package {
import flash.display.*;
public dynamic class BKeyx3 extends MovieClip {
}
}//package
Section 24
//Brick (Brick)
package {
import flash.display.*;
public dynamic class Brick extends MovieClip {
}
}//package
Section 25
//bricked (bricked)
package {
import flash.display.*;
public dynamic class bricked extends MovieClip {
}
}//package
Section 26
//BunnyPG (BunnyPG)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.media.*;
import flash.utils.*;
import flash.net.*;
public dynamic class BunnyPG extends MovieClip {
public var pleaseplay:Symbol1;
private var enemies:Array;
public var replayah:Symbol4;
public var preloader:Preloader;
private var lastTime:Number;// = 0
private var itemObjects:Array;
public var gameLoaded:Boolean;
public var levelDisplay:TextField;
public var scorz:Symbol7;
private var numCarrot:int;
private var gameMode:String;// = "start"
public var controls:Symbol5;
private var spikers:Array;
public var gamelevel:MovieClip;
public var creds:Symbol6;
public var back:Symbol2;
private var fixedObjects:Array;
public var infolya:Symbol3;
public var enem:Symbol8;
private var heroLives:int;
private var numCoin:int;
public var fck:butnfucker;
private var soundMode:String;// = "on"
public var more:Symbol13;
private var headers:Array;
private var numLevel:int;
private var heroObjects:Array;
public var livesDisplay:TextField;
private var gameScore:int;
public var scoreDisplay:TextField;
public var itemesis:Symbol9;
private var hero:Object;
static const edgeDistance:Number = 375;
static const gravity:Number = 0.003;
public function BunnyPG(){
soundMode = "on";
gameMode = "start";
lastTime = 0;
super();
addFrameScript(0, frame1, 169, frame170, 237, frame238, 238, frame239, 239, frame240, 240, frame241, 241, frame242, 242, frame243, 243, frame244, 244, frame245, 245, frame246, 246, frame247, 247, frame248, 248, frame249, 249, frame250, 250, frame251, 251, frame252, 252, frame253, 253, frame254, 254, frame255, 1724, frame1725);
}
public function showLives(){
livesDisplay.text = String(heroLives);
}
public function telleh(_arg1:MouseEvent){
gotoAndStop("scoring");
}
public function heroDie(){
var _local1:S4_died;
var _local2:SoundChannel;
var _local3:Dialog;
_local1 = new S4_died();
_local2 = _local1.play();
_local3 = new Dialog();
_local3.x = 225;
_local3.y = 150;
addChild(_local3);
if (heroLives == 0){
gameMode = "gameover";
_local3.message.text = "You died... GAME OVER";
_local3.total.text = ("Total Score: " + gameScore);
} else {
gameMode = "dead";
_local3.message.text = "You Died!";
heroLives--;
};
hero.mc.gotoAndPlay("die");
}
public function backInfo(_arg1:MouseEvent){
gotoAndStop("infes");
}
public function getObject(_arg1:int){
var _local2:PointBurst;
var _local3:S3_coin;
var _local4:SoundChannel;
var _local5:S2_carrot;
var _local6:SoundChannel;
if ((itemObjects[_arg1] is Coin)){
_local2 = new PointBurst(gamelevel, 50, itemObjects[_arg1].x, itemObjects[_arg1].y);
gamelevel.removeChild(itemObjects[_arg1]);
itemObjects.splice(_arg1, 1);
addScore(50);
addCoin();
_local3 = new S3_coin();
_local4 = _local3.play();
} else {
if ((itemObjects[_arg1] is Carrot)){
_local2 = new PointBurst(gamelevel, 100, itemObjects[_arg1].x, itemObjects[_arg1].y);
gamelevel.removeChild(itemObjects[_arg1]);
itemObjects.splice(_arg1, 1);
addScore(100);
addCarrot();
_local5 = new S2_carrot();
_local6 = _local5.play();
} else {
if ((itemObjects[_arg1] is BigCarrot)){
_local2 = new PointBurst(gamelevel, "+LIFE", hero.mc.x, hero.mc.y);
gamelevel.removeChild(itemObjects[_arg1]);
itemObjects.splice(_arg1, 1);
addLife(1);
addScore(250);
} else {
if ((itemObjects[_arg1] is Key)){
skey();
_local2 = new PointBurst(gamelevel, "Awesome!", itemObjects[_arg1].x, itemObjects[_arg1].y);
heroObjects.push("Key");
gamelevel.removeChild(itemObjects[_arg1]);
itemObjects.splice(_arg1, 1);
} else {
if ((itemObjects[_arg1] is Keyx2)){
skey();
_local2 = new PointBurst(gamelevel, "Awesome!", itemObjects[_arg1].x, itemObjects[_arg1].y);
heroObjects.push("Keyx2");
gamelevel.removeChild(itemObjects[_arg1]);
itemObjects.splice(_arg1, 1);
} else {
if ((itemObjects[_arg1] is Keyx4)){
skey();
_local2 = new PointBurst(gamelevel, "Awesome!", itemObjects[_arg1].x, itemObjects[_arg1].y);
heroObjects.push("Keyx4");
gamelevel.removeChild(itemObjects[_arg1]);
itemObjects.splice(_arg1, 1);
} else {
if ((itemObjects[_arg1] is Keyx3)){
skey();
_local2 = new PointBurst(gamelevel, "Awesome!", itemObjects[_arg1].x, itemObjects[_arg1].y);
heroObjects.push("Keyx3");
gamelevel.removeChild(itemObjects[_arg1]);
itemObjects.splice(_arg1, 1);
} else {
if ((itemObjects[_arg1] is SKey)){
skey();
_local2 = new PointBurst(gamelevel, "Sweet!", itemObjects[_arg1].x, itemObjects[_arg1].y);
heroObjects.push("SKey");
gamelevel.removeChild(itemObjects[_arg1]);
itemObjects.splice(_arg1, 1);
} else {
if ((itemObjects[_arg1] is SKeyx2)){
skey();
_local2 = new PointBurst(gamelevel, "Sweet!", itemObjects[_arg1].x, itemObjects[_arg1].y);
heroObjects.push("SKeyx2");
gamelevel.removeChild(itemObjects[_arg1]);
itemObjects.splice(_arg1, 1);
} else {
if ((itemObjects[_arg1] is SKeyx3)){
skey();
_local2 = new PointBurst(gamelevel, "Sweet!", itemObjects[_arg1].x, itemObjects[_arg1].y);
heroObjects.push("SKeyx3");
gamelevel.removeChild(itemObjects[_arg1]);
itemObjects.splice(_arg1, 1);
} else {
if ((itemObjects[_arg1] is BKey)){
skey();
_local2 = new PointBurst(gamelevel, "Nice!", itemObjects[_arg1].x, itemObjects[_arg1].y);
heroObjects.push("BKey");
gamelevel.removeChild(itemObjects[_arg1]);
itemObjects.splice(_arg1, 1);
} else {
if ((itemObjects[_arg1] is BKeyx2)){
skey();
_local2 = new PointBurst(gamelevel, "Nice!", itemObjects[_arg1].x, itemObjects[_arg1].y);
heroObjects.push("BKeyx2");
gamelevel.removeChild(itemObjects[_arg1]);
itemObjects.splice(_arg1, 1);
} else {
if ((itemObjects[_arg1] is BKeyx3)){
skey();
_local2 = new PointBurst(gamelevel, "Nice!", itemObjects[_arg1].x, itemObjects[_arg1].y);
heroObjects.push("BKeyx3");
gamelevel.removeChild(itemObjects[_arg1]);
itemObjects.splice(_arg1, 1);
} else {
if ((itemObjects[_arg1] is Lava)){
_local2 = new PointBurst(gamelevel, "b-b-b-broilk!", hero.mc.x, hero.mc.y);
heroDie();
} else {
if ((itemObjects[_arg1] is Lavax2)){
_local2 = new PointBurst(gamelevel, "Bleeeaarrrghh!", hero.mc.x, hero.mc.y);
heroDie();
} else {
if ((itemObjects[_arg1] is Lavax3)){
_local2 = new PointBurst(gamelevel, "Sizzzzplop!", hero.mc.x, hero.mc.y);
heroDie();
} else {
if ((itemObjects[_arg1] is Lavax6)){
_local2 = new PointBurst(gamelevel, "FRAK!", hero.mc.x, hero.mc.y);
heroDie();
} else {
if ((itemObjects[_arg1] is Lavax7)){
_local2 = new PointBurst(gamelevel, "OUCH!", hero.mc.x, hero.mc.y);
heroDie();
} else {
if ((itemObjects[_arg1] is Lavax8)){
_local2 = new PointBurst(gamelevel, "FARK!", hero.mc.x, hero.mc.y);
heroDie();
} else {
if ((itemObjects[_arg1] is Oil)){
_local2 = new PointBurst(gamelevel, "Blech!", hero.mc.x, hero.mc.y);
heroDie();
} else {
if ((itemObjects[_arg1] is Oilx2)){
_local2 = new PointBurst(gamelevel, "Spoilk!", hero.mc.x, hero.mc.y);
heroDie();
} else {
if ((itemObjects[_arg1] is Oilx3)){
_local2 = new PointBurst(gamelevel, "Glubble!", hero.mc.x, hero.mc.y);
heroDie();
} else {
if ((itemObjects[_arg1] is Oilx5)){
_local2 = new PointBurst(gamelevel, "Glubble!", hero.mc.x, hero.mc.y);
heroDie();
} else {
if ((itemObjects[_arg1] is Oilx7)){
_local2 = new PointBurst(gamelevel, "Dumpertrucks!", hero.mc.x, hero.mc.y);
heroDie();
} else {
if ((itemObjects[_arg1] is Skip)){
_local2 = new PointBurst(gamelevel, "Raaarrrgghghhg!", hero.mc.x, hero.mc.y);
levelComplete();
} else {
if ((itemObjects[_arg1] is Door)){
if (heroObjects.indexOf("Key") == -1){
return;
};
if (itemObjects[_arg1].currentFrame == 1){
levelComplete();
};
} else {
if ((itemObjects[_arg1] is Doorx2)){
if (heroObjects.indexOf("Keyx2") == -1){
return;
};
if (itemObjects[_arg1].currentFrame == 1){
levelComplete();
};
} else {
if ((itemObjects[_arg1] is Doorx3)){
if (heroObjects.indexOf("Keyx3") == -1){
return;
};
if (itemObjects[_arg1].currentFrame == 1){
levelComplete();
};
} else {
if ((itemObjects[_arg1] is Doorx4)){
if (heroObjects.indexOf("Keyx4") == -1){
return;
};
if (itemObjects[_arg1].currentFrame == 1){
levelComplete();
};
} else {
if ((itemObjects[_arg1] is SDoor)){
if (heroObjects.indexOf("SKey") == -1){
return;
};
if (itemObjects[_arg1].currentFrame == 1){
levelComplete();
};
} else {
if ((itemObjects[_arg1] is SDoorx2)){
if (heroObjects.indexOf("SKeyx2") == -1){
return;
};
if (itemObjects[_arg1].currentFrame == 1){
levelComplete();
};
} else {
if ((itemObjects[_arg1] is SDoorx3)){
if (heroObjects.indexOf("SKeyx3") == -1){
return;
};
if (itemObjects[_arg1].currentFrame == 1){
levelComplete();
};
} else {
if ((itemObjects[_arg1] is BDoor)){
if (heroObjects.indexOf("BKey") == -1){
return;
};
if (itemObjects[_arg1].currentFrame == 1){
levelComplete();
};
} else {
if ((itemObjects[_arg1] is BDoorx2)){
if (heroObjects.indexOf("BKeyx2") == -1){
return;
};
if (itemObjects[_arg1].currentFrame == 1){
levelComplete();
};
} else {
if ((itemObjects[_arg1] is BDoorx3)){
if (heroObjects.indexOf("BKeyx3") == -1){
return;
};
if (itemObjects[_arg1].currentFrame == 1){
levelComplete();
};
} else {
if ((itemObjects[_arg1] is EndDoor)){
gameMode = "done";
gotoAndPlay("sequence");
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function addEnemies(){
var _local1:int;
var _local2:*;
enemies = new Array();
_local1 = 1;
while (true) {
if (gamelevel[("enemy" + _local1)] == null){
break;
};
_local2 = new Object();
_local2.mc = gamelevel[("enemy" + _local1)];
_local2.dx = 0;
_local2.dy = 0;
_local2.inAir = false;
_local2.direction = 1;
_local2.animstate = "stand";
_local2.walkAnimation = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
_local2.animstep = 0;
_local2.jump = false;
_local2.moveRight = true;
_local2.moveLeft = false;
_local2.jumpSpeed = 1;
_local2.walkSpeed = 0.08;
_local2.width = 31.5;
_local2.height = 32.5;
enemies.push(_local2);
_local1++;
};
}
public function startLevel(){
createHero();
addEnemies();
addSpikers();
addHeaders();
examineLevel();
this.addEventListener(Event.ENTER_FRAME, gameLoop);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownFunction);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUpFunction);
gameMode = "play";
addScore(0);
showLives();
addLevel(0);
numLevel++;
showLevel();
numCarrot = 0;
numCoin = 0;
}
public function moveCharacter(_arg1:Object, _arg2:Number){
var _local3:Number;
var _local4:*;
var _local5:String;
var _local6:int;
var _local7:Number;
var _local8:int;
var _local9:Number;
if (_arg2 < 1){
return;
};
_local3 = ((_arg1.dy * _arg2) + (_arg2 * gravity));
if (_local3 > 15){
_local3 = 15;
};
_arg1.dy = (_arg1.dy + (_arg2 * gravity));
_local4 = 0;
_local5 = "stand";
_local6 = _arg1.direction;
if (_arg1.moveLeft){
_local4 = (-(_arg1.walkSpeed) * _arg2);
_local5 = "walk";
_local6 = -1;
} else {
if (_arg1.moveRight){
_local4 = (_arg1.walkSpeed * _arg2);
_local5 = "walk";
_local6 = 1;
};
};
if (_arg1.jump){
_arg1.jump = false;
_arg1.dy = -(_arg1.jumpSpeed);
_local3 = -(_arg1.jumpSpeed);
_local5 = "jump";
};
_arg1.hitWallRight = false;
_arg1.hitWallLeft = false;
_arg1.inAir = true;
_local7 = (_arg1.mc.y + _local3);
_local8 = 0;
while (_local8 < fixedObjects.length) {
if (((((_arg1.mc.x + (_arg1.width / 2)) > fixedObjects[_local8].leftside)) && (((_arg1.mc.x - (_arg1.width / 2)) < fixedObjects[_local8].rightside)))){
if ((((_arg1.mc.y <= fixedObjects[_local8].topside)) && ((_local7 > fixedObjects[_local8].topside)))){
_local7 = fixedObjects[_local8].topside;
_arg1.dy = 0;
_arg1.inAir = false;
break;
};
};
_local8++;
};
_local9 = (_arg1.mc.x + _local4);
_local8 = 0;
while (_local8 < fixedObjects.length) {
if ((((_local7 > fixedObjects[_local8].topside)) && (((_local7 - _arg1.height) < fixedObjects[_local8].bottomside)))){
if (((((_arg1.mc.x - (_arg1.width / 2)) >= fixedObjects[_local8].rightside)) && (((_local9 - (_arg1.width / 2)) <= fixedObjects[_local8].rightside)))){
_local9 = (fixedObjects[_local8].rightside + (_arg1.width / 2));
_arg1.hitWallLeft = true;
break;
};
if (((((_arg1.mc.x + (_arg1.width / 2)) <= fixedObjects[_local8].leftside)) && (((_local9 + (_arg1.width / 2)) >= fixedObjects[_local8].leftside)))){
_local9 = (fixedObjects[_local8].leftside - (_arg1.width / 2));
_arg1.hitWallRight = true;
break;
};
};
_local8++;
};
_arg1.mc.x = _local9;
_arg1.mc.y = _local7;
if (_arg1.inAir){
_local5 = "jump";
};
_arg1.animstate = _local5;
if (_arg1.animstate == "walk"){
_arg1.animstep = (_arg1.animstep + (_arg2 / 60));
if (_arg1.animstep > _arg1.walkAnimation.length){
_arg1.animstep = 0;
};
_arg1.mc.gotoAndStop(_arg1.walkAnimation[Math.floor(_arg1.animstep)]);
} else {
_arg1.mc.gotoAndStop(_arg1.animstate);
};
if (_local6 != _arg1.direction){
_arg1.direction = _local6;
_arg1.mc.scaleX = _arg1.direction;
};
}
function frame170(){
fck.buttonMode = true;
fck.addEventListener(MouseEvent.CLICK, mv);
}
function frame1(){
stop();
stage.showDefaultContextMenu = false;
gameLoaded = false;
preloader.stop();
preloader.logo_mc.stop();
preloader.logo_mc.loaderbar.stop();
preloader.addEventListener(Event.ENTER_FRAME, updatePreloader, false, 0, true);
preloader.link_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoArc, false);
}
public function clickDialogButton(_arg1:MouseEvent){
removeChild(MovieClip(_arg1.currentTarget.parent));
if (gameMode == "dead"){
showLives();
showLevel();
hero.mc.x = hero.startx;
hero.mc.y = hero.starty;
gameMode = "play";
} else {
if (gameMode == "gameover"){
cleanUp();
gotoAndStop("firstlate");
} else {
if (gameMode == "done"){
cleanUp();
gameScore = (gameScore + (numCoin * 100));
nextFrame();
};
};
};
stage.focus = stage;
}
public function addScore(_arg1:int){
gameScore = (gameScore + _arg1);
scoreDisplay.text = String(gameScore);
}
public function crunchy(_arg1:MouseEvent){
gotoAndStop("items");
}
public function moveHeaders(_arg1:int){
var _local2:int;
_local2 = 0;
while (_local2 < headers.length) {
moveCharacter(headers[_local2], _arg1);
if (headers[_local2].hitWallRight){
headers[_local2].moveLeft = true;
headers[_local2].moveRight = false;
} else {
if (headers[_local2].hitWallLeft){
headers[_local2].moveLeft = false;
headers[_local2].moveRight = true;
};
};
_local2++;
};
}
public function showLevel(){
levelDisplay.text = String(numLevel);
}
public function keyDownFunction(_arg1:KeyboardEvent){
if (gameMode != "play"){
return;
};
if (_arg1.keyCode == 37){
hero.moveLeft = true;
} else {
if (_arg1.keyCode == 39){
hero.moveRight = true;
} else {
if (_arg1.keyCode == 32){
if (!hero.inAir){
hero.jump = true;
};
};
};
};
}
public function bomb(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.freshnewgames.com/"), "_blank");
}
public function checkCollisions(){
var _local1:int;
var _local2:int;
var _local3:int;
_local1 = (enemies.length - 1);
while (_local1 >= 0) {
if (hero.mc.hitTestObject(enemies[_local1].mc)){
if (((hero.inAir) && ((hero.dy > 0)))){
enemyDie(_local1);
} else {
heroDie();
};
};
_local1--;
};
_local2 = (spikers.length - 1);
while (_local2 >= 0) {
if (hero.mc.hitTestObject(spikers[_local2].mc)){
if (((hero.inAir) && ((hero.dy > 0)))){
spikerDie(_local2);
} else {
heroDie();
};
};
_local2--;
};
_local3 = (headers.length - 1);
while (_local3 >= 0) {
if (hero.mc.hitTestObject(headers[_local3].mc)){
if (((hero.inAir) && ((hero.dy > 0)))){
heroDie();
} else {
heroDie();
};
};
_local3--;
};
_local1 = (itemObjects.length - 1);
while (_local1 >= 0) {
if (hero.mc.hitTestObject(itemObjects[_local1])){
getObject(_local1);
};
_local1--;
};
}
public function examineLevel(){
var _local1:int;
var _local2:*;
var _local3:Object;
fixedObjects = new Array();
itemObjects = new Array();
_local1 = 0;
while (_local1 < this.gamelevel.numChildren) {
_local2 = this.gamelevel.getChildAt(_local1);
if ((((((((((((_local2 is Brick)) || ((_local2 is Ground)))) || ((_local2 is Sand)))) || ((_local2 is Wall)))) || ((_local2 is Desert)))) || ((_local2 is Soil)))){
_local3 = new Object();
_local3.mc = _local2;
_local3.leftside = _local2.x;
_local3.rightside = (_local2.x + _local2.width);
_local3.topside = _local2.y;
_local3.bottomside = (_local2.y + _local2.height);
fixedObjects.push(_local3);
} else {
if ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((_local2 is BigCarrot)) || ((_local2 is Carrot)))) || ((_local2 is Coin)))) || ((_local2 is Key)))) || ((_local2 is Door)))) || ((_local2 is SKey)))) || ((_local2 is BKey)))) || ((_local2 is SDoor)))) || ((_local2 is BDoor)))) || ((_local2 is Lava)))) || ((_local2 is Lavax2)))) || ((_local2 is Lavax7)))) || ((_local2 is BKeyx2)))) || ((_local2 is BDoorx2)))) || ((_local2 is Lavax6)))) || ((_local2 is Lavax8)))) || ((_local2 is Lavax3)))) || ((_local2 is Oil)))) || ((_local2 is Oilx2)))) || ((_local2 is Oilx3)))) || ((_local2 is SKeyx2)))) || ((_local2 is SDoorx2)))) || ((_local2 is Skip)))) || ((_local2 is Doorx2)))) || ((_local2 is Keyx2)))) || ((_local2 is EndDoor)))) || ((_local2 is Doorx3)))) || ((_local2 is SDoorx3)))) || ((_local2 is BDoorx3)))) || ((_local2 is Keyx3)))) || ((_local2 is SKeyx3)))) || ((_local2 is BKeyx3)))) || ((_local2 is Keyx4)))) || ((_local2 is Doorx4)))) || ((_local2 is Oilx5)))) || ((_local2 is Oilx7)))){
itemObjects.push(_local2);
};
};
_local1++;
};
}
public function cleanUp(){
removeChild(gamelevel);
this.removeEventListener(Event.ENTER_FRAME, gameLoop);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownFunction);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyUpFunction);
}
public function playass(_arg1:MouseEvent){
gotoAndStop("play");
}
public function addCoin(){
numCoin++;
}
public function levelComplete(){
var _local1:End;
var _local2:End;
var _local3:End;
var _local4:End;
var _local5:End;
var _local6:End;
var _local7:End;
var _local8:End;
var _local9:End;
var _local10:End;
gameMode = "done";
if (numLevel == 1){
_local1 = new End();
_local1.x = 225;
_local1.y = 150;
addChild(_local1);
_local1.carrot.text = (numCarrot + "/10");
_local1.coin.text = (numCoin + "/50");
_local1.bonus.text = ((numCoin * 100) + "/5000");
_local1.title.text = (("LEVEL " + numLevel) + " COMPLETE");
} else {
if (numLevel == 2){
_local2 = new End();
_local2.x = 225;
_local2.y = 150;
addChild(_local2);
_local2.carrot.text = (numCarrot + "/10");
_local2.coin.text = (numCoin + "/50");
_local2.bonus.text = ((numCoin * 100) + "/5000");
_local2.title.text = (("LEVEL " + numLevel) + " COMPLETE");
} else {
if (numLevel == 3){
_local3 = new End();
_local3.x = 225;
_local3.y = 150;
addChild(_local3);
_local3.carrot.text = (numCarrot + "/10");
_local3.coin.text = (numCoin + "/50");
_local3.bonus.text = ((numCoin * 100) + "/5000");
_local3.title.text = (("LEVEL " + numLevel) + " COMPLETE");
} else {
if (numLevel == 4){
_local4 = new End();
_local4.x = 225;
_local4.y = 150;
addChild(_local4);
_local4.carrot.text = (numCarrot + "/10");
_local4.coin.text = (numCoin + "/50");
_local4.bonus.text = ((numCoin * 100) + "/5000");
_local4.title.text = (("LEVEL " + numLevel) + " COMPLETE");
} else {
if (numLevel == 5){
_local5 = new End();
_local5.x = 225;
_local5.y = 150;
addChild(_local5);
_local5.carrot.text = (numCarrot + "/10");
_local5.coin.text = (numCoin + "/50");
_local5.bonus.text = ((numCoin * 100) + "/5000");
_local5.title.text = (("LEVEL " + numLevel) + " COMPLETE");
} else {
if (numLevel == 6){
_local6 = new End();
_local6.x = 225;
_local6.y = 150;
addChild(_local6);
_local6.carrot.text = (numCarrot + "/10");
_local6.coin.text = (numCoin + "/50");
_local6.bonus.text = ((numCoin * 100) + "/5000");
_local6.title.text = (("LEVEL " + numLevel) + " COMPLETE");
} else {
if (numLevel == 7){
_local7 = new End();
_local7.x = 225;
_local7.y = 150;
addChild(_local7);
_local7.carrot.text = (numCarrot + "/10");
_local7.coin.text = (numCoin + "/50");
_local7.bonus.text = ((numCoin * 100) + "/5000");
_local7.title.text = (("LEVEL " + numLevel) + " COMPLETE");
} else {
if (numLevel == 8){
_local8 = new End();
_local8.x = 225;
_local8.y = 150;
addChild(_local8);
_local8.carrot.text = (numCarrot + "/10");
_local8.coin.text = (numCoin + "/50");
_local8.bonus.text = ((numCoin * 100) + "/5000");
_local8.title.text = (("LEVEL " + numLevel) + " COMPLETE");
} else {
if (numLevel == 9){
_local9 = new End();
_local9.x = 225;
_local9.y = 150;
addChild(_local9);
_local9.carrot.text = (numCarrot + "/10");
_local9.coin.text = (numCoin + "/50");
_local9.bonus.text = ((numCoin * 100) + "/5000");
_local9.title.text = (("LEVEL " + numLevel) + " COMPLETE");
} else {
if (numLevel == 10){
_local10 = new End();
_local10.x = 225;
_local10.y = 150;
addChild(_local10);
_local10.carrot.text = (numCarrot + "/10");
_local10.coin.text = (numCoin + "/50");
_local10.bonus.text = ((numCoin * 100) + "/5000");
_local10.title.text = (("LEVEL " + numLevel) + " COMPLETE");
};
};
};
};
};
};
};
};
};
};
}
public function addSpikers(){
var _local1:int;
var _local2:*;
spikers = new Array();
_local1 = 1;
while (true) {
if (gamelevel[("spiker" + _local1)] == null){
break;
};
_local2 = new Object();
_local2.mc = gamelevel[("spiker" + _local1)];
_local2.dx = 0;
_local2.dy = 0;
_local2.inAir = false;
_local2.direction = 1;
_local2.animstate = "stand";
_local2.walkAnimation = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
_local2.animstep = 0;
_local2.jump = false;
_local2.moveRight = true;
_local2.moveLeft = false;
_local2.jumpSpeed = 1;
_local2.walkSpeed = 0.1;
_local2.width = 56;
_local2.height = 39;
spikers.push(_local2);
_local1++;
};
}
public function creditas(_arg1:MouseEvent){
gotoAndStop("credits");
}
public function back2Start(_arg1:MouseEvent){
gotoAndStop("firstlate");
}
public function back3Info(_arg1:MouseEvent){
gotoAndStop("infes");
}
public function moveEnemies(_arg1:int){
var _local2:int;
_local2 = 0;
while (_local2 < enemies.length) {
moveCharacter(enemies[_local2], _arg1);
if (enemies[_local2].hitWallRight){
enemies[_local2].moveLeft = true;
enemies[_local2].moveRight = false;
} else {
if (enemies[_local2].hitWallLeft){
enemies[_local2].moveLeft = false;
enemies[_local2].moveRight = true;
};
};
_local2++;
};
}
public function skey(){
var _local1:S8_key;
var _local2:SoundChannel;
_local1 = new S8_key();
_local2 = _local1.play();
}
public function createHero(){
hero = new Object();
hero.mc = gamelevel.hero;
hero.dx = 0;
hero.dy = 0;
hero.inAir = false;
hero.direction = 1;
hero.animstate = "stand";
hero.walkAnimation = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
hero.animstep = 0;
hero.jump = false;
hero.moveRight = false;
hero.moveLeft = false;
hero.walkSpeed = 0.2;
hero.jumpSpeed = 0.75;
hero.width = 22.5;
hero.height = 42;
hero.startx = hero.mc.x;
hero.starty = hero.mc.y;
}
public function carrotLife(){
var _local1:S9_life;
var _local2:SoundChannel;
var _local3:PointBurst;
_local1 = new S9_life();
_local2 = _local1.play();
heroLives++;
showLives();
_local3 = new PointBurst(gamelevel, "+LIFE", hero.mc.x, hero.mc.y);
}
public function wazzah(_arg1:MouseEvent){
gotoAndStop("firstlate");
}
public function addLife(_arg1:int){
var _local2:S9_life;
var _local3:SoundChannel;
heroLives = (heroLives + _arg1);
showLives();
_local2 = new S9_life();
_local3 = _local2.play();
}
public function gameComplete(){
var _local1:Dialog;
gameMode = "gameover";
_local1 = new Dialog();
_local1.x = 225;
_local1.y = 150;
addChild(_local1);
_local1.message.text = "GAME COMPLETE!";
_local1.total.text = ("Total Score: " + gameScore);
}
public function addLevel(_arg1:int){
numLevel = (numLevel + _arg1);
showLevel();
}
public function back2Info(_arg1:MouseEvent){
gotoAndStop("infes");
}
public function startGame(){
heroObjects = new Array();
gameScore = 0;
gameMode = "play";
heroLives = 3;
numCarrot = 0;
numLevel = 0;
numCoin = 0;
}
public function addCarrot(){
numCarrot++;
if (numCarrot == 10){
carrotLife();
};
}
function frame238(){
stop();
pleaseplay.addEventListener(MouseEvent.CLICK, playass);
controls.addEventListener(MouseEvent.CLICK, cunty);
infolya.addEventListener(MouseEvent.CLICK, gimmeinfo);
creds.addEventListener(MouseEvent.CLICK, creditas);
more.addEventListener(MouseEvent.CLICK, bomb);
}
public function keyUpFunction(_arg1:KeyboardEvent){
if (_arg1.keyCode == 37){
hero.moveLeft = false;
} else {
if (_arg1.keyCode == 39){
hero.moveRight = false;
};
};
}
function frame239(){
stop();
back.addEventListener(MouseEvent.CLICK, backStart);
}
public function blob(_arg1:MouseEvent){
gotoAndStop("enemies");
}
function frame240(){
stop();
back.addEventListener(MouseEvent.CLICK, back2Start);
enem.addEventListener(MouseEvent.CLICK, blob);
itemesis.addEventListener(MouseEvent.CLICK, crunchy);
scorz.addEventListener(MouseEvent.CLICK, telleh);
}
function frame241(){
stop();
back.addEventListener(MouseEvent.CLICK, back3Start);
}
function frame245(){
stop();
startGame();
startLevel();
}
function frame246(){
stop();
startLevel();
}
function frame247(){
stop();
startLevel();
}
public function mv(_arg1:MouseEvent){
if (soundMode == "on"){
SoundMixer.soundTransform = new SoundTransform(0);
soundMode = "mute";
fck.gotoAndStop(2);
} else {
if (soundMode == "mute"){
SoundMixer.soundTransform = new SoundTransform(1);
soundMode = "on";
fck.gotoAndStop(1);
};
};
}
function frame242(){
stop();
back.addEventListener(MouseEvent.CLICK, backInfo);
}
public function addHeaders(){
var _local1:int;
var _local2:*;
headers = new Array();
_local1 = 1;
while (true) {
if (gamelevel[("header" + _local1)] == null){
break;
};
_local2 = new Object();
_local2.mc = gamelevel[("header" + _local1)];
_local2.dx = 0;
_local2.dy = 0;
_local2.inAir = false;
_local2.direction = 1;
_local2.animstate = "stand";
_local2.walkAnimation = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
_local2.animstep = 0;
_local2.jump = false;
_local2.moveRight = true;
_local2.moveLeft = false;
_local2.jumpSpeed = 1;
_local2.walkSpeed = 0.2;
_local2.width = 37;
_local2.height = 53;
headers.push(_local2);
_local1++;
};
}
public function updatePreloader(_arg1:Event):void{
var _local2:Number;
_local2 = ((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 100);
if (_local2 != 100){
preloader.logo_mc.loaderbar.gotoAndStop(int(_local2));
} else {
if (!gameLoaded){
gameLoaded = true;
preloader.logo_mc.play();
};
if (preloader.logo_mc.currentFrame == preloader.logo_mc.totalFrames){
preloader.logo_mc.gotoAndStop(preloader.logo_mc.totalFrames);
preloader.removeEventListener(Event.ENTER_FRAME, updatePreloader, false);
this.gotoAndPlay(2);
};
};
}
function frame248(){
stop();
startLevel();
}
function frame249(){
stop();
startLevel();
}
function frame243(){
stop();
back.addEventListener(MouseEvent.CLICK, back2Info);
}
public function spikerDie(_arg1:int){
var _local2:S5_enemy;
var _local3:SoundChannel;
var _local4:PointBurst;
_local2 = new S5_enemy();
_local3 = _local2.play();
_local4 = new PointBurst(gamelevel, "100", spikers[_arg1].mc.x, (spikers[_arg1].mc.y - 20));
gamelevel.removeChild(spikers[_arg1].mc);
spikers.splice(_arg1, 1);
addScore(150);
}
public function gameLoop(_arg1:Event){
var _local2:int;
if (lastTime == 0){
lastTime = getTimer();
};
_local2 = (getTimer() - lastTime);
lastTime = (lastTime + _local2);
if (gameMode == "play"){
moveCharacter(hero, _local2);
moveEnemies(_local2);
moveSpikers(_local2);
moveHeaders(_local2);
checkCollisions();
scrollWithHero();
};
}
public function moveSpikers(_arg1:int){
var _local2:int;
_local2 = 0;
while (_local2 < spikers.length) {
moveCharacter(spikers[_local2], _arg1);
if (spikers[_local2].hitWallRight){
spikers[_local2].moveLeft = true;
spikers[_local2].moveRight = false;
} else {
if (spikers[_local2].hitWallLeft){
spikers[_local2].moveLeft = false;
spikers[_local2].moveRight = true;
};
};
_local2++;
};
}
public function cunty(_arg1:MouseEvent){
gotoAndStop("controls");
}
public function backStart(_arg1:MouseEvent){
gotoAndStop("firstlate");
}
public function back3Start(_arg1:MouseEvent){
gotoAndStop("firstlate");
}
function frame255(){
stop();
startLevel();
}
function frame251(){
stop();
startLevel();
}
function frame252(){
stop();
startLevel();
}
public function scrollWithHero(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
_local1 = (gamelevel.x + hero.mc.x);
_local2 = (750 - edgeDistance);
_local3 = edgeDistance;
if (_local1 > _local2){
gamelevel.x = (gamelevel.x - (_local1 - _local2));
if (gamelevel.x < -((gamelevel.width - 750))){
gamelevel.x = -((gamelevel.width - 750));
};
};
if (_local1 < _local3){
gamelevel.x = (gamelevel.x + (_local3 - _local1));
if (gamelevel.x > 0){
gamelevel.x = 0;
};
};
}
function frame250(){
stop();
startLevel();
}
public function gimmeinfo(_arg1:MouseEvent){
gotoAndStop("infes");
}
function frame244(){
stop();
back.addEventListener(MouseEvent.CLICK, back3Info);
}
function frame254(){
stop();
startLevel();
}
function frame253(){
stop();
startLevel();
}
function frame1725(){
stop();
replayah.addEventListener(MouseEvent.CLICK, wazzah);
}
public function enemyDie(_arg1:int){
var _local2:S5_enemy;
var _local3:SoundChannel;
var _local4:PointBurst;
_local2 = new S5_enemy();
_local3 = _local2.play();
_local4 = new PointBurst(gamelevel, "100", enemies[_arg1].mc.x, (enemies[_arg1].mc.y - 20));
gamelevel.removeChild(enemies[_arg1].mc);
enemies.splice(_arg1, 1);
addScore(100);
}
public function gotoArc(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.freshnewgames.com"), "_blank");
}
}
}//package
Section 27
//Bunters (Bunters)
package {
import flash.display.*;
public dynamic class Bunters extends MovieClip {
public var body:MovieClip;
public var head:MovieClip;
public function Bunters(){
addFrameScript(172, frame173);
}
function frame173(){
stop();
}
}
}//package
Section 28
//Buntersstill (Buntersstill)
package {
import flash.display.*;
public dynamic class Buntersstill extends MovieClip {
public var body:MovieClip;
public var head:MovieClip;
public function Buntersstill(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package
Section 29
//butnfucker (butnfucker)
package {
import flash.display.*;
public dynamic class butnfucker extends MovieClip {
public function butnfucker(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 30
//carol (carol)
package {
import flash.display.*;
public dynamic class carol extends MovieClip {
}
}//package
Section 31
//Carrot (Carrot)
package {
import flash.display.*;
public dynamic class Carrot extends MovieClip {
}
}//package
Section 32
//Coin (Coin)
package {
import flash.display.*;
public dynamic class Coin extends MovieClip {
}
}//package
Section 33
//Desert (Desert)
package {
import flash.display.*;
public dynamic class Desert extends MovieClip {
}
}//package
Section 34
//Dialog (Dialog)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.media.*;
import flash.utils.*;
import flash.net.*;
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.ui.*;
import flash.xml.*;
public dynamic class Dialog extends MovieClip {
public var message:TextField;
public var okButton:BasicButton;
public var total:TextField;
public function Dialog(){
addFrameScript(0, frame1);
}
function frame1(){
okButton.addEventListener(MouseEvent.CLICK, MovieClip(parent).clickDialogButton);
}
}
}//package
Section 35
//Door (Door)
package {
import flash.display.*;
public dynamic class Door extends MovieClip {
}
}//package
Section 36
//Doorx2 (Doorx2)
package {
import flash.display.*;
public dynamic class Doorx2 extends MovieClip {
}
}//package
Section 37
//Doorx3 (Doorx3)
package {
import flash.display.*;
public dynamic class Doorx3 extends MovieClip {
}
}//package
Section 38
//Doorx4 (Doorx4)
package {
import flash.display.*;
public dynamic class Doorx4 extends MovieClip {
}
}//package
Section 39
//End (End)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.media.*;
import flash.utils.*;
import flash.net.*;
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.ui.*;
import flash.xml.*;
public dynamic class End extends MovieClip {
public var okButton:BasicButton;
public var bonus:TextField;
public var title:TextField;
public var carrot:TextField;
public var coin:TextField;
public function End(){
addFrameScript(0, frame1);
}
function frame1(){
okButton.addEventListener(MouseEvent.CLICK, MovieClip(parent).clickDialogButton);
okButton.addEventListener(MouseEvent.CLICK, buttonSound);
}
public function buttonSound(_arg1:Event){
var _local2:S1_button;
var _local3:SoundChannel;
_local2 = new S1_button();
_local3 = _local2.play();
}
}
}//package
Section 40
//EndDoor (EndDoor)
package {
import flash.display.*;
public dynamic class EndDoor extends MovieClip {
}
}//package
Section 41
//Enemy (Enemy)
package {
import flash.display.*;
public dynamic class Enemy extends MovieClip {
}
}//package
Section 42
//GameButton (GameButton)
package {
import flash.display.*;
public dynamic class GameButton extends SimpleButton {
}
}//package
Section 43
//GameButton1 (GameButton1)
package {
import flash.display.*;
public dynamic class GameButton1 extends SimpleButton {
}
}//package
Section 44
//Ground (Ground)
package {
import flash.display.*;
public dynamic class Ground extends MovieClip {
}
}//package
Section 45
//Header (Header)
package {
import flash.display.*;
public dynamic class Header extends MovieClip {
}
}//package
Section 46
//Hero (Hero)
package {
import flash.display.*;
public dynamic class Hero extends MovieClip {
public var body:MovieClip;
public var head:MovieClip;
public function Hero(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package
Section 47
//Herocopy (Herocopy)
package {
import flash.display.*;
public dynamic class Herocopy extends MovieClip {
public var body:MovieClip;
public var head:MovieClip;
}
}//package
Section 48
//Instruction (Instruction)
package {
import flash.display.*;
public dynamic class Instruction extends SimpleButton {
}
}//package
Section 49
//Item (Item)
package {
import flash.display.*;
public dynamic class Item extends MovieClip {
}
}//package
Section 50
//Key (Key)
package {
import flash.display.*;
public dynamic class Key extends MovieClip {
}
}//package
Section 51
//Keyx2 (Keyx2)
package {
import flash.display.*;
public dynamic class Keyx2 extends MovieClip {
}
}//package
Section 52
//Keyx3 (Keyx3)
package {
import flash.display.*;
public dynamic class Keyx3 extends MovieClip {
}
}//package
Section 53
//Keyx4 (Keyx4)
package {
import flash.display.*;
public dynamic class Keyx4 extends MovieClip {
}
}//package
Section 54
//Lava (Lava)
package {
import flash.display.*;
public dynamic class Lava extends MovieClip {
}
}//package
Section 55
//Lavax2 (Lavax2)
package {
import flash.display.*;
public dynamic class Lavax2 extends MovieClip {
}
}//package
Section 56
//Lavax3 (Lavax3)
package {
import flash.display.*;
public dynamic class Lavax3 extends MovieClip {
}
}//package
Section 57
//Lavax6 (Lavax6)
package {
import flash.display.*;
public dynamic class Lavax6 extends MovieClip {
}
}//package
Section 58
//Lavax7 (Lavax7)
package {
import flash.display.*;
public dynamic class Lavax7 extends MovieClip {
}
}//package
Section 59
//Lavax8 (Lavax8)
package {
import flash.display.*;
public dynamic class Lavax8 extends MovieClip {
}
}//package
Section 60
//Level10 (Level10)
package {
import flash.display.*;
public dynamic class Level10 extends MovieClip {
public var hero:Hero;
public function Level10(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package
Section 61
//Level9 (Level9)
package {
import flash.display.*;
public dynamic class Level9 extends MovieClip {
public var hero:Hero;
public var header1:Header;
public var header2:Header;
public var header3:Header;
public function Level9(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package
Section 62
//MSand (MSand)
package {
import flash.display.*;
public dynamic class MSand extends MovieClip {
}
}//package
Section 63
//nightmare (nightmare)
package {
import flash.media.*;
public dynamic class nightmare extends Sound {
}
}//package
Section 64
//Oil (Oil)
package {
import flash.display.*;
public dynamic class Oil extends MovieClip {
}
}//package
Section 65
//Oilx2 (Oilx2)
package {
import flash.display.*;
public dynamic class Oilx2 extends MovieClip {
}
}//package
Section 66
//Oilx3 (Oilx3)
package {
import flash.display.*;
public dynamic class Oilx3 extends MovieClip {
}
}//package
Section 67
//Oilx5 (Oilx5)
package {
import flash.display.*;
public dynamic class Oilx5 extends MovieClip {
}
}//package
Section 68
//Oilx7 (Oilx7)
package {
import flash.display.*;
public dynamic class Oilx7 extends MovieClip {
}
}//package
Section 69
//PointBurst (PointBurst)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
public class PointBurst extends Sprite {
private var burstSprite:Sprite;
private var animTimer:Timer;
private var parentMC:MovieClip;
private var tField:TextField;
static const animStepTime:int = 50;
static const fontSize:int = 20;
static const fontFace:String = "Arial";
static const fontBold:Boolean = true;
static const animSteps:int = 10;
static const startScale:Number = 0;
static const fontColor:Number = 0xFFFFFF;
static const endScale:Number = 2;
public function PointBurst(_arg1:MovieClip, _arg2:Object, _arg3, _arg4:Number){
var _local5:TextFormat;
super();
_local5 = new TextFormat();
_local5.font = fontFace;
_local5.size = fontSize;
_local5.bold = fontBold;
_local5.color = fontColor;
_local5.align = "center";
tField = new TextField();
tField.embedFonts = true;
tField.selectable = false;
tField.defaultTextFormat = _local5;
tField.autoSize = TextFieldAutoSize.CENTER;
tField.text = String(_arg2);
tField.x = -((tField.width / 2));
tField.y = -((tField.height / 2));
burstSprite = new Sprite();
burstSprite.x = _arg3;
burstSprite.y = _arg4;
burstSprite.scaleX = startScale;
burstSprite.scaleY = startScale;
burstSprite.alpha = 0;
burstSprite.addChild(tField);
parentMC = _arg1;
parentMC.addChild(burstSprite);
animTimer = new Timer(animStepTime, animSteps);
animTimer.addEventListener(TimerEvent.TIMER, rescaleBurst);
animTimer.addEventListener(TimerEvent.TIMER_COMPLETE, removeBurst);
animTimer.start();
}
public function removeBurst(_arg1:TimerEvent){
burstSprite.removeChild(tField);
parentMC.removeChild(burstSprite);
tField = null;
burstSprite = null;
delete ??getglobalscope
[this];
}
public function rescaleBurst(_arg1:TimerEvent){
var _local2:Number;
_local2 = (_arg1.target.currentCount / animSteps);
burstSprite.scaleX = (((1 - _local2) * startScale) + (_local2 * endScale));
burstSprite.scaleY = (((1 - _local2) * startScale) + (_local2 * endScale));
burstSprite.alpha = (1 - _local2);
}
}
}//package
Section 70
//Preloader (Preloader)
package {
import flash.display.*;
public dynamic class Preloader extends MovieClip {
public var link_btn:SimpleButton;
public var logo_mc:MovieClip;
public function Preloader(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 71
//S1_button (S1_button)
package {
import flash.media.*;
public dynamic class S1_button extends Sound {
}
}//package
Section 72
//S2_carrot (S2_carrot)
package {
import flash.media.*;
public dynamic class S2_carrot extends Sound {
}
}//package
Section 73
//S3_coin (S3_coin)
package {
import flash.media.*;
public dynamic class S3_coin extends Sound {
}
}//package
Section 74
//S4_died (S4_died)
package {
import flash.media.*;
public dynamic class S4_died extends Sound {
}
}//package
Section 75
//S5_enemy (S5_enemy)
package {
import flash.media.*;
public dynamic class S5_enemy extends Sound {
}
}//package
Section 76
//S6_fin (S6_fin)
package {
import flash.media.*;
public dynamic class S6_fin extends Sound {
}
}//package
Section 77
//S8_key (S8_key)
package {
import flash.media.*;
public dynamic class S8_key extends Sound {
}
}//package
Section 78
//S9_life (S9_life)
package {
import flash.media.*;
public dynamic class S9_life extends Sound {
}
}//package
Section 79
//Sand (Sand)
package {
import flash.display.*;
public dynamic class Sand extends MovieClip {
}
}//package
Section 80
//SDoor (SDoor)
package {
import flash.display.*;
public dynamic class SDoor extends MovieClip {
}
}//package
Section 81
//SDoorx2 (SDoorx2)
package {
import flash.display.*;
public dynamic class SDoorx2 extends MovieClip {
}
}//package
Section 82
//SDoorx3 (SDoorx3)
package {
import flash.display.*;
public dynamic class SDoorx3 extends MovieClip {
}
}//package
Section 83
//SKey (SKey)
package {
import flash.display.*;
public dynamic class SKey extends MovieClip {
}
}//package
Section 84
//SKeyx2 (SKeyx2)
package {
import flash.display.*;
public dynamic class SKeyx2 extends MovieClip {
}
}//package
Section 85
//SKeyx3 (SKeyx3)
package {
import flash.display.*;
public dynamic class SKeyx3 extends MovieClip {
}
}//package
Section 86
//Skip (Skip)
package {
import flash.display.*;
public dynamic class Skip extends MovieClip {
}
}//package
Section 87
//Soil (Soil)
package {
import flash.display.*;
public dynamic class Soil extends MovieClip {
}
}//package
Section 88
//Spiker (Spiker)
package {
import flash.display.*;
public dynamic class Spiker extends MovieClip {
}
}//package
Section 89
//states (states)
package {
import flash.display.*;
public dynamic class states extends MovieClip {
public function states(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 90
//Symbol1 (Symbol1)
package {
import flash.display.*;
public dynamic class Symbol1 extends SimpleButton {
}
}//package
Section 91
//Symbol10 (Symbol10)
package {
import flash.display.*;
public dynamic class Symbol10 extends SimpleButton {
}
}//package
Section 92
//Symbol11 (Symbol11)
package {
import flash.display.*;
public dynamic class Symbol11 extends SimpleButton {
}
}//package
Section 93
//Symbol13 (Symbol13)
package {
import flash.display.*;
public dynamic class Symbol13 extends SimpleButton {
}
}//package
Section 94
//Symbol2 (Symbol2)
package {
import flash.display.*;
public dynamic class Symbol2 extends SimpleButton {
}
}//package
Section 95
//Symbol3 (Symbol3)
package {
import flash.display.*;
public dynamic class Symbol3 extends SimpleButton {
}
}//package
Section 96
//Symbol4 (Symbol4)
package {
import flash.display.*;
public dynamic class Symbol4 extends SimpleButton {
}
}//package
Section 97
//Symbol5 (Symbol5)
package {
import flash.display.*;
public dynamic class Symbol5 extends SimpleButton {
}
}//package
Section 98
//Symbol6 (Symbol6)
package {
import flash.display.*;
public dynamic class Symbol6 extends SimpleButton {
}
}//package
Section 99
//Symbol7 (Symbol7)
package {
import flash.display.*;
public dynamic class Symbol7 extends SimpleButton {
}
}//package
Section 100
//Symbol8 (Symbol8)
package {
import flash.display.*;
public dynamic class Symbol8 extends SimpleButton {
}
}//package
Section 101
//Symbol9 (Symbol9)
package {
import flash.display.*;
public dynamic class Symbol9 extends SimpleButton {
}
}//package
Section 102
//Wall (Wall)
package {
import flash.display.*;
public dynamic class Wall extends MovieClip {
}
}//package