Section 1
//FadeChannel (classes.components.FadeChannel)
package classes.components {
import flash.events.*;
import flash.media.*;
import flash.utils.*;
public class FadeChannel {
var thisChannel:SoundChannel;
var stepVolume:Number;
var fadeTimer:Timer;
var isFadeIN:Boolean;
var sTransform:SoundTransform;
public function FadeChannel(){
fadeTimer = new Timer(1, 1);
super();
}
public function fadeIn(_arg1:SoundChannel, _arg2:Number, _arg3:Number){
isFadeIN = true;
fadeTimer.stop();
thisChannel = _arg1;
sTransform = thisChannel.soundTransform;
sTransform.volume = 0;
thisChannel.soundTransform = sTransform;
fadeTimer = new Timer((_arg2 / _arg3), _arg3);
fadeTimer.addEventListener(TimerEvent.TIMER, fadeSound);
stepVolume = (1 / _arg3);
fadeTimer.start();
}
public function fadeOut(_arg1:SoundChannel, _arg2:Number, _arg3:Number){
isFadeIN = false;
thisChannel = _arg1;
fadeTimer.stop();
fadeTimer = new Timer((_arg2 / _arg3), _arg3);
fadeTimer.addEventListener(TimerEvent.TIMER, fadeSound);
stepVolume = ((-1 * thisChannel.soundTransform.volume) / _arg3);
fadeTimer.start();
}
function fadeSound(_arg1:TimerEvent){
if ((sTransform.volume + stepVolume) >= 0){
sTransform.volume = (sTransform.volume + stepVolume);
thisChannel.soundTransform = sTransform;
} else {
thisChannel.stop();
fadeTimer.stop();
if (!isFadeIN){
thisChannel = null;
};
};
}
}
}//package classes.components
Section 2
//FG_Preloader (classes.components.FG_Preloader)
package classes.components {
import flash.events.*;
import classes.dispatchers.*;
import flash.text.*;
import flash.display.*;
import classes.graphical.information.bars.*;
public class FG_Preloader extends MovieClip {
private var _percents:TextField;
private var _elements:Array;
private var _weight:TextField;
private var _progresBar:ProgresBar;
public function FG_Preloader(){
this._elements = new Array();
this._percents = TextField(this.getChildByName("percent"));
if (this._percents != null){
this._elements[0] = true;
};
this._weight = TextField(this.getChildByName("weight_txt"));
if (this._weight != null){
this._elements[1] = true;
};
this._progresBar = ProgresBar(this.getChildByName("_progresBarTimeline"));
if (this._progresBar != null){
this._elements[2] = true;
};
}
private function progressListener(_arg1:ProgressEvent):void{
var _local2:Number;
var _local3:int;
_local2 = (_arg1.bytesLoaded / _arg1.bytesTotal);
_local3 = (_local2 * 100);
if (this._elements[0]){
this._percents.text = String((_local3 + "%"));
};
if (this._elements[1]){
this._weight.text = String((int((_arg1.bytesTotal / 0x0400)) + " kB"));
};
if (this._elements[2]){
this._progresBar.setProgres(_local3);
};
}
private function completeListener(_arg1:Event):void{
this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, progressListener);
this.loaderInfo.removeEventListener(Event.COMPLETE, completeListener);
this.finishLoading();
}
private function finishLoading():void{
if (this._elements[0]){
this._percents.text = String((100 + "%"));
};
if (this._elements[1]){
this._weight.text = String((int((this.loaderInfo.bytesTotal / 0x0400)) + " kB"));
};
if (this._elements[2]){
this._progresBar.setProgres(100);
};
GameDispatcher.preloaderDispatcher.loadingComplete();
}
public function startLoad():void{
if (this.loaderInfo.bytesLoaded >= this.loaderInfo.bytesTotal){
this.finishLoading();
} else {
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener);
this.loaderInfo.addEventListener(Event.COMPLETE, completeListener);
};
}
}
}//package classes.components
Section 3
//LinkButton (classes.components.LinkButton)
package classes.components {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class LinkButton extends MovieClip {
public function LinkButton(){
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, onClick);
}
private function onClick(_arg1:MouseEvent):void{
var _local2:String;
var _local3:URLRequest;
if (this.name == "fabrykaGier"){
_local2 = "http://www.game-factory.eu";
};
if (this.name == "freakyTiki"){
_local2 = "http://freakytikiproductions.com/";
};
_local3 = new URLRequest(_local2);
navigateToURL(_local3);
}
}
}//package classes.components
Section 4
//Preloader (classes.components.Preloader)
package classes.components {
import flash.events.*;
import game.*;
import flash.text.*;
import flash.display.*;
public class Preloader extends MovieClip {
var format:TextFormat;
var preLoadingTarget:Object;
var textF:TextField;
var isFinished:Boolean;
public var TextProcent:TextField;
public static var LOADED:String = "loaded";
public function Preloader(){
this.stop();
preLoadingTarget = ThisGameManager.getInstance();
isFinished = false;
textF = TextField(this.getChildByName("TextProcent"));
this.textF.embedFonts = true;
this.textF.defaultTextFormat.font = ThisGameManager.getInstance().Bold.fontName;
textF.text = "0";
startPreloading();
}
function loadingUpdate(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local2 = preLoadingTarget.loaderInfo.bytesTotal;
_local3 = preLoadingTarget.loaderInfo.bytesLoaded;
_local4 = Math.round(((_local3 * 100) / _local2));
if (_local4 <= 100){
textF.text = _local4.toString();
};
if (_local2 <= _local3){
this.removeEventListener(Event.ENTER_FRAME, loadingUpdate);
ThisGameManager.getInstance().gotoAndPlay("2Title");
};
}
public function hasFinished():Boolean{
return (true);
}
private function startPreloading():void{
MovieClip(preLoadingTarget).stop();
this.addEventListener(Event.ENTER_FRAME, loadingUpdate);
}
public function setPreLoadingTarget(_arg1:Object):void{
preLoadingTarget = _arg1;
}
}
}//package classes.components
Section 5
//ButtonsEvents (classes.dispatchers.ButtonsEvents)
package classes.dispatchers {
import flash.events.*;
public class ButtonsEvents extends EventDispatcher {
public static const BUTTONS_UNLOCKED:String = "ButtonsUnlocked";
public function ButtonsEvents(_arg1:IEventDispatcher=null){
super(_arg1);
}
public function unlockButtons():void{
this.onButtonsUnlocked();
}
private function onButtonsUnlocked():void{
dispatchEvent(new Event(ButtonsEvents.BUTTONS_UNLOCKED));
}
}
}//package classes.dispatchers
Section 6
//GameDispatcher (classes.dispatchers.GameDispatcher)
package classes.dispatchers {
public class GameDispatcher {
public static var highscoreDispatcher:HighscoreLoaded = new HighscoreLoaded();
public static var buttonsDispatcher:ButtonsEvents = new ButtonsEvents();
public static var mouseDispatcher:MouseEventDispatcher = new MouseEventDispatcher();
public static var preloaderDispatcher:LoadingComplete = new LoadingComplete();
}
}//package classes.dispatchers
Section 7
//HighscoreLoaded (classes.dispatchers.HighscoreLoaded)
package classes.dispatchers {
import flash.events.*;
public class HighscoreLoaded extends EventDispatcher {
public static const HIGHSCORE_LOADED:String = "HighscoreLoaded";
public function HighscoreLoaded(_arg1:IEventDispatcher=null){
super(_arg1);
}
public function highscoreLoaded():void{
this.onHighscoreLoaded();
}
private function onHighscoreLoaded():void{
dispatchEvent(new Event(HighscoreLoaded.HIGHSCORE_LOADED));
}
}
}//package classes.dispatchers
Section 8
//LoadingComplete (classes.dispatchers.LoadingComplete)
package classes.dispatchers {
import flash.events.*;
public class LoadingComplete extends EventDispatcher {
public static const LOADING_COMPLETE:String = "LoadingComplete";
public function LoadingComplete(_arg1:IEventDispatcher=null){
super(_arg1);
}
public function loadingComplete():void{
this.onLoadingComplete();
}
private function onLoadingComplete():void{
dispatchEvent(new Event(LoadingComplete.LOADING_COMPLETE));
}
}
}//package classes.dispatchers
Section 9
//MouseEventDispatcher (classes.dispatchers.MouseEventDispatcher)
package classes.dispatchers {
import flash.events.*;
public class MouseEventDispatcher extends EventDispatcher {
public static const BUTTON_PRESSED:String = "ButtonReleased";
public function MouseEventDispatcher(_arg1:IEventDispatcher=null){
super(_arg1);
}
public function buttonPressed(_arg1:Object):void{
this.onButtonPressed(_arg1);
}
private function onButtonPressed(_arg1:Object):void{
dispatchEvent(new MyMouseEvent(MouseEventDispatcher.BUTTON_PRESSED, _arg1));
}
}
}//package classes.dispatchers
Section 10
//MyMouseEvent (classes.dispatchers.MyMouseEvent)
package classes.dispatchers {
import flash.events.*;
public class MyMouseEvent extends Event {
public var callerObject:Object;
public function MyMouseEvent(_arg1:String, _arg2:Object){
super(_arg1);
this.callerObject = _arg2;
}
}
}//package classes.dispatchers
Section 11
//GenericButton (classes.graphical.controls.buttons.GenericButton)
package classes.graphical.controls.buttons {
import flash.events.*;
import flash.media.*;
import game.*;
import main.*;
import classes.dispatchers.*;
import flash.display.*;
public class GenericButton extends MovieClip {
private var locked:Boolean;
private var clicked:Boolean;
var hit:MovieClip;
var mouseChannel:SoundChannel;
var sManager:SoundManager;
private var over:Boolean;
public function GenericButton(){
mouseChannel = new SoundChannel();
super();
sManager = ThisGameManager.getInstance().soundManager;
this.buttonMode = true;
clicked = false;
over = false;
locked = false;
addEventListener(MouseEvent.CLICK, onClick);
addEventListener(MouseEvent.ROLL_OVER, onRollingOver);
addEventListener(MouseEvent.ROLL_OUT, onRollingOut);
addEventListener(MouseEvent.MOUSE_DOWN, onMouseIsDown);
addEventListener(MouseEvent.MOUSE_UP, onMouseIsUp);
addEventListener(Event.REMOVED_FROM_STAGE, cleanUp);
GameDispatcher.buttonsDispatcher.addEventListener(ButtonsEvents.BUTTONS_UNLOCKED, refreshButton);
GameDispatcher.mouseDispatcher.addEventListener(MouseEventDispatcher.BUTTON_PRESSED, unclickButton);
goToLabel("off");
hit = MovieClip(this.getChildByName("hit_area"));
if (hit != null){
this.hitArea = hit;
//unresolved jump
};
}
protected function onRollingOut(_arg1:MouseEvent):void{
over = false;
if (((GameManager.getInstance().AreButtonsEnabled) && (!(locked)))){
if (currentLabel != "out"){
goToLabel("out");
locked = true;
};
};
}
protected function goToLabel(_arg1:String):void{
var doesLabelExist:Boolean;
var i:Number;
var e:Error;
var destinationLabel = _arg1;
doesLabelExist = false;
try {
i = 0;
while (i < currentLabels.length) {
if (currentLabels[i].name == destinationLabel){
doesLabelExist = true;
};
i = (i + 1);
};
if (doesLabelExist){
gotoAndPlay(destinationLabel);
} else {
e = new Error((((("there is no label with the name >" + destinationLabel) + "< in the button with instance name >") + this.name) + "<"));
throw (e);
};
} catch(e:Error) {
};
}
protected function onRollingOver(_arg1:MouseEvent):void{
over = true;
if (GameManager.getInstance().AreButtonsEnabled){
if (((clicked) && (_arg1.buttonDown))){
goToLabel("click");
} else {
if (((!(clicked)) && (!(locked)))){
clicked = false;
goToLabel("on");
locked = true;
mouseChannel.stop();
mouseChannel = sManager.mOver.play();
};
};
};
}
protected function onMouseIsDown(_arg1:MouseEvent):void{
if (GameManager.getInstance().AreButtonsEnabled){
clicked = true;
GameDispatcher.mouseDispatcher.buttonPressed(this);
goToLabel("click");
};
}
protected function unlockButton():void{
locked = false;
refreshButton(new Event(""));
}
protected function unclickButton(_arg1:MyMouseEvent){
if (_arg1.callerObject != this){
this.clicked = false;
};
}
protected function onMouseIsUp(_arg1:MouseEvent):void{
if (((GameManager.getInstance().AreButtonsEnabled) && (clicked))){
clicked = false;
goToLabel("off");
};
GameDispatcher.mouseDispatcher.buttonPressed(this);
}
protected function cleanUp(_arg1:Event){
removeEventListener(MouseEvent.CLICK, onClick);
removeEventListener(MouseEvent.ROLL_OVER, onRollingOver);
removeEventListener(MouseEvent.ROLL_OUT, onRollingOut);
removeEventListener(MouseEvent.MOUSE_DOWN, onMouseIsDown);
removeEventListener(MouseEvent.MOUSE_UP, onMouseIsUp);
removeEventListener(Event.REMOVED_FROM_STAGE, cleanUp);
GameDispatcher.buttonsDispatcher.removeEventListener(ButtonsEvents.BUTTONS_UNLOCKED, refreshButton);
GameDispatcher.mouseDispatcher.removeEventListener(MouseEventDispatcher.BUTTON_PRESSED, unclickButton);
}
protected function onClick(_arg1:MouseEvent):void{
if (GameManager.getInstance().AreButtonsEnabled){
};
}
protected function refreshButton(_arg1:Event):void{
if (((((over) && (!((this.currentLabel == "on"))))) && (!(clicked)))){
goToLabel("on");
locked = true;
};
if (((((!(over)) && (!((this.currentLabel == "off"))))) && (!(clicked)))){
goToLabel("out");
locked = true;
};
}
}
}//package classes.graphical.controls.buttons
Section 12
//GoToButton (classes.graphical.controls.buttons.GoToButton)
package classes.graphical.controls.buttons {
import flash.events.*;
import main.*;
import flash.display.*;
public class GoToButton extends GenericButton {
public var hit_area:MovieClip;
override protected function onClick(_arg1:MouseEvent):void{
var destLabel:String;
var Split:Array;
var i:Number;
var e = _arg1;
if (GameManager.getInstance().AreButtonsEnabled){
mouseChannel.stop();
if ((((this.name == "go_MapGo")) || ((this.name == "go_2Game")))){
mouseChannel = sManager.mStart.play();
} else {
mouseChannel = sManager.mClick.play();
};
destLabel = this.name;
Split = destLabel.split("_");
try {
GameManager.getInstance().gotoAndPlay(Split[1]);
GameManager.getInstance().lockButtons();
} catch(e:Error) {
i = 0;
while (i < Split.length) {
i = (i + 1);
};
};
};
}
}
}//package classes.graphical.controls.buttons
Section 13
//ProgresBar (classes.graphical.information.bars.ProgresBar)
package classes.graphical.information.bars {
import flash.display.*;
public class ProgresBar extends MovieClip {
private var _progres:Number;
public function setProgres(_arg1:Number):void{
this._progres = _arg1;
this.gotoAndStop(this._progres);
}
public function getProgres():Number{
return (this._progres);
}
}
}//package classes.graphical.information.bars
Section 14
//HighscoreElement (classes.helper.HighscoreElement)
package classes.helper {
public class HighscoreElement {
private var _points:Number;
private var _items:Number;
private var _totalPoints:Number;
private var _lp:Number;
private var _playerName:String;
private var _time:Number;
private var _gameLevel:Number;
public function HighscoreElement(_arg1:Number, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number){
this.setLp(_arg1);
this.setPlayerName(_arg2);
this.setPoints(_arg3);
this.setGameLevel(_arg5);
this.setItems(_arg6);
this.setTime(_arg4);
this.setTotalPoints(_arg7);
}
public function getTime():String{
return (Utilities.convertTimeToString(_time));
}
public function setTotalPoints(_arg1:Number):void{
_totalPoints = _arg1;
}
public function getItems():Number{
return (_items);
}
public function setLp(_arg1:Number):void{
_lp = _arg1;
}
public function setPlayerName(_arg1:String):void{
_playerName = _arg1;
}
public function getPlayerName():String{
return (_playerName);
}
public function getHighscore():Array{
var _local1:Array;
_local1 = new Array();
_local1["lp"] = this.getLp();
_local1["player"] = this.getPlayerName();
_local1["time"] = this.getTime();
_local1["points"] = this.getPoints();
_local1["gameLevel"] = this.getGameLevel();
_local1["items"] = this.getItems();
_local1["totalPoints"] = this.getTotalPoints();
return (_local1);
}
public function getPoints():Number{
return (_points);
}
public function setTime(_arg1:Number):void{
_time = _arg1;
}
public function getTotalPoints():Number{
return (_totalPoints);
}
public function setPoints(_arg1:Number):void{
_points = _arg1;
}
public function setGameLevel(_arg1:Number):void{
_gameLevel = _arg1;
}
public function getLp():Number{
return (_lp);
}
public function getGameLevel():Number{
return (_gameLevel);
}
public function setItems(_arg1:Number):void{
_items = _arg1;
}
}
}//package classes.helper
Section 15
//Utilities (classes.helper.Utilities)
package classes.helper {
public class Utilities {
public static function convertTimeToString(_arg1:Number):String{
return (((((String(((Math.floor((_arg1 / 60000)) > 9)) ? Math.floor((_arg1 / 60000)) : ("0" + Math.floor((_arg1 / 60000)))) + ":") + (((Math.floor((_arg1 / 1000)) % 60) <= 9)) ? ("0" + (Math.floor((_arg1 / 1000)) % 60)) : (Math.floor((_arg1 / 1000)) % 60)) + ":") + (((Math.floor((_arg1 / 10)) % 100) <= 9)) ? ("0" + (Math.floor((_arg1 / 10)) % 100)) : (Math.floor((_arg1 / 10)) % 100)));
}
}
}//package classes.helper
Section 16
//Point3D (classes.mathematical.Point3D)
package classes.mathematical {
public class Point3D {
private var y:Number;
private var z:Number;
private var x:Number;
public function Point3D(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.z = _arg3;
}
public function get Y():Number{
return (this.y);
}
public function get Z():Number{
return (this.z);
}
public function set Y(_arg1:Number):void{
this.y = _arg1;
}
public function set X(_arg1:Number):void{
this.x = _arg1;
}
public function get X():Number{
return (this.x);
}
public function set Z(_arg1:Number):void{
this.z = _arg1;
}
public static function getDistance(_arg1:Point3D, _arg2:Point3D):Number{
return (Math.sqrt(((Math.pow((_arg1.X - _arg2.X), 2) + Math.pow((_arg1.Y - _arg2.Y), 2)) + Math.pow((_arg1.Z - _arg2.Z), 2))));
}
}
}//package classes.mathematical
Section 17
//BezierSegment (fl.motion.BezierSegment)
package fl.motion {
import flash.geom.*;
public class BezierSegment {
public var a:Point;
public var c:Point;
public var b:Point;
public var d:Point;
public function BezierSegment(_arg1:Point, _arg2:Point, _arg3:Point, _arg4:Point){
this.a = _arg1;
this.b = _arg2;
this.c = _arg3;
this.d = _arg4;
}
public function getYForX(_arg1:Number, _arg2:Array=null):Number{
var _local3:Array;
var _local4:Number;
var _local5:Number;
var _local6:Number;
if (this.a.x < this.d.x){
if (_arg1 <= (this.a.x + 1E-16)){
return (this.a.y);
};
if (_arg1 >= (this.d.x - 1E-16)){
return (this.d.y);
};
} else {
if (_arg1 >= (this.a.x + 1E-16)){
return (this.a.y);
};
if (_arg1 <= (this.d.x - 1E-16)){
return (this.d.y);
};
};
if (!_arg2){
_arg2 = getCubicCoefficients(this.a.x, this.b.x, this.c.x, this.d.x);
};
_local3 = getCubicRoots(_arg2[0], _arg2[1], _arg2[2], (_arg2[3] - _arg1));
_local4 = NaN;
if (_local3.length == 0){
_local4 = 0;
} else {
if (_local3.length == 1){
_local4 = _local3[0];
} else {
for each (_local6 in _local3) {
if ((((0 <= _local6)) && ((_local6 <= 1)))){
_local4 = _local6;
break;
};
};
};
};
if (isNaN(_local4)){
return (NaN);
};
_local5 = getSingleValue(_local4, this.a.y, this.b.y, this.c.y, this.d.y);
return (_local5);
}
public function getValue(_arg1:Number):Point{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local2 = this.a.x;
_local3 = (((((_arg1 * _arg1) * (this.d.x - _local2)) + ((3 * (1 - _arg1)) * ((_arg1 * (this.c.x - _local2)) + ((1 - _arg1) * (this.b.x - _local2))))) * _arg1) + _local2);
_local4 = this.a.y;
_local5 = (((((_arg1 * _arg1) * (this.d.y - _local4)) + ((3 * (1 - _arg1)) * ((_arg1 * (this.c.y - _local4)) + ((1 - _arg1) * (this.b.y - _local4))))) * _arg1) + _local4);
return (new Point(_local3, _local5));
}
public static function getCubicCoefficients(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Array{
return ([(((-(_arg1) + (3 * _arg2)) - (3 * _arg3)) + _arg4), (((3 * _arg1) - (6 * _arg2)) + (3 * _arg3)), ((-3 * _arg1) + (3 * _arg2)), _arg1]);
}
public static function getSingleValue(_arg1:Number, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0):Number{
return ((((((_arg1 * _arg1) * (_arg5 - _arg2)) + ((3 * (1 - _arg1)) * ((_arg1 * (_arg4 - _arg2)) + ((1 - _arg1) * (_arg3 - _arg2))))) * _arg1) + _arg2));
}
public static function getCubicRoots(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0):Array{
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:int;
var _local16:Number;
if (!_arg1){
return (BezierSegment.getQuadraticRoots(_arg2, _arg3, _arg4));
};
if (_arg1 != 1){
_arg2 = (_arg2 / _arg1);
_arg3 = (_arg3 / _arg1);
_arg4 = (_arg4 / _arg1);
};
_local5 = (((_arg2 * _arg2) - (3 * _arg3)) / 9);
_local6 = (((((_arg2 * _arg2) - (3 * _arg3)) / 9) * _local5) * _local5);
_local7 = ((((((2 * _arg2) * _arg2) * _arg2) - ((9 * _arg2) * _arg3)) + (27 * _arg4)) / 54);
_local8 = (_local6 - (_local7 * _local7));
if (_local8 >= 0){
if (!_local5){
return ([0]);
};
_local9 = Math.acos((_local7 / Math.sqrt(_local6)));
_local10 = Math.sqrt(_local5);
_local11 = (((-2 * _local10) * Math.cos((_local9 / 3))) - (_arg2 / 3));
_local12 = (((-2 * _local10) * Math.cos(((_local9 + (2 * Math.PI)) / 3))) - (_arg2 / 3));
_local13 = (((-2 * _local10) * Math.cos(((_local9 + (4 * Math.PI)) / 3))) - (_arg2 / 3));
return ([_local11, _local12, _local13]);
//unresolved jump
};
_local14 = Math.pow((Math.sqrt(-(_local8)) + Math.abs(_local7)), (1 / 3));
_local15 = ((_local7)>0) ? 1 : ((_local7 < 0)) ? -1 : 0;
_local16 = ((-(_local15) * (_local14 + (_local5 / _local14))) - (_arg2 / 3));
return ([_local16]);
}
public static function getQuadraticRoots(_arg1:Number, _arg2:Number, _arg3:Number):Array{
var _local4:Array;
var _local5:Number;
var _local6:int;
var _local7:Number;
_local4 = [];
if (!_arg1){
if (!_arg2){
return ([]);
};
_local4[0] = (-(_arg3) / _arg2);
return (_local4);
};
_local5 = ((_arg2 * _arg2) - ((4 * _arg1) * _arg3));
_local6 = ((_local5)>0) ? 1 : ((_local5 < 0)) ? -1 : 0;
if (_local6 < 0){
return ([]);
};
if (!_local6){
_local4[0] = (-(_arg2) / (2 * _arg1));
} else {
_local4[0] = (_local4[1] = (-(_arg2) / (2 * _arg1)));
_local7 = (Math.sqrt(_local5) / (2 * _arg1));
_local4[0] = (_local4[0] - _local7);
_local4[1] = (_local4[1] + _local7);
};
return (_local4);
}
}
}//package fl.motion
Section 18
//BlendaIntro (game.panel.BlendaIntro)
package game.panel {
import game.*;
import flash.display.*;
public class BlendaIntro extends MovieClip {
public function BlendaIntro(){
addFrameScript(11, frame12);
this.x = 16;
this.y = -108;
}
function frame12(){
stop();
MovieClip(this.parent).stop();
goGO();
}
public function goGO():void{
ThisGameManager.getInstance().play();
}
}
}//package game.panel
Section 19
//Blood (game.panel.Blood)
package game.panel {
import flash.display.*;
public class Blood extends MovieClip {
public function Blood(){
addFrameScript(25, frame26);
}
function frame26(){
this.stop();
this.parent.removeChild(this);
}
}
}//package game.panel
Section 20
//Energy (game.panel.Energy)
package game.panel {
import flash.display.*;
public class Energy extends MovieClip {
public function Energy(){
this.stop();
}
}
}//package game.panel
Section 21
//Hint (game.panel.Hint)
package game.panel {
import flash.display.*;
public class Hint extends MovieClip {
public var h1:MovieClip;
public var h2:MovieClip;
public var h3:MovieClip;
public function Hint(){
addFrameScript(71, frame72, 108, frame109);
this.stop();
}
function frame72(){
this.stop();
}
function frame109(){
stop();
}
}
}//package game.panel
Section 22
//Intro (game.panel.Intro)
package game.panel {
import flash.events.*;
import flash.display.*;
public class Intro extends MovieClip {
var skipBTN:MovieClip;
public var skip:MovieClip;
public function Intro(){
addFrameScript(986, frame987);
skipBTN = MovieClip(this.getChildByName("skip"));
skipBTN.addEventListener(MouseEvent.CLICK, skipMe);
skipBTN.addEventListener(MouseEvent.ROLL_OVER, overr);
skipBTN.addEventListener(MouseEvent.ROLL_OUT, outt);
skipBTN.gotoAndStop(1);
skipBTN.buttonMode = true;
}
private function overr(_arg1:MouseEvent):void{
skipBTN.gotoAndStop(2);
}
function frame987(){
this.stop();
finish();
}
public function skipMe(_arg1:MouseEvent):void{
this.addChild(new BlendaIntro());
}
private function finish():void{
this.addChild(new BlendaIntro());
}
private function outt(_arg1:MouseEvent):void{
skipBTN.gotoAndStop(1);
}
}
}//package game.panel
Section 23
//Round (game.panel.Round)
package game.panel {
import game.*;
import flash.text.*;
import flash.display.*;
public class Round extends MovieClip {
public var roundd:TextField;
var textF:TextField;
public function Round(){
addFrameScript(57, frame58);
this.textF = TextField(this.getChildByName("roundd"));
this.textF.embedFonts = true;
this.textF.defaultTextFormat.font = ThisGameManager.getInstance().Bold.fontName;
textF.text = ((("Level " + (int(((ThisGameManager.getInstance().currentLevel - 1) / 2)) + 1)) + " round ") + (((ThisGameManager.getInstance().currentLevel - 1) % 2) + 1));
}
function frame58(){
this.stop();
}
}
}//package game.panel
Section 24
//ZombieCloud (game.panel.ZombieCloud)
package game.panel {
import flash.display.*;
public class ZombieCloud extends MovieClip {
public var part1of1:ZombieCloudParts;
public var part2of2:ZombieCloudParts;
public var part12:ZombieCloudParts;
public var part11:ZombieCloudParts;
public var part22:ZombieCloudParts;
public var part1of2:ZombieCloudParts;
public function ZombieCloud(){
part1of1 = ZombieCloudParts(this.getChildByName("part11"));
part1of2 = ZombieCloudParts(this.getChildByName("part12"));
part2of2 = ZombieCloudParts(this.getChildByName("part22"));
this.x = -50;
this.y = -300;
}
}
}//package game.panel
Section 25
//ZombieCloudParts (game.panel.ZombieCloudParts)
package game.panel {
import flash.display.*;
public class ZombieCloudParts extends MovieClip {
public function ZombieCloudParts(){
this.stop();
}
}
}//package game.panel
Section 26
//GameBackground (game.GameBackground)
package game {
import classes.mathematical.*;
import flash.geom.*;
import flash.display.*;
public class GameBackground extends MovieClip {
var floorHole:Array;
var focalLenght:Number;
var vanishingPoint:Point;
var currntBackground:int;
public function GameBackground(){
var _local1:Array;
floorHole = new Array();
super();
currntBackground = 1;
vanishingPoint = new Point(400, 50);
focalLenght = 100000;
this.gotoAndStop(currntBackground);
ThisGameManager.getInstance().background = this;
_local1 = new Array();
_local1.push(new Point3D(-145, 330, 234000));
_local1.push(new Point3D(-193, 330, 43409));
_local1.push(new Point3D(209, 330, 119240));
floorHole.push(_local1);
_local1 = new Array();
_local1.push(new Point3D(70, 330, 352077));
_local1.push(new Point3D(-255, 330, 86275));
_local1.push(new Point3D(205, 330, 149883));
floorHole.push(_local1);
_local1 = new Array();
_local1.push(new Point3D(210, 330, 340418));
_local1.push(new Point3D(-250, 330, 165833));
_local1.push(new Point3D(185, 330, 42575));
floorHole.push(_local1);
_local1 = new Array();
_local1.push(new Point3D(132, 330, 236048));
_local1.push(new Point3D(-228, 330, 133187));
_local1.push(new Point3D(230, 330, 43161));
floorHole.push(_local1);
_local1 = new Array();
_local1.push(new Point3D(-275, 330, 49461));
_local1.push(new Point3D(-220, 330, 284119));
_local1.push(new Point3D(250, 330, 135000));
floorHole.push(_local1);
}
public function getFocalLenght():Number{
return (focalLenght);
}
public function setBackground(_arg1:int):void{
this.gotoAndStop(_arg1);
currntBackground = _arg1;
}
public function getFloorHole():Array{
return (floorHole);
}
public function getCurrntBackground():int{
return (currntBackground);
}
public function getVanishingPoint():Point{
return (vanishingPoint);
}
}
}//package game
Section 27
//GameBody (game.GameBody)
package game {
import flash.events.*;
import flash.display.*;
import game.panel.*;
public class GameBody extends MovieClip {
var hint:MovieClip;
public var MaleFemale:int;
public var parts:Array;
public function GameBody(){
parts = new Array();
super();
if (Math.random() < ThisGameManager.getInstance().level.zombieIsFemalePropability){
MaleFemale = (((ThisGameManager.getInstance().currentLevel + 1) % 2) + 1);
} else {
MaleFemale = ((ThisGameManager.getInstance().currentLevel % 2) + 1);
};
parts.push("1Dlon");
parts.push("2Dlon");
parts.push("1Noga");
parts.push("2Noga");
parts.push("1Ramie");
parts.push("2Ramie");
parts.push("1Stopa");
parts.push("2Stopa");
parts.push("1Dlon");
parts.push("2Dlon");
parts.push("1Noga");
parts.push("2Noga");
parts.push("1Ramie");
parts.push("2Ramie");
if (MaleFemale == 1){
parts.push("Glowa");
parts.push("Korpus");
} else {
parts.push("GlowaK");
parts.push("KorpusK");
};
if (MaleFemale == 2){
this.gotoAndStop((3 + (ThisGameManager.getInstance().femaleCounter++ % 2)));
} else {
this.gotoAndStop((1 + (ThisGameManager.getInstance().maleCounter++ % 2)));
};
this.cacheAsBitmap = true;
if (ThisGameManager.getInstance().level.hintBody){
hint = new Hint();
ThisGameManager.getInstance().level.hintBody = false;
};
}
public function showHint():void{
ThisGameManager.getInstance().addChild(hint);
hint.gotoAndPlay("body");
this.hint.buttonMode = true;
this.hint.addEventListener(MouseEvent.CLICK, hideHint);
}
private function hideHint(_arg1:MouseEvent):void{
this.hint.parent.removeChild(hint);
this.hint.removeEventListener(MouseEvent.CLICK, hideHint);
ThisGameManager.getInstance().level.startAll();
}
}
}//package game
Section 28
//GameBodyPart (game.GameBodyPart)
package game {
import flash.events.*;
import flash.display.*;
public class GameBodyPart extends MovieClip {
var zombies:Array;
public var partName:String;
var parentParts:Array;
public function GameBodyPart(){
var _local1:Array;
super();
this.stop();
partName = this.toString();
partName = partName.slice(1, (partName.length - 1));
_local1 = partName.split("_");
partName = _local1[(_local1.length - 1)];
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, toThrowAnim);
}
public function toThrowAnim(_arg1:MouseEvent):void{
ThisGameManager.getInstance().soundManager.giveBodyPullSound();
ThisGameManager.getInstance().level.toThrowAnim(this);
this.removeEventListener(MouseEvent.CLICK, toThrowAnim);
}
private function dragToThrow(_arg1:MouseEvent):void{
this.startDrag();
}
private function throwThis(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Number;
zombies = ThisGameManager.getInstance().level.levelZombies;
_local2 = 0;
while (_local2 < zombies.length) {
if (this.hitTestObject(zombies[_local2])){
GameZombie(zombies[_local2]).deleteMe();
break;
};
_local2++;
};
this.removeEventListener(MouseEvent.MOUSE_DOWN, dragToThrow);
this.removeEventListener(MouseEvent.MOUSE_UP, throwThis);
this.stopDrag();
_local3 = 0;
while (_local3 < parentParts.length) {
if (parentParts[_local3] == this){
parentParts.slice(_local3, 1);
};
_local3++;
};
this.parent.parent.removeChild(this.parent);
this.parent.removeChild(this);
}
}
}//package game
Section 29
//GameBodyPartAnimation (game.GameBodyPartAnimation)
package game {
import classes.mathematical.*;
import flash.geom.*;
import flash.events.*;
import fl.motion.*;
import flash.utils.*;
import flash.display.*;
public class GameBodyPartAnimation extends MovieClip {
var animatonStartY:Number;
var animationLenght:int;
var targetObject:GameZombie;
var speed:Number;// = 45
var c:Point;
var b:Point;
var xStep:Number;
var animationStep:int;
var animationTime:Number;
var animatonStopZ:Number;
var d:Point;
var animatonStartZ:Number;
var lastTime:int;
var a:Point;
var posinton:Point3D;
var vPoint:Point;
var fl:Number;
var bezier:BezierSegment;
var animatonStartX:Number;
public function GameBodyPartAnimation(){
speed = 45;
super();
this.stop();
animationLenght = 40;
animationStep = 0;
animatonStartX = 0;
animatonStartY = 400;
animatonStartZ = -28000;
animationTime = 1500;
}
private function moveMe(_arg1:Event):void{
var _local2:Array;
var _local3:Number;
var _local4:Number;
this.rotation = (this.rotation + 2);
animationStep++;
_local2 = ThisGameManager.getInstance().level.levelZombies;
_local3 = ((getTimer() - lastTime) * speed);
_local4 = ((getTimer() - lastTime) * xStep);
lastTime = getTimer();
this.posinton.Z = (this.posinton.Z + _local3);
this.posinton.X = (this.posinton.X + _local4);
this.posinton.Y = bezier.getYForX(this.posinton.Z);
givePerspective();
if (posinton.Z >= targetObject.posinton.Z){
targetObject.eat();
deleteMe();
};
}
private function givePerspective():void{
var _local1:Number;
_local1 = (fl / (fl + posinton.Z));
this.scaleX = (this.scaleY = (_local1 * 3));
this.x = (vPoint.x + (posinton.X * _local1));
this.y = (vPoint.y + (posinton.Y * _local1));
}
public function setAnim(_arg1:GameZombie):void{
var _local2:Number;
lastTime = getTimer();
targetObject = _arg1;
vPoint = ThisGameManager.getInstance().background.getVanishingPoint();
fl = ThisGameManager.getInstance().background.getFocalLenght();
_local2 = ((1700 * (_arg1.getStopZ() - _arg1.posinton.Z)) / (_arg1.getStopZ() - _arg1.getStartZ()));
animationTime = (animationTime * ((_arg1.getStopZ() - _arg1.posinton.Z) / (_arg1.getStopZ() - _arg1.getStartZ())));
animationTime = (animationTime + 300);
_local2 = (_local2 + 50);
a = new Point(animatonStartZ, animatonStartY);
b = new Point((animatonStartZ + ((_arg1.posinton.Z - animatonStartZ) / 3)), (animatonStartY - 50));
c = new Point((animatonStartZ + (((_arg1.posinton.Z - animatonStartZ) * 3) / 4)), (_arg1.posinton.Y - _local2));
d = new Point(_arg1.posinton.Z, (_arg1.posinton.Y - 50));
bezier = new BezierSegment(a, b, c, d);
speed = ((_arg1.posinton.Z - animatonStartZ) / animationTime);
xStep = ((_arg1.posinton.X - animatonStartX) / animationTime);
animatonStartY = (_arg1.posinton.Y - 200);
animatonStopZ = _arg1.posinton.Z;
posinton = new Point3D(animatonStartX, animatonStartY, animatonStartZ);
givePerspective();
this.addEventListener(Event.ENTER_FRAME, moveMe);
this.play();
}
public function deleteMe():void{
stopMoving();
this.parent.removeChild(this);
}
public function stopMoving():void{
this.removeEventListener(Event.ENTER_FRAME, moveMe);
this.stop();
}
}
}//package game
Section 30
//GameFreezer (game.GameFreezer)
package game {
import flash.geom.*;
import flash.events.*;
import flash.display.*;
import game.panel.*;
public class GameFreezer extends MovieClip {
var bodyPosHided:int;// = 280
var speedStart:Number;// = 24
var bodyPosShowed:int;// = -150
var speed:Number;
var bodyIsHided:Boolean;// = true
var hint:MovieClip;
var toShowFreezer:GameFreezer;
var body:GameBody;
var dir:int;// = 1
var sManager:SoundManager;
var levelFreezers:Array;
public static var HIDED:String = "hided";
public function GameFreezer(){
bodyPosShowed = -150;
bodyPosHided = 280;
bodyIsHided = true;
dir = 1;
speedStart = 24;
super();
this.buttonMode = true;
levelFreezers = ThisGameManager.getInstance().level.getLevelFreezers();
levelFreezers.push(this);
this.addEventListener(MouseEvent.CLICK, showBody);
sManager = ThisGameManager.getInstance().soundManager;
}
public function hideBody():Boolean{
if (!bodyIsHided){
speed = speedStart;
sManager.giveFreezerCloseSound();
bodyIsHided = true;
dir = 1;
this.removeEventListener(MouseEvent.CLICK, showBody);
this.body.addEventListener(Event.ENTER_FRAME, anim);
return (true);
};
return (false);
}
private function removeAllFreezersListeners():void{
var _local1:Array;
var _local2:int;
_local1 = ThisGameManager.getInstance().level.levelFreezers;
_local2 = 0;
while (_local2 < _local1.length) {
GameFreezer(_local1[_local2]).removeEventListener(MouseEvent.CLICK, GameFreezer(_local1[_local2]).showBody);
_local2++;
};
}
private function anim(_arg1:Event):void{
if (speed > 1){
speed = (speed - 0.5);
};
if (dir > 0){
if (this.body.y <= bodyPosHided){
this.body.y = (this.body.y + (dir * speed));
} else {
this.body.removeEventListener(Event.ENTER_FRAME, anim);
if (toShowFreezer != null){
toShowFreezer.showByHiding();
toShowFreezer = null;
};
addAllFreezersListeners();
};
};
if (dir < 0){
if (this.body.y >= bodyPosShowed){
this.body.y = (this.body.y + (dir * speed));
} else {
this.body.removeEventListener(Event.ENTER_FRAME, anim);
this.addEventListener(MouseEvent.CLICK, showBody);
addAllFreezersListeners();
};
};
}
public function showHint():void{
ThisGameManager.getInstance().addChild(hint);
hint.buttonMode = true;
this.hint.addEventListener(MouseEvent.CLICK, hideHint);
}
private function showBody(_arg1:MouseEvent):void{
var _local2:Array;
var _local3:Number;
_local2 = ThisGameManager.getInstance().level.levelFreezers;
removeAllFreezersListeners();
_local3 = 0;
while (_local3 < levelFreezers.length) {
if (levelFreezers[_local3] != this){
if (GameFreezer(levelFreezers[_local3]).hideBody()){
GameFreezer(levelFreezers[_local3]).showAfterHide(this);
bodyIsHided = false;
return;
};
};
_local3++;
};
if (bodyIsHided){
sManager.giveFreezerOpenSound();
dir = -1;
bodyIsHided = false;
this.body.y = bodyPosHided;
this.parent.addChildAt(body, 0);
this.body.addEventListener(Event.ENTER_FRAME, anim);
speed = speedStart;
} else {
hideBody();
};
}
public function getBody():GameBody{
return (body);
}
private function showBodyHint(_arg1:Event):void{
this.body.showHint();
GameFreezer(ThisGameManager.getInstance().level.levelFreezers[1]).addEventListener(MouseEvent.CLICK, GameFreezer(ThisGameManager.getInstance().level.levelFreezers[1]).showBody);
GameFreezer(ThisGameManager.getInstance().level.levelFreezers[1]).buttonMode = true;
this.removeEventListener(MouseEvent.CLICK, showBodyHint);
ThisGameManager.getInstance().level.stopAll();
}
public function reset():void{
var _local1:Number;
ThisGameManager.getInstance().level.isHiding = false;
if (((!((this.body == null))) && (!((this.body.parent == null))))){
if (this.body.parent.contains(this.body)){
this.body.parent.removeChild(this.body);
};
};
body = new GameBody();
bodyCenter();
if (int(this.name.charAt(1)) > ThisGameManager.getInstance().currentLevel){
this.visible = false;
return;
};
this.visible = true;
this.addEventListener(MouseEvent.CLICK, showBody);
_local1 = 0;
while (_local1 < body.parts.length) {
if (isNaN(ThisGameManager.getInstance().level.levelFreezersBodyParts[body.parts[_local1]])){
ThisGameManager.getInstance().level.levelFreezersBodyParts[body.parts[_local1]] = 1;
ThisGameManager.getInstance().level.levelZombiesBodyParts.push([body.parts[_local1], 0]);
} else {
var _local2 = ThisGameManager.getInstance().level.levelFreezersBodyParts;
var _local3 = body.parts[_local1];
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
};
_local1++;
};
if (ThisGameManager.getInstance().level.hintFreezer){
hint = new Hint();
hint.gotoAndStop("freezer");
ThisGameManager.getInstance().level.hintFreezer = false;
};
}
public function bodyCenter():void{
if (ThisGameManager.getInstance().currentLevel > 2){
body.x = (this.x + (this.width / 2));
if (this.parent.x == 400){
if (this.name == "f0"){
body.x = (body.x + 50);
} else {
if (this.name == "f9"){
body.x = (body.x - 45);
};
};
};
} else {
body.x = this.parent.globalToLocal(new Point(650, 3)).x;
};
}
private function addAllFreezersListeners():void{
var _local1:Array;
var _local2:int;
_local1 = ThisGameManager.getInstance().level.levelFreezers;
_local2 = 0;
while (_local2 < _local1.length) {
GameFreezer(_local1[_local2]).addEventListener(MouseEvent.CLICK, GameFreezer(_local1[_local2]).showBody);
_local2++;
};
}
private function showAfterHide(_arg1:GameFreezer):void{
toShowFreezer = _arg1;
}
public function showByHiding():void{
speed = speedStart;
dir = -1;
bodyIsHided = false;
this.body.y = bodyPosHided;
this.parent.addChildAt(body, 0);
this.body.addEventListener(Event.ENTER_FRAME, anim);
this.removeEventListener(MouseEvent.CLICK, showBody);
sManager.giveFreezerOpenSound();
}
private function hideHint(_arg1:MouseEvent):void{
this.hint.parent.removeChild(hint);
this.hint.removeEventListener(MouseEvent.CLICK, hideHint);
ThisGameManager.getInstance().level.startAll();
this.addEventListener(MouseEvent.CLICK, showBodyHint);
GameFreezer(ThisGameManager.getInstance().level.levelFreezers[1]).removeEventListener(MouseEvent.CLICK, GameFreezer(ThisGameManager.getInstance().level.levelFreezers[1]).showBody);
GameFreezer(ThisGameManager.getInstance().level.levelFreezers[1]).buttonMode = false;
}
}
}//package game
Section 31
//GameMap (game.GameMap)
package game {
import flash.events.*;
import flash.display.*;
public class GameMap extends MovieClip {
public function GameMap(){
addFrameScript(64, frame65, 82, frame83, 167, frame168, 187, frame188, 276, frame277, 297, frame298, 396, frame397, 429, frame430, 526, frame527, 564, frame565);
this.gotoAndPlay(("Level" + (((ThisGameManager.getInstance().currentLevel - 1) / 2) + 1).toString()));
}
function frame65(){
makeClickable();
}
function frame277(){
makeClickable();
}
function frame397(){
makeClickable();
}
function frame430(){
this.stop();
}
function frame168(){
makeClickable();
}
function frame565(){
this.stop();
}
function frame298(){
this.stop();
}
function frame188(){
this.stop();
}
function frame83(){
this.stop();
}
private function makeClickable():void{
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, goGo);
}
function frame527(){
makeClickable();
}
private function goGo(_arg1:MouseEvent):void{
this.buttonMode = false;
this.removeEventListener(MouseEvent.CLICK, goGo);
MovieClip(this.parent).play();
}
}
}//package game
Section 32
//GameZombie (game.GameZombie)
package game {
import classes.mathematical.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.display.*;
import game.panel.*;
public class GameZombie extends MovieClip {
private var krokChannel:SoundChannel;
var AB:int;
var cloud:ZombieCloud;
var startX:Number;
var startY:Number;
var startZ:Number;
var walkTime:Number;
var posinton:Point3D;
var speed:Number;// = 15
var soundID:int;
var lastTime:int;
public var isOK:int;// = 0
var hint:MovieClip;
var killAnim:String;
var freezeParts:Array;
var stopZ:Number;
var partToEat:Array;
var vPoint:Point;
var fl:Number;
private var zobieChannel:SoundChannel;
var zobieTimer:Timer;
var isFemale:Boolean;
var afterHitAction:String;
var kill:MovieClip;
private var krokTimer:Timer;
var body:GameBody;
var sManager:SoundManager;
var double:int;
var zombiesParts:Array;
var eatingTimer:Timer;
var killingTimer:Timer;
public static const DELETE:String = "Delete";
public function GameZombie(){
zobieChannel = new SoundChannel();
speed = 15;
isOK = 0;
super();
zobieTimer = new Timer(1, 1);
zobieTimer.addEventListener(TimerEvent.TIMER, giveZombieSound);
zobieTimer.start();
AB = 0;
soundID = (Math.floor(((Math.random() * ThisGameManager.getInstance().soundManager.krok.length) / 2)) * 2);
startX = 0;
startY = 380;
startZ = 450000;
walkTime = 50000;
stopZ = -25000;
speed = ((startZ - stopZ) / walkTime);
sManager = ThisGameManager.getInstance().soundManager;
krokTimer = new Timer(800);
krokTimer.addEventListener(TimerEvent.TIMER, giveKrokSound);
eatingTimer = new Timer(2000, 1);
eatingTimer.addEventListener(TimerEvent.TIMER, afterEating);
killingTimer = new Timer(4000, 1);
killingTimer.addEventListener(TimerEvent.TIMER, afterKilling);
}
public function veryAngry():void{
this.enabled = false;
afterThrow();
this.removeChild(cloud);
}
private function afterHit():void{
if (afterHitAction == "Loop"){
this.gotoAndPlay("Loop");
this.startMovig();
} else {
sManager.startBiteSounds();
this.gotoAndPlay("je");
eatingTimer.reset();
eatingTimer.start();
};
}
public function afterKilling():void{
this.deleteMe();
ThisGameManager.getInstance().level.killMe();
}
private function givePerspective():void{
var _local1:Number;
_local1 = (fl / (fl + posinton.Z));
this.scaleX = (this.scaleY = _local1);
this.x = (vPoint.x + (posinton.X * _local1));
this.y = (vPoint.y + (posinton.Y * _local1));
}
public function afterThrow():void{
this.removeEventListener(MouseEvent.CLICK, startThrowing);
this.buttonMode = false;
}
public function deleteMe():void{
var _local1:Number;
zobieTimer.stop();
stopMoving();
if (((!((this.parent == null))) && (this.parent.contains(this)))){
_local1 = 0;
while (_local1 < zombiesParts.length) {
if (zombiesParts[_local1][0] == partToEat.partName){
var _local2 = zombiesParts[_local1];
var _local3 = 1;
var _local4 = (_local2[_local3] - 1);
_local2[_local3] = _local4;
};
_local1++;
};
this.parent.removeChild(this);
};
dispatchEvent(new Event(GameZombie.DELETE));
}
private function afterEating(_arg1:TimerEvent):void{
var _local2:int;
var _local3:int;
sManager.stopBiteSounds();
if (afterHitAction == "eat_delete"){
this.gotoAndPlay("rozpad");
sManager.giveBonesSound();
} else {
this.gotoAndPlay("Loop");
_local3 = 0;
while (_local3 < this.parent.numChildren) {
if (GameZombie(this.parent.getChildAt(_local3)).posinton.Z < this.posinton.Z){
this.parent.addChildAt(this.parent.getChildAt(_local3), (_local3 + 1));
break;
};
_local3++;
};
this.startMovig();
};
}
private function giveZombieSound(_arg1:TimerEvent):void{
var _local2:Array;
var _local3:int;
var _local4:int;
zobieTimer.delay = (2000 + (Math.random() * 5500));
zobieTimer.reset();
zobieTimer.start();
zobieChannel.stop();
_local2 = ThisGameManager.getInstance().level.levelZombies;
_local3 = 5;
_local4 = 0;
while (_local4 < ThisGameManager.getInstance().level.levelZombies.length) {
if (_local2[_local4] == this){
_local3 = _local4;
break;
};
_local4++;
};
if (_local4 < 2){
if (isFemale){
zobieChannel = sManager.zombieF[Math.floor((Math.random() * sManager.zombieF.length))].play(1, 1);
} else {
zobieChannel = sManager.zombie[Math.floor((Math.random() * sManager.zombie.length))].play(1, 1);
};
};
}
private function hideHint(_arg1:MouseEvent):void{
this.hint.parent.removeChild(hint);
this.hint.removeEventListener(MouseEvent.CLICK, hideHint);
ThisGameManager.getInstance().level.levelFreezers[0].showHint();
hint.buttonMode = true;
this.buttonMode = true;
}
public function stopMoving():void{
var _local1:int;
this.removeEventListener(Event.ENTER_FRAME, moveMe);
this.stop();
_local1 = 0;
while (_local1 < this.numChildren) {
if (((!((this.getChildAt(_local1) == null))) && (!((this.getChildAt(_local1) == hint))))){
MovieClip(this.getChildAt(_local1)).stop();
};
_local1++;
};
if (krokTimer.running){
krokTimer.stop();
};
}
public function getStopZ():Number{
return (stopZ);
}
public function setKillAnim(_arg1:String):void{
this.killAnim = _arg1;
}
public function toThrow():void{
if (this.enabled){
this.addEventListener(MouseEvent.CLICK, startThrowing);
};
this.buttonMode = true;
}
public function getStartZ():Number{
return (startZ);
}
public function setZombie(_arg1:Boolean=false, _arg2:Number=0, _arg3:Number=450000, _arg4:Number=380):Boolean{
var _local5:Array;
var _local6:Object;
var _local7:Number;
var _local8:int;
var _local9:int;
var _local10:String;
var _local11:int;
var _local12:Number;
partToEat = new Array();
body = new GameBody();
freezeParts = ThisGameManager.getInstance().level.levelFreezersBodyParts;
zombiesParts = ThisGameManager.getInstance().level.levelZombiesBodyParts;
cloud = new ZombieCloud();
_local5 = new Array();
_local7 = 0;
while (_local7 < zombiesParts.length) {
if ((freezeParts[zombiesParts[_local7][0]] - zombiesParts[_local7][1]) > 1){
_local5.push(String(zombiesParts[_local7][0]));
};
_local7++;
};
if (_local5.length == 0){
return (false);
};
if (_local5.length > 1){
if (Math.random() < ThisGameManager.getInstance().level.zombieDoubleFoodPropability){
double = 2;
} else {
double = 1;
};
} else {
double = 1;
};
if (double == 2){
ThisGameManager.getInstance().level.zombieCounter--;
};
_local8 = double;
while (_local8 > 0) {
_local9 = Math.floor((Math.random() * _local5.length));
_local10 = _local5[_local9];
_local5.slice(_local9);
_local12 = 0;
while (_local12 < zombiesParts.length) {
if (zombiesParts[_local12][0] == _local10){
var _local13 = zombiesParts[_local12];
var _local14 = 1;
var _local15 = (_local13[_local14] + 1);
_local13[_local14] = _local15;
_local11 = (_local12 + 2);
break;
};
_local12++;
};
partToEat.push(_local10);
if (double == 1){
cloud.part1of1.gotoAndStop(_local10);
} else {
if (_local8 == 1){
cloud.part1of2.gotoAndStop(_local10);
} else {
cloud.part2of2.gotoAndStop(_local10);
};
};
_local8--;
};
this.addChild(cloud);
vPoint = ThisGameManager.getInstance().background.getVanishingPoint();
fl = ThisGameManager.getInstance().background.getFocalLenght();
posinton = new Point3D(_arg2, (_arg4 - vPoint.y), _arg3);
givePerspective();
startMovig(_arg1);
if (ThisGameManager.getInstance().level.hintZombie){
hint = new Hint();
hint.gotoAndPlay("zombie");
ThisGameManager.getInstance().level.hintZombie = false;
this.addEventListener(Event.ENTER_FRAME, hintStoper);
ThisGameManager.getInstance().addChild(hint);
};
return (true);
}
private function giveKrokSound(_arg1:TimerEvent):void{
var _local2:Array;
var _local3:int;
_local2 = ThisGameManager.getInstance().level.levelZombies;
_local3 = 0;
while (_local3 < ThisGameManager.getInstance().level.levelZombies.length) {
if (_local2[_local3] == this){
break;
};
_local3++;
};
if (_local3 < 2){
krokChannel = sManager.krok[(soundID + (AB % 2))].play();
};
AB++;
}
private function moveMe(_arg1:Event):void{
var _local2:Number;
speed = (speed - 0.001);
_local2 = ((getTimer() - lastTime) * speed);
lastTime = getTimer();
this.posinton.Z = (this.posinton.Z - _local2);
givePerspective();
if ((((posinton.Z < 0)) && (((posinton.X + vPoint.x) < 150)))){
posinton.X = (posinton.X + 0.7);
};
if ((((posinton.Z < 0)) && (((posinton.X + vPoint.x) > 650)))){
posinton.X = (posinton.X - 0.7);
};
if (posinton.Z < -25000){
this.killMe();
};
}
public function eat():void{
afterHitAction = "Loop";
if (isOK != 0){
if (double == 1){
this.cloud.visible = false;
afterHitAction = "eat_delete";
} else {
double = 1;
afterHitAction = "eat_move";
if (isOK == 1){
this.cloud.part1of1.gotoAndStop(this.cloud.part1of2.currentFrame);
} else {
this.cloud.part1of1.gotoAndStop(this.cloud.part2of2.currentFrame);
};
this.cloud.part1of2.gotoAndStop(0);
this.cloud.part2of2.gotoAndStop(0);
};
isOK = 0;
hit();
};
}
public function giveBlood():void{
this.parent.parent.addChild(new Blood());
sManager.giveKillingSound();
}
public function setIsFemale(_arg1:Boolean):void{
this.isFemale = _arg1;
}
private function hit():void{
this.stopMoving();
afterHit();
}
private function hintStoper(_arg1:Event):void{
if (this.currentFrame > 65){
this.removeEventListener(Event.ENTER_FRAME, hintStoper);
ThisGameManager.getInstance().level.stopAll();
hint.buttonMode = true;
this.buttonMode = true;
hint.addEventListener(MouseEvent.CLICK, hideHint);
};
}
private function startThrowing(_arg1:MouseEvent):void{
this.removeEventListener(MouseEvent.CLICK, startThrowing);
ThisGameManager.getInstance().level.throwAnimStart(this);
}
private function killMe():void{
this.stopMoving();
this.gotoAndPlay("zly");
}
public function startMovig(_arg1:Boolean=true):void{
var _local2:int;
this.addEventListener(Event.ENTER_FRAME, moveMe);
lastTime = getTimer();
if (_arg1){
this.play();
} else {
this.gotoAndPlay("Loop");
};
krokTimer.start();
_local2 = 0;
while (_local2 < this.numChildren) {
if (((!((this.getChildAt(_local2) == null))) && (!((this.getChildAt(_local2) == hint))))){
MovieClip(this.getChildAt(_local2)).play();
};
_local2++;
};
}
public function getPartToEat():Array{
return (partToEat);
}
}
}//package game
Section 33
//Level (game.Level)
package game {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import game.panel.*;
public class Level extends Sprite {
var throwingBody:GameBodyPart;
var levelFreezersBodyParts:Array;
var lives;
var zombieTypes:Array;
var levelAddZombieTimeOffset:Number;
public var toThrow:Boolean;// = false
var background:GameBackground;
public var hintFreezer:Boolean;// = false
var levelZombieOffset:Number;
public var isHiding:Boolean;// = false
var levelZombieSpred:Number;
public var zombieIsFemalePropability:Number;
var throwingAnim:GameBodyPartAnimation;
var levelZombiesBodyParts:Array;
var addZombieTimer:Timer;
public var zombieFromHolePropability:Number;
var ixMinmumOffset:int;
var levelAddZombieTimeSpred:Number;
var energy:Energy;
public var zombieDoubleFoodPropability:Number;
var throwingBodyCopy:GameBodyPart;
var pip:MovieClip;
public var hintZombie:Boolean;// = false
var sManager:SoundManager;
var levelFreezers:Array;
var nextZ:Number;// = 0
public var hintBody:Boolean;// = false
var levelZombies:Array;
var zetMinmumOffset:int;
public var zombieCounter:int;
var blackPiP:MovieClip;
public function Level(){
levelZombies = new Array();
levelFreezers = new Array();
levelFreezersBodyParts = new Array();
levelZombiesBodyParts = new Array();
zombieTypes = new Array();
toThrow = false;
isHiding = false;
hintZombie = false;
hintBody = false;
hintFreezer = false;
nextZ = 0;
super();
blackPiP = MovieClip(ThisGameManager.getInstance().getChildByName("pp"));
ThisGameManager.getInstance().gameOver = false;
nextZ = Math.random();
if (ThisGameManager.getInstance().tutorial){
hintZombie = true;
hintBody = true;
hintFreezer = true;
nextZ = -1;
ThisGameManager.getInstance().tutorial = false;
};
ThisGameManager.getInstance().currentLevel = 1;
energy = new Energy();
background = ThisGameManager.getInstance().background;
zombieTypes.push("Zombie_chick");
zombieTypes.push("Zombie_fat");
zombieTypes.push("Zombie_groovie");
zombieTypes.push("Zombie_nerd");
zombieTypes.push("Zombie_beheaded");
zombieTypes.push("Zombie_standard");
sManager = ThisGameManager.getInstance().soundManager;
levelZombieSpred = 700;
levelZombieOffset = 50;
levelAddZombieTimeSpred = 2000;
levelAddZombieTimeOffset = 2000;
ixMinmumOffset = 230;
zetMinmumOffset = 250000;
throwingBody = null;
MovieClip(ThisGameManager.getInstance().getChildByName("gameContainer")).addChild(this);
pip = new MovieClip();
pip.x = 730;
pip.y = 70;
this.parent.addChild(pip);
addZombieTimer = new Timer(1, 1);
addZombieTimer.addEventListener(TimerEvent.TIMER, addZombie);
}
public function startAll():void{
var _local1:int;
addZombieTimer.start();
_local1 = 0;
while (_local1 < levelZombies.length) {
GameZombie(levelZombies[_local1]).startMovig();
if (throwingBody != null){
GameZombie(levelZombies[_local1]).toThrow();
};
_local1++;
};
}
public function getLevelFreezers():Array{
return (levelFreezers);
}
public function updateFreezers(_arg1:String):void{
var _local2 = levelFreezersBodyParts;
var _local3 = _arg1;
var _local4 = (_local2[_local3] - 1);
_local2[_local3] = _local4;
}
private function addZombie(_arg1:TimerEvent):void{
var _local2:Boolean;
var _local3:*;
var _local4:Class;
var _local5:int;
var _local6:GameZombie;
var _local7:*;
var _local8:*;
var _local9:int;
var _local10:int;
var _local11:Array;
var _local12:int;
var _local13:Number;
var _local14:int;
var _local15:int;
if ((zombieCounter - levelZombies.length) <= 0){
return;
};
addZombieTimer.delay = ((Math.random() * levelAddZombieTimeSpred) + levelAddZombieTimeOffset);
addZombieTimer.reset();
addZombieTimer.start();
_local2 = true;
_local3 = 0;
do {
_local7 = (((Math.random() * levelZombieSpred) + levelZombieOffset) - background.getVanishingPoint().x);
_local2 = true;
_local8 = 0;
while (_local8 < levelZombies.length) {
if ((((Math.abs((GameZombie(levelZombies[_local8]).posinton.X - _local7)) < ixMinmumOffset)) && ((Math.abs((GameZombie(levelZombies[_local8]).posinton.Z - GameZombie(levelZombies[_local8]).startZ)) < zetMinmumOffset)))){
_local2 = false;
};
_local8++;
};
++_local3;
if (_local3 > 30){
return;
};
} while (!(_local2));
_local5 = Math.floor((Math.random() * zombieTypes.length));
_local4 = (getDefinitionByName(zombieTypes[_local5]) as Class);
_local6 = new (_local4);
_local6.setIsFemale((_local5 == 0));
if (nextZ > zombieFromHolePropability){
nextZ = Math.random();
if (!_local6.setZombie(false, _local7)){
return;
};
this.addChildAt(_local6, 0);
} else {
if (nextZ < 0){
_local9 = 1;
} else {
_local9 = Math.floor((Math.random() * 3));
};
nextZ = Math.random();
_local10 = this.numChildren;
_local11 = background.getFloorHole()[(background.getCurrntBackground() - 1)];
_local2 = true;
_local12 = _local9;
while (_local12 < (_local9 + 3)) {
_local2 = true;
_local15 = 0;
while (_local15 < levelZombies.length) {
if ((((Math.abs((GameZombie(levelZombies[_local15]).posinton.X - _local11[(_local12 % 3)].X)) < ixMinmumOffset)) && ((Math.abs((GameZombie(levelZombies[_local15]).posinton.Z - _local11[(_local12 % 3)].Z)) < zetMinmumOffset)))){
_local2 = false;
};
_local15++;
};
if (_local2){
_local9 = (_local12 % 3);
break;
};
_local12++;
};
if (!_local2){
_local6.deleteMe();
return;
};
_local13 = background.getFloorHole()[(background.getCurrntBackground() - 1)][_local9].Z;
_local7 = background.getFloorHole()[(background.getCurrntBackground() - 1)][_local9].X;
if (!_local6.setZombie(true, _local7, _local13)){
return;
};
_local14 = 0;
while (_local14 < this.numChildren) {
if (GameZombie(this.getChildAt(_local14)).posinton.Z < _local13){
_local10 = _local14;
break;
};
_local14++;
};
this.addChildAt(_local6, _local10);
};
if (throwingBody != null){
_local6.toThrow();
};
_local6.addEventListener(GameZombie.DELETE, deleteZombie);
levelZombies.push(_local6);
}
public function stopAll():void{
var _local1:int;
addZombieTimer.stop();
_local1 = 0;
while (_local1 < levelZombies.length) {
GameZombie(levelZombies[_local1]).stopMoving();
GameZombie(levelZombies[_local1]).afterThrow();
_local1++;
};
}
public function start():void{
addZombieTimer.start();
}
private function nextLevel():void{
finishLevel();
ThisGameManager.getInstance().currentLevel++;
if (ThisGameManager.getInstance().currentLevel > 10){
ThisGameManager.getInstance().gameOver = true;
ThisGameManager.getInstance().currentLevel = 1;
};
ThisGameManager.getInstance().play();
}
public function killMe():void{
lives--;
if (lives == 0){
finishLevel();
ThisGameManager.getInstance().gotoAndPlay("2Menu");
ThisGameManager.getInstance().currentLevel = 1;
return;
};
energy.nextFrame();
}
public function throwAnimStart(_arg1:GameZombie):void{
var _local2:Number;
var _local3:Number;
sManager.giveRzutSound();
_local2 = 0;
while (_local2 < levelFreezers.length) {
GameFreezer(levelFreezers[_local2]).hideBody();
_local2++;
};
_local3 = 0;
while (_local3 < _arg1.getPartToEat().length) {
if (throwingBody.partName.slice((throwingBody.partName.length - 3)) == _arg1.getPartToEat()[_local3].slice((throwingBody.partName.length - 3))){
_arg1.getPartToEat().slice(_local3);
_arg1.isOK = (_local3 + 1);
break;
};
_local3++;
};
updateFreezers(throwingBody.partName);
throwingBody.visible = false;
throwingAnim.setAnim(_arg1);
ThisGameManager.getInstance().addChild(throwingAnim);
throwingBodyCopy.gotoAndStop(2);
throwingAnim.addChild(throwingBodyCopy);
blackPiP.visible = false;
afterThrowAnim();
throwingBody = null;
throwingBodyCopy = null;
}
private function deleteZombie(_arg1:Event):void{
var _local2:Number;
_local2 = 0;
while (_local2 < levelZombies.length) {
if (levelZombies[_local2] == _arg1.target){
levelZombies.splice(_local2, 1);
};
_local2++;
};
zombieCounter--;
if ((((zombieCounter <= 0)) && ((levelZombies.length == 0)))){
nextLevel();
};
}
public function afterThrowAnim():void{
var _local1:Number;
_local1 = 0;
while (_local1 < levelZombies.length) {
GameZombie(levelZombies[_local1]).afterThrow();
_local1++;
};
toThrow = false;
}
public function setLevel(_arg1:int):void{
var _local2:*;
var _local3:Number;
blackPiP.visible = false;
levelAddZombieTimeOffset = (levelAddZombieTimeOffset - 100);
zombieFromHolePropability = (_arg1 * 0.09);
zombieIsFemalePropability = ((_arg1 - 1) * 0.06);
zombieDoubleFoodPropability = ((_arg1 - 2) * 0.052);
energy.gotoAndStop(1);
this.parent.addChild(energy);
lives = 4;
background.setBackground((int(((_arg1 - 1) / 2)) + 1));
levelZombies = new Array();
levelFreezersBodyParts = new Array();
levelZombiesBodyParts = new Array();
_local2 = (_arg1 + 1);
if (_local2 > 10){
_local2 = 10;
};
MovieClip(levelFreezers[0].parent).x = (400 + ((((10 - _local2) / 2) * MovieClip(levelFreezers[0].parent).width) / 10));
_local3 = 0;
while (_local3 < levelFreezers.length) {
levelFreezers[_local3].reset();
_local3++;
};
zombieCounter = (8 * _arg1);
}
private function finishLevel():void{
var _local1:int;
addZombieTimer.stop();
_local1 = (levelZombies.length - 1);
while (_local1 >= 0) {
GameZombie(levelZombies[_local1]).deleteMe();
_local1--;
};
}
public function toThrowAnim(_arg1:GameBodyPart):void{
var _local2:Number;
var _local3:Class;
_local2 = 0;
while (_local2 < levelFreezers.length) {
GameFreezer(levelFreezers[_local2]).hideBody();
_local2++;
};
if (throwingBody != null){
throwingBody.visible = true;
throwingBody.alpha = 1;
throwingBody.addEventListener(MouseEvent.CLICK, throwingBody.toThrowAnim);
};
if (throwingBodyCopy != null){
pip.removeChild(throwingBodyCopy);
};
throwingBody = _arg1;
throwingBody.alpha = 0.5;
_local3 = (getDefinitionByName(getQualifiedClassName(throwingBody)) as Class);
throwingBodyCopy = new (_local3);
throwingBodyCopy.gotoAndStop(3);
blackPiP.visible = true;
pip.addChild(throwingBodyCopy);
throwingAnim = new GameBodyPartAnimation();
_local2 = 0;
while (_local2 < levelZombies.length) {
GameZombie(levelZombies[_local2]).toThrow();
_local2++;
};
toThrow = true;
}
}
}//package game
Section 34
//SoundManager (game.SoundManager)
package game {
import flash.events.*;
import flash.media.*;
import flash.utils.*;
public class SoundManager {
var krokTimer:Array;
var krok:Array;
var uderzenie:Array;
private var zobieChannelBorn:SoundChannel;
var gryzieSkip:Array;
private var zobieChannel:SoundChannel;
public var mClick:Sound;
var zobieTimer:Timer;
private var gryzieSound:SoundChannel;
private var rzutChannel:SoundChannel;
var zombie:Array;
private var kosicSound:SoundChannel;
var pila:Array;
var kosci:Array;
private var szufladaSound:SoundChannel;
private var uderzenieSound:SoundChannel;
var zombieF:Array;
public var mOver:Sound;
var rzut:Array;
var gryzie:Array;
var szuflada:Array;
public var mStart:Sound;
private var mieskoChannel:SoundChannel;
public function SoundManager(){
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:Class;
zombie = new Array();
zombieF = new Array();
krok = new Array();
krokTimer = new Array();
pila = new Array();
szuflada = new Array();
gryzie = new Array();
gryzieSkip = new Array();
kosci = new Array();
uderzenie = new Array();
rzut = new Array();
zobieChannel = new SoundChannel();
mieskoChannel = new SoundChannel();
zobieChannelBorn = new SoundChannel();
szufladaSound = new SoundChannel();
gryzieSound = new SoundChannel();
kosicSound = new SoundChannel();
uderzenieSound = new SoundChannel();
rzutChannel = new SoundChannel();
super();
mOver = new over();
mClick = new click();
mStart = new start();
_local1 = 1;
while (_local1 < 24) {
_local10 = (getDefinitionByName(("zombie" + _local1)) as Class);
if (_local10 == null){
return;
};
zombie.push(new (_local10));
_local1++;
};
_local2 = 1;
while (_local2 < 4) {
_local10 = (getDefinitionByName((("krok" + _local2) + "A")) as Class);
if (_local10 == null){
return;
};
krok.push(new (_local10));
_local10 = (getDefinitionByName((("krok" + _local2) + "B")) as Class);
if (_local10 == null){
return;
};
krok.push(new (_local10));
_local2++;
};
_local3 = 1;
while (_local3 < 4) {
_local10 = (getDefinitionByName(("pila" + _local3)) as Class);
if (_local10 == null){
return;
};
pila.push(new (_local10));
_local3++;
};
_local4 = 1;
while (_local4 < 5) {
_local10 = (getDefinitionByName(("szuflada" + _local4)) as Class);
if (_local10 == null){
return;
};
szuflada.push(new (_local10));
_local4++;
};
_local5 = 1;
while (_local5 < 10) {
_local10 = (getDefinitionByName(("gryzie" + _local5)) as Class);
if (_local10 == null){
return;
};
gryzie.push(new (_local10));
_local5++;
};
_local6 = 1;
while (_local6 < 3) {
_local10 = (getDefinitionByName(("kosci" + _local6)) as Class);
if (_local10 == null){
return;
};
kosci.push(new (_local10));
_local6++;
};
_local7 = 1;
while (_local7 < 6) {
_local10 = (getDefinitionByName(("uderzenie" + _local7)) as Class);
if (_local10 == null){
return;
};
uderzenie.push(new (_local10));
_local7++;
};
_local8 = 1;
while (_local8 < 6) {
_local10 = (getDefinitionByName(("zombieF" + _local8)) as Class);
if (_local10 == null){
return;
};
zombieF.push(new (_local10));
_local8++;
};
_local9 = 1;
while (_local9 < 3) {
_local10 = (getDefinitionByName(("rzut" + _local9)) as Class);
if (_local10 == null){
return;
};
rzut.push(new (_local10));
_local9++;
};
}
public function giveFreezerCloseSound():void{
szufladaSound.stop();
szufladaSound = szuflada[(Math.floor((Math.random() * 2)) + 2)].play();
}
public function giveBonesSound():void{
kosicSound.stop();
kosicSound = kosci[Math.floor((Math.random() * kosci.length))].play();
}
public function giveFreezerOpenSound():void{
szufladaSound.stop();
szufladaSound = szuflada[Math.floor((Math.random() * 2))].play();
}
public function saagiveOZombieSound():void{
zobieChannelBorn.stop();
zobieChannelBorn = zombie[Math.floor((Math.random() * zombie.length))].play();
zobieTimer.delay = (2000 + Math.floor((Math.random() * 2000)));
}
public function stopZombieSound():void{
zobieChannel.stop();
if (zobieTimer.running){
zobieTimer.stop();
};
}
public function giveBodyPullSound():void{
mieskoChannel.stop();
mieskoChannel = pila[Math.floor((Math.random() * pila.length))].play();
}
public function giveRzutSound():void{
rzutChannel.stop();
rzutChannel = rzut[Math.floor((Math.random() * rzut.length))].play();
}
public function startBiteSounds():void{
var _local1:int;
var _local2:int;
gryzieSound.stop();
gryzieSkip = new Array();
_local1 = 0;
while (_local1 < gryzie.length) {
gryzieSkip.push(_local1);
_local1++;
};
_local2 = Math.floor((Math.random() * gryzieSkip.length));
gryzieSound = gryzie[gryzieSkip[_local2]].play(1, 1);
gryzieSkip.splice(_local2, 1);
gryzieSound.addEventListener(Event.SOUND_COMPLETE, playNextBiteSound);
}
public function giveKillingSound():void{
uderzenieSound.stop();
uderzenieSound = uderzenie[Math.floor((Math.random() * uderzenie.length))].play();
}
private function playNextBiteSound(_arg1:Event):void{
var _local2:int;
_local2 = Math.floor((Math.random() * gryzieSkip.length));
gryzieSound = gryzie[gryzieSkip[_local2]].play(1, 1);
gryzieSkip.splice(_local2, 1);
gryzieSound.addEventListener(Event.SOUND_COMPLETE, playNextBiteSound);
}
public function stopBiteSounds():void{
gryzieSound.removeEventListener(Event.SOUND_COMPLETE, playNextBiteSound);
gryzieSound.stop();
}
}
}//package game
Section 35
//ThisGameManager (game.ThisGameManager)
package game {
import flash.media.*;
import main.*;
import classes.components.*;
import flash.display.*;
public class ThisGameManager extends GameManager {
public var pp:pip;
public var go_Instructions2:Button_Back;
var fadeMenu:FadeChannel;
var fadeGame:FadeChannel;
public var fabrykaGier:logo_fabryka_cale;
var menuChannel:SoundChannel;
public var Bold:BudBird;
public var Gamee:Sound;
public var gameContainer:MovieClip;
var gameChannel:SoundChannel;
public var Menuu:Sound;
public var femaleCounter:int;// = 0
public var background:GameBackground;
public var maleCounter:int;// = 0
public var go_2Game:Button_Start;
public var go_2Highscores:Button_Highscores;
public var go_Highscores2:Button_Back;
public var tutorial:Boolean;// = true
public var level:Level;
public var freakyTiki:Logo_FrealyTiki;
public var currentLevel:int;// = 1
public var soundManager:SoundManager;
public var go_2Instructions:Button_Instructions;
public var gameOver:Boolean;
public function ThisGameManager(){
Bold = new BudBird();
tutorial = true;
maleCounter = 0;
femaleCounter = 0;
gameChannel = new SoundChannel();
fadeMenu = new FadeChannel();
fadeGame = new FadeChannel();
currentLevel = 1;
addFrameScript(44, frame45, 110, frame111, 147, frame148, 154, frame155, 194, frame195, 202, frame203, 214, frame215, 254, frame255, 262, frame263, 273, frame274, 274, frame275, 284, frame285, 286, frame287, 306, frame307, 331, frame332, 457, frame458, 458, frame459, 498, frame499, 500, frame501, 508, frame509);
super();
}
function frame275(){
this.menuMusicStop();
this.gameMusicStart();
newLevel();
}
function frame155(){
stop();
}
function frame274(){
gotoAndPlay("Loop");
}
function frame285(){
level.setLevel(currentLevel);
}
function frame287(){
this.stop();
}
function frame501(){
this.gameMusicStop();
currentLevel = 0;
}
function frame509(){
this.menuMusicStart();
gotoAndPlay("Loop");
}
function frame195(){
buttonsOn();
}
function frame45(){
this.afterCrapAction();
}
private function gameMusicStart():void{
gameChannel = Gamee.play(1, int.MAX_VALUE);
fadeGame.fadeIn(gameChannel, 500, 10);
}
function frame307(){
this.stop();
buttonsOn();
}
function frame203(){
stop();
}
function frame332(){
this.stop();
level.start();
}
function frame215(){
gotoAndPlay("Loop");
}
function frame459(){
this.gameMusicStop();
currentLevel = 0;
}
private function menuMusicStop():void{
menuChannel.stop();
menuChannel = null;
}
function frame458(){
if (!gameOver){
level.setLevel(currentLevel);
if ((currentLevel % 2) == 1){
gotoAndPlay("2nextLevel");
} else {
gotoAndPlay("2nextRound");
};
} else {
gotoAndStop("2winOver");
};
}
function frame111(){
this.menuMusicStart();
}
private function afterCrapAction():void{
Menuu = new menuMusic();
Gamee = new gameMusic();
soundManager = new SoundManager();
}
function frame255(){
buttonsOn();
}
function frame499(){
gotoAndPlay("blenda2Loop");
}
private function newLevel():void{
level = new Level();
}
function frame263(){
stop();
}
function frame148(){
buttonsOn();
}
private function gameMusicStop():void{
fadeGame.fadeOut(gameChannel, 500, 10);
}
private function menuMusicStart():void{
if (menuChannel == null){
menuChannel = Menuu.play(1, int.MAX_VALUE);
};
}
public static function getInstance():ThisGameManager{
if (instance == null){
};
return ((instance as ThisGameManager));
}
}
}//package game
Section 36
//GameManager (main.GameManager)
package main {
import flash.events.*;
import classes.dispatchers.*;
import classes.components.*;
import classes.helper.*;
import flash.display.*;
public class GameManager extends MovieClip {
private var gameParameters:Array;
private var delayedWaypoint:String;
private var _fg:FG_Preloader;
private var _preloaderStart:Boolean;
private var _highscoreFields:Array;
private static var areButtonsEnabled:Boolean;
public static var instance:GameManager;
public function GameManager(){
if (instance == null){
instance = this;
areButtonsEnabled = false;
gameParameters = new Array();
delayedWaypoint = null;
this.addEventListener(Event.ENTER_FRAME, GMonEnterFrame);
GameDispatcher.preloaderDispatcher.addEventListener(LoadingComplete.LOADING_COMPLETE, startMenu);
parent.addEventListener(MouseEvent.MOUSE_DOWN, mousePress);
parent.addEventListener(MouseEvent.MOUSE_UP, mousePress);
//unresolved jump
};
}
public function getParameter(_arg1:String):String{
return (gameParameters[_arg1]);
}
public function showHighscores():void{
GameDispatcher.highscoreDispatcher.highscoreLoaded();
}
public function parseFields(_arg1:String):void{
if (this._highscoreFields.length == 0){
this._highscoreFields = _arg1.split("_");
};
}
public function buttonsOn():void{
GameDispatcher.buttonsDispatcher.unlockButtons();
areButtonsEnabled = true;
}
public function setParameter(_arg1:String, _arg2:String):void{
gameParameters[_arg1] = _arg2;
}
public function getHigscore():Array{
var _local1:Array;
var _local2:HighscoreElement;
_local1 = new Array();
_local2 = new HighscoreElement(1, "Anty", 100, 12300, 5, 10, 43021);
_local1.push(_local2);
return (_local1);
}
private function initPreloader():void{
this._fg = FG_Preloader(GameManager.getInstance().getChildByName("preloader_elements"));
if (this._fg != null){
this._fg.startLoad();
};
}
public function readHighscores():void{
this.showHighscores();
}
private function GMonEnterFrame(_arg1:Event):void{
this._highscoreFields = new Array();
if ((((this.currentLabel == "Preloader_Start")) && (!(this._preloaderStart)))){
this.initPreloader();
this._preloaderStart = true;
};
}
private function mousePress(_arg1:MouseEvent){
GameDispatcher.mouseDispatcher.buttonPressed(_arg1.target);
}
public function getFields():Array{
return (this._highscoreFields);
}
public function delayedGoToAndStop():void{
if (this.delayedWaypoint != null){
gotoAndStop(this.delayedWaypoint);
this.delayedWaypoint = null;
};
}
public function setDelayedWaypoint(_arg1:String):void{
this.delayedWaypoint = _arg1;
}
public function get AreButtonsEnabled():Boolean{
return (areButtonsEnabled);
}
public function lockButtons():void{
areButtonsEnabled = false;
}
private function startMenu(_arg1:Event):void{
this.gotoAndPlay("Preloader_Outro");
}
public function delayedGoToAndPlay():void{
if (this.delayedWaypoint != null){
gotoAndPlay(this.delayedWaypoint);
this.delayedWaypoint = null;
};
}
public static function getInstance():GameManager{
if (instance == null){
};
return (instance);
}
}
}//package main
Section 37
//__NoFirstFrameCrap_14 (zombie_fla.__NoFirstFrameCrap_14)
package zombie_fla {
import flash.display.*;
public dynamic class __NoFirstFrameCrap_14 extends MovieClip {
public function __NoFirstFrameCrap_14(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package zombie_fla
Section 38
//AGteaser_mc_1 (zombie_fla.AGteaser_mc_1)
package zombie_fla {
import flash.events.*;
import game.*;
import flash.utils.*;
import flash.display.*;
import flash.net.*;
public dynamic class AGteaser_mc_1 extends MovieClip {
public var url:String;
public var AG_TIME:Number;
public var AGpresented_mc:MovieClip;
public var AG_COUNT:Number;
public var request:URLRequest;
public var AGskip_btn:SimpleButton;
public var AGclick_btn:SimpleButton;
public var AGlogo_mc:MovieClip;
public var hold:Timer;
public function AGteaser_mc_1(){
addFrameScript(0, frame1);
}
function frame1(){
url = "http://www.addictinggames.com";
ThisGameManager.getInstance().stop();
request = new URLRequest(url);
AG_COUNT = 0;
AG_TIME = 4000;
hold = new Timer(AG_TIME, 1);
hold.addEventListener(TimerEvent.TIMER, skiper);
AGskip_btn.addEventListener(MouseEvent.CLICK, Release);
AGclick_btn.addEventListener(MouseEvent.CLICK, ReleaseBig);
hold.start();
}
public function skiper(_arg1:TimerEvent){
ThisGameManager.getInstance().play();
}
public function ReleaseBig(_arg1:MouseEvent){
navigateToURL(request);
}
public function Release(_arg1:MouseEvent){
hold.stop();
skiper(null);
}
}
}//package zombie_fla
Section 39
//Blenda2_206 (zombie_fla.Blenda2_206)
package zombie_fla {
import flash.display.*;
public dynamic class Blenda2_206 extends MovieClip {
public function Blenda2_206(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package zombie_fla
Section 40
//BlendaIn_183 (zombie_fla.BlendaIn_183)
package zombie_fla {
import flash.display.*;
public dynamic class BlendaIn_183 extends MovieClip {
public function BlendaIn_183(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package zombie_fla
Section 41
//Cinematic_250 (zombie_fla.Cinematic_250)
package zombie_fla {
import flash.display.*;
public dynamic class Cinematic_250 extends MovieClip {
public function Cinematic_250(){
addFrameScript(408, frame409);
}
function frame409(){
this.stop();
MovieClip(this.parent).play();
}
}
}//package zombie_fla
Section 42
//Dym_235 (zombie_fla.Dym_235)
package zombie_fla {
import flash.display.*;
public dynamic class Dym_235 extends MovieClip {
public function Dym_235(){
addFrameScript(119, frame120);
}
function frame120(){
stop();
}
}
}//package zombie_fla
Section 43
//Dym_256 (zombie_fla.Dym_256)
package zombie_fla {
import flash.display.*;
public dynamic class Dym_256 extends MovieClip {
public function Dym_256(){
addFrameScript(119, frame120);
}
function frame120(){
stop();
}
}
}//package zombie_fla
Section 44
//Dym2_237 (zombie_fla.Dym2_237)
package zombie_fla {
import flash.display.*;
public dynamic class Dym2_237 extends MovieClip {
public function Dym2_237(){
addFrameScript(119, frame120);
}
function frame120(){
stop();
}
}
}//package zombie_fla
Section 45
//Fotografia_LevelClear_245 (zombie_fla.Fotografia_LevelClear_245)
package zombie_fla {
import flash.display.*;
public dynamic class Fotografia_LevelClear_245 extends MovieClip {
public function Fotografia_LevelClear_245(){
addFrameScript(85, frame86);
}
function frame86(){
stop();
}
}
}//package zombie_fla
Section 46
//Fotografia1_207 (zombie_fla.Fotografia1_207)
package zombie_fla {
import flash.display.*;
public dynamic class Fotografia1_207 extends MovieClip {
public function Fotografia1_207(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package zombie_fla
Section 47
//Fotografia2_210 (zombie_fla.Fotografia2_210)
package zombie_fla {
import flash.display.*;
public dynamic class Fotografia2_210 extends MovieClip {
public function Fotografia2_210(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package zombie_fla
Section 48
//Fotografia3_212 (zombie_fla.Fotografia3_212)
package zombie_fla {
import flash.display.*;
public dynamic class Fotografia3_212 extends MovieClip {
public function Fotografia3_212(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package zombie_fla
Section 49
//Fotografia4_214 (zombie_fla.Fotografia4_214)
package zombie_fla {
import flash.display.*;
public dynamic class Fotografia4_214 extends MovieClip {
public function Fotografia4_214(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package zombie_fla
Section 50
//Fotografia5_216 (zombie_fla.Fotografia5_216)
package zombie_fla {
import flash.display.*;
public dynamic class Fotografia5_216 extends MovieClip {
public function Fotografia5_216(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package zombie_fla
Section 51
//FreezersSet_184 (zombie_fla.FreezersSet_184)
package zombie_fla {
import flash.display.*;
public dynamic class FreezersSet_184 extends MovieClip {
public var f0:Szuflada_1;
public var f6:Szuflada_7;
public var f7:Szuflada_8;
public var f4:Szuflada_5;
public var f8:Szuflada_9;
public var f1:Szuflada_2;
public var f5:Szuflada_6;
public var f3:Szuflada_4;
public var f9:Szuflada_10;
public var f2:Szuflada_3;
}
}//package zombie_fla
Section 52
//LevelClear_Animacja_244 (zombie_fla.LevelClear_Animacja_244)
package zombie_fla {
import flash.display.*;
public dynamic class LevelClear_Animacja_244 extends MovieClip {
public function LevelClear_Animacja_244(){
addFrameScript(116, frame117);
}
function frame117(){
this.stop();
}
}
}//package zombie_fla
Section 53
//TITLE_FLAT_182 (zombie_fla.TITLE_FLAT_182)
package zombie_fla {
import flash.display.*;
public dynamic class TITLE_FLAT_182 extends MovieClip {
public function TITLE_FLAT_182(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package zombie_fla
Section 54
//_1Dlon (_1Dlon)
package {
import game.*;
public dynamic class _1Dlon extends GameBodyPart {
}
}//package
Section 55
//_1DlonAnim (_1DlonAnim)
package {
import game.*;
public dynamic class _1DlonAnim extends GameBodyPartAnimation {
}
}//package
Section 56
//_1Noga (_1Noga)
package {
import game.*;
public dynamic class _1Noga extends GameBodyPart {
}
}//package
Section 57
//_1NogaAnim (_1NogaAnim)
package {
import game.*;
public dynamic class _1NogaAnim extends GameBodyPartAnimation {
}
}//package
Section 58
//_1Ramie (_1Ramie)
package {
import game.*;
public dynamic class _1Ramie extends GameBodyPart {
}
}//package
Section 59
//_1RamieAnim (_1RamieAnim)
package {
import game.*;
public dynamic class _1RamieAnim extends GameBodyPartAnimation {
}
}//package
Section 60
//_1Stopa (_1Stopa)
package {
import game.*;
public dynamic class _1Stopa extends GameBodyPart {
}
}//package
Section 61
//_1StopaAnim (_1StopaAnim)
package {
import game.*;
public dynamic class _1StopaAnim extends GameBodyPartAnimation {
}
}//package
Section 62
//_2Dlon (_2Dlon)
package {
import game.*;
public dynamic class _2Dlon extends GameBodyPart {
}
}//package
Section 63
//_2DlonAnim (_2DlonAnim)
package {
import game.*;
public dynamic class _2DlonAnim extends GameBodyPartAnimation {
}
}//package
Section 64
//_2Noga (_2Noga)
package {
import game.*;
public dynamic class _2Noga extends GameBodyPart {
}
}//package
Section 65
//_2NogaAnim (_2NogaAnim)
package {
import game.*;
public dynamic class _2NogaAnim extends GameBodyPartAnimation {
}
}//package
Section 66
//_2Ramie (_2Ramie)
package {
import game.*;
public dynamic class _2Ramie extends GameBodyPart {
}
}//package
Section 67
//_2RamieAnim (_2RamieAnim)
package {
import game.*;
public dynamic class _2RamieAnim extends GameBodyPartAnimation {
}
}//package
Section 68
//_2Stopa (_2Stopa)
package {
import game.*;
public dynamic class _2Stopa extends GameBodyPart {
}
}//package
Section 69
//_2StopaAnim (_2StopaAnim)
package {
import game.*;
public dynamic class _2StopaAnim extends GameBodyPartAnimation {
}
}//package
Section 70
//_Glowa (_Glowa)
package {
import game.*;
public dynamic class _Glowa extends GameBodyPart {
}
}//package
Section 71
//_GlowaAnim (_GlowaAnim)
package {
import game.*;
public dynamic class _GlowaAnim extends GameBodyPartAnimation {
}
}//package
Section 72
//_GlowaK (_GlowaK)
package {
import game.*;
public dynamic class _GlowaK extends GameBodyPart {
}
}//package
Section 73
//_GlowaKAnim (_GlowaKAnim)
package {
import game.*;
public dynamic class _GlowaKAnim extends GameBodyPartAnimation {
}
}//package
Section 74
//_Korpus (_Korpus)
package {
import game.*;
public dynamic class _Korpus extends GameBodyPart {
}
}//package
Section 75
//_KorpusAnim (_KorpusAnim)
package {
import game.*;
public dynamic class _KorpusAnim extends GameBodyPartAnimation {
}
}//package
Section 76
//_KorpusK (_KorpusK)
package {
import game.*;
public dynamic class _KorpusK extends GameBodyPart {
}
}//package
Section 77
//_KorpusKAnim (_KorpusKAnim)
package {
import game.*;
public dynamic class _KorpusKAnim extends GameBodyPartAnimation {
}
}//package
Section 78
//A_1Dlon (A_1Dlon)
package {
import game.*;
public dynamic class A_1Dlon extends GameBodyPart {
}
}//package
Section 79
//A_1Noga (A_1Noga)
package {
import game.*;
public dynamic class A_1Noga extends GameBodyPart {
}
}//package
Section 80
//A_1Ramie (A_1Ramie)
package {
import game.*;
public dynamic class A_1Ramie extends GameBodyPart {
}
}//package
Section 81
//A_1Stopa (A_1Stopa)
package {
import game.*;
public dynamic class A_1Stopa extends GameBodyPart {
}
}//package
Section 82
//A_2Dlon (A_2Dlon)
package {
import game.*;
public dynamic class A_2Dlon extends GameBodyPart {
}
}//package
Section 83
//A_2Noga (A_2Noga)
package {
import game.*;
public dynamic class A_2Noga extends GameBodyPart {
}
}//package
Section 84
//A_2Ramie (A_2Ramie)
package {
import game.*;
public dynamic class A_2Ramie extends GameBodyPart {
}
}//package
Section 85
//A_2Stopa (A_2Stopa)
package {
import game.*;
public dynamic class A_2Stopa extends GameBodyPart {
}
}//package
Section 86
//A_Glowa (A_Glowa)
package {
import game.*;
public dynamic class A_Glowa extends GameBodyPart {
}
}//package
Section 87
//A_Korpus (A_Korpus)
package {
import game.*;
public dynamic class A_Korpus extends GameBodyPart {
}
}//package
Section 88
//B_1Dlon (B_1Dlon)
package {
import game.*;
public dynamic class B_1Dlon extends GameBodyPart {
}
}//package
Section 89
//B_1Noga (B_1Noga)
package {
import game.*;
public dynamic class B_1Noga extends GameBodyPart {
}
}//package
Section 90
//B_1Ramie (B_1Ramie)
package {
import game.*;
public dynamic class B_1Ramie extends GameBodyPart {
}
}//package
Section 91
//B_1Stopa (B_1Stopa)
package {
import game.*;
public dynamic class B_1Stopa extends GameBodyPart {
}
}//package
Section 92
//B_2Dlon (B_2Dlon)
package {
import game.*;
public dynamic class B_2Dlon extends GameBodyPart {
}
}//package
Section 93
//B_2Noga (B_2Noga)
package {
import game.*;
public dynamic class B_2Noga extends GameBodyPart {
}
}//package
Section 94
//B_2Ramie (B_2Ramie)
package {
import game.*;
public dynamic class B_2Ramie extends GameBodyPart {
}
}//package
Section 95
//B_2Stopa (B_2Stopa)
package {
import game.*;
public dynamic class B_2Stopa extends GameBodyPart {
}
}//package
Section 96
//B_Glowa (B_Glowa)
package {
import game.*;
public dynamic class B_Glowa extends GameBodyPart {
}
}//package
Section 97
//B_Korpus (B_Korpus)
package {
import game.*;
public dynamic class B_Korpus extends GameBodyPart {
}
}//package
Section 98
//Body_chestAnim (Body_chestAnim)
package {
import game.*;
public dynamic class Body_chestAnim extends GameBodyPartAnimation {
}
}//package
Section 99
//Body_headAnim (Body_headAnim)
package {
import game.*;
public dynamic class Body_headAnim extends GameBodyPartAnimation {
}
}//package
Section 100
//Body_left_armAnim (Body_left_armAnim)
package {
import game.*;
public dynamic class Body_left_armAnim extends GameBodyPartAnimation {
}
}//package
Section 101
//Body_left_footAnim (Body_left_footAnim)
package {
import game.*;
public dynamic class Body_left_footAnim extends GameBodyPartAnimation {
}
}//package
Section 102
//Body_left_legAnim (Body_left_legAnim)
package {
import game.*;
public dynamic class Body_left_legAnim extends GameBodyPartAnimation {
}
}//package
Section 103
//Body_right_armAnim (Body_right_armAnim)
package {
import game.*;
public dynamic class Body_right_armAnim extends GameBodyPartAnimation {
}
}//package
Section 104
//Body_right_footAnim (Body_right_footAnim)
package {
import game.*;
public dynamic class Body_right_footAnim extends GameBodyPartAnimation {
}
}//package
Section 105
//Body_right_legAnim (Body_right_legAnim)
package {
import game.*;
public dynamic class Body_right_legAnim extends GameBodyPartAnimation {
}
}//package
Section 106
//BudBird (BudBird)
package {
import flash.text.*;
public dynamic class BudBird extends Font {
}
}//package
Section 107
//Button_Back (Button_Back)
package {
import classes.graphical.controls.buttons.*;
public dynamic class Button_Back extends GoToButton {
public function Button_Back(){
addFrameScript(0, frame1, 1, frame2, 10, frame11, 15, frame16, 16, frame17);
}
function frame16(){
gotoAndPlay("off");
}
function frame1(){
stop();
unlockButton();
}
function frame17(){
stop();
unlockButton();
}
function frame2(){
}
function frame11(){
stop();
unlockButton();
}
}
}//package
Section 108
//Button_Highscores (Button_Highscores)
package {
import classes.graphical.controls.buttons.*;
public dynamic class Button_Highscores extends GoToButton {
public function Button_Highscores(){
addFrameScript(0, frame1, 1, frame2, 10, frame11, 15, frame16, 16, frame17);
}
function frame16(){
gotoAndPlay("off");
}
function frame1(){
this.visible = false;
stop();
unlockButton();
}
function frame17(){
stop();
}
function frame2(){
}
function frame11(){
stop();
unlockButton();
}
}
}//package
Section 109
//Button_Instructions (Button_Instructions)
package {
import classes.graphical.controls.buttons.*;
public dynamic class Button_Instructions extends GoToButton {
public function Button_Instructions(){
addFrameScript(0, frame1, 10, frame11, 15, frame16, 16, frame17);
}
function frame16(){
gotoAndPlay("off");
}
function frame1(){
stop();
unlockButton();
}
function frame17(){
stop();
}
function frame11(){
stop();
unlockButton();
}
}
}//package
Section 110
//Button_Start (Button_Start)
package {
import classes.graphical.controls.buttons.*;
public dynamic class Button_Start extends GoToButton {
public function Button_Start(){
addFrameScript(0, frame1, 10, frame11, 15, frame16, 16, frame17);
}
function frame16(){
gotoAndPlay("off");
}
function frame1(){
stop();
unlockButton();
}
function frame17(){
stop();
}
function frame11(){
stop();
unlockButton();
}
}
}//package
Section 111
//C_1Dlon (C_1Dlon)
package {
import game.*;
public dynamic class C_1Dlon extends GameBodyPart {
}
}//package
Section 112
//C_1Noga (C_1Noga)
package {
import game.*;
public dynamic class C_1Noga extends GameBodyPart {
}
}//package
Section 113
//C_1Ramie (C_1Ramie)
package {
import game.*;
public dynamic class C_1Ramie extends GameBodyPart {
}
}//package
Section 114
//C_1Stopa (C_1Stopa)
package {
import game.*;
public dynamic class C_1Stopa extends GameBodyPart {
}
}//package
Section 115
//C_2Dlon (C_2Dlon)
package {
import game.*;
public dynamic class C_2Dlon extends GameBodyPart {
}
}//package
Section 116
//C_2Noga (C_2Noga)
package {
import game.*;
public dynamic class C_2Noga extends GameBodyPart {
}
}//package
Section 117
//C_2Ramie (C_2Ramie)
package {
import game.*;
public dynamic class C_2Ramie extends GameBodyPart {
}
}//package
Section 118
//C_2Stopa (C_2Stopa)
package {
import game.*;
public dynamic class C_2Stopa extends GameBodyPart {
}
}//package
Section 119
//C_GlowaK (C_GlowaK)
package {
import game.*;
public dynamic class C_GlowaK extends GameBodyPart {
}
}//package
Section 120
//C_KorpusK (C_KorpusK)
package {
import game.*;
public dynamic class C_KorpusK extends GameBodyPart {
}
}//package
Section 121
//click (click)
package {
import flash.media.*;
public dynamic class click extends Sound {
}
}//package
Section 122
//D_1Dlon (D_1Dlon)
package {
import game.*;
public dynamic class D_1Dlon extends GameBodyPart {
}
}//package
Section 123
//D_1Noga (D_1Noga)
package {
import game.*;
public dynamic class D_1Noga extends GameBodyPart {
}
}//package
Section 124
//D_1Ramie (D_1Ramie)
package {
import game.*;
public dynamic class D_1Ramie extends GameBodyPart {
}
}//package
Section 125
//D_1Stopa (D_1Stopa)
package {
import game.*;
public dynamic class D_1Stopa extends GameBodyPart {
}
}//package
Section 126
//D_2Dlon (D_2Dlon)
package {
import game.*;
public dynamic class D_2Dlon extends GameBodyPart {
}
}//package
Section 127
//D_2Noga (D_2Noga)
package {
import game.*;
public dynamic class D_2Noga extends GameBodyPart {
}
}//package
Section 128
//D_2Ramie (D_2Ramie)
package {
import game.*;
public dynamic class D_2Ramie extends GameBodyPart {
}
}//package
Section 129
//D_2Stopa (D_2Stopa)
package {
import game.*;
public dynamic class D_2Stopa extends GameBodyPart {
}
}//package
Section 130
//D_GlowaK (D_GlowaK)
package {
import game.*;
public dynamic class D_GlowaK extends GameBodyPart {
}
}//package
Section 131
//D_KorpusK (D_KorpusK)
package {
import game.*;
public dynamic class D_KorpusK extends GameBodyPart {
}
}//package
Section 132
//gameMusic (gameMusic)
package {
import flash.media.*;
public dynamic class gameMusic extends Sound {
}
}//package
Section 133
//gryzie1 (gryzie1)
package {
import flash.media.*;
public dynamic class gryzie1 extends Sound {
}
}//package
Section 134
//gryzie2 (gryzie2)
package {
import flash.media.*;
public dynamic class gryzie2 extends Sound {
}
}//package
Section 135
//gryzie3 (gryzie3)
package {
import flash.media.*;
public dynamic class gryzie3 extends Sound {
}
}//package
Section 136
//gryzie4 (gryzie4)
package {
import flash.media.*;
public dynamic class gryzie4 extends Sound {
}
}//package
Section 137
//gryzie5 (gryzie5)
package {
import flash.media.*;
public dynamic class gryzie5 extends Sound {
}
}//package
Section 138
//gryzie6 (gryzie6)
package {
import flash.media.*;
public dynamic class gryzie6 extends Sound {
}
}//package
Section 139
//gryzie7 (gryzie7)
package {
import flash.media.*;
public dynamic class gryzie7 extends Sound {
}
}//package
Section 140
//gryzie8 (gryzie8)
package {
import flash.media.*;
public dynamic class gryzie8 extends Sound {
}
}//package
Section 141
//gryzie9 (gryzie9)
package {
import flash.media.*;
public dynamic class gryzie9 extends Sound {
}
}//package
Section 142
//kosci1 (kosci1)
package {
import flash.media.*;
public dynamic class kosci1 extends Sound {
}
}//package
Section 143
//kosci2 (kosci2)
package {
import flash.media.*;
public dynamic class kosci2 extends Sound {
}
}//package
Section 144
//krok1A (krok1A)
package {
import flash.media.*;
public dynamic class krok1A extends Sound {
}
}//package
Section 145
//krok1B (krok1B)
package {
import flash.media.*;
public dynamic class krok1B extends Sound {
}
}//package
Section 146
//krok2A (krok2A)
package {
import flash.media.*;
public dynamic class krok2A extends Sound {
}
}//package
Section 147
//krok2B (krok2B)
package {
import flash.media.*;
public dynamic class krok2B extends Sound {
}
}//package
Section 148
//krok3A (krok3A)
package {
import flash.media.*;
public dynamic class krok3A extends Sound {
}
}//package
Section 149
//krok3B (krok3B)
package {
import flash.media.*;
public dynamic class krok3B extends Sound {
}
}//package
Section 150
//logo_fabryka_cale (logo_fabryka_cale)
package {
import classes.components.*;
public dynamic class logo_fabryka_cale extends LinkButton {
}
}//package
Section 151
//Logo_FrealyTiki (Logo_FrealyTiki)
package {
import classes.components.*;
public dynamic class Logo_FrealyTiki extends LinkButton {
}
}//package
Section 152
//menuMusic (menuMusic)
package {
import flash.media.*;
public dynamic class menuMusic extends Sound {
}
}//package
Section 153
//over (over)
package {
import flash.media.*;
public dynamic class over extends Sound {
}
}//package
Section 154
//pila1 (pila1)
package {
import flash.media.*;
public dynamic class pila1 extends Sound {
}
}//package
Section 155
//pila2 (pila2)
package {
import flash.media.*;
public dynamic class pila2 extends Sound {
}
}//package
Section 156
//pila3 (pila3)
package {
import flash.media.*;
public dynamic class pila3 extends Sound {
}
}//package
Section 157
//pip (pip)
package {
import flash.display.*;
public dynamic class pip extends MovieClip {
}
}//package
Section 158
//Preloader_Napis (Preloader_Napis)
package {
import classes.components.*;
public dynamic class Preloader_Napis extends Preloader {
}
}//package
Section 159
//rzut1 (rzut1)
package {
import flash.media.*;
public dynamic class rzut1 extends Sound {
}
}//package
Section 160
//rzut2 (rzut2)
package {
import flash.media.*;
public dynamic class rzut2 extends Sound {
}
}//package
Section 161
//start (start)
package {
import flash.media.*;
public dynamic class start extends Sound {
}
}//package
Section 162
//Szuflada_1 (Szuflada_1)
package {
import game.*;
public dynamic class Szuflada_1 extends GameFreezer {
}
}//package
Section 163
//Szuflada_10 (Szuflada_10)
package {
import game.*;
public dynamic class Szuflada_10 extends GameFreezer {
}
}//package
Section 164
//Szuflada_2 (Szuflada_2)
package {
import game.*;
public dynamic class Szuflada_2 extends GameFreezer {
}
}//package
Section 165
//Szuflada_3 (Szuflada_3)
package {
import game.*;
public dynamic class Szuflada_3 extends GameFreezer {
}
}//package
Section 166
//Szuflada_4 (Szuflada_4)
package {
import game.*;
public dynamic class Szuflada_4 extends GameFreezer {
}
}//package
Section 167
//Szuflada_5 (Szuflada_5)
package {
import game.*;
public dynamic class Szuflada_5 extends GameFreezer {
}
}//package
Section 168
//Szuflada_6 (Szuflada_6)
package {
import game.*;
public dynamic class Szuflada_6 extends GameFreezer {
}
}//package
Section 169
//Szuflada_7 (Szuflada_7)
package {
import game.*;
public dynamic class Szuflada_7 extends GameFreezer {
}
}//package
Section 170
//Szuflada_8 (Szuflada_8)
package {
import game.*;
public dynamic class Szuflada_8 extends GameFreezer {
}
}//package
Section 171
//Szuflada_9 (Szuflada_9)
package {
import game.*;
public dynamic class Szuflada_9 extends GameFreezer {
}
}//package
Section 172
//szuflada1 (szuflada1)
package {
import flash.media.*;
public dynamic class szuflada1 extends Sound {
}
}//package
Section 173
//szuflada2 (szuflada2)
package {
import flash.media.*;
public dynamic class szuflada2 extends Sound {
}
}//package
Section 174
//szuflada3 (szuflada3)
package {
import flash.media.*;
public dynamic class szuflada3 extends Sound {
}
}//package
Section 175
//szuflada4 (szuflada4)
package {
import flash.media.*;
public dynamic class szuflada4 extends Sound {
}
}//package
Section 176
//uderzenie1 (uderzenie1)
package {
import flash.media.*;
public dynamic class uderzenie1 extends Sound {
}
}//package
Section 177
//uderzenie2 (uderzenie2)
package {
import flash.media.*;
public dynamic class uderzenie2 extends Sound {
}
}//package
Section 178
//uderzenie3 (uderzenie3)
package {
import flash.media.*;
public dynamic class uderzenie3 extends Sound {
}
}//package
Section 179
//uderzenie4 (uderzenie4)
package {
import flash.media.*;
public dynamic class uderzenie4 extends Sound {
}
}//package
Section 180
//uderzenie5 (uderzenie5)
package {
import flash.media.*;
public dynamic class uderzenie5 extends Sound {
}
}//package
Section 181
//Zombie_beheaded (Zombie_beheaded)
package {
import game.*;
public dynamic class Zombie_beheaded extends GameZombie {
public function Zombie_beheaded(){
addFrameScript(114, frame115, 174, frame175, 219, frame220, 348, frame349, 371, frame372, 409, frame410);
}
function frame175(){
this.gotoAndPlay("je");
}
function frame410(){
this.stop();
afterKilling();
}
function frame220(){
this.stop();
this.deleteMe();
}
function frame349(){
veryAngry();
}
function frame115(){
gotoAndPlay("Loop");
}
function frame372(){
giveBlood();
}
}
}//package
Section 182
//Zombie_beheaded_zabija (Zombie_beheaded_zabija)
package {
import flash.display.*;
public dynamic class Zombie_beheaded_zabija extends MovieClip {
}
}//package
Section 183
//Zombie_chick (Zombie_chick)
package {
import game.*;
public dynamic class Zombie_chick extends GameZombie {
public function Zombie_chick(){
addFrameScript(119, frame120, 178, frame179, 223, frame224, 352, frame353, 380, frame381, 413, frame414);
}
function frame179(){
this.gotoAndPlay("je");
}
function frame414(){
this.stop();
afterKilling();
}
function frame224(){
this.stop();
this.deleteMe();
}
function frame353(){
veryAngry();
}
function frame120(){
gotoAndPlay("Loop");
}
function frame381(){
giveBlood();
}
}
}//package
Section 184
//Zombie_chick_zabija (Zombie_chick_zabija)
package {
import flash.display.*;
public dynamic class Zombie_chick_zabija extends MovieClip {
}
}//package
Section 185
//Zombie_fat (Zombie_fat)
package {
import game.*;
public dynamic class Zombie_fat extends GameZombie {
public function Zombie_fat(){
addFrameScript(142, frame143, 203, frame204, 239, frame240, 368, frame369, 387, frame388, 429, frame430);
}
function frame430(){
this.stop();
afterKilling();
}
function frame204(){
this.gotoAndPlay("je");
}
function frame240(){
this.stop();
this.deleteMe();
}
function frame369(){
veryAngry();
}
function frame143(){
gotoAndPlay("Loop");
}
function frame388(){
giveBlood();
}
}
}//package
Section 186
//Zombie_fat_zabija (Zombie_fat_zabija)
package {
import flash.display.*;
public dynamic class Zombie_fat_zabija extends MovieClip {
}
}//package
Section 187
//Zombie_groovie (Zombie_groovie)
package {
import game.*;
public dynamic class Zombie_groovie extends GameZombie {
public function Zombie_groovie(){
addFrameScript(116, frame117, 177, frame178, 223, frame224, 353, frame354, 366, frame367, 414, frame415);
}
function frame178(){
this.gotoAndPlay("je");
}
function frame415(){
this.stop();
afterKilling();
}
function frame224(){
this.stop();
this.deleteMe();
}
function frame354(){
veryAngry();
}
function frame117(){
gotoAndPlay("Loop");
}
function frame367(){
giveBlood();
}
}
}//package
Section 188
//Zombie_groovie_zabija (Zombie_groovie_zabija)
package {
import flash.display.*;
public dynamic class Zombie_groovie_zabija extends MovieClip {
}
}//package
Section 189
//Zombie_nerd (Zombie_nerd)
package {
import game.*;
public dynamic class Zombie_nerd extends GameZombie {
public function Zombie_nerd(){
addFrameScript(119, frame120, 179, frame180, 224, frame225, 354, frame355, 373, frame374, 415, frame416);
}
function frame180(){
this.gotoAndPlay("je");
}
function frame416(){
this.stop();
afterKilling();
}
function frame225(){
this.stop();
this.deleteMe();
}
function frame355(){
veryAngry();
}
function frame120(){
gotoAndPlay("Loop");
}
function frame374(){
giveBlood();
}
}
}//package
Section 190
//Zombie_nerd_zabija (Zombie_nerd_zabija)
package {
import flash.display.*;
public dynamic class Zombie_nerd_zabija extends MovieClip {
}
}//package
Section 191
//Zombie_standard (Zombie_standard)
package {
import game.*;
public dynamic class Zombie_standard extends GameZombie {
public function Zombie_standard(){
addFrameScript(111, frame112, 171, frame172, 217, frame218, 347, frame348, 350, frame351, 408, frame409);
}
function frame172(){
this.gotoAndPlay("je");
}
function frame409(){
this.stop();
afterKilling();
}
function frame218(){
this.stop();
this.deleteMe();
}
function frame348(){
veryAngry();
}
function frame351(){
giveBlood();
}
function frame112(){
gotoAndPlay("Loop");
}
}
}//package
Section 192
//Zombie_standard_zabija (Zombie_standard_zabija)
package {
import flash.display.*;
public dynamic class Zombie_standard_zabija extends MovieClip {
}
}//package
Section 193
//zombie1 (zombie1)
package {
import flash.media.*;
public dynamic class zombie1 extends Sound {
}
}//package
Section 194
//zombie10 (zombie10)
package {
import flash.media.*;
public dynamic class zombie10 extends Sound {
}
}//package
Section 195
//zombie11 (zombie11)
package {
import flash.media.*;
public dynamic class zombie11 extends Sound {
}
}//package
Section 196
//zombie12 (zombie12)
package {
import flash.media.*;
public dynamic class zombie12 extends Sound {
}
}//package
Section 197
//zombie13 (zombie13)
package {
import flash.media.*;
public dynamic class zombie13 extends Sound {
}
}//package
Section 198
//zombie14 (zombie14)
package {
import flash.media.*;
public dynamic class zombie14 extends Sound {
}
}//package
Section 199
//zombie15 (zombie15)
package {
import flash.media.*;
public dynamic class zombie15 extends Sound {
}
}//package
Section 200
//zombie16 (zombie16)
package {
import flash.media.*;
public dynamic class zombie16 extends Sound {
}
}//package
Section 201
//zombie17 (zombie17)
package {
import flash.media.*;
public dynamic class zombie17 extends Sound {
}
}//package
Section 202
//zombie18 (zombie18)
package {
import flash.media.*;
public dynamic class zombie18 extends Sound {
}
}//package
Section 203
//zombie19 (zombie19)
package {
import flash.media.*;
public dynamic class zombie19 extends Sound {
}
}//package
Section 204
//zombie2 (zombie2)
package {
import flash.media.*;
public dynamic class zombie2 extends Sound {
}
}//package
Section 205
//zombie20 (zombie20)
package {
import flash.media.*;
public dynamic class zombie20 extends Sound {
}
}//package
Section 206
//zombie21 (zombie21)
package {
import flash.media.*;
public dynamic class zombie21 extends Sound {
}
}//package
Section 207
//zombie22 (zombie22)
package {
import flash.media.*;
public dynamic class zombie22 extends Sound {
}
}//package
Section 208
//zombie23 (zombie23)
package {
import flash.media.*;
public dynamic class zombie23 extends Sound {
}
}//package
Section 209
//zombie3 (zombie3)
package {
import flash.media.*;
public dynamic class zombie3 extends Sound {
}
}//package
Section 210
//zombie4 (zombie4)
package {
import flash.media.*;
public dynamic class zombie4 extends Sound {
}
}//package
Section 211
//zombie5 (zombie5)
package {
import flash.media.*;
public dynamic class zombie5 extends Sound {
}
}//package
Section 212
//zombie6 (zombie6)
package {
import flash.media.*;
public dynamic class zombie6 extends Sound {
}
}//package
Section 213
//zombie7 (zombie7)
package {
import flash.media.*;
public dynamic class zombie7 extends Sound {
}
}//package
Section 214
//zombie8 (zombie8)
package {
import flash.media.*;
public dynamic class zombie8 extends Sound {
}
}//package
Section 215
//zombie9 (zombie9)
package {
import flash.media.*;
public dynamic class zombie9 extends Sound {
}
}//package
Section 216
//zombieF1 (zombieF1)
package {
import flash.media.*;
public dynamic class zombieF1 extends Sound {
}
}//package
Section 217
//zombieF2 (zombieF2)
package {
import flash.media.*;
public dynamic class zombieF2 extends Sound {
}
}//package
Section 218
//zombieF3 (zombieF3)
package {
import flash.media.*;
public dynamic class zombieF3 extends Sound {
}
}//package
Section 219
//zombieF4 (zombieF4)
package {
import flash.media.*;
public dynamic class zombieF4 extends Sound {
}
}//package
Section 220
//zombieF5 (zombieF5)
package {
import flash.media.*;
public dynamic class zombieF5 extends Sound {
}
}//package