Section 1
//bubText_13 (SlapperazziDist_fla.bubText_13)
package SlapperazziDist_fla {
import flash.display.*;
import flash.text.*;
public dynamic class bubText_13 extends MovieClip {
public var comm:TextField;
}
}//package SlapperazziDist_fla
Section 2
//eyes_72 (SlapperazziDist_fla.eyes_72)
package SlapperazziDist_fla {
import flash.display.*;
public dynamic class eyes_72 extends MovieClip {
public function eyes_72(){
addFrameScript(31, frame32);
}
function frame32(){
gotoAndPlay(1);
}
}
}//package SlapperazziDist_fla
Section 3
//GUI_slapResult_51 (SlapperazziDist_fla.GUI_slapResult_51)
package SlapperazziDist_fla {
import flash.display.*;
import flash.text.*;
public dynamic class GUI_slapResult_51 extends MovieClip {
public var slapDist:TextField;
public var slapResult:TextField;
}
}//package SlapperazziDist_fla
Section 4
//guiCelebBubShardClip_7 (SlapperazziDist_fla.guiCelebBubShardClip_7)
package SlapperazziDist_fla {
import flash.display.*;
public dynamic class guiCelebBubShardClip_7 extends MovieClip {
public function guiCelebBubShardClip_7(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package SlapperazziDist_fla
Section 5
//guiFlash_55 (SlapperazziDist_fla.guiFlash_55)
package SlapperazziDist_fla {
import flash.display.*;
public dynamic class guiFlash_55 extends MovieClip {
public function guiFlash_55(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SlapperazziDist_fla
Section 6
//guiPickerName1_9 (SlapperazziDist_fla.guiPickerName1_9)
package SlapperazziDist_fla {
import flash.display.*;
import flash.text.*;
public dynamic class guiPickerName1_9 extends MovieClip {
public var cName:TextField;
}
}//package SlapperazziDist_fla
Section 7
//guiPickerText_10 (SlapperazziDist_fla.guiPickerText_10)
package SlapperazziDist_fla {
import flash.display.*;
import flash.text.*;
public dynamic class guiPickerText_10 extends MovieClip {
public var factText:TextField;
}
}//package SlapperazziDist_fla
Section 8
//guiRating_46 (SlapperazziDist_fla.guiRating_46)
package SlapperazziDist_fla {
import flash.display.*;
import flash.text.*;
public dynamic class guiRating_46 extends MovieClip {
public var star0:MovieClip;
public var star1:MovieClip;
public var star2:MovieClip;
public var hitBox:MovieClip;
public var score:TextField;
public var celebList:TextField;
public var slapsBest:TextField;
public var slapsTotal:TextField;
}
}//package SlapperazziDist_fla
Section 9
//guiRatingHitBox_49 (SlapperazziDist_fla.guiRatingHitBox_49)
package SlapperazziDist_fla {
import flash.display.*;
public dynamic class guiRatingHitBox_49 extends MovieClip {
public function guiRatingHitBox_49(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SlapperazziDist_fla
Section 10
//guiStar_47 (SlapperazziDist_fla.guiStar_47)
package SlapperazziDist_fla {
import flash.display.*;
public dynamic class guiStar_47 extends MovieClip {
public function guiStar_47(){
addFrameScript(0, frame1, 15, frame16);
}
function frame16(){
stop();
}
function frame1(){
stop();
}
}
}//package SlapperazziDist_fla
Section 11
//mouse_71 (SlapperazziDist_fla.mouse_71)
package SlapperazziDist_fla {
import flash.display.*;
public dynamic class mouse_71 extends MovieClip {
public function mouse_71(){
addFrameScript(6, frame7);
}
function frame7(){
gotoAndPlay(1);
}
}
}//package SlapperazziDist_fla
Section 12
//mouse_74 (SlapperazziDist_fla.mouse_74)
package SlapperazziDist_fla {
import flash.display.*;
public dynamic class mouse_74 extends MovieClip {
public function mouse_74(){
addFrameScript(35, frame36);
}
function frame36(){
gotoAndPlay(1);
}
}
}//package SlapperazziDist_fla
Section 13
//papFlashEffect_37 (SlapperazziDist_fla.papFlashEffect_37)
package SlapperazziDist_fla {
import flash.display.*;
public dynamic class papFlashEffect_37 extends MovieClip {
public function papFlashEffect_37(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package SlapperazziDist_fla
Section 14
//particleBang_66 (SlapperazziDist_fla.particleBang_66)
package SlapperazziDist_fla {
import flash.display.*;
public dynamic class particleBang_66 extends MovieClip {
public function particleBang_66(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package SlapperazziDist_fla
Section 15
//particleFlesh_62 (SlapperazziDist_fla.particleFlesh_62)
package SlapperazziDist_fla {
import flash.display.*;
public dynamic class particleFlesh_62 extends MovieClip {
public function particleFlesh_62(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package SlapperazziDist_fla
Section 16
//particleSmoke_64 (SlapperazziDist_fla.particleSmoke_64)
package SlapperazziDist_fla {
import flash.display.*;
public dynamic class particleSmoke_64 extends MovieClip {
public function particleSmoke_64(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package SlapperazziDist_fla
Section 17
//particleStar_68 (SlapperazziDist_fla.particleStar_68)
package SlapperazziDist_fla {
import flash.display.*;
import flash.text.*;
public dynamic class particleStar_68 extends MovieClip {
public var power:TextField;
public function particleStar_68(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package SlapperazziDist_fla
Section 18
//particleWood_63 (SlapperazziDist_fla.particleWood_63)
package SlapperazziDist_fla {
import flash.display.*;
public dynamic class particleWood_63 extends MovieClip {
public function particleWood_63(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 9, frame10);
}
function frame10(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package SlapperazziDist_fla
Section 19
//player_head1Clipped_30 (SlapperazziDist_fla.player_head1Clipped_30)
package SlapperazziDist_fla {
import flash.display.*;
public dynamic class player_head1Clipped_30 extends MovieClip {
public function player_head1Clipped_30(){
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, 15, frame16, 16, frame17, 17, frame18, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 39, frame40);
}
function frame10(){
stop();
}
function frame14(){
stop();
}
function frame18(){
stop();
}
function frame12(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame22(){
stop();
}
function frame25(){
stop();
}
function frame13(){
stop();
}
function frame17(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame16(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
function frame15(){
stop();
}
function frame23(){
stop();
}
function frame24(){
stop();
}
function frame28(){
stop();
}
function frame36(){
stop();
}
function frame30(){
stop();
}
function frame31(){
stop();
}
function frame34(){
stop();
}
function frame27(){
stop();
}
function frame11(){
stop();
}
function frame35(){
stop();
}
function frame40(){
stop();
}
function frame29(){
stop();
}
function frame33(){
stop();
}
function frame26(){
stop();
}
function frame32(){
stop();
}
}
}//package SlapperazziDist_fla
Section 20
//playerBody_28 (SlapperazziDist_fla.playerBody_28)
package SlapperazziDist_fla {
import flash.display.*;
public dynamic class playerBody_28 extends MovieClip {
public var torso:MovieClip;
}
}//package SlapperazziDist_fla
Section 21
//playerBodyClip_29 (SlapperazziDist_fla.playerBodyClip_29)
package SlapperazziDist_fla {
import flash.display.*;
public dynamic class playerBodyClip_29 extends MovieClip {
public var head:MovieClip;
public function playerBodyClip_29(){
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, 50, frame51, 51, frame52, 52, frame53, 53, frame54, 54, frame55, 55, frame56, 56, frame57, 57, frame58, 58, frame59, 59, frame60, 60, frame61, 61, frame62);
}
function frame10(){
stop();
}
function frame12(){
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();
}
function frame51(){
stop();
}
function frame52(){
stop();
}
function frame54(){
stop();
}
function frame55(){
stop();
}
function frame56(){
stop();
}
function frame58(){
stop();
}
function frame59(){
stop();
}
function frame53(){
stop();
}
function frame57(){
stop();
}
function frame61(){
stop();
}
function frame62(){
stop();
}
function frame60(){
stop();
}
}
}//package SlapperazziDist_fla
Section 22
//spBub_39 (SlapperazziDist_fla.spBub_39)
package SlapperazziDist_fla {
import flash.display.*;
public dynamic class spBub_39 extends MovieClip {
public var bubText:MovieClip;
public function spBub_39(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SlapperazziDist_fla
Section 23
//spBubSideOn_11 (SlapperazziDist_fla.spBubSideOn_11)
package SlapperazziDist_fla {
import flash.display.*;
public dynamic class spBubSideOn_11 extends MovieClip {
public var bubText:MovieClip;
public function spBubSideOn_11(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SlapperazziDist_fla
Section 24
//Symbol242_73 (SlapperazziDist_fla.Symbol242_73)
package SlapperazziDist_fla {
import flash.display.*;
public dynamic class Symbol242_73 extends MovieClip {
public function Symbol242_73(){
addFrameScript(0, frame1, 22, frame23);
}
function frame1(){
}
function frame23(){
stop();
}
}
}//package SlapperazziDist_fla
Section 25
//Arrays (Arrays)
package {
public class Arrays {
public static const oiDATA:Array = new Array("Hey, over here ", "OI ! OI ", "Alright ", "Just my luck, ");
public static const levelDATA:Array = new Array(1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3);
public static const chatDATA:Array = new Array("blank", "Outta my way loshers !", "EEEEE ! Get awaaaayyy !", "A' you lookin at me like, Pal ?", "Schtay away from me !", "Dyou wantshome fist-schamwich !?");
public static const celebDATA:Array = new Array("D-list", "C-list", "B-list", "A-list");
public static const nameDATA:Array = new Array("blank", "Jude !", "Borky !", "Stevie !", "David !", "Winey !");
public static const factDATA:Array = new Array("blank", ((("Follicaly challenged thespian with whiplash temper and a thing for Mary Poppins." + "\n") + "\n") + " Slap Rating : Easy"), ((("Smooth faced Elfin art warbler strikes without warning and can wrench hair from sockets." + "\n") + "\n") + " Slap Rating : Mild"), ((("Slap-happy Scouse pigball jockey can strike multiple targets almost instanstly." + "\n") + "\n") + " Slap Rating : Medium"), ((("Henry's cat voiced professional squinter is at his most lethal when cornered after 'Soccerball' matches." + "\n") + "\n") + " Slap Rating : Hard"), ((("Nocturnal High Barnet-based R&B karaoke queen uses booze-based Martial Arts to keep the paps at bay in the early hours." + "\n") + "\n") + " Slap Rating : Godlike"));
public static const hitDATA:Array = new Array("Rubbish", "Crap", "Bollocks", "Not Bad !", "Better!", "OUCH !", "SLAPTASTIC !", "SLAPCENTRAL !", "MEGA SLAP !", "MEDIC !", "SLAAAAAPP !", "FUCKING HELL !", "SHIT !", "AMAZING!", "XXXOME!");
}
}//package
Section 26
//Ball (Ball)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Ball extends MovieClip {
public var shad:MovieClip;
private var lastTime:int;
private var hitTimer:Number;
public var dy:Number;
private var grav:Number;
public var dx:Number;
public function Ball(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Number){
dx = 0;
dy = -4;
grav = 0.3;
hitTimer = 0;
this.y = _arg3;
this.x = _arg4;
this.gotoAndStop(1);
addEventListener(Event.ENTER_FRAME, moveMe);
lastTime = getTimer();
}
public function moveMe(_arg1:Event){
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);
if (this.y > 380){
this.y = 380;
dy = (-(dy) / 1.5);
if ((((Math.abs(dy) < 2)) && ((hitTimer < 500)))){
hitTimer = 1000;
dx = 0;
};
};
hitTimer = (hitTimer - 1);
if (hitTimer == 990){
deleteMe();
};
}
public function hitMe(_arg1:Event, _arg2){
var _local3:*;
var _local4:*;
if ((hitTimer < 1)){
hitTimer = 100;
_local3 = JMath.getAngle(MovieClip(parent).myPlayer.x, (MovieClip(parent).myPlayer.y - 70), this.x, this.y);
_local4 = (20 - Math.abs((this.y - (MovieClip(parent).myPlayer.y - 70))));
if (_arg2 == 2){
_local4 = (_local4 * 0.25);
};
if (_local4 < 0){
_local4 = 0;
};
dx = ((10 + _local4) * JMath.getX(_local3));
dy = ((10 + _local4) * JMath.getY(_local3));
};
}
public function moveTrig(_arg1:Event){
var _local2:int;
_local2 = (getTimer() - lastTime);
lastTime = (lastTime + _local2);
}
public function TrigHit(){
removeEventListener(Event.ENTER_FRAME, moveTrig);
MovieClip(parent).removeTrig(this);
}
public function deleteMe(){
removeEventListener(Event.ENTER_FRAME, moveMe);
MovieClip(parent).removeBall(this);
parent.removeChild(this);
}
}
}//package
Section 27
//BasicButton (BasicButton)
package {
import flash.display.*;
public dynamic class BasicButton extends SimpleButton {
}
}//package
Section 28
//Bg (Bg)
package {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
public class Bg extends MovieClip {
private var target:int;
private var dx:int;
public function Bg(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
addEventListener(Event.ENTER_FRAME, moveMe);
this.x = 460;
dx = 0;
}
public function moveMe(_arg1:Event){
this.x = (this.x + dx);
if (dx < 0){
dx = (dx - 1);
};
if (this.x < target){
this.x = target;
dx = 0;
stopHold();
};
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
public function moveOn(_arg1){
var _local2:BlurFilter;
var _local3:Array;
this.gotoAndStop(_arg1);
dx = -1;
target = 0;
this.scaleX = 1.5;
this.x = 460;
_local2 = new BlurFilter();
_local2.blurX = 30;
_local2.quality = 1;
_local3 = new Array(_local2);
this.filters = _local3;
}
public function deleteMe(){
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
public function moveOff(_arg1:Event){
target = -740;
dx = -1;
}
public function stopHold(){
var _local1:BlurFilter;
var _local2:Array;
this.scaleX = 1;
_local1 = new BlurFilter();
_local1.blurX = 0;
_local1.quality = 0;
_local2 = new Array(_local1);
this.filters = _local2;
}
}
}//package
Section 29
//gameOverScreen (gameOverScreen)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class gameOverScreen extends MovieClip {
public var againBut:SimpleButton;
public var playerName:TextField;
public var submitBut:SimpleButton;
public function gameOverScreen(){
this.submitBut.addEventListener(MouseEvent.CLICK, HighScoreHandler.handleScoreEvent);
this.againBut.addEventListener(MouseEvent.CLICK, playAgain);
}
public function playAgain(_arg1:MouseEvent){
Main.instance.gameAgain();
deleteMe();
}
public function deleteMe(){
this.submitBut.removeEventListener(MouseEvent.CLICK, HighScoreHandler.handleScoreEvent);
this.againBut.removeEventListener(MouseEvent.CLICK, playAgain);
parent.removeChild(this);
}
}
}//package
Section 30
//Ground (Ground)
package {
import flash.display.*;
public dynamic class Ground extends MovieClip {
}
}//package
Section 31
//GUI (GUI)
package {
import flash.display.*;
import flash.text.*;
public dynamic class GUI extends MovieClip {
public var moreBut:SimpleButton;
public var slapBox:MovieClip;
public var score:TextField;
public var rating:MovieClip;
public var playBut:BasicButton;
public var getReady:MovieClip;
public var flash:MovieClip;
public function GUI(){
addFrameScript(25, frame26, 28, frame29, 57, frame58, 84, frame85, 97, frame98);
}
function frame85(){
stop();
}
function frame98(){
stop();
}
function frame26(){
stop();
}
function frame29(){
stop();
}
function frame58(){
stop();
}
}
}//package
Section 32
//Hand (Hand)
package {
import flash.events.*;
import flash.display.*;
public class Hand extends MovieClip {
private var targX:int;
private var dragXdx:int;
private var targY:int;
private var dragXdy:int;
private var dragXmx:int;
private var lastTime:int;
private var hitTimer:Number;
private var lastX:int;
public var dy:Number;
private var grav:Number;
private var dragType:int;
public var dx:Number;
private var lastY:int;
private var dragX:int;
public var side1:MovieClip;
public var side2:MovieClip;
private var dragY:int;
public var hitList:Array;
public function Hand(_arg1:Number, _arg2:Number){
dx = 0;
dy = 0;
targX = 320;
targY = 220;
dragX = this.x;
dragY = this.y;
lastX = 0;
lastY = 0;
dragXmx = 0;
dragType = 0;
hitTimer = 0;
this.x = 200;
this.y = 200;
hitList = [0, 0, 0, 0, 0];
this.gotoAndStop(1);
addEventListener(Event.ENTER_FRAME, moveMe);
}
public function dragMe(_arg1:Event){
dragType = 1;
}
public function moveMe(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:*;
dx = 0;
dy = 0;
switch (dragType){
case 0:
dx = ((targX - this.x) / 10);
dy = ((targY - this.y) / 10);
break;
case 1:
_local4 = JMath.getHyp(lastX, lastY, stage.mouseX, stage.mouseY);
dx = (stage.mouseX - this.x);
dy = (stage.mouseY - this.y);
lastX = stage.mouseX;
lastY = stage.mouseY;
hitList.shift();
hitList.push(Math.floor(_local4));
break;
};
this.x = (this.x + dx);
this.y = (this.y + dy);
_local2 = getHit(null);
if ((((((((this.x < 50)) && ((this.y > 100)))) && ((dragType == 1)))) && ((_local2 > 200)))){
MovieClip(parent).slap(_local2, 0);
hitList = [0, 0, 0, 0, 0];
_local2 = 0;
};
if ((((((((this.x > 550)) && ((this.y > 100)))) && ((dragType == 1)))) && ((_local2 > 200)))){
MovieClip(parent).slap(_local2, 1);
hitList = [0, 0, 0, 0, 0];
_local2 = 0;
};
if ((((dragX < this.x)) && ((dragXmx < 15)))){
dragXmx = (dragXmx + 2);
};
if ((((dragX > this.x)) && ((dragXmx > -15)))){
dragXmx = (dragXmx - 2);
};
dragX = (dragX + dragXmx);
_local3 = (Math.floor((this.x - dragX)) / 440);
if (_local3 < -1){
_local3 = -1;
};
if (_local3 > 1){
_local3 = 1;
};
this.side1.x = -5;
this.side2.x = 5;
if (_local3 < 0){
this.side1.x = 5;
this.side2.x = -5;
};
this.side1.scaleX = _local3;
this.side2.scaleX = _local3;
}
public function getHit(_arg1:Event){
var _local2:*;
var _local3:int;
_local2 = 0;
_local3 = (hitList.length - 1);
while (_local3 >= 0) {
_local2 = (_local2 + hitList[_local3]);
_local3--;
};
return (_local2);
}
public function dropMe(_arg1:Event){
dragType = 0;
}
}
}//package
Section 33
//HighScoreHandler (HighScoreHandler)
package {
import flash.events.*;
import flash.net.*;
public class HighScoreHandler {
public static function handleScoreEvent(_arg1:MouseEvent){
var _local2:URLRequest;
var _local3:URLLoader;
var _local4:URLVariables;
_local2 = new URLRequest("highscores_slapperazzi.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;
_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 34
//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 35
//LevelSelect (LevelSelect)
package {
import flash.events.*;
import flash.display.*;
public class LevelSelect extends MovieClip {
private var timer:int;
private var rollClip:MovieClip;
private var rolledOver:int;
public function LevelSelect(){
addEventListener(Event.ENTER_FRAME, moveMe);
timer = 0;
rolledOver = null;
}
public function moveMe(_arg1:Event){
timer++;
if (timer == -1){
deleteMe();
};
}
public function deleteMe(){
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
}
}//package
Section 36
//Main (Main)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
public class Main extends MovieClip {
public var scoreObjects:Sprite;
public var myPlayer0:Player;
public var myPlayer1:Player;
private var clicked:int;
private var GUILevelUpFrame:int;// = 84
public var mySoundONOFF:SoundONOFF;
public var peachesNum:int;
public var myHand:Hand;
public var leftArrow;
public var celeb:int;
public var score:int;
public var myGameOverScreen:gameOverScreen;
public var gameObjects:Sprite;
public var slapsTotal:int;
private var levelBg:int;
private var lives:int;
public var myBg:Bg;
private var ballList:Array;
public var levelPapPool:int;
public var rightArrow:Boolean;
public var myPicker:Picker;
private var levelScore:int;
public var level:int;
private var screenScore:int;
private var commentList:Array;
private var GUIStartFrame:int;// = 35
private var nextTrig:Timer;
public var slapsBest:int;
public var gameState:int;
public var plays:int;
private var zombieList:Array;
private var papTimer:int;
public var myGUI:GUI;
private var levelSlapNum:int;
public static var instance:Main;
public function Main(){
GUIStartFrame = 35;
GUILevelUpFrame = 84;
super();
addFrameScript(0, frame1);
trace("init");
instance = this;
ballList = new Array();
zombieList = new Array();
commentList = 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);
gameObjects = new Sprite();
addChild(gameObjects);
scoreObjects = new Sprite();
addChild(scoreObjects);
addEventListener(Event.ENTER_FRAME, gameBase);
plays = 0;
level = 0;
gameState = 0;
papTimer = 0;
slapsBest = 0;
commentList = ["MEH.", ".__.", "YOU SUCK.", "Didn't feel a thing"];
SoundManager.playSound("sndMusic1");
addBg(null);
newPlayers();
newHand();
addGUI(null);
myGUI.playBut.addEventListener(MouseEvent.CLICK, PlayButHit);
myGUI.moreBut.addEventListener(MouseEvent.CLICK, MoreButHit);
addPicker();
myPicker.visible = false;
addMbSplash();
MochiBot.track(this, "f3d99cc5");
}
public function addMbSplash(){
var _local1:*;
_local1 = new MbSplash();
addChild(_local1);
}
public function newHand(){
var _local1:Number;
var _local2:Number;
var _local3:Hand;
_local1 = 380;
_local2 = 60;
_local3 = new Hand(_local1, _local2);
addChild(_local3);
myHand = _local3;
}
public function addLevelSelect(){
var _local1:LevelSelect;
_local1 = new LevelSelect();
addChild(_local1);
}
public function slap(_arg1:int, _arg2:int){
var _local3:*;
_local3 = myPlayer0;
if (_arg2 == 1){
_local3 = myPlayer1;
};
_local3.slap(_arg1, _arg2);
}
public function makeParticles(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8){
var _local9:int;
var _local10:Particle;
_local9 = _arg7;
while (_local9 >= 0) {
_local10 = new Particle(_arg1, ((_arg2 + JMath.getRand(90)) - 45), _arg3, _arg4, _arg5, _arg6, _arg8);
addChild(_local10);
_local9--;
};
}
function frame1(){
stop();
}
public function flashScreen(){
myGUI.flash.gotoAndPlay(2);
}
public function addPicker(){
myPicker = new Picker();
addChild(myPicker);
}
public function gameAgain(){
plays = (plays + 1);
if (plays < 400000000){
myGUI.gotoAndPlay(1);
gameState = 0;
myPicker.moveOnStart(null);
myPicker.visible = false;
};
}
public function removeBall(_arg1:Ball){
var _local2:*;
for (_local2 in ballList) {
if (ballList[_local2] == _arg1){
ballList.splice(_local2, 1);
break;
};
};
}
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 addBg(_arg1:Event){
myBg = new Bg();
addChild(myBg);
}
public function addGUI(_arg1:Event){
var _local2:*;
myGUI = new GUI();
myGUI.x = 20;
myGUI.y = 0;
addChild(myGUI);
myGUI.gotoAndPlay(2);
_local2 = new SoundONOFF();
addChild(_local2);
mySoundONOFF = _local2;
}
public function addGameOverScreen(){
var _local1:gameOverScreen;
_local1 = new gameOverScreen();
_local1.y = myGUI.y;
addChild(_local1);
myGameOverScreen = _local1;
}
public function MoreButHit(_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 levelUp(){
levelBg = (levelBg + 1);
levelPapPool = (levelPapPool + 1);
if (levelPapPool > 5){
levelPapPool = 5;
levelBg = (1 + JMath.getRand(5));
};
myHand.visible = true;
myPicker.moveOff(null);
myBg.moveOn(levelBg);
myGUI.gotoAndPlay("levLoop");
gameState = 1;
papTimer = -25;
}
public function keyUpFunction(_arg1:KeyboardEvent){
if (_arg1.keyCode == 37){
leftArrow = false;
} else {
if (_arg1.keyCode == 39){
rightArrow = false;
};
};
}
public function loseLife(){
if (((!((gameState == 1))) || (!((myGUI.currentFrame == 58))))){
return;
};
if (lives > 0){
lives = (lives - 1);
myGUI.rating[("star" + lives)].gotoAndPlay(2);
myGUI.rating.celebList.text = String(Arrays.celebDATA[lives]);
if (lives == 0){
SoundManager.playSound("sndGong");
myGUI.gotoAndPlay("gameOver");
addGameOverScreen();
gameState = 2;
myHand.visible = false;
};
};
}
public function slapsBestInc(_arg1:int){
slapsBest = _arg1;
myGUI.rating.slapsBest.text = String(slapsBest);
myGUI.rating.hitBox.gotoAndPlay(2);
}
public function removeZombie(_arg1:Zombie){
var _local2:*;
for (_local2 in zombieList) {
if (zombieList[_local2] == _arg1){
zombieList.splice(_local2, 1);
break;
};
};
}
public function PlayButHit(_arg1:MouseEvent){
trace(myGUI.currentFrame);
if (myGUI.currentFrame == 26){
myGUI.gotoAndPlay("pickCeleb");
myPicker.visible = true;
myPicker.talk();
SoundManager.playSound("sndHonk");
};
if (myGUI.currentFrame == 29){
trace("GERG");
SoundManager.playSound("sndHonk");
resetGame();
};
if (myGUI.currentFrame == 85){
SoundManager.playSound("sndHonk");
levelUp();
};
if (gameState == 2){
};
}
public function removeAllZombies(){
var _local1:int;
_local1 = (zombieList.length - 1);
while (_local1 >= 0) {
zombieList[_local1].removeMeGO();
zombieList.splice(_local1, 1);
_local1--;
};
}
public function resetRating(){
var _local1:int;
score = 0;
peachesNum = 0;
myGUI.rating.slapsTotal.text = String(0);
myGUI.rating.slapsBest.text = String(slapsBest);
myGUI.rating.score.text = String(0);
myGUI.rating.celebList.text = String(Arrays.celebDATA[3]);
_local1 = 2;
while (_local1 >= 0) {
myGUI.rating[("star" + _local1)].gotoAndStop(1);
_local1--;
};
}
public function newBall(){
var _local1:String;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Ball;
_local1 = "left";
_local2 = 100;
_local3 = 100;
_local4 = ((Math.random() * 150) + 150);
_local5 = new Ball(_local1, _local4, _local2, _local3);
addChild(_local5);
ballList.push(_local5);
}
public function gameBase(_arg1:Event){
var _local2:*;
if (gameState == 2){
};
if (gameState == 1){
myGUI.score.text = String(score);
if (clicked == 1){
if (myHand.hitTestPoint(stage.mouseX, stage.mouseY, true)){
myHand.dragMe(null);
};
};
if (clicked == 0){
myHand.dropMe(null);
};
papTimer = (papTimer + 1);
if (papTimer == 50){
_local2 = 3;
if (level < Arrays.levelDATA.length){
_local2 = Arrays.levelDATA[level];
};
switch (_local2){
case 1:
myPlayer0.choosePap();
break;
case 2:
myPlayer1.choosePap();
break;
case 3:
myPlayer0.choosePap();
myPlayer1.choosePap();
break;
};
level = (level + 1);
papTimer = 0;
};
if (myGUI.currentFrame == GUILevelUpFrame){
};
};
if (gameState == 0){
if (myGUI.currentFrame == 24){
};
if (myGUI.currentFrame == GUIStartFrame){
};
if (myGUI.currentFrame == (GUIStartFrame + 1)){
};
};
}
public function resetGame(){
myGUI.gotoAndPlay("gameStart");
celeb = myPicker.pFrame;
levelBg = celeb;
levelPapPool = celeb;
myPicker.moveOff(null);
myBg.moveOn(levelBg);
myHand.visible = true;
levelSlapNum = 0;
lives = 3;
level = 0;
papTimer = -25;
slapsTotal = 0;
resetRating();
gameState = 1;
}
public function newZombie(){
var _local1:String;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Zombie;
_local1 = "left";
_local2 = 380;
_local3 = 600;
_local4 = ((Math.random() * 150) + 150);
_local5 = (1 + JMath.getRand(Math.floor((score / 2))));
if (_local5 > 5){
_local5 = 5;
};
_local6 = new Zombie(_local1, _local4, _local2, _local3, _local5);
addChild(_local6);
zombieList.push(_local6);
}
public function newPlayers(){
var _local1:Player;
_local1 = new Player(380, 120);
addChild(_local1);
myPlayer0 = _local1;
myPlayer0.gotoAndStop(1);
_local1 = new Player(380, 500);
addChild(_local1);
myPlayer1 = _local1;
myPlayer1.gotoAndStop(1);
myPlayer1.scaleX = -1;
myPlayer1.spBub.scaleX = -1;
myPlayer1.spBub.x = 120;
}
public function scoreInc(_arg1:Event, _arg2:int){
if (((!((gameState == 1))) || (!((myGUI.currentFrame == 58))))){
return;
};
score = (score + _arg2);
slapsTotal = (slapsTotal + 1);
myGUI.rating.score.text = String(score);
myGUI.rating.slapsTotal.text = String(slapsTotal);
levelSlapNum = (levelSlapNum + 1);
if (levelSlapNum > (levelPapPool * 5)){
SoundManager.playSound("sndCow");
myHand.visible = false;
levelSlapNum = 0;
gameState = 0;
myGUI.gotoAndPlay("levelUp");
myPlayer0.foldPap();
myPlayer1.foldPap();
myPicker.moveOn(null);
myBg.moveOff(null);
};
}
public function MouseDownFunction(_arg1:MouseEvent){
clicked = 1;
}
public function removeAllBalls(){
var _local1:int;
while (_local1 < ballList.length) {
ballList[_local1].deleteBall();
ballList.splice(_local1, 1);
_local1++;
};
}
public function MouseUpFunction(_arg1:MouseEvent){
clicked = 0;
}
trace("class");
}
}//package
Section 37
//MbSplash (MbSplash)
package {
import flash.events.*;
import flash.display.*;
public class MbSplash extends MovieClip {
public var exp:MovieClip;
public function MbSplash(){
addFrameScript(169, frame170);
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 frame170(){
stop();
}
public function moveMe(_arg1:Event){
if (this.currentFrame == this.totalFrames){
Main.instance.myGUI.visible = true;
Main.instance.myGUI.gotoAndPlay(2);
deleteMe();
};
}
public function deleteMe(){
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
}
}//package
Section 38
//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 39
//Particle (Particle)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Particle extends MovieClip {
private var bodyType:Number;
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;
private var myText:String;
public function Particle(_arg1:int, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:int, _arg6:Number, _arg7:String){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9);
dx = (_arg1 * JMath.getX(_arg2));
dy = (_arg1 * JMath.getY(_arg2));
grav = _arg6;
hitTimer = 100;
parType = _arg5;
bodyType = (1 + JMath.getRand(4));
ground = (370 + JMath.getRand(15));
myText = _arg7;
this.y = _arg3;
this.x = _arg4;
if (_arg5 == 3){
bodyType = 10;
};
if (_arg5 == 9){
bodyType = (grav + 1);
grav = 0.3;
parType = 3;
};
this.gotoAndStop(parType);
addEventListener(Event.ENTER_FRAME, moveMe);
lastTime = getTimer();
}
public function moveMe(_arg1:Event){
var _local2:*;
var _local3:*;
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));
this.body.gotoAndStop(bodyType);
break;
case 3:
this.rotation = (this.rotation + (dx * 5));
this.body.gotoAndStop(bodyType);
break;
case 4:
break;
case 5:
break;
case 6:
this.rotation = (this.rotation + (dx * 5));
break;
case 7:
this.rotation = (this.rotation + (dx * 5));
this.body.gotoAndStop(bodyType);
break;
case 8:
if (grav != 0){
this.scaleX = (grav / 100);
this.scaleY = (grav / 100);
grav = 0;
dy = 0;
};
this.body.power.text = String(myText);
if (hitTimer > 30){
hitTimer = (hitTimer - 10);
};
break;
};
if (this.y > ground){
this.y = ground;
dx = (dx * 0.5);
dy = (-(dy) / 2);
if (Math.abs(dy) < 1){
dy = (grav = (dx = 0));
};
};
hitTimer = (hitTimer - 1);
if (hitTimer < 20){
this.alpha = (hitTimer / 20);
};
if (hitTimer == 0){
deleteMe();
};
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
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 frame2(){
stop();
}
public function deleteMe(){
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
}
}//package
Section 40
//Picker (Picker)
package {
import flash.events.*;
import flash.display.*;
public class Picker extends MovieClip {
public var name1:MovieClip;
private var target:int;
public var body:MovieClip;
private var dx:int;
public var text1:MovieClip;
public var spBub:MovieClip;
public var pFrame:int;
public function Picker(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
addEventListener(Event.ENTER_FRAME, moveMe);
this.addEventListener(MouseEvent.CLICK, doneStuff);
this.x = 320;
this.y = 200;
this.text1.factText.text = String(((("FACT FILE:" + "\n") + "\n") + Arrays.factDATA[1]));
target = -200;
pFrame = 1;
this.spBub.gotoAndPlay(2);
this.spBub.bubText.comm.text = String(Arrays.chatDATA[pFrame]);
dx = 0;
}
public function moveMe(_arg1:Event){
this.x = (this.x + dx);
if (dx < 0){
dx = (dx - 1);
};
this.name1.cName.text = Arrays.nameDATA[pFrame];
if (this.x < target){
this.x = target;
dx = 0;
this.spBub.gotoAndPlay(2);
this.spBub.bubText.comm.text = String("uhh gonna be SICK !");
};
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
public function moveOn(_arg1:Event){
this.x = 960;
target = 320;
dx = -1;
}
public function doneStuff(_arg1:MouseEvent){
if (Main.instance.myGUI.currentFrame == 29){
pFrame = (pFrame + 1);
SoundManager.playSound("sndHonk");
if (pFrame > this.totalFrames){
pFrame = 1;
};
this.text1.factText.text = String(((("FACT FILE:" + "\n") + "\n") + Arrays.factDATA[pFrame]));
talk();
this.gotoAndStop(pFrame);
};
}
public function moveOnStart(_arg1:Event){
this.x = 960;
target = 321;
dx = -1;
this.text1.visible = true;
this.name1.visible = true;
}
public function talk(){
this.spBub.gotoAndPlay(2);
this.spBub.bubText.comm.text = String(Arrays.chatDATA[pFrame]);
}
public function deleteMe(){
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
public function moveOff(_arg1:Event){
target = -360;
dx = -2;
this.text1.visible = false;
this.name1.visible = false;
}
}
}//package
Section 41
//Player (Player)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Player extends MovieClip {
private var papHit:Boolean;
private var lastTime:int;
private var papType:int;
private var dy:Number;
public var body:MovieClip;
private var dx:Number;
public var spBub:MovieClip;
private var papPerson:int;
private var papTimer:int;
public function Player(_arg1:Number, _arg2:Number){
addFrameScript(29, frame30, 35, frame36, 43, frame44, 52, frame53);
dx = -8;
dy = -24;
papTimer = 0;
papHit = false;
this.y = _arg1;
this.x = _arg2;
this.gotoAndStop(1);
addEventListener(Event.ENTER_FRAME, movePlayer);
lastTime = getTimer();
}
public function choosePap(){
if (this.currentFrame == 1){
papHit = false;
this.gotoAndPlay(1);
papPerson = JMath.getRand(MovieClip(parent).levelPapPool);
if (((((((Main.instance.slapsTotal / 8) == Math.floor((Main.instance.slapsTotal / 8)))) && ((Main.instance.slapsTotal > 0)))) && (!((Main.instance.peachesNum == Main.instance.slapsTotal))))){
papPerson = 5;
Main.instance.peachesNum = Main.instance.slapsTotal;
};
papType = 2;
if (JMath.getRand(11) > 8){
papType = 1;
};
papTimer = (100 - (papPerson * 3));
if (papPerson == 5){
papType = 1;
papTimer = 70;
};
this.body.torso.gotoAndStop((papType + (papPerson * 2)));
this.body.torso.head.gotoAndStop((1 + (papPerson * 3)));
this.body.torso.head.visible = true;
this.body.torso.head.rotation = 0;
};
}
public function movePlayer(_arg1:Event){
papTimer = (papTimer - 1);
if (this.currentFrame == 11){
this.spBub.gotoAndPlay(2);
this.spBub.bubText.comm.text = String((Arrays.oiDATA[JMath.getRand(Arrays.oiDATA.length)] + Arrays.nameDATA[MovieClip(parent).celeb]));
};
if (papTimer == 50){
this.body.torso.gotoAndStop(((50 + papType) + (papPerson * 2)));
this.spBub.gotoAndPlay(2);
switch (papType){
case 1:
this.spBub.bubText.comm.text = String("Have a Great Evening !");
this.body.torso.head.gotoAndStop((3 + (papPerson * 3)));
break;
case 2:
MovieClip(parent).flashScreen();
SoundManager.playSound("sndHonk");
this.spBub.bubText.comm.text = String("Say CHEESE, ASSHOLE !");
MovieClip(parent).loseLife();
break;
};
};
if (papTimer == 1){
this.gotoAndPlay("out");
};
}
public function slap(_arg1, _arg2){
var _local3:Boolean;
var _local4:String;
if ((((papTimer > 0)) && (!(papHit)))){
_local3 = false;
if ((((Main.instance.myHand.y < 300)) && ((_arg1 > 500)))){
_local3 = true;
if (papType == 1){
this.body.torso.head.rotation = -((35 + (_arg1 / 100)));
};
if ((((papType == 2)) && ((_arg1 < 1000)))){
_local3 = false;
};
};
papHit = true;
_local4 = "";
if (papPerson > 0){
_local4 = ("Bonus X " + String((papPerson + 1)));
};
MovieClip(parent).makeParticles(3, (60 * (this.scaleX / 0.1)), 250, this.x, 3, 0.4, 1, "");
if (papPerson != 5){
switch (papType){
case 1:
this.gotoAndPlay("slapBad");
this.spBub.gotoAndPlay(2);
this.spBub.bubText.comm.text = String("ARGGHH I'm calling my lawyer !");
this.body.torso.head.gotoAndStop((2 + (papPerson * 3)));
papTimer = 49;
Main.instance.loseLife();
SoundManager.playSound("sndFreakDie");
Main.instance.makeParticles(3, (90 * (this.scaleX / 0.1)), 250, this.x, 9, papPerson, 0, "");
break;
case 2:
if (_arg1 > MovieClip(parent).slapsBest){
MovieClip(parent).slapsBestInc(_arg1);
};
this.spBub.gotoAndStop(1);
if (!_local3){
this.gotoAndPlay("slapGood");
papTimer = 0;
};
if (_local3){
this.gotoAndPlay("slapBad");
this.body.torso.head.gotoAndStop("decap");
SoundManager.playSound("sndHitSplat");
Main.instance.makeParticles((2 + JMath.getRand(3)), 0, 200, this.x, 1, 0.3, 3, "");
papTimer = 49;
};
MovieClip(parent).scoreInc(null, Math.ceil((_arg1 * (papPerson + 1))));
MovieClip(parent).makeParticles(0, 300, 250, this.x, 8, Math.floor((_arg1 / 6)), 0, (((_arg1 + " mph") + "\n") + _local4));
break;
};
};
if (papPerson == 5){
papTimer = 49;
MovieClip(parent).scoreInc(null, 5000);
MovieClip(parent).makeParticles(0, 300, 250, this.x, 8, Math.floor((_arg1 / 6)), 0, (("PEACHES BONUS !" + "\n") + "+ 5000"));
this.gotoAndPlay("slapBad");
this.spBub.gotoAndPlay(2);
this.spBub.bubText.comm.text = String("ARGGHH don't you know you i am !");
this.body.torso.head.gotoAndStop((2 + (papPerson * 3)));
SoundManager.playSound("sndFreakDie");
MovieClip(parent).makeParticles(3, (90 * (this.scaleX / 0.1)), 250, this.x, 9, papPerson, 0, "");
};
};
}
function frame30(){
gotoAndPlay("bounceLoop");
}
function frame36(){
gotoAndStop(1);
}
function frame44(){
stop();
}
function frame53(){
gotoAndStop(1);
}
public function foldPap(){
if (!papHit){
this.gotoAndPlay("out");
papTimer = 0;
};
}
}
}//package
Section 42
//s_cow (s_cow)
package {
import flash.media.*;
public dynamic class s_cow extends Sound {
}
}//package
Section 43
//s_freakDie (s_freakDie)
package {
import flash.media.*;
public dynamic class s_freakDie extends Sound {
}
}//package
Section 44
//s_gong (s_gong)
package {
import flash.media.*;
public dynamic class s_gong extends Sound {
}
}//package
Section 45
//s_hitSplat (s_hitSplat)
package {
import flash.media.*;
public dynamic class s_hitSplat extends Sound {
}
}//package
Section 46
//s_honk (s_honk)
package {
import flash.media.*;
public dynamic class s_honk extends Sound {
}
}//package
Section 47
//s_music1 (s_music1)
package {
import flash.media.*;
public dynamic class s_music1 extends Sound {
}
}//package
Section 48
//s_whip (s_whip)
package {
import flash.media.*;
public dynamic class s_whip extends Sound {
}
}//package
Section 49
//SoundManager (SoundManager)
package {
import flash.events.*;
import flash.media.*;
public class SoundManager {
private var beep_transform:SoundTransform;
public static var sndFreakDie:s_freakDie = new s_freakDie();
public static var sndCow:s_cow = new s_cow();
public static var sndGong:s_gong = new s_gong();
public static var sndHonk:s_honk = new s_honk();
public static var sndMusic1:s_music1 = new s_music1();
public static var sndHitSplat:s_hitSplat = new s_hitSplat();
public static var musicChannel;
public function SoundManager(){
beep_transform = new SoundTransform(0.5);
super();
}
public static function reduceSound(){
var _local1:SoundTransform;
_local1 = new SoundTransform(0);
musicChannel.soundTransform = _local1;
}
public static function stopSound(_arg1){
musicChannel.stop();
}
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 playSound(_arg1){
switch (_arg1){
case "sndMusic1":
musicChannel = sndMusic1.play(0, 1000);
break;
case "sndMusic2":
break;
case "sndGong":
sndGong.play();
break;
case "sndFreakDie":
sndFreakDie.play();
break;
case "sndHonk":
sndHonk.play();
break;
case "sndHitSplat":
sndHitSplat.play();
break;
case "sndCow":
sndCow.play();
break;
case "sndPukeChicken":
break;
case "sndPukeCarrot":
break;
case "sndLevelup":
break;
case "sndCrash":
break;
case "sndGong":
break;
case "sndHonk":
break;
case "sndHit1":
break;
case "sndPop":
break;
case "sndLucky":
break;
case "sndDie":
break;
};
}
}
}//package
Section 50
//SoundONOFF (SoundONOFF)
package {
import flash.events.*;
import flash.display.*;
public class SoundONOFF extends MovieClip {
public var soundToggle:MovieClip;
public var playSounds:Boolean;
public var soundBut:MovieClip;
public function SoundONOFF(){
soundBut.addEventListener(MouseEvent.CLICK, ButHit);
playSounds = true;
this.soundToggle.visible = false;
this.x = 10;
this.y = 10;
}
public function ButHit(_arg1:MouseEvent){
playSounds = !(playSounds);
trace(("play" + playSounds));
if (playSounds == false){
this.soundToggle.visible = true;
SoundManager.reduceSound();
};
if (playSounds == true){
this.soundToggle.visible = false;
SoundManager.increaseSound();
};
}
public function deleteMe(){
parent.removeChild(this);
}
}
}//package
Section 51
//Zombie (Zombie)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Zombie extends MovieClip {
public var power:int;
private var zomType:Number;
private var odx:Number;
private var lastTime:int;
private var hitTimer:Number;
private var grav:Number;
private var dx:Number;
private var dy:Number;
public function Zombie(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number){
dx = -1;
dy = 0;
grav = 0.1;
power = (100 + ((_arg5 - 1) * 50));
hitTimer = 0;
zomType = _arg5;
this.y = _arg3;
this.x = _arg4;
addEventListener(Event.ENTER_FRAME, moveMe);
lastTime = getTimer();
}
public function removeMeGO(){
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
public function removeMe(){
removeEventListener(Event.ENTER_FRAME, moveMe);
MovieClip(parent).removeZombie(this);
parent.removeChild(this);
}
public function moveMe(_arg1:Event){
}
public function hitMe(_arg1:Event, _arg2:int, _arg3:int){
}
public function batMe(_arg1:Event){
}
public function getMeDx(_arg1:Event){
trace(("mydx " + dx));
return (dx);
}
}
}//package