Section 1
//ballBoard_106 (deathPenaltyDist_fla.ballBoard_106)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class ballBoard_106 extends MovieClip {
public var shad:MovieClip;
public function ballBoard_106(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 9, frame10);
}
function frame10(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
}
}//package deathPenaltyDist_fla
Section 2
//ballBoardHole_108 (deathPenaltyDist_fla.ballBoardHole_108)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class ballBoardHole_108 extends MovieClip {
public function ballBoardHole_108(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package deathPenaltyDist_fla
Section 3
//boardTop_102 (deathPenaltyDist_fla.boardTop_102)
package deathPenaltyDist_fla {
import flash.display.*;
import flash.text.*;
public dynamic class boardTop_102 extends MovieClip {
public var bs1:MovieClip;
public var bs2:MovieClip;
public var batter:TextField;
public var b2:MovieClip;
public var b4:MovieClip;
public var bs3:MovieClip;
public var b6:MovieClip;
public var bowler:TextField;
public var b3:MovieClip;
public var moreBowlBut:SimpleButton;
public var b5:MovieClip;
public var ballName:TextField;
public var onTarget:TextField;
public var skills:TextField;
public var nextBut:SimpleButton;
public var batterName:TextField;
public var score:TextField;
public var bowlerName:TextField;
public var doneBut:SimpleButton;
public var fixBatBut:SimpleButton;
public var bh2:MovieClip;
public var bh3:MovieClip;
public var bh5:MovieClip;
public var bh6:MovieClip;
public var headShots:TextField;
public var bh4:MovieClip;
public var totalDead:TextField;
public var moreBatBut:SimpleButton;
public var bs0:MovieClip;
}
}//package deathPenaltyDist_fla
Section 4
//drLogoStrap2_56 (deathPenaltyDist_fla.drLogoStrap2_56)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class drLogoStrap2_56 extends MovieClip {
public function drLogoStrap2_56(){
addFrameScript(104, frame105);
}
function frame105(){
stop();
}
}
}//package deathPenaltyDist_fla
Section 5
//eyes_71 (deathPenaltyDist_fla.eyes_71)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class eyes_71 extends MovieClip {
public function eyes_71(){
addFrameScript(31, frame32);
}
function frame32(){
gotoAndPlay(1);
}
}
}//package deathPenaltyDist_fla
Section 6
//guiGameOverEndPanelClip_75 (deathPenaltyDist_fla.guiGameOverEndPanelClip_75)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class guiGameOverEndPanelClip_75 extends MovieClip {
public function guiGameOverEndPanelClip_75(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package deathPenaltyDist_fla
Section 7
//GUIingameScreenAnim_60 (deathPenaltyDist_fla.GUIingameScreenAnim_60)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class GUIingameScreenAnim_60 extends MovieClip {
public var animClip:MovieClip;
public function GUIingameScreenAnim_60(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package deathPenaltyDist_fla
Section 8
//GUIingameScreenAnimClip_61 (deathPenaltyDist_fla.GUIingameScreenAnimClip_61)
package deathPenaltyDist_fla {
import flash.display.*;
import flash.text.*;
public dynamic class GUIingameScreenAnimClip_61 extends MovieClip {
public var animMess:TextField;
}
}//package deathPenaltyDist_fla
Section 9
//lifeMeter_43 (deathPenaltyDist_fla.lifeMeter_43)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class lifeMeter_43 extends MovieClip {
public var meterClip:MovieClip;
public function lifeMeter_43(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package deathPenaltyDist_fla
Section 10
//meterClip_44 (deathPenaltyDist_fla.meterClip_44)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class meterClip_44 extends MovieClip {
public var meterLine:MovieClip;
}
}//package deathPenaltyDist_fla
Section 11
//mouse_70 (deathPenaltyDist_fla.mouse_70)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class mouse_70 extends MovieClip {
public function mouse_70(){
addFrameScript(6, frame7);
}
function frame7(){
gotoAndPlay(1);
}
}
}//package deathPenaltyDist_fla
Section 12
//mouse_73 (deathPenaltyDist_fla.mouse_73)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class mouse_73 extends MovieClip {
public function mouse_73(){
addFrameScript(35, frame36);
}
function frame36(){
gotoAndPlay(1);
}
}
}//package deathPenaltyDist_fla
Section 13
//particleBang_86 (deathPenaltyDist_fla.particleBang_86)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class particleBang_86 extends MovieClip {
public function particleBang_86(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package deathPenaltyDist_fla
Section 14
//particleDig_96 (deathPenaltyDist_fla.particleDig_96)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class particleDig_96 extends MovieClip {
public function particleDig_96(){
addFrameScript(30, frame31, 31, frame32);
}
function frame31(){
stop();
}
function frame32(){
stop();
}
}
}//package deathPenaltyDist_fla
Section 15
//particleFire_99 (deathPenaltyDist_fla.particleFire_99)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class particleFire_99 extends MovieClip {
public function particleFire_99(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package deathPenaltyDist_fla
Section 16
//particleFlesh_82 (deathPenaltyDist_fla.particleFlesh_82)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class particleFlesh_82 extends MovieClip {
public function particleFlesh_82(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package deathPenaltyDist_fla
Section 17
//particleHead_90 (deathPenaltyDist_fla.particleHead_90)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class particleHead_90 extends MovieClip {
public function particleHead_90(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package deathPenaltyDist_fla
Section 18
//particlePentagon_92 (deathPenaltyDist_fla.particlePentagon_92)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class particlePentagon_92 extends MovieClip {
public function particlePentagon_92(){
addFrameScript(19, frame20, 20, frame21, 32, frame33);
}
function frame20(){
gotoAndPlay(1);
}
function frame21(){
stop();
}
function frame33(){
stop();
}
}
}//package deathPenaltyDist_fla
Section 19
//particlePop_94 (deathPenaltyDist_fla.particlePop_94)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class particlePop_94 extends MovieClip {
public function particlePop_94(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package deathPenaltyDist_fla
Section 20
//particleSmoke_84 (deathPenaltyDist_fla.particleSmoke_84)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class particleSmoke_84 extends MovieClip {
public function particleSmoke_84(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package deathPenaltyDist_fla
Section 21
//particleWhack_88 (deathPenaltyDist_fla.particleWhack_88)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class particleWhack_88 extends MovieClip {
public function particleWhack_88(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package deathPenaltyDist_fla
Section 22
//rHair_37 (deathPenaltyDist_fla.rHair_37)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class rHair_37 extends MovieClip {
public function rHair_37(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11);
}
function frame10(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
function frame11(){
stop();
}
}
}//package deathPenaltyDist_fla
Section 23
//rHand_25 (deathPenaltyDist_fla.rHand_25)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class rHand_25 extends MovieClip {
public var skin:MovieClip;
}
}//package deathPenaltyDist_fla
Section 24
//rHand2_38 (deathPenaltyDist_fla.rHand2_38)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class rHand2_38 extends MovieClip {
public var skin:MovieClip;
}
}//package deathPenaltyDist_fla
Section 25
//rHead_34 (deathPenaltyDist_fla.rHead_34)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class rHead_34 extends MovieClip {
public var rHair:MovieClip;
public var rHeadType:MovieClip;
public function rHead_34(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10);
}
function frame10(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame8(){
stop();
}
function frame9(){
stop();
}
function frame2(){
stop();
}
}
}//package deathPenaltyDist_fla
Section 26
//rHeadType_35 (deathPenaltyDist_fla.rHeadType_35)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class rHeadType_35 extends MovieClip {
public var skin:MovieClip;
}
}//package deathPenaltyDist_fla
Section 27
//rLegUpper_29 (deathPenaltyDist_fla.rLegUpper_29)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class rLegUpper_29 extends MovieClip {
public var skin:MovieClip;
}
}//package deathPenaltyDist_fla
Section 28
//rLowerArm_22 (deathPenaltyDist_fla.rLowerArm_22)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class rLowerArm_22 extends MovieClip {
public var skin:MovieClip;
}
}//package deathPenaltyDist_fla
Section 29
//Symbol242_72 (deathPenaltyDist_fla.Symbol242_72)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class Symbol242_72 extends MovieClip {
public function Symbol242_72(){
addFrameScript(0, frame1, 22, frame23);
}
function frame1(){
}
function frame23(){
stop();
}
}
}//package deathPenaltyDist_fla
Section 30
//zombieBlood_41 (deathPenaltyDist_fla.zombieBlood_41)
package deathPenaltyDist_fla {
import flash.display.*;
public dynamic class zombieBlood_41 extends MovieClip {
public function zombieBlood_41(){
addFrameScript(0, frame1, 6, frame7, 7, frame8);
}
function frame7(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame8(){
stop();
}
}
}//package deathPenaltyDist_fla
Section 31
//Color (fl.motion.Color)
package fl.motion {
import flash.geom.*;
import flash.display.*;
public class Color extends ColorTransform {
private var _tintMultiplier:Number;// = 0
private var _tintColor:Number;// = 0
public function Color(_arg1:Number=1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=1, _arg5:Number=0, _arg6:Number=0, _arg7:Number=0, _arg8:Number=0){
_tintColor = 0;
_tintMultiplier = 0;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
public function setTint(_arg1:uint, _arg2:Number):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
this._tintColor = _arg1;
this._tintMultiplier = _arg2;
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2)));
_local3 = ((_arg1 >> 16) & 0xFF);
_local4 = ((_arg1 >> 8) & 0xFF);
_local5 = (_arg1 & 0xFF);
this.redOffset = Math.round((_local3 * _arg2));
this.greenOffset = Math.round((_local4 * _arg2));
this.blueOffset = Math.round((_local5 * _arg2));
}
public function set tintColor(_arg1:uint):void{
this.setTint(_arg1, this.tintMultiplier);
}
public function get brightness():Number{
return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1));
}
private function deriveTintColor():uint{
var _local1:Number;
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
_local1 = (1 / this.tintMultiplier);
_local2 = Math.round((this.redOffset * _local1));
_local3 = Math.round((this.greenOffset * _local1));
_local4 = Math.round((this.blueOffset * _local1));
_local5 = (((_local2 << 16) | (_local3 << 8)) | _local4);
return (_local5);
}
public function get tintMultiplier():Number{
return (this._tintMultiplier);
}
public function get tintColor():uint{
return (this._tintColor);
}
public function set brightness(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (_arg1 > 1){
_arg1 = 1;
} else {
if (_arg1 < -1){
_arg1 = -1;
};
};
_local2 = (1 - Math.abs(_arg1));
_local3 = 0;
if (_arg1 > 0){
_local3 = (_arg1 * 0xFF);
};
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2));
this.redOffset = (this.greenOffset = (this.blueOffset = _local3));
}
public function set tintMultiplier(_arg1:Number):void{
this.setTint(this.tintColor, _arg1);
}
private function parseXML(_arg1:XML=null):Color{
var _local2:XML;
var _local3:XML;
var _local4:String;
var _local5:uint;
if (!_arg1){
return (this);
};
_local2 = _arg1.elements()[0];
if (!_local2){
return (this);
};
for each (_local3 in _local2.attributes()) {
_local4 = _local3.localName();
if (_local4 == "tintColor"){
_local5 = (Number(_local3.toString()) as uint);
this.tintColor = _local5;
} else {
this[_local4] = Number(_local3.toString());
};
};
return (this);
}
public static function interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{
var _local4:Number;
var _local5:uint;
var _local6:uint;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:uint;
var _local11:uint;
var _local12:uint;
var _local13:uint;
var _local14:uint;
var _local15:uint;
var _local16:uint;
var _local17:uint;
_local4 = (1 - _arg3);
_local5 = ((_arg1 >> 24) & 0xFF);
_local6 = ((_arg1 >> 16) & 0xFF);
_local7 = ((_arg1 >> 8) & 0xFF);
_local8 = (_arg1 & 0xFF);
_local9 = ((_arg2 >> 24) & 0xFF);
_local10 = ((_arg2 >> 16) & 0xFF);
_local11 = ((_arg2 >> 8) & 0xFF);
_local12 = (_arg2 & 0xFF);
_local13 = ((_local5 * _local4) + (_local9 * _arg3));
_local14 = ((_local6 * _local4) + (_local10 * _arg3));
_local15 = ((_local7 * _local4) + (_local11 * _arg3));
_local16 = ((_local8 * _local4) + (_local12 * _arg3));
_local17 = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16);
return (_local17);
}
public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{
var _local4:Number;
var _local5:ColorTransform;
_local4 = (1 - _arg3);
_local5 = new ColorTransform(((_arg1.redMultiplier * _local4) + (_arg2.redMultiplier * _arg3)), ((_arg1.greenMultiplier * _local4) + (_arg2.greenMultiplier * _arg3)), ((_arg1.blueMultiplier * _local4) + (_arg2.blueMultiplier * _arg3)), ((_arg1.alphaMultiplier * _local4) + (_arg2.alphaMultiplier * _arg3)), ((_arg1.redOffset * _local4) + (_arg2.redOffset * _arg3)), ((_arg1.greenOffset * _local4) + (_arg2.greenOffset * _arg3)), ((_arg1.blueOffset * _local4) + (_arg2.blueOffset * _arg3)), ((_arg1.alphaOffset * _local4) + (_arg2.alphaOffset * _arg3)));
return (_local5);
}
public static function fromXML(_arg1:XML):Color{
return (Color(new (Color).parseXML(_arg1)));
}
}
}//package fl.motion
Section 32
//Arrays (Arrays)
package {
public class Arrays {
public static const zomDATA:Array = new Array(["BLANK", 1, 100], ["Capped Player", 1, 100, 0.5], ["Helmetted Player", 1, 150, 0.5], ["Crocco", 1.3, 200, 0.75], ["Rolfaroo", 1, 50, 0.75], ["Kylie", 1.5, 350, 0.75], ["Russel", 1.5, 200, 0.75], ["Edna", 1.7, 600, 0.5], ["Punter", 1, 149, 0.75]);
public static const teamDATA:Array = new Array("No Club", "Man Utd", "Chelsea", "Liverpool", "Aston Villa", "Arsenal", "Everton", "Wigan", "West Ham", "Man City", "Hull", "Fulham", "Sunderland", "Tottenham", "Bolton", "Portsmouth", "Burnley", "Blackburn", "Birmingham", "Stoke", "Wolves", "Barcelona", "AC Milan", "Bayern Munich", "Real Madrid");
public static const OldRayDATA:Array = new Array("I think that's a thrush over there just behind silly mid off", "And that's a lovely shot by the young man in his first test", "A wonderful cover drive somwhat reminicent of a young Chris Taverae", "A test book slice , marvellous..", "Sweetly struck, he's eyes a big as saucers for that one..", "and Again ! also thanks to Mrs Bridgeman of Tunbridge Wells for the wonderful cake", "and Again ! looks like he wants this over before tea !", "This boys got a left arm like a traction engine !", "I think they'll be picking that one out of a sweetshop window later..", "Simply Fabulous ! - he's really got his eye in now...", "A brutal but effective clubbing motion !", "Any more like that and we'll need the new ball immediately !", "Good grief, this battenburg cake is extraordinary !", "We're having chops tonight apparently..", "Has anyone seen my biro ?");
public static const ballBoardDATA:Array = new Array("Leather Football - Hit hard enough will cause mass boo-boos", "Leather Football - Hit hard enough will cause mass boo-boos", "Rollerball - Metal coated for max damge. Good for low level decapitation", "Grenade Ball - Contains minor explosive for eye watering results", "Hot Ball - Covers target temporarily with a burning liquid", "NitroD Ball - Temporarily freezes it's target ! COOL !", "Red Beach ball - Let this one loose on the pitch for MAXIUMUM CHAOS !");
public static const deadDATA:Array = new Array("Don Bradman", "Bert Oldfield", "Bill O'Reilly", "Bill Woodfull", "Bill Ponsford", "Stan McCabe", "Monty Noble", "Victor Trumper", "Clem Hill", "Hugh Trumble", "Warwick Armstrong", "Charlie Macartney", "Syd Gregory", "Warren Bardsley", "Bert Hopkins", "James Kelly", "Tibby Cotter", "Bill Whitty.", "Joe Darling");
public static const batterDATA:Array = new Array("Prior", "Cook", "Collingwood", "Bell", "Strauss", "Trescothic", "Bopara", "Pieterson", "Botham", "Anderson", "Boycott", "Boycott");
public static const DayDATA:Array = new Array(["I think these guys want their money back or somethin'.. ", "Nut UP or SHUT UP !", "Ok, here come the first customers of the day ! ", "I think these guys want their money back or somethin'.. "], ["blank", "first", "second", "third", "fourth", "last"]);
public static const signDATA:Array = new Array("HAIL SATAN !", "BRAINS !", "ZOMBIES ROCK !", "GO HOME LOSERS !", "OLE OLE OLE !", "WHO ATE ALL THE PIES ?", "WHO ATE ALL THE BRAINS ?", "BURN IN HELL !", "ROCK ON TOMMY !", "NEWCASTLE SUCK BALLS !", "GOODBYE SLAPHEADS !", "WHO ATE ALL THE BRAINS ?", "YRE NOT ROTTING ANYMORE!", "YOU'RE GOING DOWN !", "GRAVESEND REJECTS!", "HIRE THIS SPACE", "SATAN'S COCK LIVE !", "THE REFEREE'S A HUMAN!", "THE REFEREE NEEDS GASHES!", "UNDEAD LEAGUE");
public static const ballColDATA:Array = new Array([["0x333333"], ["0xffffff"]], [["0x333333"], ["0xffffff"]], [["0xffffff"], ["0x333333"]], [["0x33CC33"], ["0x006633"]], [["0xFFFF00"], ["0x990000"]], [["0x00FFFF"], ["0x003366"]], [["0xFF0000"], ["0xFF0000"]]);
public static const levelDATA:Array = new Array([1, 1, 1, 5, 2, 3, 5], [2, "It's all about to KICK OFF !", 1], [2, "Ref needs GASHES !", 1, 1, 7], [3, "You're not DYING ANYMORE !", 7, 1, 5, 7], [3, "Impenertrable DEFENCE !", 4, 5, 5, 2], [4, "PITCH INVASION !", 9, 9, 9, 9], [4, "WAGS: Death from Above", 4, 1, 1, 3], [4, "Pitch BLACK", 7, 5, 2, 7, 3], [5, "Balls to the BallBoy", 4, 3, 2, 3, 2, 3], [5, "The Masque of the Blue Death", 7, 8, 3, 4, 5, 5, 2], [5, "Night of the AstroTurf", 9, 2, 9, 3, 2, 3], [6, "Entrails for Goalposts", 4, 5, 5, 2, 5, 3, 5], [6, "It comes from BELOW", 2, 3, 6], [6, "Game too easy. BAH.", 2, 2, 6, 2, 4, 2, 3, 6, 3, 6], [6, 6, 6, 2, 4, 3, 4, 2, 6, 2, 5, 2], [6, 8, 2, 6, 7]);
public static const RayDATA:Array = new Array("you gotta enjoy the little things", "what d’ya think? Zombie kill of the week?", "my mother always told me, some day you’ll be good at somthin’", "woah!", "these fellas really let themselves go", "nothing says massive head trauma like a bowling ball", "get a little steam, then… JENGA!", "brain, blood, vomit, puss, spit, flem…the whole mucous family", "chills… your whole arm vibrates", "what’s wrong with a tons of blood? You need somethin’ to paint your face with afterward");
public static const nameDATA:Array = new Array("Zomface KILLAH", "BRIANS !", "Dead Dave", "Da Decomposer", "Mouldy Mike", "AarghhAlan", "HorrorHowie", "CountDavula", "BadBaggot", "Eve of Doom", "DaveWarbeck");
public static const bowlerDATA:Array = new Array("Bresnan", "Panesar", "Broad", "Rashid", "Sidebottom", "Harmy", "Swann", "Anderson", "Onions", "Sir Fred", "Willis", "Willis", "Willis", "Willis");
}
}//package
Section 33
//Ball (Ball)
package {
import flash.events.*;
import fl.motion.*;
import flash.display.*;
import flash.utils.*;
public class Ball extends Sprite {
private var startSpeed:uint;
private var active:Boolean;
public var shad:MovieClip;
private var speed:uint;
private var grav:Number;
private var hitZommer:Boolean;
public var top:MovieClip;
private var lastTime:int;
private var hitTimer:Number;
private var radius:int;
public var dy:Number;
public var dx:Number;
private var bType:Number;
public var bot:MovieClip;
public function Ball(_arg1:int, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number){
deactivateMe();
addEventListener(Event.ENTER_FRAME, moveMe);
}
public function init(_arg1:int, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number){
active = true;
this.alpha = 1;
hitZommer = false;
dx = _arg5;
dy = _arg4;
dx = (-0.5 - (((200 - Main.instance.myPlayer.x) / 200) * 1.5));
dy = (-3 - JMath.getRand(3));
grav = 0.4;
hitTimer = 0;
bType = _arg1;
speed = 0;
startSpeed = 2;
this.y = _arg2;
this.x = _arg3;
this.scaleX = 0.3;
this.scaleY = 0.3;
if (_arg1 == 2){
startSpeed = 7;
};
setBallKit(_arg1);
radius = (this.height * this.scaleY);
lastTime = getTimer();
}
public function deactivateMe(){
if (hitZommer){
Main.instance.shotsOnTarget++;
};
this.x = 0;
this.y = 0;
active = false;
this.alpha = 0;
}
public function moveMe(_arg1:Event){
var _local2:*;
if (!active){
return;
};
_local2 = JMath.getAngle(0, 0, dx, dy);
if (this.scaleX < 1){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
};
testFootHits();
testHits();
this.x = (this.x + dx);
this.y = (this.y + dy);
dy = (dy + grav);
this.rotation = (this.rotation + (dx * 5));
this.shad.rotation = (360 - this.rotation);
switch (bType){
case 1:
break;
case 2:
break;
case 3:
break;
case 4:
if ((((((dx > 5)) && (!(Main.instance.keeperDead)))) && (((Main.instance.gameTimer / 5) == Math.floor((Main.instance.gameTimer / 5)))))){
Main.instance.makeParticles(0, 0, this.y, this.x, 4, 0, 0);
};
break;
case 5:
break;
};
if ((this.y + radius) > 380){
if (dy > 3){
SoundManager.playSound("sndBounce");
};
this.y = (380 - radius);
startSpeed = 2;
dy = (-(dy) / 1.5);
dx = (dx * 0.7);
if ((((Math.abs(dy) < 2)) && ((hitTimer < 500)))){
hitTimer = 1000;
dx = 0;
};
};
hitTimer = (hitTimer - 1);
if ((((((hitTimer == 990)) || ((this.x > 690)))) || ((this.x < -10)))){
deactivateMe();
};
}
function tintColor(_arg1:Sprite, _arg2:Number, _arg3:Number):void{
var _local4:Color;
_local4 = new Color();
_local4.setTint(_arg2, _arg3);
_arg1.transform.colorTransform = _local4;
}
public function testFootHits(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
if (((!((Main.instance.myPlayer.KICKED == 0))) && ((hitTimer < 1)))){
_local1 = Main.instance.myPlayer.rFoot2;
_local2 = Main.instance.myPlayer;
_local3 = Main.instance.myPlayer.rPants;
_local4 = Main.instance.myPlayer.scaleY;
_local5 = JMath.getAngle(_local2.x, ((_local2.y + (_local3.y * _local4)) - 20), this.x, this.y);
_local6 = JMath.getHyp(_local2.x, ((_local2.y + (_local3.y * _local4)) - 20), this.x, this.y);
if ((((((((_local5 > 5)) && ((_local5 < 180)))) && ((_local6 > 10)))) && ((_local6 < (_local1.x + 20))))){
_local7 = (this.x - _local2.x);
_local8 = (_local7 / Math.tan((_local2.rLine.rotation * (Math.PI / 180))));
_local9 = ((_local2.y + (_local2.rLine.y * _local4)) - this.y);
_local10 = (_local9 - _local8);
_local11 = Main.instance.myPlayer.rLine.rotation;
_local12 = ((50 - Math.abs(_local10)) / 2.5);
if (_local12 < 0){
_local12 = 0;
};
trace(("offset" + _local10));
SoundManager.playSound("sndKick");
_local11 = (_local11 + (_local10 / 10));
speed = (startSpeed + _local12);
if (Math.abs(_local10) < 1){
SoundManager.playSound("sndKick2");
Main.instance.myIngameScreen.showMessage("SWEET SHOT !");
_local11 = Main.instance.myPlayer.rLine.rotation;
speed = 30;
Main.instance.makeParticles(0, 0, this.y, this.x, 5, 0, 0);
Main.instance.shakeTimer = 10;
};
Main.instance.makeParticles(0, 0, this.y, this.x, 7, 0, 0);
Main.instance.shots = (Main.instance.shots + 1);
dy = (speed * JMath.getY(_local11));
dx = (speed * JMath.getX(_local11));
hitTimer = 2;
};
};
if ((((dy > 3)) && (Main.instance.myPlayer.rHead.hitTestPoint(this.x, (this.y + radius), true)))){
this.y = (Main.instance.myPlayer.y + ((Main.instance.myPlayer.rHead.y - 15) * Main.instance.myPlayer.scaleY));
dy = -(dy);
dy = (dy * 0.7);
dx = -(dx);
SoundManager.playSound("sndBounce");
startSpeed = (startSpeed + 2);
Main.instance.makeParticles(0, 0, this.y, this.x, 8, 0, 0);
};
}
public function hitMe(_arg1:int, _arg2:int, _arg3:int){
if (dx > 5){
SoundManager.playSound("sndBounce");
};
hitTimer = 10;
if ((((_arg3 == 50)) && (!(Main.instance.goalOpen)))){
dx = -(dx);
dx = (dx * 0.1);
this.x = _arg1;
return;
};
if ((_arg3 == 4)){
trace(("ballZomPos" + _arg2));
if ((((_arg2 < 40)) || ((_arg2 > 79)))){
SoundManager.playSound("sndPop");
Main.instance.makeParticles(0, 0, this.y, this.x, 10, 0, 0);
};
this.x = 5000;
return;
};
switch (bType){
case 1:
dx = -(dx);
dx = (dx * 0.5);
this.x = _arg1;
break;
case 2:
if (dx > 5){
this.x = (_arg1 + 5);
dx = (dx * 0.2);
} else {
dx = -(dx);
dx = (dx * 0.5);
this.x = _arg1;
};
break;
case 3:
this.x = 50000;
break;
case 4:
this.x = 50000;
break;
case 5:
this.x = 50000;
break;
case 6:
this.x = 50000;
break;
};
}
public function setBallKit(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = Arrays.ballColDATA[_arg1][0];
_local3 = Arrays.ballColDATA[_arg1][1];
_local4 = this;
tintColor(this.top, _local2, 1);
tintColor(this.bot, _local3, 1);
}
public function getType(){
return (bType);
}
public function deleteMe(){
removeEventListener(Event.ENTER_FRAME, moveMe);
MovieClip(parent).removeBall(this);
parent.removeChild(this);
}
public function testHits(){
var _local1:int;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
_local1 = (Main.instance.zombieList.length - 1);
while (_local1 >= 0) {
_local2 = this;
_local3 = Main.instance.zombieList[_local1];
_local4 = (_local2.x - _local2.dx);
_local5 = _local2.y;
_local6 = (_local2.x + _local2.dx);
_local7 = (_local2.y + _local2.dy);
_local8 = _local3.x;
_local9 = _local3.y;
_local10 = _local3.x;
_local11 = (_local3.y + (_local3.rHead.y * _local3.scaleY));
_local12 = JMath.collCheck(_local4, _local6, _local5, _local7, _local8, _local10, _local9, _local11, 0);
if (_local12 > 0){
if (hitTimer < 1){
if ((((dx > 0)) && ((_local3.getMyPower() > 0)))){
_local3.ballHit(_local2.y, dx, dy, bType);
};
if ((((_local3.alpha == 1)) && (_local3.visible))){
hitZommer = true;
hitMe(_local3.x, ((_local9 - _local2.y) * (1 / _local3.scaleY)), _local3.getType());
};
if (!_local3.visible){
dx = -(dx);
dx = (dx * 0.1);
};
};
};
_local1--;
};
}
}
}//package
Section 34
//BasicButton (BasicButton)
package {
import flash.display.*;
public dynamic class BasicButton extends SimpleButton {
}
}//package
Section 35
//bgGoalFront (bgGoalFront)
package {
import flash.display.*;
public dynamic class bgGoalFront extends MovieClip {
}
}//package
Section 36
//bgLib (bgLib)
package {
import flash.display.*;
public dynamic class bgLib extends MovieClip {
public var bgGoal:MovieClip;
}
}//package
Section 37
//bgSign (bgSign)
package {
import flash.display.*;
import flash.text.*;
public dynamic class bgSign extends MovieClip {
public var signText:TextField;
}
}//package
Section 38
//Board (Board)
package {
import flash.events.*;
import flash.display.*;
public class Board extends MovieClip {
private var boardBallSeqList:Array;
private var ballHovered:int;
private var clicked:int;
private var boardY:int;
public var boardFace:MovieClip;
private var ballChosen:int;
private var lastTime:int;
private var levelBatter:int;
private var levelBowler:int;
private var levelSkills:int;
public function Board(){
var _local1:int;
var _local2:*;
super();
levelSkills = 1;
levelBatter = Main.instance.shotPower;
levelBowler = Main.instance.throwPower;
boardY = 0;
ballChosen = null;
ballHovered = 0;
clicked = 0;
addEventListener(Event.ENTER_FRAME, moveMe);
this.boardFace.fixBatBut.addEventListener(MouseEvent.CLICK, fixBat);
this.boardFace.moreBatBut.addEventListener(MouseEvent.CLICK, moreBat);
this.boardFace.moreBowlBut.addEventListener(MouseEvent.CLICK, moreBowl);
this.boardFace.nextBut.addEventListener(MouseEvent.CLICK, nextStuff);
this.boardFace.doneBut.addEventListener(MouseEvent.CLICK, doneStuff);
_local1 = 6;
while (_local1 >= 2) {
_local2 = boardFace[("b" + _local1)];
_local2.gotoAndStop(_local1);
_local1--;
};
boardBallSeqList = new Array();
boardBallSeqList = [1, 1, 1];
boardFace.onTarget.text = String(((Math.round((Main.instance.shotsOnTarget / Main.instance.shots)) * 100) + " %"));
boardFace.headShots.text = String(Main.instance.headShots);
boardFace.totalDead.text = String(Main.instance.totalDead);
SoundManager.stopSound(null);
SoundManager.playSound("sndMusic1");
}
public function moveMe(_arg1:Event){
var _local2:int;
var _local3:*;
var _local4:int;
var _local5:Boolean;
var _local6:*;
boardFace.score.text = String(MovieClip(parent).score);
boardFace.batter.text = String(levelBatter);
boardFace.bowler.text = String(levelBowler);
boardFace.skills.text = String(levelSkills);
boardFace.batterName.text = String(Arrays.batterDATA[levelBatter]);
boardFace.bowlerName.text = String(Arrays.bowlerDATA[levelBowler]);
boardFace.ballName.text = String(Arrays.ballBoardDATA[ballHovered]);
if (Math.abs((boardFace.y - boardY)) > 4){
boardFace.y = (boardFace.y + ((boardY - boardFace.y) / 10));
};
clicked = Main.instance.clicked;
_local2 = 6;
while (_local2 >= 2) {
_local3 = boardFace[("b" + _local2)];
if (((((_local3.hitTestPoint(mouseX, mouseY, true)) && (_local3.visible))) && ((ballChosen == 0)))){
ballHovered = _local2;
if (clicked == 1){
_local4 = 2;
while (_local4 >= 0) {
if (boardBallSeqList[_local4] == _local2){
boardBallSeqList[_local4] = 1;
};
_local4--;
};
ballChosen = _local2;
};
};
_local2--;
};
if (ballChosen != 0){
_local3 = boardFace[("b" + ballChosen)];
_local3.x = (mouseX - 40);
_local3.y = (mouseY - boardFace.y);
if (clicked == 0){
_local5 = false;
_local4 = 2;
while (_local4 >= 0) {
_local6 = boardFace[("bs" + _local4)];
if (JMath.getHyp(_local6.x, _local6.y, _local3.x, _local3.y) < 65){
_local3.x = _local6.x;
_local3.y = _local6.y;
if (boardBallSeqList[_local4] != 1){
boardFace[("b" + boardBallSeqList[_local4])].x = boardFace[("bh" + boardBallSeqList[_local4])].x;
boardFace[("b" + boardBallSeqList[_local4])].y = boardFace[("bh" + boardBallSeqList[_local4])].y;
};
boardBallSeqList[_local4] = ballChosen;
ballChosen = 0;
_local5 = true;
};
_local4--;
};
if (!_local5){
_local3.x = boardFace[("bh" + ballChosen)].x;
_local3.y = boardFace[("bh" + ballChosen)].y;
ballChosen = 0;
};
};
};
}
public function moreBat(_arg1:MouseEvent){
if ((((levelSkills > 0)) && ((levelBatter < 9)))){
levelSkills = (levelSkills - 1);
levelBatter = (levelBatter + 1);
};
}
public function doneStuff(_arg1:MouseEvent){
trace("BOARD DONE");
Main.instance.shotPower = levelBatter;
Main.instance.throwPower = levelBowler;
Main.instance.ballSeqList = boardBallSeqList;
Main.instance.clearGame();
SoundManager.stopSound(null);
SoundManager.playSound("sndMusic2");
deleteMe();
}
public function deleteMe(){
this.boardFace.fixBatBut.removeEventListener(MouseEvent.CLICK, fixBat);
this.boardFace.moreBatBut.removeEventListener(MouseEvent.CLICK, moreBat);
this.boardFace.moreBowlBut.removeEventListener(MouseEvent.CLICK, moreBowl);
this.boardFace.nextBut.removeEventListener(MouseEvent.CLICK, nextStuff);
this.boardFace.doneBut.removeEventListener(MouseEvent.CLICK, doneStuff);
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
public function nextStuff(_arg1:MouseEvent){
var _local2:int;
var _local3:int;
var _local4:*;
boardBallSeqList = Main.instance.ballSeqList;
_local2 = 3;
while (_local2 >= 0) {
ballChosen = boardBallSeqList[_local2];
if (ballChosen != 1){
boardFace[("b" + ballChosen)].x = boardFace[("bs" + _local2)].x;
boardFace[("b" + ballChosen)].y = boardFace[("bs" + _local2)].y;
};
boardFace[("bs" + _local2)].gotoAndStop(1);
_local2--;
};
_local3 = 6;
while (_local3 >= 2) {
trace(("BALL ALLOWED" + Arrays.levelDATA[Main.instance.level][0]));
_local4 = boardFace[("b" + _local3)];
if (!Main.instance.gameWon){
if (_local3 > Arrays.levelDATA[Main.instance.level][0]){
trace(("no WAY " + _local3));
_local4.visible = false;
};
};
_local3--;
};
boardY = -400;
ballChosen = 0;
}
public function fixBat(_arg1:MouseEvent){
if ((((levelSkills > 0)) && ((MovieClip(parent).batDamage == 2)))){
levelSkills = (levelSkills - 1);
MovieClip(parent).batDamage = 1;
};
}
public function moreBowl(_arg1:MouseEvent){
if ((((levelSkills > 0)) && ((levelBowler < 9)))){
levelSkills = (levelSkills - 1);
levelBowler = (levelBowler + 1);
};
}
}
}//package
Section 39
//Bowler (Bowler)
package {
import flash.events.*;
import fl.motion.*;
import flash.display.*;
public class Bowler extends MovieClip {
public var rArmUpper2:MovieClip;
public var rLegUpper1:MovieClip;
public var rLegUpper2:MovieClip;
public var rFoot1:MovieClip;
public var rLowerLeg1:MovieClip;
public var rLowerLeg2:MovieClip;
public var shad:MovieClip;
public var odx:Number;
public var rHand1:MovieClip;
public var rFoot2:MovieClip;
private var frame;
private var bState;
private var lastTime:int;
public var rHead:MovieClip;
public var rPants:MovieClip;
public var rHand2:MovieClip;
public var rTorso:MovieClip;
public var rLowerArm2:MovieClip;
private var dy:Number;
public var rLowerArm1:MovieClip;
public var dx:Number;
public var rArmUpper1:MovieClip;
public function Bowler(_arg1:int){
addFrameScript(8, frame9, 25, frame26, 51, frame52, 80, frame81, 95, frame96, 108, frame109);
this.y = 250;
this.x = 0;
frame = 1;
this.scaleX = 0.3;
this.scaleY = 0.3;
bState = 1;
this.gotoAndPlay("run");
odx = (2 + (Main.instance.throwPower / 2));
dx = odx;
setMyKit(Main.instance.myTeam, JMath.getRand(7), "0xFFFFFF");
}
function frame81(){
gotoAndPlay("ambient");
}
public function setMyKit(_arg1, _arg2, _arg3){
var _local4:*;
var _local5:*;
var _local6:*;
_local4 = this;
_local5 = _arg1;
_local6 = _arg2;
tintColor(this.rLowerArm2.skin, _arg3, 1);
tintColor(this.rLowerArm1.skin, _arg3, 1);
tintColor(this.rHand1.skin, _arg3, 1);
tintColor(this.rHand2.skin, _arg3, 1);
tintColor(this.rLegUpper1.skin, _arg3, 1);
tintColor(this.rLegUpper2.skin, _arg3, 1);
tintColor(this.rHead.rHeadType.skin, _arg3, 1);
_local4.rTorso.gotoAndStop(_local5);
_local4.rHead.rHair.gotoAndStop(_local6);
_local4.rArmUpper1.gotoAndStop(_local5);
_local4.rArmUpper2.gotoAndStop(_local5);
_local4.rLowerArm1.gotoAndStop(_local5);
_local4.rLowerArm2.gotoAndStop(_local5);
_local4.rHand1.gotoAndStop(_local5);
_local4.rHand2.gotoAndStop(_local5);
_local4.rPants.gotoAndStop(_local5);
_local4.rLegUpper1.gotoAndStop(_local5);
_local4.rLegUpper2.gotoAndStop(_local5);
_local4.rLowerLeg1.gotoAndStop(_local5);
_local4.rLowerLeg2.gotoAndStop(_local5);
_local4.rFoot1.gotoAndStop(_local5);
_local4.rFoot2.gotoAndStop(_local5);
}
function frame9(){
gotoAndPlay("ambient");
}
function frame96(){
gotoAndPlay("ambient");
}
function frame109(){
gotoAndPlay("win");
}
function frame26(){
gotoAndPlay("ambient");
}
public function deleteMe(){
parent.removeChild(this);
}
public function update(){
this.x = (this.x + dx);
if ((((this.x > (140 + 40))) && (!((dx == 0))))){
this.x = (140 + 40);
dx = 0;
this.gotoAndPlay("throw");
this.scaleX = -(this.scaleX);
};
if (currentFrame == 71){
Main.instance.newBall();
};
if (currentFrame == 81){
dx = -(odx);
this.gotoAndPlay("run");
};
if ((((((this.x < 0)) && ((dx < 0)))) && (Main.instance.myPlayer.alive))){
dx = odx;
this.scaleX = -(this.scaleX);
};
}
function frame52(){
gotoAndPlay("run");
}
function tintColor(_arg1:Sprite, _arg2:Number, _arg3:Number):void{
var _local4:Color;
_local4 = new Color();
_local4.setTint(_arg2, _arg3);
_arg1.transform.colorTransform = _local4;
}
}
}//package
Section 40
//gameOverScreen (gameOverScreen)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public class gameOverScreen extends MovieClip {
public var againBut:SimpleButton;
public var butZombie:SimpleButton;
public var playerName:TextField;
public var submitBut:SimpleButton;
public var endMessage:TextField;
public var endBanner:MovieClip;
public function gameOverScreen(_arg1){
addFrameScript(12, frame13);
addEventListener(Event.ENTER_FRAME, moveMe);
this.submitBut.addEventListener(MouseEvent.CLICK, moreGames);
this.againBut.addEventListener(MouseEvent.CLICK, playAgain);
this.butZombie.addEventListener(MouseEvent.CLICK, zombLink);
this.endBanner.gotoAndStop(_arg1);
this.playerName.text = Arrays.nameDATA[JMath.getRand(Arrays.nameDATA.length)];
this.endMessage.text = String("At cinemas October 9");
SoundManager.stopSound(null);
}
public function moveMe(_arg1:Event){
this.y = Main.instance.myGUI.y;
}
function frame13(){
stop();
}
public function moreGames(_arg1:MouseEvent){
var url2:String;
var request:URLRequest;
var event = _arg1;
url2 = "http://www.mousebreaker.com";
request = new URLRequest(url2);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
public function zombLink(_arg1:MouseEvent){
}
public function playAgain(_arg1:MouseEvent){
Main.instance.gameOver();
deleteMe();
}
public function deleteMe(){
this.submitBut.removeEventListener(MouseEvent.CLICK, moreGames);
this.againBut.removeEventListener(MouseEvent.CLICK, playAgain);
this.butZombie.removeEventListener(MouseEvent.CLICK, zombLink);
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
}
}//package
Section 41
//GUI (GUI)
package {
import flash.display.*;
public dynamic class GUI extends MovieClip {
public var playBut:BasicButton;
public function GUI(){
addFrameScript(25, frame26, 57, frame58, 70, frame71, 83, frame84);
}
function frame71(){
stop();
}
function frame84(){
stop();
}
function frame26(){
stop();
}
function frame58(){
stop();
}
}
}//package
Section 42
//HighScoreHandler (HighScoreHandler)
package {
import flash.events.*;
import flash.net.*;
import heyzap.as3.*;
public class HighScoreHandler {
public static function handleScoreEvent(_arg1:MouseEvent){
var _local2:URLRequest;
var _local3:URLLoader;
var _local4:URLVariables;
_local2 = new URLRequest("highscores_deathpenalty.php?");
_local3 = new URLLoader();
_local4 = new URLVariables();
_local3.addEventListener(Event.COMPLETE, handleLoadSuccessful);
_local3.addEventListener(IOErrorEvent.IO_ERROR, handleLoadError);
_local4.score = Main.instance.score;
_local4.playerName = Main.instance.myGameOverScreen.playerName.text;
trace(((_local4.score + " and ") + _local4.playerName));
_local2.method = URLRequestMethod.POST;
_local2.data = _local4;
_local3.load(_local2);
Main.instance.myGameOverScreen.submitBut.visible = false;
}
public static function handleLoadError(_arg1:IOErrorEvent):void{
trace("Message failed.");
}
public static function handleLoadSuccessful(_arg1:Event):void{
trace("Message sent.");
}
}
}//package
Section 43
//ingameScreen (ingameScreen)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class ingameScreen extends MovieClip {
public var zomNum:TextField;
public var scoreNum:TextField;
public var animMessage:MovieClip;
public function ingameScreen(){
addFrameScript(0, frame1);
this.scoreNum.text = String(("Score:" + Main.instance.score));
this.zomNum.text = String(("Zoms Left:" + Main.instance.score));
}
public function levelUp(){
}
function frame1(){
stop();
}
public function showMessage(_arg1:String){
this.animMessage.gotoAndPlay(2);
this.animMessage.animClip.animMess.text = String(_arg1);
}
public function showScore(){
this.scoreNum.text = String(("Score:" + Main.instance.score));
}
public function deleteMe(){
parent.removeChild(this);
}
}
}//package
Section 44
//JMath (JMath)
package {
public class JMath {
public function JMath(){
trace("init");
}
public function rangeTest(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int){
if ((((Math.abs((_arg1 - _arg3)) < _arg5)) && ((Math.abs((_arg2 - _arg4)) < _arg5)))){
return (true);
};
return (false);
}
public static function getX(_arg1:int){
var _local2:*;
_local2 = (_arg1 * (Math.PI / 180));
return (Math.sin(_local2));
}
public static function getY(_arg1:int){
var _local2:*;
_local2 = (_arg1 * (Math.PI / 180));
return (-(Math.cos(_local2)));
}
public static function getHyp(_arg1:int, _arg2:int, _arg3:int, _arg4:int){
var _local5:*;
_local5 = Math.sqrt((((_arg1 - _arg3) * (_arg1 - _arg3)) + ((_arg2 - _arg4) * (_arg2 - _arg4))));
return (_local5);
}
public static function getRand(_arg1){
var _local2:*;
_local2 = Math.floor((Math.random() * _arg1));
return (_local2);
}
public static function collCheck(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int, _arg9:int){
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
_local10 = (_arg2 - _arg1);
_local11 = (_arg4 - _arg3);
_local12 = (_arg6 - _arg5);
_local13 = (_arg8 - _arg7);
_local14 = (((-(_local11) * (_arg1 - _arg5)) + (_local10 * (_arg3 - _arg7))) / ((-(_local12) * _local11) + (_local10 * _local13)));
_local15 = (((_local12 * (_arg3 - _arg7)) - (_local13 * (_arg1 - _arg5))) / ((-(_local12) * _local11) + (_local10 * _local13)));
_local16 = -1;
if ((((((((_local14 > 0)) && ((_local14 < 1)))) && ((_local15 > 0)))) && ((_local15 < 1)))){
_local16 = _local15;
};
return (_local16);
}
public static function getAngle(_arg1:int, _arg2:int, _arg3:int, _arg4:int){
var _local5:*;
var _local6:*;
_local5 = Math.sqrt((((_arg1 - _arg3) * (_arg1 - _arg3)) + ((_arg2 - _arg4) * (_arg2 - _arg4))));
_local6 = ((180 / Math.PI) * Math.acos(((_arg2 - _arg4) / _local5)));
if (_arg1 > _arg3){
_local6 = (360 - ((180 / Math.PI) * Math.acos(((_arg2 - _arg4) / _local5))));
};
return (_local6);
}
}
}//package
Section 45
//levelUpScreen (levelUpScreen)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public class levelUpScreen extends MovieClip {
public var againBut:SimpleButton;
public var butOppTeam:SimpleButton;
public var butZombie:SimpleButton;
public var playerName:TextField;
public var butMyTeam:SimpleButton;
private var myTeam:int;
public var submitBut:SimpleButton;
public var myTeamNum:TextField;
public var endMessage:TextField;
private var oppTeam:int;
public var oppTeamNum:TextField;
public function levelUpScreen(){
addFrameScript(34, frame35);
addEventListener(Event.ENTER_FRAME, moveMe);
this.submitBut.addEventListener(MouseEvent.CLICK, HighScoreHandler.handleScoreEvent);
this.againBut.addEventListener(MouseEvent.CLICK, playAgain);
this.butZombie.addEventListener(MouseEvent.CLICK, zombLink);
myTeam = 1;
oppTeam = 2;
this.butMyTeam.addEventListener(MouseEvent.CLICK, hitMyTeam);
this.butOppTeam.addEventListener(MouseEvent.CLICK, hitOppTeam);
this.endMessage.text = String("LEVEL UP SCREEN GO HERE PLIZ !");
SoundManager.stopSound(null);
SoundManager.playSound("sndMusic1");
}
public function moveMe(_arg1:Event){
this.y = Main.instance.myGUI.y;
this.myTeamNum.text = String(myTeam);
this.oppTeamNum.text = String(oppTeam);
}
function frame35(){
stop();
}
public function hitOppTeam(_arg1:MouseEvent){
oppTeam++;
}
public function playAgain(_arg1:MouseEvent){
trace("FUCK!");
}
public function deleteMe(){
this.submitBut.removeEventListener(MouseEvent.CLICK, HighScoreHandler.handleScoreEvent);
this.againBut.removeEventListener(MouseEvent.CLICK, playAgain);
this.butZombie.removeEventListener(MouseEvent.CLICK, zombLink);
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
public function hitMyTeam(_arg1:MouseEvent){
myTeam++;
}
public function zombLink(_arg1:MouseEvent){
var url2:String;
var request:URLRequest;
var event = _arg1;
url2 = "http://www.zombieland.co.uk";
request = new URLRequest(url2);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
}
}//package
Section 46
//Main (Main)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class Main extends MovieClip {
public var signList:Array;
private var zombLevel:int;
public var scoreObjects:Sprite;
public var lbar:MovieClip;
public var myTeam:int;
public var shotPower:uint;
public var clicked:int;
public var shotsOnTarget:uint;
public var myLevelUpScreen:levelUpScreen;
public var bg:bgLib;
public var leftArrow;
public var gameTimer:uint;
public var keeperDead:Boolean;
private var ballTimer:int;
private var partListNum:int;
public var score:int;
public var myBoard:Board;
public var ballSeqList:Array;
public var scoreBonus:int;
private var zombKilled:int;
private var zombTimerLimit:int;
public var headShots:uint;
public var tester:MovieClip;
public var gameObjects:Sprite;
public var myBgGoalFront:bgGoalFront;
public var myGameOverScreen:gameOverScreen;
private var hitList:Array;
private var ballTimerLimit:int;
public var myBowler:Bowler;
public var shots:uint;
public var goalScored:Boolean;
private var ballListNum:int;
private var zombListNum:int;
public var partList:Array;
public var ballList:Array;
public var gameWon:Boolean;
public var rightArrow:Boolean;
public var tester2:MovieClip;
public var myRef:Ref;
public var lpc:TextField;
private var levelScore:int;
public var level:uint;
private var ballNext:int;
private var screenScore:int;
public var myTitleScreen:titleScreen;
private var GUIStartFrame:int;// = 35
public var oppTeam:int;
public var myPlayer:Player;
public var myIngameScreen:ingameScreen;
public var scoreBall:int;
private var zombLevelLimit:int;
private var plays:int;
private var zombDeathDist:int;
public var totalLevels:uint;
public var gameState:int;
private var zombTimer:int;
public var totalDead:uint;
public var throwPower:uint;
public var zombieList:Array;
public var shakeTimer:uint;
private var batDamage:int;
public var myGUI:GUI;
public var myTeamScreen:teamScreen;
public var goalOpen:Boolean;
public static var instance:Main;
public function Main(){
GUIStartFrame = 35;
super();
addFrameScript(0, frame1, 4, frame5);
trace("blah");
instance = this;
StageQuality.LOW;
ballList = new Array();
zombieList = new Array();
hitList = new Array();
partList = new Array();
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownFunction);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUpFunction);
stage.addEventListener(MouseEvent.MOUSE_DOWN, MouseDownFunction);
stage.addEventListener(MouseEvent.MOUSE_UP, MouseUpFunction);
addEventListener(Event.ENTER_FRAME, gameBase);
gameWon = false;
gameTimer = 0;
myTeam = 1;
oppTeam = 2;
plays = 0;
totalLevels = 12;
level = 1;
gameState = 0;
shakeTimer = 0;
zombListNum = 0;
addBG();
addGUI(null);
myGUI.playBut.addEventListener(MouseEvent.CLICK, PlayButHit);
bg.cacheAsBitmap;
MochiBot.track(this, "93602c7c");
}
public function DataLoading(_arg1:ProgressEvent):void{
var _local2:Number;
_local2 = ((_arg1.bytesLoaded / _arg1.bytesTotal) * 100);
lbar.scaleX = (_local2 / 100);
lpc.text = (int(_local2) + "%");
}
public function addMbSplash(){
var _local1:*;
_local1 = new MbSplash();
addChild(_local1);
}
public function shaker(){
if (shakeTimer > 0){
shakeTimer = (shakeTimer - 1);
this.x = (JMath.getRand(shakeTimer) - (shakeTimer / 2));
this.y = (JMath.getRand(shakeTimer) - (shakeTimer / 2));
};
}
public function MouseDownFunction(_arg1:MouseEvent){
clicked = 1;
}
public function makeParticles(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7:uint){
var _local8:int;
_local8 = _arg7;
while (_local8 >= 0) {
partList[partListNum].init(_arg1, ((_arg2 + JMath.getRand(90)) - 45), _arg3, _arg4, _arg5, _arg6);
incPartList();
_local8--;
};
}
public function removeAllParts(){
var _local1:int;
while (_local1 < partList.length) {
partList[_local1].deleteMe();
_local1++;
};
partList = [];
}
function frame5(){
stop();
}
function frame1(){
stop();
this.stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, DataLoading);
this.loaderInfo.addEventListener(Event.COMPLETE, DataLoaded);
}
public function DataLoaded(_arg1:Event):void{
trace("complete");
addMbSplash();
}
public function newBalls(_arg1){
var _local2:int;
var _local3:Ball;
_local2 = _arg1;
while (_local2 >= 0) {
_local3 = new Ball(0, 200, myBowler.x, (-3 - JMath.getRand(3)), 0);
addChild(_local3);
ballList.push(_local3);
_local2--;
};
ballListNum = 0;
}
public function removeBall(_arg1:Ball){
var _local2:*;
for (_local2 in ballList) {
if (ballList[_local2] == _arg1){
ballList.splice(_local2, 1);
break;
};
};
}
public function newPlayer(){
var _local1:Player;
_local1 = new Player(380, 60, 12);
addChild(_local1);
myPlayer = _local1;
}
public function addTeamScreen(_arg1){
var _local2:teamScreen;
_local2 = new teamScreen(_arg1);
_local2.y = myGUI.y;
addChild(_local2);
myTeamScreen = _local2;
}
public function addBG(){
var _local1:bgLib;
_local1 = new bgLib();
_local1.y = -5;
_local1.x = -29;
addChild(_local1);
bg = _local1;
}
public function keyDownFunction(_arg1:KeyboardEvent){
if (_arg1.keyCode == 37){
leftArrow = true;
} else {
if (_arg1.keyCode == 39){
rightArrow = true;
} else {
if (_arg1.keyCode == 32){
};
};
};
}
public function newKeeper(){
zombieList[zombListNum].init(2, (550 + 40), (myPlayer.y - 10), 50);
incZombList();
zombieList[zombListNum].init(2, (551 + 40), (myPlayer.y - 140), 51);
incZombList();
zombieList[zombListNum].init(2, (630 + 40), myPlayer.y, 52);
incZombList();
}
public function addGUI(_arg1:Event){
myGUI = new GUI();
myGUI.gotoAndStop(1);
myGUI.x = 0;
myGUI.y = 0;
addChild(myGUI);
myGUI.gotoAndPlay(2);
}
public function newParticles(_arg1){
var _local2:int;
var _local3:Particle;
_local2 = _arg1;
while (_local2 >= 0) {
_local3 = new Particle(0, 0, 0, 0, 0, 0);
addChild(_local3);
partList.push(_local3);
_local2--;
};
partListNum = 0;
}
public function addGameOverScreen(_arg1){
var _local2:gameOverScreen;
_local2 = new gameOverScreen(_arg1);
_local2.y = myGUI.y;
addChild(_local2);
myGameOverScreen = _local2;
}
public function newGoalFront(){
var _local1:bgGoalFront;
_local1 = new bgGoalFront();
addChild(_local1);
myBgGoalFront = _local1;
myBgGoalFront.x = (bg.x + bg.bgGoal.x);
myBgGoalFront.y = (bg.y + bg.bgGoal.y);
}
public function incPartList(){
partListNum++;
if (partListNum > (partList.length - 1)){
partListNum = 0;
};
}
public function incBallList(){
ballListNum++;
if (ballListNum > (ballList.length - 1)){
ballListNum = 0;
};
}
public function keyUpFunction(_arg1:KeyboardEvent){
if (_arg1.keyCode == 37){
leftArrow = false;
} else {
if (_arg1.keyCode == 39){
rightArrow = false;
};
};
}
public function incScore(_arg1:int){
score = (score + _arg1);
myIngameScreen.showScore();
if ((((score > scoreBall)) && (!(keeperDead)))){
SoundManager.playSound("sndLucky");
Main.instance.myIngameScreen.showMessage((((("* Reached " + scoreBall) + " points *") + "\n") + "BEACHBALL BONUS !"));
ballList[ballListNum].init(6, 100, (150 + JMath.getRand(100)), (-3 - JMath.getRand(3)), 0);
incBallList();
scoreBall = (scoreBall * 2);
};
}
public function incZombList(){
zombListNum++;
if (zombListNum > (zombieList.length - 1)){
zombListNum = 0;
};
}
public function addIngameScreen(){
var _local1:ingameScreen;
_local1 = new ingameScreen();
addChild(_local1);
myIngameScreen = _local1;
}
public function addLevelUpScreen(){
var _local1:Board;
_local1 = new Board();
addChild(_local1);
myBoard = _local1;
}
public function newZombies(_arg1){
var _local2:int;
var _local3:Zombie;
_local2 = _arg1;
while (_local2 >= 0) {
_local3 = new Zombie(2, (640 - JMath.getRand(200)), myPlayer.y, 0);
addChild(_local3);
zombieList.push(_local3);
_local2--;
};
zombListNum = 0;
}
public function startGame(){
ballSeqList = [1, 1, 1, 1];
scoreBall = 100;
score = 0;
level = 1;
shotPower = 0;
throwPower = 0;
headShots = 0;
totalDead = 0;
signList = [];
levelUpGame();
myGUI.gotoAndPlay("gameStart");
}
public function newSign(){
var _local1:bgSign;
_local1 = new bgSign();
bg.addChild(_local1);
_local1.x = (JMath.getRand(300) + 100);
_local1.y = (JMath.getRand(100) + 30);
_local1.rotation = (JMath.getRand(30) - 15);
_local1.signText.text = String(Arrays.signDATA[JMath.getRand(Arrays.signDATA.length)]);
signList.push(_local1);
bg.cacheAsBitmap;
}
public function sendZap(){
}
public function addTitleScreen(_arg1){
var _local2:titleScreen;
_local2 = new titleScreen(_arg1);
_local2.y = myGUI.y;
addChild(_local2);
myTitleScreen = _local2;
}
public function removeZombie(_arg1:Zombie){
zombKilled = (zombKilled + 1);
totalDead = (totalDead + 1);
if (goalOpen){
};
if (zombKilled == zombLevelLimit){
myIngameScreen.showMessage("Here comes the KEEPER !");
goalOpen = true;
};
}
public function PlayButHit(_arg1:MouseEvent){
}
public function levelUpGame(){
SoundManager.playSound("sndWhistle");
ballNext = 0;
zombTimer = 490;
zombTimerLimit = 500;
scoreBonus = 10;
shotsOnTarget = 0;
shots = 0;
zombLevel = 0;
zombLevelLimit = (Arrays.levelDATA[level].length - 2);
zombKilled = 0;
goalOpen = false;
keeperDead = false;
goalScored = false;
newSign();
newBowler();
newPlayer();
newZombies(10);
newKeeper();
newBalls(2);
newGoalFront();
newParticles(5);
addIngameScreen();
myIngameScreen.showMessage(((("LEVEL : " + level) + "\n") + Arrays.levelDATA[level][1]));
gameState = 1;
}
public function newBowler(){
var _local1:Bowler;
var _local2:Ref;
_local1 = new Bowler(12);
addChild(_local1);
myBowler = _local1;
_local2 = new Ref();
addChild(_local2);
myRef = _local2;
myRef.x = 242;
myRef.y = 260;
}
public function removeAllSigns(){
var _local1:int;
while (_local1 < signList.length) {
bg.removeChild(signList[_local1]);
_local1++;
};
}
public function gameBase(_arg1:Event){
gameTimer++;
shaker();
if (gameState == 1){
myBowler.update();
myPlayer.update();
zombTimer = (zombTimer + 1);
if ((((zombTimer > zombTimerLimit)) && ((zombLevel < zombLevelLimit)))){
zombLevel = (zombLevel + 1);
zombTimer = 0;
newZombie();
zombTimerLimit = (150 + JMath.getRand(100));
};
};
}
public function removeAllZombies(){
var _local1:int;
_local1 = (zombieList.length - 1);
while (_local1 >= 0) {
zombieList[_local1].removeMeGO();
_local1--;
};
zombieList = [];
}
public function newZombie(){
var _local1:Number;
var _local2:*;
_local1 = Arrays.levelDATA[level][(zombLevel + 1)];
_local2 = (JMath.getRand(20) + 1);
zombieList[zombListNum].init(2, 680, myPlayer.y, _local1);
incZombList();
}
public function clearGame(){
level = (level + 1);
myBowler.deleteMe();
myPlayer.deleteMe();
this.removeChild(myRef);
removeAllZombies();
removeAllBalls();
removeAllParts();
myIngameScreen.deleteMe();
levelUpGame();
}
public function newBall(){
var _local1:*;
_local1 = ballSeqList[ballNext];
ballNext = (ballNext + 1);
if (ballNext > (ballSeqList.length - 1)){
ballNext = 0;
};
ballList[ballListNum].init(_local1, 200, myBowler.x, (-3 - JMath.getRand(3)), 0);
incBallList();
}
public function removeAllBalls(){
var _local1:int;
while (_local1 < ballList.length) {
ballList[_local1].deleteMe();
_local1++;
};
ballList = [];
}
public function gameOver(){
plays = (plays + 1);
if (plays < 300000000){
gameState = 0;
myBowler.deleteMe();
myPlayer.deleteMe();
this.removeChild(myRef);
removeAllZombies();
removeAllBalls();
removeAllParts();
removeAllSigns();
myIngameScreen.deleteMe();
Main.instance.addTitleScreen(1);
};
}
public function MouseUpFunction(_arg1:MouseEvent){
clicked = 0;
}
trace("class");
}
}//package
Section 47
//MbSplash (MbSplash)
package {
import flash.events.*;
import flash.display.*;
public class MbSplash extends MovieClip {
public var exp:MovieClip;
public function MbSplash(){
addFrameScript(170, frame171);
trace("ADDED");
addEventListener(Event.ENTER_FRAME, moveMe);
this.x = (Main.instance.stage.width / 2);
this.y = (Main.instance.stage.height / 2);
this.x = 320;
this.y = 250;
}
function frame171(){
stop();
}
public function moveMe(_arg1:Event){
if (this.currentFrame == 100){
Main.instance.myGUI.visible = true;
Main.instance.myGUI.gotoAndPlay(2);
Main.instance.addTitleScreen(1);
deleteMe();
};
}
public function deleteMe(){
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
}
}//package
Section 48
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 49
//Particle (Particle)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Particle extends MovieClip {
private var active:Boolean;
private var parType:Number;
private var ground:Number;
private var hitTimer:Number;
private var dy:Number;
private var grav:Number;
private var type:Number;
public var body:MovieClip;
private var dx:Number;
private var lastTime:int;
public function Particle(_arg1:int, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:int, _arg6:Number){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15);
deactivateMe();
addEventListener(Event.ENTER_FRAME, moveMe);
}
public function init(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:int, _arg6:Number){
active = true;
dx = (_arg1 * JMath.getX(_arg2));
dy = (_arg1 * JMath.getY(_arg2));
grav = _arg6;
hitTimer = 200;
parType = _arg5;
ground = (380 + JMath.getRand(15));
this.y = _arg3;
this.x = _arg4;
this.scaleX = (this.scaleY = 1);
this.rotation = 0;
this.alpha = 1;
this.visible = true;
this.gotoAndStop(1);
this.gotoAndStop(parType);
lastTime = getTimer();
if (_arg6 > 5){
grav = 0.5;
this.scaleX = (this.scaleY = _arg1);
_arg1 = 3;
parType = 6;
dx = (_arg1 * JMath.getX(15));
dy = (_arg1 * JMath.getY(15));
};
if (parType == 13){
parType = 2;
};
trace(((((("PARTICLE TYPE " + _arg5) + " x ") + this.x) + " y ") + this.y));
}
public function deactivateMe(){
this.x = 0;
this.y = 0;
active = false;
this.alpha = 0;
}
function frame10(){
stop();
}
public function moveMe(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:uint;
if (!active){
return;
};
this.x = (this.x + dx);
this.y = (this.y + dy);
_local2 = JMath.getHyp(0, 0, dx, dy);
_local3 = JMath.getAngle(0, 0, dx, dy);
dy = (dy + grav);
switch (parType){
case 1:
if (grav != 0){
if (_local2 < 1){
_local2 = 1;
};
if (_local2 > 5){
_local2 = 5;
};
this.scaleY = _local2;
this.rotation = _local3;
if (this.y > ground){
this.y = ground;
this.scaleY = 1;
this.scaleX = 3;
this.rotation = (grav = (dx = (dy = 0)));
};
};
break;
case 2:
this.rotation = (this.rotation + (dx * 5));
if (this.y > ground){
this.y = ground;
dx = (dx * 0.5);
dy = (-(dy) / 2);
if (Math.abs(dy) < 1){
dy = (grav = 0);
};
};
break;
case 6:
this.rotation = (this.rotation + (dx * 10));
if (this.y > ground){
this.y = ground;
dx = (dx * 0.5);
dy = (-(dy) / 2);
if (Math.abs(dy) < 1){
dy = (grav = 0);
};
};
break;
case 9:
hitTimer = 100;
if (((Main.instance.goalScored) && ((this.body.currentFrame < 20)))){
trace("gawn");
this.body.gotoAndPlay("scored");
SoundManager.playSound("sndExplode2");
while (_local4 < 3) {
Main.instance.makeParticles(0, 0, ((this.y + JMath.getRand(30)) - 15), ((this.x + JMath.getRand(30)) - 15), 5, 0, 0);
_local4++;
};
Main.instance.shakeTimer = 20;
};
break;
case 12:
trace(("this.Y" + this.y));
break;
};
hitTimer = (hitTimer - 1);
if (hitTimer < 20){
this.alpha = (hitTimer / 20);
};
if (hitTimer == 0){
deactivateMe();
};
}
function frame14(){
stop();
}
function frame12(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame13(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame15(){
stop();
}
function frame8(){
stop();
}
public function hitMe(_arg1:Event){
var _local2:*;
var _local3:*;
if ((hitTimer < 1)){
hitTimer = 100;
_local2 = JMath.getAngle(MovieClip(parent).myPlayer.x, (MovieClip(parent).myPlayer.y - 70), this.x, this.y);
_local3 = (20 - Math.abs((this.y - (MovieClip(parent).myPlayer.y - 70))));
if (_local3 < 0){
_local3 = 0;
};
dx = ((10 + _local3) * JMath.getX(_local2));
dy = ((10 + _local3) * JMath.getY(_local2));
};
}
function frame11(){
stop();
}
function frame2(){
stop();
}
public function deleteMe(){
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
}
}//package
Section 50
//Player (Player)
package {
import flash.events.*;
import fl.motion.*;
import flash.display.*;
import flash.utils.*;
public class Player extends MovieClip {
public var rArmUpper2:MovieClip;
public var kickUpper:int;
public var rLegUpper1:MovieClip;
public var rLegUpper2:MovieClip;
public var rFoot1:MovieClip;
public var rLowerLeg1:MovieClip;
public var rLowerLeg2:MovieClip;
public var shad:MovieClip;
public var rHand1:MovieClip;
public var kickLower:int;
public var rFoot2:MovieClip;
private var team:int;
private var lastTime:int;
public var KICKED:int;
public var rHead:MovieClip;
public var rPants:MovieClip;
public var rLine:MovieClip;
public var rHand2:MovieClip;
public var rTorso:MovieClip;
public var rLowerArm2:MovieClip;
public var rLowerArm1:MovieClip;
public var alive:Boolean;
public var footNaked:Boolean;
public var rArmUpper1:MovieClip;
public function Player(_arg1:Number, _arg2:Number, _arg3:int){
addFrameScript(8, frame9, 25, frame26, 51, frame52, 80, frame81, 100, frame101, 130, frame131, 150, frame151, 163, frame164);
this.y = _arg1;
this.x = _arg2;
this.scaleX = 0.7;
this.scaleY = 0.7;
KICKED = 0;
kickUpper = 80;
kickLower = 160;
alive = true;
footNaked = false;
lastTime = getTimer();
setMyKit(Main.instance.myTeam, JMath.getRand(3), "0xFF9966");
this.rHead.gotoAndStop("human");
}
function frame151(){
gotoAndPlay("ambient");
}
function frame164(){
gotoAndPlay("win");
}
function frame81(){
gotoAndPlay("ambient");
}
public function setMyKit(_arg1, _arg2, _arg3){
var _local4:*;
var _local5:*;
var _local6:*;
_local4 = this;
_local5 = _arg1;
_local6 = _arg2;
tintColor(this.rLowerArm2.skin, _arg3, 1);
tintColor(this.rLowerArm1.skin, _arg3, 1);
tintColor(this.rHand1.skin, _arg3, 1);
tintColor(this.rHand2.skin, _arg3, 1);
tintColor(this.rLegUpper1.skin, _arg3, 1);
tintColor(this.rLegUpper2.skin, _arg3, 1);
tintColor(this.rHead.rHeadType.skin, _arg3, 1);
_local4.rTorso.gotoAndStop(_local5);
_local4.rHead.rHair.gotoAndStop(_local6);
_local4.rArmUpper1.gotoAndStop(_local5);
_local4.rArmUpper2.gotoAndStop(_local5);
_local4.rLowerArm1.gotoAndStop(_local5);
_local4.rLowerArm2.gotoAndStop(_local5);
_local4.rHand1.gotoAndStop(_local5);
_local4.rHand2.gotoAndStop(_local5);
_local4.rPants.gotoAndStop(_local5);
_local4.rLegUpper1.gotoAndStop(_local5);
_local4.rLegUpper2.gotoAndStop(_local5);
_local4.rLowerLeg1.gotoAndStop(_local5);
_local4.rLowerLeg2.gotoAndStop(_local5);
_local4.rFoot1.gotoAndStop(_local5);
_local4.rFoot2.gotoAndStop(_local5);
}
public function hitPlayer(_arg1:Event){
trace("VAG");
}
function frame26(){
gotoAndPlay("ambient");
}
function frame9(){
gotoAndPlay("ambient");
}
public function killMe(){
this.gotoAndPlay("dead");
alive = false;
}
public function TrigHit(){
MovieClip(parent).removeTrig(this);
}
function frame101(){
gotoAndPlay("ambient");
}
function tintColor(_arg1:Sprite, _arg2:Number, _arg3:Number):void{
var _local4:Color;
_local4 = new Color();
_local4.setTint(_arg2, _arg3);
_arg1.transform.colorTransform = _local4;
}
function frame131(){
stop();
}
public function nakedFoot(){
this.rFoot2.gotoAndStop("naked");
footNaked = true;
}
public function update(){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = stage.mouseX;
_local2 = stage.mouseY;
if (_local1 > 200){
_local1 = 200;
};
if (alive){
this.x = (this.x + ((_local1 - this.x) / 10));
_local3 = (80 + ((_local2 - (Main.instance.myPlayer.y - 60)) / 2));
if (_local3 < 20){
_local3 = 20;
};
if (_local3 > 100){
_local3 = 100;
};
this.rLine.rotation = _local3;
KICKED = 0;
if ((((Main.instance.clicked == 1)) && ((this.currentFrame < 11)))){
KICKED = 1;
kickUpper = 80;
kickLower = 160;
if (_local3 < 70){
KICKED = 2;
kickUpper = 40;
kickLower = 120;
};
kickUpper = 40;
kickLower = 180;
this.gotoAndPlay(("kick" + KICKED));
};
} else {
if (((Main.instance.gameTimer / 10) == Math.floor((Main.instance.gameTimer / 10)))){
Main.instance.makeParticles((JMath.getRand(6) + 2), 0, (this.y - 25), this.x, 1, 0.3, JMath.getRand(2));
};
};
}
public function deleteMe(){
parent.removeChild(this);
}
function frame52(){
gotoAndPlay("run");
}
}
}//package
Section 51
//Ref (Ref)
package {
import flash.display.*;
public dynamic class Ref extends MovieClip {
public function Ref(){
addFrameScript(0, frame1, 67, frame68, 132, frame133);
}
function frame1(){
stop();
}
function frame133(){
gotoAndStop(1);
}
function frame68(){
gotoAndStop(1);
}
}
}//package
Section 52
//s_bounce (s_bounce)
package {
import flash.media.*;
public dynamic class s_bounce extends Sound {
}
}//package
Section 53
//s_crowd (s_crowd)
package {
import flash.media.*;
public dynamic class s_crowd extends Sound {
}
}//package
Section 54
//s_die (s_die)
package {
import flash.media.*;
public dynamic class s_die extends Sound {
}
}//package
Section 55
//s_explode1 (s_explode1)
package {
import flash.media.*;
public dynamic class s_explode1 extends Sound {
}
}//package
Section 56
//s_explode2 (s_explode2)
package {
import flash.media.*;
public dynamic class s_explode2 extends Sound {
}
}//package
Section 57
//s_flames (s_flames)
package {
import flash.media.*;
public dynamic class s_flames extends Sound {
}
}//package
Section 58
//s_gong (s_gong)
package {
import flash.media.*;
public dynamic class s_gong extends Sound {
}
}//package
Section 59
//s_hitMetal (s_hitMetal)
package {
import flash.media.*;
public dynamic class s_hitMetal extends Sound {
}
}//package
Section 60
//s_hitSplat (s_hitSplat)
package {
import flash.media.*;
public dynamic class s_hitSplat extends Sound {
}
}//package
Section 61
//s_hitZom (s_hitZom)
package {
import flash.media.*;
public dynamic class s_hitZom extends Sound {
}
}//package
Section 62
//s_kick (s_kick)
package {
import flash.media.*;
public dynamic class s_kick extends Sound {
}
}//package
Section 63
//s_kick2 (s_kick2)
package {
import flash.media.*;
public dynamic class s_kick2 extends Sound {
}
}//package
Section 64
//s_lucky (s_lucky)
package {
import flash.media.*;
public dynamic class s_lucky extends Sound {
}
}//package
Section 65
//s_music1 (s_music1)
package {
import flash.media.*;
public dynamic class s_music1 extends Sound {
}
}//package
Section 66
//s_music2 (s_music2)
package {
import flash.media.*;
public dynamic class s_music2 extends Sound {
}
}//package
Section 67
//s_pop (s_pop)
package {
import flash.media.*;
public dynamic class s_pop extends Sound {
}
}//package
Section 68
//s_puke1 (s_puke1)
package {
import flash.media.*;
public dynamic class s_puke1 extends Sound {
}
}//package
Section 69
//s_whistle (s_whistle)
package {
import flash.media.*;
public dynamic class s_whistle extends Sound {
}
}//package
Section 70
//s_zombie1 (s_zombie1)
package {
import flash.media.*;
public dynamic class s_zombie1 extends Sound {
}
}//package
Section 71
//s_zombie2 (s_zombie2)
package {
import flash.media.*;
public dynamic class s_zombie2 extends Sound {
}
}//package
Section 72
//s_zombie3 (s_zombie3)
package {
import flash.media.*;
public dynamic class s_zombie3 extends Sound {
}
}//package
Section 73
//SoundManager (SoundManager)
package {
import flash.events.*;
import flash.media.*;
public class SoundManager {
private var beep_transform:SoundTransform;
public static var sndExplode2:s_explode2 = new s_explode2();
public static var sndKick2:s_kick2 = new s_kick2();
public static var sndCrowd:s_crowd = new s_crowd();
public static var sndPuke1:s_puke1 = new s_puke1();
public static var sndHitZom:s_hitZom = new s_hitZom();
public static var sndKick:s_kick = new s_kick();
public static var sndBounce:s_bounce = new s_bounce();
public static var sndFlames:s_flames = new s_flames();
public static var sndHitSplat:s_hitSplat = new s_hitSplat();
public static var sndZombie1:s_zombie1 = new s_zombie1();
public static var sndZombie2:s_zombie2 = new s_zombie2();
public static var sndZombie3:s_zombie3 = new s_zombie3();
public static var musicChannel;
public static var sndDie:s_die = new s_die();
public static var sndPop:s_pop = new s_pop();
public static var sndGong:s_gong = new s_gong();
public static var sndMusic1:s_music1 = new s_music1();
public static var sndMusic2:s_music2 = new s_music2();
public static var sndWhistle:s_whistle = new s_whistle();
public static var sndExplode1:s_explode1 = new s_explode1();
public static var sndHitMetal:s_hitMetal = new s_hitMetal();
public static var sndLucky:s_lucky = new s_lucky();
public function SoundManager(){
beep_transform = new SoundTransform(0.5);
super();
}
public static function increaseSound(){
var _local1:SoundTransform;
_local1 = new SoundTransform(1);
musicChannel.soundTransform = _local1;
}
public static function initStart(){
}
public static function wink(){
trace("winked");
}
public static function reduceSound(){
var _local1:SoundTransform;
_local1 = new SoundTransform(0);
musicChannel.soundTransform = _local1;
}
public static function stopSound(_arg1){
musicChannel.stop();
}
public static function playSound(_arg1){
switch (_arg1){
case "sndMusic1":
musicChannel = sndMusic1.play(0, 1000);
break;
case "sndMusic2":
musicChannel = sndMusic2.play(0, 1000);
break;
case "sndPuke1":
sndPuke1.play();
break;
case "sndBounce":
sndBounce.play();
break;
case "sndLucky":
sndLucky.play();
break;
case "sndCrowd":
sndCrowd.play();
break;
case "sndGong":
sndGong.play();
break;
case "sndHitZom":
sndHitZom.play();
break;
case "sndHitMetal":
sndHitMetal.play();
break;
case "sndHitSplat":
sndHitSplat.play();
break;
case "sndKick":
sndKick.play();
break;
case "sndKick2":
sndKick2.play();
break;
case "sndZombie1":
sndZombie1.play();
break;
case "sndZombie2":
sndZombie2.play();
break;
case "sndZombie3":
sndZombie3.play();
break;
case "sndZombie4":
sndDie.play();
break;
case "sndWhistle":
sndWhistle.play();
break;
case "sndExplode1":
sndExplode1.play();
break;
case "sndExplode2":
sndExplode2.play();
break;
case "sndPop":
sndPop.play();
break;
case "sndFlames":
sndFlames.play();
break;
case "sndDie":
sndDie.play();
break;
};
}
}
}//package
Section 74
//teamScreen (teamScreen)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public class teamScreen extends MovieClip {
public var againBut:SimpleButton;
public var butOppTeam:SimpleButton;
public var butZombie:SimpleButton;
public var butMyTeam:SimpleButton;
private var myTeam:int;
public var myTeamNum:TextField;
private var oppZom:MovieClip;
public var endMessage:TextField;
private var oppTeam:int;
private var myZom:MovieClip;
public var oppTeamNum:TextField;
public function teamScreen(_arg1){
var _local2:Zombie;
var _local3:Zombie;
super();
addFrameScript(34, frame35);
addEventListener(Event.ENTER_FRAME, moveMe);
this.againBut.addEventListener(MouseEvent.CLICK, playAgain);
this.butZombie.addEventListener(MouseEvent.CLICK, zombLink);
myTeam = 1;
oppTeam = 2;
this.butMyTeam.addEventListener(MouseEvent.CLICK, hitMyTeam);
this.butOppTeam.addEventListener(MouseEvent.CLICK, hitOppTeam);
this.endMessage.text = String("PICK YOUR TEAM HERE");
_local2 = new Zombie(0, 500, 200, 1000);
addChild(_local2);
oppZom = _local2;
_local3 = new Zombie(0, 300, 200, 1001);
addChild(_local3);
myZom = _local3;
}
public function moveMe(_arg1:Event){
this.y = Main.instance.myGUI.y;
this.myTeamNum.text = String(Arrays.teamDATA[Main.instance.myTeam]);
this.oppTeamNum.text = String(("Undead " + Arrays.teamDATA[Main.instance.oppTeam]));
}
public function hitOppTeam(_arg1:MouseEvent){
var _local2:Zombie;
Main.instance.oppTeam++;
if (Main.instance.oppTeam > 20){
Main.instance.oppTeam = 1;
};
oppZom.removeMeGO();
_local2 = new Zombie(0, 500, 200, 1000);
addChild(_local2);
oppZom = _local2;
}
function frame35(){
stop();
}
public function deleteMe(){
SoundManager.stopSound(null);
SoundManager.playSound("sndMusic2");
myZom.removeMeGO();
oppZom.removeMeGO();
this.againBut.removeEventListener(MouseEvent.CLICK, playAgain);
this.butZombie.removeEventListener(MouseEvent.CLICK, zombLink);
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
public function playAgain(_arg1:MouseEvent){
Main.instance.startGame();
deleteMe();
}
public function hitMyTeam(_arg1:MouseEvent){
var _local2:Zombie;
Main.instance.myTeam++;
if (Main.instance.myTeam > 20){
Main.instance.myTeam = 1;
};
myZom.removeMeGO();
_local2 = new Zombie(0, 500, 200, 1001);
addChild(_local2);
myZom = _local2;
}
public function zombLink(_arg1:MouseEvent){
var url2:String;
var request:URLRequest;
var event = _arg1;
url2 = "http://www.zombieland.co.uk";
request = new URLRequest(url2);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
}
}//package
Section 75
//titleScreen (titleScreen)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public class titleScreen extends MovieClip {
public var againBut:SimpleButton;
public var butZombie:SimpleButton;
public var playerName:TextField;
public var submitBut:SimpleButton;
public var endMessage:TextField;
public function titleScreen(_arg1){
addFrameScript(34, frame35);
addEventListener(Event.ENTER_FRAME, moveMe);
this.submitBut.addEventListener(MouseEvent.CLICK, moreGames);
this.againBut.addEventListener(MouseEvent.CLICK, playAgain);
this.butZombie.addEventListener(MouseEvent.CLICK, zombLink);
this.endMessage.text = String("TITLE SCREEN");
SoundManager.playSound("sndMusic1");
}
public function moveMe(_arg1:Event){
this.y = Main.instance.myGUI.y;
}
public function moreGames(_arg1:MouseEvent){
var url2:String;
var request:URLRequest;
var event = _arg1;
url2 = "http://www.mousebreaker.com";
request = new URLRequest(url2);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
function frame35(){
stop();
}
public function zombLink(_arg1:MouseEvent){
var url2:String;
var request:URLRequest;
var event = _arg1;
url2 = "http://www.zombieland.co.uk";
request = new URLRequest(url2);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
public function playAgain(_arg1:MouseEvent){
SoundManager.playSound("sndHitSplat");
Main.instance.addTeamScreen(1);
deleteMe();
}
public function deleteMe(){
this.submitBut.removeEventListener(MouseEvent.CLICK, moreGames);
this.againBut.removeEventListener(MouseEvent.CLICK, playAgain);
this.butZombie.removeEventListener(MouseEvent.CLICK, zombLink);
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
}
}//package
Section 76
//Zombie (Zombie)
package {
import flash.events.*;
import fl.motion.*;
import flash.display.*;
import flash.utils.*;
public class Zombie extends MovieClip {
private var zomAnim:String;
private var zomSound:String;
private var powerMax:int;
public var rFoot1:MovieClip;
public var rLowerLeg1:MovieClip;
public var rLowerLeg2:MovieClip;
public var rFoot2:MovieClip;
public var rHand1:MovieClip;
public var rHand2:MovieClip;
private var grav:Number;
private var team:int;
private var myGround:Number;
private var lastTime:int;
public var rPants:MovieClip;
private var dx:Number;
private var dy:Number;
public var rTorso:MovieClip;
private var damp:Number;
public var rArmUpper1:MovieClip;
public var rArmUpper2:MovieClip;
private var myTimer:Timer;
private var hitEffect:uint;
public var power:int;
private var active:Boolean;
public var rLegUpper1:MovieClip;
public var rLegUpper2:MovieClip;
private var zomType:Number;
public var shad:MovieClip;
private var odx:Number;
private var ody:Number;
private var headFrame:String;
public var rHead:MovieClip;
private var hitTimer:Number;
public var meter:MovieClip;
public var rLowerArm1:MovieClip;
private var skinColour:String;
public var rLowerArm2:MovieClip;
private var bombTimer:int;
private var dropPoint:uint;
public var blood:MovieClip;
public function Zombie(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:int){
addFrameScript(8, frame9, 25, frame26, 51, frame52, 80, frame81, 100, frame101, 129, frame130, 160, frame161, 207, frame208, 264, frame265, 325, frame326, 347, frame348, 361, frame362, 416, frame417, 424, frame425, 432, frame433, 452, frame453, 484, frame485);
deactivateMe();
if (_arg4 == 1000){
init(0, 600, 130, 1000);
};
if (_arg4 == 1001){
init(0, 400, 130, 1001);
};
addEventListener(Event.ENTER_FRAME, moveMe);
}
function frame161(){
gotoAndPlay("reWalk");
}
public function setMyKit(_arg1, _arg2, _arg3){
var _local4:*;
var _local5:*;
var _local6:*;
_local4 = this;
_local5 = _arg1;
_local6 = _arg2;
tintColor(this.rLowerArm2.skin, _arg3, 1);
tintColor(this.rLowerArm1.skin, _arg3, 1);
tintColor(this.rHand1.skin, _arg3, 1);
tintColor(this.rHand2.skin, _arg3, 1);
tintColor(this.rLegUpper1.skin, _arg3, 1);
tintColor(this.rLegUpper2.skin, _arg3, 1);
tintColor(this.rHead.rHeadType.skin, _arg3, 1);
_local4.rHead.gotoAndStop(2);
_local4.rTorso.gotoAndStop(_local5);
_local4.rHead.rHair.gotoAndStop(_local6);
_local4.rArmUpper1.gotoAndStop(_local5);
_local4.rArmUpper2.gotoAndStop(_local5);
_local4.rLowerArm1.gotoAndStop(_local5);
_local4.rLowerArm2.gotoAndStop(_local5);
_local4.rHand1.gotoAndStop(_local5);
_local4.rHand2.gotoAndStop(_local5);
_local4.rPants.gotoAndStop(_local5);
_local4.rLegUpper1.gotoAndStop(_local5);
_local4.rLegUpper2.gotoAndStop(_local5);
_local4.rLowerLeg1.gotoAndStop(_local5);
_local4.rLowerLeg2.gotoAndStop(_local5);
_local4.rFoot1.gotoAndStop(_local5);
_local4.rFoot2.gotoAndStop(_local5);
}
function frame26(){
gotoAndPlay("ambient");
}
function frame9(){
gotoAndPlay("ambient");
}
public function getMyHit(){
return (hitTimer);
}
public function hitMe(_arg1:Event, _arg2:int, _arg3:int){
}
public function getMyPower(){
return (power);
}
public function batMe(_arg1:Event){
}
function frame52(){
gotoAndPlay("run");
}
function frame417(){
gotoAndPlay("getUp");
}
function frame425(){
gotoAndPlay("flight");
}
function frame433(){
stop();
}
public function init(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:int){
var _local5:*;
active = true;
this.alpha = 1;
this.visible = true;
zomSound = (1 + JMath.getRand(3));
hitEffect = 0;
dropPoint = 300;
damp = 100;
power = 100;
hitTimer = 0;
bombTimer = 0;
zomType = _arg4;
this.y = _arg3;
this.x = _arg2;
myGround = _arg3;
dx = 0;
dy = 0;
grav = 0;
this.meter.alpha = 0;
this.scaleX = -0.7;
this.scaleY = 0.7;
skinColour = "0x81cded";
headFrame = "regular";
switch (zomType){
case 1:
zomAnim = "zomWalk";
_local5 = Main.instance.oppTeam;
dx = (-0.2 - ((JMath.getRand(10) + (Main.instance.level / 2)) / 10));
dy = 0;
grav = 0;
break;
case 1000:
zomAnim = "zomWalk";
_local5 = Main.instance.oppTeam;
dx = 0;
dy = 0;
grav = 0;
active = false;
break;
case 1001:
zomAnim = "run";
headFrame = "human";
skinColour = "0xFF9966";
_local5 = Main.instance.myTeam;
dx = 0;
dy = 0;
grav = 0;
active = false;
this.scaleX = -(this.scaleX);
break;
case 2:
this.rHead.rHair.visible = false;
power = 50;
zomAnim = "flight";
headFrame = "ballboy";
_local5 = 49;
dx = -0.5;
dy = -5;
grav = 0.5;
this.x = 680;
this.scaleX = -0.5;
this.scaleY = 0.5;
break;
case 3:
this.rHead.rHair.visible = false;
power = 150;
zomAnim = "flight";
headFrame = "wag";
_local5 = 48;
dx = -0.5;
dy = 0;
grav = 0;
this.x = 680;
this.y = 200;
break;
case 4:
zomAnim = "ambient";
headFrame = "spiker";
this.rHead.rHair.visible = false;
_local5 = Main.instance.oppTeam;
dx = 0;
dy = 0;
grav = 0;
this.x = (300 + JMath.getRand(200));
power = 60;
break;
case 5:
zomAnim = "zomWalk";
headFrame = "helmet";
_local5 = Main.instance.oppTeam;
this.x = 680;
dx = -0.5;
dy = 0;
grav = 0;
this.rHead.rHair.visible = false;
power = 300;
break;
case 6:
zomAnim = "zomWalk";
headFrame = "mascot";
_local5 = 47;
this.x = 550;
dx = -0.5;
dy = 0;
grav = 0;
this.rHead.rHair.visible = false;
this.scaleX = -1.2;
this.scaleY = 1.2;
power = 1000;
break;
case 7:
zomAnim = "zomWalk";
_local5 = Main.instance.oppTeam;
dx = (-((JMath.getRand(10) + 1)) / 10);
dy = 0;
grav = 0;
this.x = 420;
zomType = 1;
break;
case 8:
zomAnim = "zomWalk";
headFrame = "johnTerry";
skinColour = "0x999966";
this.rHead.rHair.visible = false;
_local5 = 2;
dx = -0.5;
dy = 0;
grav = 0;
this.x = 680;
zomType = 1;
zomSound = (4 + JMath.getRand(1));
break;
case 9:
power = 100;
zomAnim = "run";
headFrame = "fan";
this.rHead.rHair.visible = false;
_local5 = Main.instance.oppTeam;
dx = (-1.5 - (JMath.getRand(10) / 10));
dy = 0;
grav = 0;
this.x = 680;
zomType = 1;
break;
case 50:
zomAnim = "keeperAmb";
headFrame = "keeper";
_local5 = 50;
this.rHead.rHair.visible = false;
this.scaleX = -((0.85 + (0.01 * Main.instance.level)));
this.scaleY = (0.85 + (0.01 * Main.instance.level));
power = (200 + (Main.instance.level * 30));
break;
case 51:
zomAnim = "zomWalk";
_local5 = 50;
this.scaleX = -0.1;
this.scaleY = 0.1;
this.alpha = 1;
this.visible = false;
power = 200000000;
break;
case 52:
_local5 = 50;
zomAnim = "zomWalk";
headFrame = "keeper";
this.alpha = 1;
this.visible = false;
this.scaleX = -0.1;
this.scaleY = 1;
power = 200000000;
break;
};
setMyKit(_local5, JMath.getRand(3), skinColour);
this.gotoAndPlay(zomAnim);
this.rHead.gotoAndStop(headFrame);
this.rHead.rHair.gotoAndStop(JMath.getRand(10));
if (zomType == 4){
this.rFoot1.gotoAndStop("spiker");
this.rFoot2.gotoAndStop("spiker");
this.rPants.gotoAndStop("spiker");
};
if (headFrame == "fan"){
this.rFoot1.gotoAndStop("fan");
this.rFoot2.gotoAndStop("fan");
this.rHand1.gotoAndStop("fan");
this.rPants.gotoAndStop("fan");
this.rLegUpper1.gotoAndStop("fan");
this.rLegUpper2.gotoAndStop("fan");
this.rLowerLeg1.gotoAndStop("fan");
this.rLowerLeg2.gotoAndStop("fan");
this.rLegUpper1.skin.visible = (this.rLegUpper2.skin.visible = false);
};
odx = dx;
ody = dy;
powerMax = power;
if ((((this.x < 560)) && ((zomType < 10)))){
dx = 0;
this.gotoAndPlay("emerge");
hitTimer = 100;
Main.instance.makeParticles(0, 0, this.y, this.x, 12, 0, 0);
};
this.blood.gotoAndStop(1);
SoundManager.playSound(("sndZombie" + zomSound));
}
public function ballHit(_arg1:int, _arg2:Number, _arg3:Number, _arg4:uint){
var _local5:MovieClip;
var _local6:Boolean;
var _local7:int;
var _local8:uint;
var _local9:*;
damp = 99;
if (hitTimer < 1){
if ((((zomType == 50)) && (Main.instance.goalOpen))){
dx = (-0.5 - (Main.instance.level / 12));
};
odx = dx;
ody = dy;
};
_local5 = this;
_local6 = false;
_local7 = (Math.abs((_local5.y - _arg1)) * (1 / this.scaleY));
_local8 = JMath.getHyp(0, 0, _arg2, _arg3);
switch (zomType){
case 1:
hitTimer = 50;
dx = (_arg2 / 5);
_local6 = true;
_local9 = "hitMid";
if (_local7 > 100){
_local9 = "hitHigh";
};
if (_local7 < 30){
_local9 = "hitLow";
dx = 0;
};
break;
case 2:
_local6 = true;
hitTimer = 10;
_local9 = "flightHit";
dx = (_arg2 / 5);
dy = (_arg3 / 5);
break;
case 3:
_local6 = true;
hitTimer = 10;
_local9 = "flightHit";
dx = (_arg2 / 5);
dy = (_arg3 / 5);
break;
case 4:
trace(("hitHeight zom" + _local7));
hitTimer = 50;
dx = (_arg2 / 20);
_local9 = "hitMid";
if (_local7 > 100){
_local9 = "hitHigh";
};
if (_local7 < 30){
_local9 = "hitLow";
dx = 0;
};
if ((((_local7 > 40)) && ((_local7 < 80)))){
zomAnim = "zomWalk";
odx = -0.5;
_local6 = true;
} else {
_local8 = 0;
odx = -0.3;
zomAnim = "zomWalk";
};
break;
case 5:
_local9 = "hitMid";
hitTimer = 50;
dx = (_arg2 / 5);
_local6 = true;
break;
case 6:
_local9 = "hitMid";
hitTimer = 50;
dx = (_arg2 / 5);
_local6 = true;
break;
case 50:
if (Main.instance.goalOpen){
_local6 = true;
_local9 = "hitMid";
if (_local7 > 100){
_local9 = "hitHigh";
};
if (_local7 < 30){
_local9 = "hitLow";
dx = 0;
};
hitTimer = 50;
};
if (!Main.instance.goalOpen){
Main.instance.myIngameScreen.showMessage((("SAFE DEAD HANDS !" + "\n") + "Keeper SAVES"));
_local9 = "keeperSave";
hitTimer = 30;
};
break;
case 52:
Main.instance.myIngameScreen.showMessage(((("HE SHOOTS ! HE SCORES !" + "\n") + "GOAL BONUS x2 = ") + (Main.instance.scoreBonus * 2)));
Main.instance.incScore(Main.instance.scoreBonus);
Main.instance.scoreBonus = (Main.instance.scoreBonus * 2);
SoundManager.playSound("sndCrowd");
if (Main.instance.keeperDead){
myTimer = new Timer(2500, 1);
myTimer.addEventListener(TimerEvent.TIMER, runOnce);
myTimer.start();
Main.instance.myIngameScreen.showMessage((("The Undead think it's all over.." + "\n") + "IT IS NOW !"));
Main.instance.myPlayer.gotoAndPlay("win");
Main.instance.myBowler.gotoAndPlay("win");
Main.instance.myBowler.scaleX = -(Main.instance.myBowler.scaleX);
Main.instance.myBowler.dx = 0;
Main.instance.goalScored = true;
};
break;
};
this.gotoAndPlay(_local9);
if (_local6){
SoundManager.playSound(("sndZombie" + zomSound));
SoundManager.playSound("sndHitZom");
power = (power - (_local8 * 3));
switch (_arg4){
case 1:
if ((((_local7 > 100)) && ((_arg2 > 20)))){
if (zomType == 1){
this.rHead.visible = false;
power = (power - 1000);
Main.instance.makeParticles(this.scaleY, 15, (this.y - _local7), this.x, 11, (zomType * 10), 0);
_arg2 = 1;
_arg3 = -10;
_local7 = 110;
Main.instance.myIngameScreen.showMessage((("Headshot Bonus" + "\n") + "YELLOW CARD"));
Main.instance.incScore(10);
Main.instance.headShots = (Main.instance.headShots + 1);
Main.instance.myRef.gotoAndPlay("yellow");
SoundManager.playSound("sndHitSplat");
};
if (zomType == 5){
zomType = 1;
this.rHead.gotoAndStop(2);
Main.instance.makeParticles(3, 0, (this.y - _local7), this.x, 6, 0.5, 2);
power = (power * 0.66);
};
};
break;
case 2:
if ((((_local7 > 100)) && ((_arg2 > 4)))){
if (zomType == 1){
this.rHead.visible = false;
power = (power - 1000);
Main.instance.makeParticles(this.scaleY, 15, (this.y - _local7), this.x, 11, (zomType * 10), 0);
_arg2 = 1;
_arg3 = -10;
_local7 = 110;
Main.instance.myIngameScreen.showMessage((("Headshot Bonus" + "\n") + "YELLOW CARD"));
Main.instance.incScore(10);
Main.instance.headShots = (Main.instance.headShots + 1);
Main.instance.myRef.gotoAndPlay("yellow");
SoundManager.playSound("sndHitSplat");
};
if (zomType == 5){
zomType = 1;
this.rHead.gotoAndStop(2);
Main.instance.makeParticles(3, 0, (this.y - _local7), this.x, 6, 0.5, 2);
power = (power * 0.66);
};
};
break;
case 3:
bombTimer = 199;
break;
case 4:
bombTimer = 50;
SoundManager.playSound("sndFlames");
power = (power + (_local8 * 3));
tintColor(this, 0x333333, 0.35);
Main.instance.makeParticles(0, 0, (this.y - _local7), this.x, 5, 0.3, 0);
hitEffect = 0;
break;
case 5:
power = (power + (_local8 * 3));
hitTimer = 400;
tintColor(this, 0xFFFF, 0.35);
hitEffect = 1;
this.gotoAndStop(this.currentFrame);
Main.instance.makeParticles(0, 0, (this.y - _local7), this.x, 14, 0.3, 0);
break;
case 6:
bombTimer = 299;
break;
};
this.meter.alpha = 2;
Main.instance.makeParticles((JMath.getHyp(0, 0, _arg2, _arg3) / 4), JMath.getAngle(0, 0, _arg2, _arg3), (this.y - _local7), this.x, 1, 0.3, (_local8 / 5));
if (power < 1){
damp = 100;
};
this.blood.y = -(_local7);
this.blood.gotoAndPlay(2);
};
}
function frame81(){
gotoAndPlay("ambient");
}
function frame208(){
gotoAndPlay("reWalk");
}
function frame326(){
stop();
}
public function deactivateMe(){
this.x = 0;
this.y = -1000;
active = false;
this.visible = false;
}
public function removeMeGO(){
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
function frame453(){
gotoAndPlay("flight");
}
public function moveMe(_arg1:Event){
if (!active){
return;
};
if (bombTimer > 0){
checkBombs();
};
if (this.meter.alpha > 0){
this.meter.alpha = (this.meter.alpha - 0.05);
this.meter.meterClip.meterLine.width = (50 * (power / powerMax));
};
if ((((((zomType == 3)) && ((hitTimer < 1)))) && ((power > 0)))){
if (this.x < dropPoint){
grav = 2;
dy = (dy + grav);
} else {
dy = (Math.sin((this.x / 4)) * 6);
};
};
if (hitTimer < 800){
this.x = (this.x + (dx * (damp / 100)));
this.y = (this.y + (dy * (damp / 100)));
dy = (dy + grav);
if (Main.instance.myPlayer.KICKED != 0){
if (((((this.x - Main.instance.myPlayer.x) < 50)) && (!(Main.instance.myPlayer.footNaked)))){
SoundManager.playSound("sndHitSplat");
Main.instance.myIngameScreen.showMessage((("RIGHT IN THE BALLS !" + "\n") + ""));
Main.instance.myPlayer.nakedFoot();
ballHit((this.y - 100), 20, -10, 1);
};
};
if (damp != 100){
damp = (damp * 0.75);
};
if (this.y > Main.instance.myPlayer.y){
if (power < 1){
trace("hit the fricking DEACK");
this.y = Main.instance.myPlayer.y;
dy = (dx = (grav = 0));
this.gotoAndPlay("die");
hitTimer = 1100;
if (headFrame == "johnTerry"){
Main.instance.myIngameScreen.showMessage((("John Terry is CRITICAL !" + "\n") + "-100 points"));
Main.instance.incScore(-100);
};
if (zomType == 50){
Main.instance.myIngameScreen.showMessage((("KEEPER is DOWN" + "\n") + "Let's BLOW THIS JOINT KID !"));
Main.instance.keeperDead = true;
Main.instance.makeParticles(0, 0, 300, 610, 9, 0, 0);
};
};
if (power > 1){
if (this.x > dropPoint){
this.y = Main.instance.myPlayer.y;
dy = -10;
this.gotoAndPlay("flightBounce");
} else {
this.y = Main.instance.myPlayer.y;
grav = (dy = 0);
dx = -2;
zomAnim = "run";
this.gotoAndPlay("run");
zomType = 1;
};
};
};
if ((((((((this.x < (Main.instance.myPlayer.x + 15))) && (!((headFrame == "johnTerry"))))) && ((Main.instance.myPlayer.alive == true)))) && ((this.y > (Main.instance.myPlayer.y - 5))))){
Main.instance.myPlayer.killMe();
Main.instance.addGameOverScreen(1);
this.y = Main.instance.myPlayer.y;
SoundManager.playSound("sndDie");
SoundManager.playSound(("sndZombie" + zomSound));
this.gotoAndPlay("eat");
dx = 0;
};
if (((((Main.instance.goalOpen) && ((zomType == 50)))) && ((zomAnim == "keeperAmb")))){
trace("HERE HE COME");
SoundManager.playSound("sndGong");
dx = (-0.5 - (Main.instance.level / 12));
this.y = Main.instance.myPlayer.y;
myGround = this.y;
zomAnim = "zomWalk";
this.gotoAndPlay(zomAnim);
};
if (power < 1){
dx = 0;
grav = 3;
damp = 100;
};
};
if ((((hitTimer > 900)) && ((hitTimer < 1000)))){
this.alpha = (Math.abs((hitTimer - 900)) / 100);
if (hitTimer == 901){
deactivateMe();
Main.instance.removeZombie(this);
Main.instance.incScore(10);
};
};
if (this.x < -100){
deactivateMe();
Main.instance.removeZombie(this);
};
if (hitTimer == 1){
trace("hitTimer==1");
damp = 100;
if (power > 0){
dx = odx;
dy = ody;
if (hitEffect == 1){
power = (power - 50);
tintColor(this, 0xFFFF, 0);
this.gotoAndPlay(zomAnim);
Main.instance.makeParticles(3, 0, (this.y - 50), this.x, 13, 0.3, 3);
};
};
if ((((zomAnim == "zomWalk")) && ((zomType == 4)))){
this.gotoAndPlay(zomAnim);
};
if (zomAnim != "zomWalk"){
this.gotoAndPlay(zomAnim);
};
};
hitTimer = (hitTimer - 1);
this.shad.y = ((myGround - this.y) * (1 / this.scaleY));
}
public function removeMe(){
removeEventListener(Event.ENTER_FRAME, moveMe);
MovieClip(parent).removeZombie(this);
parent.removeChild(this);
}
function tintColor(_arg1:Sprite, _arg2:Number, _arg3:Number):void{
var _local4:Color;
_local4 = new Color();
_local4.setTint(_arg2, _arg3);
_arg1.transform.colorTransform = _local4;
}
function frame101(){
gotoAndPlay("ambient");
}
function frame348(){
gotoAndPlay("keeperAmb");
}
function frame362(){
gotoAndPlay("keeperAmb");
}
public function getType(){
return (zomType);
}
function runOnce(_arg1:TimerEvent):void{
myTimer.removeEventListener(TimerEvent.TIMER, runOnce);
if (Main.instance.level < Main.instance.totalLevels){
Main.instance.addLevelUpScreen();
};
if (Main.instance.level == Main.instance.totalLevels){
Main.instance.gameWon = true;
Main.instance.addGameOverScreen(2);
};
}
function frame485(){
gotoAndPlay("eatLoop");
}
function frame130(){
gotoAndPlay("zomWalk");
}
function frame265(){
gotoAndPlay("reWalk");
}
public function checkBombs(){
var _local1:*;
var _local2:uint;
bombTimer = (bombTimer + 1);
_local1 = (this.y + (this.blood.y * this.scaleY));
if (bombTimer == 30){
power = (power - 50);
bombTimer = 0;
};
if ((((bombTimer > 49)) && ((bombTimer < 150)))){
power = (power - 1);
this.meter.alpha = 2;
if (((!(Main.instance.keeperDead)) && (((Main.instance.gameTimer / 5) == Math.floor((Main.instance.gameTimer / 5)))))){
Main.instance.makeParticles(0, 0, (this.y - JMath.getRand((this.height / 2))), ((this.x + JMath.getRand(20)) - 10), 15, 0, 0);
};
if (bombTimer == 100){
bombTimer = 0;
tintColor(this, 0xFFFF, 0);
};
};
if (bombTimer == 200){
SoundManager.playSound("sndExplode1");
power = (power - 90);
bombTimer = 0;
Main.instance.makeParticles(0, 0, _local1, this.x, 5, 0, 0);
Main.instance.shakeTimer = 5;
if ((((this.blood.y < -90)) && ((power < 1)))){
this.rHead.visible = false;
Main.instance.myIngameScreen.showMessage((("XPLOSIVE Headshot Bonus" + "\n") + "RED CARD !"));
Main.instance.incScore(20);
Main.instance.headShots = (Main.instance.headShots + 1);
Main.instance.myRef.gotoAndPlay("red");
SoundManager.playSound("sndHitSplat");
};
};
if (bombTimer == 300){
SoundManager.playSound("sndExplode2");
power = (power - 200);
bombTimer = 0;
while (_local2 < 3) {
Main.instance.makeParticles(0, 0, ((_local1 + JMath.getRand(30)) - 15), ((this.x + JMath.getRand(30)) - 15), 5, 0, 0);
_local2++;
};
Main.instance.shakeTimer = 20;
if ((((power < 1)) && ((zomType < 4)))){
Main.instance.makeParticles(3, 0, (this.y - 50), this.x, 2, 0.3, 3);
this.visible = false;
Main.instance.myIngameScreen.showMessage((("Full Body Xplosion" + "\n") + "RED CARD !"));
Main.instance.incScore(30);
Main.instance.myRef.gotoAndPlay("red");
SoundManager.playSound("sndHitSplat");
};
};
}
}
}//package