Section 1
//eyes_80 (snowboardSpil_fla.eyes_80)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class eyes_80 extends MovieClip {
public function eyes_80(){
addFrameScript(31, frame32);
}
function frame32(){
gotoAndPlay(1);
}
}
}//package snowboardSpil_fla
Section 2
//gameGameOverNameBox_3 (snowboardSpil_fla.gameGameOverNameBox_3)
package snowboardSpil_fla {
import flash.display.*;
import flash.text.*;
public dynamic class gameGameOverNameBox_3 extends MovieClip {
public var playerName:TextField;
}
}//package snowboardSpil_fla
Section 3
//guiGameOverMessage_8 (snowboardSpil_fla.guiGameOverMessage_8)
package snowboardSpil_fla {
import flash.display.*;
import flash.text.*;
public dynamic class guiGameOverMessage_8 extends MovieClip {
public var message:TextField;
public function guiGameOverMessage_8(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package snowboardSpil_fla
Section 4
//guiLevelSetPacket_12 (snowboardSpil_fla.guiLevelSetPacket_12)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class guiLevelSetPacket_12 extends MovieClip {
public var lock:MovieClip;
}
}//package snowboardSpil_fla
Section 5
//guiTitleBubble_76 (snowboardSpil_fla.guiTitleBubble_76)
package snowboardSpil_fla {
import flash.display.*;
import flash.text.*;
public dynamic class guiTitleBubble_76 extends MovieClip {
public var xmasMess:TextField;
}
}//package snowboardSpil_fla
Section 6
//inGameGUI_message_18 (snowboardSpil_fla.inGameGUI_message_18)
package snowboardSpil_fla {
import flash.display.*;
import flash.text.*;
public dynamic class inGameGUI_message_18 extends MovieClip {
public var message:TextField;
}
}//package snowboardSpil_fla
Section 7
//inGameMessageAnim_17 (snowboardSpil_fla.inGameMessageAnim_17)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class inGameMessageAnim_17 extends MovieClip {
public var messageBox:MovieClip;
public function inGameMessageAnim_17(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package snowboardSpil_fla
Section 8
//LevelPlatformReg1_55 (snowboardSpil_fla.LevelPlatformReg1_55)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class LevelPlatformReg1_55 extends MovieClip {
public var street:MovieClip;
}
}//package snowboardSpil_fla
Section 9
//mouse_79 (snowboardSpil_fla.mouse_79)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class mouse_79 extends MovieClip {
public function mouse_79(){
addFrameScript(6, frame7);
}
function frame7(){
gotoAndPlay(1);
}
}
}//package snowboardSpil_fla
Section 10
//mouse_82 (snowboardSpil_fla.mouse_82)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class mouse_82 extends MovieClip {
public function mouse_82(){
addFrameScript(35, frame36);
}
function frame36(){
gotoAndPlay(1);
}
}
}//package snowboardSpil_fla
Section 11
//OBJ_1_TREE_21 (snowboardSpil_fla.OBJ_1_TREE_21)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class OBJ_1_TREE_21 extends MovieClip {
public function OBJ_1_TREE_21(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package snowboardSpil_fla
Section 12
//OBJ_1_TREE_Clip2_23 (snowboardSpil_fla.OBJ_1_TREE_Clip2_23)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class OBJ_1_TREE_Clip2_23 extends MovieClip {
public function OBJ_1_TREE_Clip2_23(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package snowboardSpil_fla
Section 13
//OBJ_2_flag_30 (snowboardSpil_fla.OBJ_2_flag_30)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class OBJ_2_flag_30 extends MovieClip {
public function OBJ_2_flag_30(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package snowboardSpil_fla
Section 14
//OBJ_2_FLAGGATE_29 (snowboardSpil_fla.OBJ_2_FLAGGATE_29)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class OBJ_2_FLAGGATE_29 extends MovieClip {
public var obj1:MovieClip;
public var obj3:MovieClip;
public function OBJ_2_FLAGGATE_29(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package snowboardSpil_fla
Section 15
//OBJ_4_BUNNY_34 (snowboardSpil_fla.OBJ_4_BUNNY_34)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class OBJ_4_BUNNY_34 extends MovieClip {
public function OBJ_4_BUNNY_34(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package snowboardSpil_fla
Section 16
//OBJ_5_CHECKPOINT_35 (snowboardSpil_fla.OBJ_5_CHECKPOINT_35)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class OBJ_5_CHECKPOINT_35 extends MovieClip {
public function OBJ_5_CHECKPOINT_35(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package snowboardSpil_fla
Section 17
//OBJ_6_kid_40 (snowboardSpil_fla.OBJ_6_kid_40)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class OBJ_6_kid_40 extends MovieClip {
public function OBJ_6_kid_40(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package snowboardSpil_fla
Section 18
//OBJ_6_SNOWMAN_36 (snowboardSpil_fla.OBJ_6_SNOWMAN_36)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class OBJ_6_SNOWMAN_36 extends MovieClip {
public var obj1:MovieClip;
public var obj2:MovieClip;
public var obj3:MovieClip;
public function OBJ_6_SNOWMAN_36(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package snowboardSpil_fla
Section 19
//OBJ_6_snowmanClip_37 (snowboardSpil_fla.OBJ_6_snowmanClip_37)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class OBJ_6_snowmanClip_37 extends MovieClip {
public function OBJ_6_snowmanClip_37(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package snowboardSpil_fla
Section 20
//OBJ_7_PENGUIN_41 (snowboardSpil_fla.OBJ_7_PENGUIN_41)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class OBJ_7_PENGUIN_41 extends MovieClip {
public function OBJ_7_PENGUIN_41(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package snowboardSpil_fla
Section 21
//OBJ_8_RAMP_47 (snowboardSpil_fla.OBJ_8_RAMP_47)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class OBJ_8_RAMP_47 extends MovieClip {
public function OBJ_8_RAMP_47(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package snowboardSpil_fla
Section 22
//OBJ_9_BOMBMAN_48 (snowboardSpil_fla.OBJ_9_BOMBMAN_48)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class OBJ_9_BOMBMAN_48 extends MovieClip {
public function OBJ_9_BOMBMAN_48(){
addFrameScript(0, frame1, 46, frame47);
}
function frame1(){
stop();
}
function frame47(){
stop();
}
}
}//package snowboardSpil_fla
Section 23
//OBJ_9_snowmanClip_49 (snowboardSpil_fla.OBJ_9_snowmanClip_49)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class OBJ_9_snowmanClip_49 extends MovieClip {
public function OBJ_9_snowmanClip_49(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package snowboardSpil_fla
Section 24
//particleBang_45 (snowboardSpil_fla.particleBang_45)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class particleBang_45 extends MovieClip {
public function particleBang_45(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package snowboardSpil_fla
Section 25
//particleBang2_52 (snowboardSpil_fla.particleBang2_52)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class particleBang2_52 extends MovieClip {
public function particleBang2_52(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package snowboardSpil_fla
Section 26
//particleSmoke_62 (snowboardSpil_fla.particleSmoke_62)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class particleSmoke_62 extends MovieClip {
public function particleSmoke_62(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package snowboardSpil_fla
Section 27
//platformStreetClip_56 (snowboardSpil_fla.platformStreetClip_56)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class platformStreetClip_56 extends MovieClip {
public function platformStreetClip_56(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package snowboardSpil_fla
Section 28
//playerAll_66 (snowboardSpil_fla.playerAll_66)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class playerAll_66 extends MovieClip {
public var torso:MovieClip;
public var foot1:MovieClip;
public var foot0:MovieClip;
public var head:MovieClip;
public var board:MovieClip;
}
}//package snowboardSpil_fla
Section 29
//playerBoard_67 (snowboardSpil_fla.playerBoard_67)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class playerBoard_67 extends MovieClip {
public function playerBoard_67(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package snowboardSpil_fla
Section 30
//playerHead_24 (snowboardSpil_fla.playerHead_24)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class playerHead_24 extends MovieClip {
public var hat:MovieClip;
}
}//package snowboardSpil_fla
Section 31
//playerHeadHat_25 (snowboardSpil_fla.playerHeadHat_25)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class playerHeadHat_25 extends MovieClip {
public function playerHeadHat_25(){
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, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28);
}
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 frame19(){
stop();
}
function frame25(){
stop();
}
function frame13(){
stop();
}
function frame17(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame22(){
stop();
}
function frame16(){
stop();
}
function frame8(){
stop();
}
function frame21(){
stop();
}
function frame2(){
stop();
}
function frame15(){
stop();
}
function frame23(){
stop();
}
function frame24(){
stop();
}
function frame28(){
stop();
}
function frame20(){
stop();
}
function frame27(){
stop();
}
function frame11(){
stop();
}
function frame26(){
stop();
}
}
}//package snowboardSpil_fla
Section 32
//playerLegs_27 (snowboardSpil_fla.playerLegs_27)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class playerLegs_27 extends MovieClip {
public var feet:MovieClip;
}
}//package snowboardSpil_fla
Section 33
//playerTorso_68 (snowboardSpil_fla.playerTorso_68)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class playerTorso_68 extends MovieClip {
public function playerTorso_68(){
addFrameScript(0, frame1, 4, frame5);
}
function frame1(){
stop();
}
function frame5(){
gotoAndPlay("lose");
}
}
}//package snowboardSpil_fla
Section 34
//Symbol242_81 (snowboardSpil_fla.Symbol242_81)
package snowboardSpil_fla {
import flash.display.*;
public dynamic class Symbol242_81 extends MovieClip {
public function Symbol242_81(){
addFrameScript(0, frame1, 22, frame23);
}
function frame1(){
}
function frame23(){
stop();
}
}
}//package snowboardSpil_fla
Section 35
//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]);
public static const levelSpeedDATA:Array = new Array(10, 10, 10, 15, 13);
public static const levelDATA:Array = new Array([[1, 1, 1, 1, 2, 2, 1, 2, 1, 1, 2, 2, 2, 6, 2, 1, 2, 2, 2, 4, 1], [129, 66, 36, 24, 16, 32, 24, 128, 129, 192, 8, 2, 1, 2, 32, 24, 16, 8, 16, 60, 195]], [[1, 3, 2, 3, 6, 2, 1, 1, 1, 4, 2, 3, 2, 3, 1, 2, 1, 2, 3, 2, 1, 2, 1], [129, 36, 8, 16, 8, 16, 24, 60, 24, 16, 8, 16, 16, 8, 60, 2, 195, 16, 42, 64, 240, 8, 15]], [[3, 1, 8, 1, 1, 1, 1, 7, 2, 2, 7, 7, 3, 2, 1, 7, 2, 7, 1, 3, 6], [36, 1, 8, 129, 66, 36, 24, 128, 8, 16, 128, 1, 66, 8, 24, 2, 16, 64, 195, 36, 64]], [[1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 8, 3, 3, 1, 1, 1, 1, 1, 9, 9, 1, 1, 1, 1, 9, 9, 1, 4, 8, 1, 1, 9, 9, 1, 1, 1, 3, 3, 1, 1, 1, 6, 6], [129, 129, 129, 2, 129, 64, 129, 2, 129, 64, 129, 4, 8, 85, 170, 129, 129, 195, 66, 102, 8, 16, 129, 85, 170, 129, 20, 40, 129, 24, 8, 129, 129, 42, 84, 129, 129, 129, 85, 170, 129, 129, 129, 36, 66]], [[1, 1, 7, 7, 1, 1, 1, 1, 1, 7, 9, 9, 7, 1, 1, 1, 1, 1, 1, 9, 1, 9, 1, 1, 7, 1, 1, 9, 6, 7, 7, 8, 1, 1, 9, 9, 9, 1, 1, 3, 3, 1, 1, 1, 1, 7, 1, 1, 1, 9, 9, 7, 1, 1, 1, 1, 1, 1], [85, 170, 128, 1, 129, 195, 231, 195, 129, 64, 84, 42, 4, 129, 195, 231, 129, 129, 63, 64, 252, 2, 63, 252, 129, 170, 129, 4, 32, 4, 32, 8, 129, 129, 129, 66, 36, 129, 129, 85, 170, 129, 129, 231, 60, 64, 231, 129, 129, 252, 63, 129, 36, 24, 195, 8, 16, 129]]);
public static const powerDATA:Array = new Array("blank", "KEBAB EATEN !", "CHICKEN BUCKET EATEN !", "VINDALOO EATEN !");
public static const powerHelpDATA:Array = new Array("blank", "HOLD & RELEASE TO FIRE CARROTS AND STUN BADDIES", "ALLOWS YOU TO PUKE BOOST IN ANY DIRECTION MID JUMP", "GIVES YOU CONCENTRATED POWER BOOST TO DOUBLE YOUR DISTANCE");
public static const levelNameDATA:Array = new Array("NURSERY SLOPE ", (("NURSERY SLOPES" + "\n") + "You can miss up to 3 flag gates here"), (("PRIMARY SCHOOL SLOPES " + "\n") + "You can miss up to 2 flag gates here"), (("BIG BOY SLOPES " + "\n") + "You can miss a single flag gates here. Watch for SPs"), (("THE BATTY RUN " + "\n") + "Don't miss a gate and I think those kids want revenge btw"), (("ICE TO SEE YOU " + "\n") + "No gates - this is The Express elevator to HELL BOYS !"), "Midnight at 'The Brain of Morbius'", "2am at 'The Fart and Forget-me-not'", "11pm at 'The Blind Batsman'", "3am at 'The Pyramid of Mars'", "11pm at 'The Bull and Gate'", "11pm at 'The Fighting Swami'", "1am at 'The Pink Sky at night'", "11pm at 'The Dr Mabuse'", "2am at 'The Three Bent Coppers'", "11pm at 'The Jigsaw & Phibes'", "11pm at 'The TV Dinner'", "1am at 'The Upper and Downer'", "11pm at 'The Flashing Boxman'", "1am at 'The Putrid Fox'", "11pm at 'The Bang & Whimper'", "How High can you puke Mini-game", "blank0", "blank0", "blank0", "blank0");
}
}//package
Section 36
//Baddy (Baddy)
package {
import flash.events.*;
import flash.display.*;
public class Baddy extends MovieClip {
private var dy:Number;
private var dx:Number;
public function Baddy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4, _arg5, _arg6, _arg7){
addFrameScript(0, frame1);
dx = 0;
dy = 0;
this.y = _arg2;
this.x = _arg1;
addEventListener(Event.ENTER_FRAME, moveMe);
}
public function removeMeGO(){
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
public function removeMe(){
}
public function moveMe(_arg1:Event){
}
function frame1(){
stop();
}
public function checkCarrotCollision(){
}
}
}//package
Section 37
//BasicButton (BasicButton)
package {
import flash.display.*;
public dynamic class BasicButton extends SimpleButton {
}
}//package
Section 38
//DepthSortedSprite (DepthSortedSprite)
package {
import flash.display.*;
public class DepthSortedSprite extends Sprite {
public function sortChildren():void{
var _local1:uint;
var _local2:DisplayObject;
var _local3:DisplayObject;
_local1 = 0;
while (_local1 < (numChildren - 1)) {
_local2 = this.getChildAt(_local1);
_local3 = this.getChildAt((_local1 + 1));
if ((((_local2.y > _local3.y)) && ((_local2.alpha == 1)))){
this.swapChildrenAt(_local1, (_local1 + 1));
};
_local1++;
};
}
public function sortCompletely():void{
var _local1:Boolean;
var _local2:*;
var _local3:*;
var _local4:*;
trace(("sortCompletely numChildren = " + numChildren));
do {
_local1 = false;
_local2 = 0;
while (_local2 < (numChildren - 1)) {
_local3 = this.getChildAt(_local2);
_local4 = this.getChildAt((_local2 + 1));
if (_local3.y > _local4.y){
_local1 = true;
this.swapChildrenAt(_local2, (_local2 + 1));
};
_local2++;
};
} while (_local1);
}
}
}//package
Section 39
//Exit (Exit)
package {
import flash.display.*;
public dynamic class Exit extends MovieClip {
}
}//package
Section 40
//gameOverScreen (gameOverScreen)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class gameOverScreen extends MovieClip {
public var againBut:SimpleButton;
public var submitBut:SimpleButton;
public var nameBox:MovieClip;
public var twitBut:SimpleButton;
private var frameNum:uint;
public var mess:MovieClip;
public function gameOverScreen(_arg1){
addFrameScript(6, frame7);
addEventListener(Event.ENTER_FRAME, moveMe);
this.submitBut.addEventListener(MouseEvent.CLICK, moreGames);
this.againBut.addEventListener(MouseEvent.CLICK, playAgain);
this.twitBut.addEventListener(MouseEvent.CLICK, twitIt);
frameNum = _arg1;
switch (frameNum){
case 1:
this.mess.message.text = String("WIPE OUT");
break;
case 2:
this.twitBut.visible = false;
this.submitBut.visible = false;
this.nameBox.visible = false;
this.mess.message.text = String("ONE DOWN");
break;
case 3:
this.mess.message.text = String("DISQUALIFIED !");
break;
case 4:
this.mess.message.text = String("YOU DID IT !");
break;
};
Main.instance.writeCookie();
}
function frame7(){
stop();
}
public function moveMe(_arg1:Event){
}
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 deleteMe(){
this.twitBut.removeEventListener(MouseEvent.CLICK, twitIt);
this.submitBut.removeEventListener(MouseEvent.CLICK, moreGames);
this.againBut.removeEventListener(MouseEvent.CLICK, playAgain);
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
public function playAgain(_arg1:MouseEvent){
switch (frameNum){
case 1:
Main.instance.gameOver();
deleteMe();
break;
case 2:
Main.instance.restart();
deleteMe();
break;
case 3:
Main.instance.gameOver();
trace("OK BEGONE!");
deleteMe();
break;
case 4:
Main.instance.gameOver();
deleteMe();
break;
};
}
public function twitIt(_arg1:MouseEvent){
this.twitBut.x = 1000;
Main.instance.sendZap();
}
}
}//package
Section 41
//GUI (GUI)
package {
import flash.display.*;
public dynamic class GUI extends MovieClip {
public var titleBub:MovieClip;
public var clearBut:SimpleButton;
public var playBut:BasicButton;
public function GUI(){
addFrameScript(25, frame26, 57, frame58);
}
function frame26(){
stop();
}
function frame58(){
stop();
}
}
}//package
Section 42
//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 43
//Levels (Levels)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Levels extends MovieClip {
public var timer:Timer;
public var levelNum:MovieClip;
public var setUpTimer:int;
public var p1:MovieClip;
public var p2:MovieClip;
public var p3:MovieClip;
public var p0:Exit;
public var p4:MovieClip;
public function Levels(_arg1){
addFrameScript(0, frame1);
this.gotoAndStop(_arg1);
addEventListener(Event.ENTER_FRAME, moveMe);
setUpTimer = 0;
}
public function moveMe(_arg1:Event){
setUpTimer++;
if (setUpTimer == 2){
readMe();
deleteMe();
};
}
function frame1(){
stop();
}
public function deleteMe(){
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
public function readMe(){
Main.instance.finishBuildWorld();
}
}
}//package
Section 44
//LevelSelect (LevelSelect)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class LevelSelect extends MovieClip {
public var levelName:TextField;
private var timer:int;
private var totalLevs:int;
private var rollClip:MovieClip;
private var butList:Array;
private var rolledOver:int;
public function LevelSelect(){
butList = new Array();
addEventListener(Event.ENTER_FRAME, moveMe);
this.x = 0;
this.y = 0;
totalLevs = 4;
timer = 0;
rolledOver = null;
addButtons();
}
public function moveMe(_arg1:Event){
var _local2:int;
timer++;
_local2 = totalLevs;
while (_local2 >= 0) {
if (((((((!((rollClip == null))) && ((rollClip.scaleX < 1.1)))) && ((timer > 0)))) && (rollClip.packet.visible))){
rollClip.scaleX = (rollClip.scaleY = 1.1);
};
if (((((((butList[_local2].hitTestPoint(stage.mouseX, (stage.mouseY - Main.instance.y), true)) && ((timer > 0)))) && (butList[_local2].packet.visible))) && ((butList[_local2].num.text < (Main.instance.levelReached + 2))))){
this.levelName.text = String(Arrays.levelNameDATA[butList[_local2].num.text]);
if (butList[_local2] != rollClip){
SoundManager.playSound("sndSnowHitLight");
if (rollClip != null){
rollClip.scaleX = (rollClip.scaleY = 1);
rollClip.rotation = 0;
};
rollClip = butList[_local2];
rolledOver = butList[_local2].num.text;
};
if (Main.instance.clicked == 1){
butList[_local2].num.text = String("GO !");
SoundManager.playSound("sndSnowHit");
timer = -20;
};
};
_local2--;
};
if (timer == -1){
Main.instance.startBuildWorld((rolledOver - 1));
SoundManager.stopSound(null);
SoundManager.playSound("sndMusic2");
deleteMe();
};
}
public function addButtons(){
var _local1:*;
var _local2:int;
var _local3:LevelSelectBut;
_local1 = 5;
_local2 = totalLevs;
while (_local2 >= 0) {
_local3 = new LevelSelectBut();
_local3.y = ((36 + 125) + (Math.floor((_local2 / _local1)) * (_local3.height * 1.2)));
_local3.x = ((70 + 47) + ((_local2 - (Math.floor((_local2 / _local1)) * _local1)) * (_local3.width * 1.1)));
_local3.num.text = String((_local2 + 1));
_local3.packet.lock.visible = false;
if (_local2 > Main.instance.levelReached){
_local3.packet.lock.visible = true;
};
addChild(_local3);
butList.push(_local3);
_local2--;
};
}
public function deleteMe(){
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
}
}//package
Section 45
//LevelSelectBut (LevelSelectBut)
package {
import flash.display.*;
import flash.text.*;
public dynamic class LevelSelectBut extends MovieClip {
public var butter:SimpleButton;
public var num:TextField;
public var packet:MovieClip;
public var packet2:MovieClip;
}
}//package
Section 46
//levelUpScreen (levelUpScreen)
package {
import flash.events.*;
import flash.display.*;
public class levelUpScreen extends MovieClip {
public var levelUpBut:SimpleButton;
public function levelUpScreen(){
addEventListener(Event.ENTER_FRAME, moveMe);
this.levelUpBut.addEventListener(MouseEvent.CLICK, levelUp);
}
public function levelUp(_arg1:MouseEvent){
Main.instance.levelUp();
deleteMe();
}
public function moveMe(_arg1:Event){
this.y = Main.instance.myGUI.y;
}
public function deleteMe(){
this.levelUpBut.removeEventListener(MouseEvent.CLICK, levelUp);
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
}
}//package
Section 47
//LineClip (LineClip)
package {
import flash.events.*;
import flash.display.*;
public class LineClip extends Sprite {
private var active:Boolean;
public function LineClip(){
deactivateMe();
addEventListener(Event.ENTER_FRAME, moveMe);
}
public function init(_arg1:Number, _arg2:Number, _arg3:Number, _arg4){
this.graphics.clear();
active = true;
this.alpha = 1;
this.visible = true;
this.alpha = 1;
this.y = _arg2;
this.x = _arg1;
this.graphics.lineStyle(3, _arg4);
this.graphics.moveTo(0, 0);
this.graphics.lineTo((_arg3 - _arg1), -(Main.instance.myPlayer.downSpeed));
}
public function removeMeGO(){
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
public function deactivateMe(){
this.x = 0;
this.y = -1000;
active = false;
this.visible = false;
}
public function removeMe(){
removeEventListener(Event.ENTER_FRAME, moveMe);
MovieClip(parent).removeLine(this);
parent.removeChild(this);
}
public function moveMe(_arg1:Event){
if (!active){
return;
};
this.y = (this.y - Main.instance.myPlayer.downSpeed);
this.alpha = (this.alpha - 0.05);
}
}
}//package
Section 48
//Main (Main)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class Main extends MovieClip {
public var scoreObjects:Sprite;
public var clicked:int;
public var mySoundONOFF:SoundONOFF;
public var myLevels:Levels;
public var myLevelUpScreen:levelUpScreen;
public var myPowerUpBar:powerUpBar;
public var leftArrow;
public var gameTimer:uint;
public var camy:Number;
public var score:int;
private var partListNum:int;
public var test:MovieClip;
public var lineList:Array;
public var myGameOverScreen:gameOverScreen;
public var gameObjects:Sprite;
public var lives:int;
public var gatesTotal:int;
private var zombListNum:int;
public var levelReached:int;
public var partList:Array;
public var levelsMade:int;
public var rightArrow:Boolean;
public var bitList:Array;
private var lineListNum:int;
public var level:int;
private var GUIStartFrame:int;// = 35
public var myPlayer:Player;
public var gameState:int;
private var plays:int;
public var zomIndex:int;
public var shakeTimer:uint;
public var test2:MovieClip;
public var test3:MovieClip;
public var zombieList:Array;
public var myGUI:GUI;
public var myDepthSortedSprite:DepthSortedSprite;
public static var instance:Main;
public function Main(){
GUIStartFrame = 35;
super();
addFrameScript(4, frame5);
instance = this;
zombieList = new Array();
partList = new Array();
lineList = new Array();
bitList = new Array();
bitList = [1, 2, 4, 8, 16, 32, 64, 128];
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;
camy = 0;
level = 9;
shakeTimer = 0;
gameTimer = 0;
levelsMade = 20;
score = 0;
gameState = 0;
addGUI(null);
myGUI.playBut.addEventListener(MouseEvent.CLICK, PlayButHit);
myGUI.clearBut.addEventListener(MouseEvent.CLICK, ClearButHit);
addMbSplash();
newLineClips(15);
addDepthSortedSprite();
levelCookie();
MochiBot.track(this, "04abe73c");
}
public function restart(){
myPlayer.restart();
}
public function addMbSplash(){
var _local1:*;
_local1 = new MbSplash();
addChild(_local1);
}
public function shaker(){
if (shakeTimer > 0){
shakeTimer = (shakeTimer - 1);
this.y = (JMath.getRand(shakeTimer) - (shakeTimer / 2));
};
}
public function addLevelSelect(){
var _local1:LevelSelect;
_local1 = new LevelSelect();
addChild(_local1);
}
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--;
};
}
function frame5(){
stop();
}
public function removeAllPlats(){
var _local1:int;
while (_local1 < zombieList.length) {
zombieList[_local1].removeMeGO();
_local1++;
};
while (_local1 < partList.length) {
partList[_local1].removeMeGO();
_local1++;
};
myPlayer.removeMeGO();
partList = [];
zombieList = [];
myPowerUpBar.deleteMe();
}
public function newPlayer(){
var _local1:Number;
var _local2:Number;
var _local3:Player;
_local1 = 150;
_local2 = 260;
_local3 = new Player(_local1, _local2);
myDepthSortedSprite.addChild(_local3);
myPlayer = _local3;
}
public function incLineList(){
lineListNum++;
if (lineListNum > (lineList.length - 1)){
lineListNum = 0;
};
}
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 finishBuildWorld(){
var _local1:powerUpBar;
gameState = 1;
newPlayer();
newZombies(14);
_local1 = new powerUpBar();
addChild(_local1);
myPowerUpBar = _local1;
}
public function addGUI(_arg1:Event){
var _local2:Date;
var _local3:*;
var _local4:*;
var _local5:*;
myGUI = new GUI();
addChild(myGUI);
myGUI.gotoAndStop(1);
myGUI.visible = false;
_local2 = new Date();
_local3 = (25 - _local2.getDate());
_local4 = "I bet there's something good on the telly..";
if (((((_local2.getMonth() + 1) == 12)) && ((_local3 > 0)))){
_local4 = (("only " + _local3) + " days left till chrimbo ! WOOTANG !");
};
if (((((_local2.getMonth() + 1) == 12)) && ((_local3 == 0)))){
_local4 = "HAPPY CHRISTMAS YOU MONKEYS !";
};
myGUI.titleBub.xmasMess.text = String(_local4);
_local5 = new SoundONOFF();
addChild(_local5);
mySoundONOFF = _local5;
}
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 levelCookie(){
var _local1:SharedObject;
_local1 = SharedObject.getLocal("republicofcode2");
trace(_local1.data.levelReached);
levelReached = _local1.data.levelReached;
if (!levelReached){
levelReached = 0;
};
}
public function writeCookie(){
if (levelReached < level){
levelReached = level;
};
}
public function incPartList(){
partListNum++;
if (partListNum > (partList.length - 1)){
partListNum = 0;
};
}
public function levelUp(){
if (gatesTotal > Math.abs((3 - level))){
addGameOverScreen(3);
myPowerUpBar.messMe("Too many GATES MISSED");
myPlayer.lose();
SoundManager.stopSound(null);
SoundManager.playSound("sndGong");
} else {
trace((((Arrays.levelDATA.length - 1) + " lev ") + level));
if ((Arrays.levelDATA.length - 1) > level){
SoundManager.playSound("sndCheer");
Main.instance.incScore(500);
level++;
zomIndex = 0;
myPowerUpBar.messMe("CHECKPOINT REACHED ! 500 POINTS !");
gatesTotal = 0;
myPlayer.win();
myPlayer.checkSpeed();
} else {
addGameOverScreen(4);
};
};
}
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);
myDepthSortedSprite.addChild(_local3);
zombieList.push(_local3);
_local2--;
};
zombListNum = 0;
}
public function incZombList(){
zombListNum++;
if (zombListNum > (zombieList.length - 1)){
zombListNum = 0;
};
}
public function incScore(_arg1:int){
score = (score + _arg1);
}
public function addLevelUpScreen(){
var _local1:levelUpScreen;
_local1 = new levelUpScreen();
_local1.y = myGUI.y;
addChild(_local1);
myLevelUpScreen = _local1;
}
public function keyUpFunction(_arg1:KeyboardEvent){
if (_arg1.keyCode == 37){
leftArrow = false;
} else {
if (_arg1.keyCode == 39){
rightArrow = false;
};
};
}
public function sendZap(){
}
public function addDepthSortedSprite(){
var _local1:DepthSortedSprite;
_local1 = new DepthSortedSprite();
addChild(_local1);
myDepthSortedSprite = _local1;
}
public function newLine(_arg1, _arg2, _arg3, _arg4, _arg5){
var _local6:Number;
_local6 = 1;
lineList[lineListNum].init(_arg1, _arg4, _arg3, _arg5);
incLineList();
}
public function startBuildWorld(_arg1){
var _local2:Levels;
level = _arg1;
_local2 = new Levels(level);
_local2.y = -640;
addChild(_local2);
}
public function newLineClips(_arg1){
var _local2:int;
var _local3:LineClip;
_local2 = _arg1;
while (_local2 >= 0) {
_local3 = new LineClip();
addChild(_local3);
lineList.push(_local3);
_local2--;
};
lineListNum = 0;
}
public function PlayButHit(_arg1:MouseEvent){
if (myGUI.currentFrame == 26){
SoundManager.playSound("sndDing");
myGUI.gotoAndPlay("gameStart");
lives = 3;
score = 0;
gatesTotal = 0;
zomIndex = 0;
level = 0;
};
}
public function MouseDownFunction(_arg1:MouseEvent){
clicked = 1;
}
public function gameBase(_arg1:Event){
var _local2:int;
if (gameState == 1){
myPlayer.update();
while (_local2 < zombieList.length) {
zombieList[_local2].update();
_local2++;
};
gameTimer = (gameTimer + Math.round((myPlayer.downSpeed / 2)));
if (gameTimer > 100){
gameTimer = 0;
if (Arrays.levelDATA[level][0].length == zomIndex){
newZombie(5, 16);
zomIndex++;
};
if (Arrays.levelDATA[level][0].length > zomIndex){
newZombie(Arrays.levelDATA[level][0][zomIndex], Arrays.levelDATA[level][1][zomIndex]);
zomIndex++;
};
};
shaker();
myDepthSortedSprite.sortChildren();
};
if (gameState == 0){
if (myGUI.currentFrame == (GUIStartFrame + 1)){
addLevelSelect();
};
};
}
public function newZombie(_arg1, _arg2){
var _local3:int;
if (_arg1 == 2){
gatesTotal++;
};
_local3 = 8;
while (_local3 >= 0) {
if ((_arg2 & bitList[_local3])){
zombieList[zombListNum].init(2, (64 + ((640 / 9) * _local3)), 600, _arg1);
incZombList();
};
_local3--;
};
}
public function gameOver(){
var url2:String;
var request:URLRequest;
plays = (plays + 1);
if (plays < 300000000){
SoundManager.playSound("sndMusic1");
removeAllPlats();
myGUI.gotoAndPlay(1);
gameState = 0;
};
if (plays > 300000000){
url2 = "http://www.mousebreaker.com/games/snowboard/playgame";
request = new URLRequest(url2);
try {
navigateToURL(request, "_self");
} catch(e:Error) {
trace("Error occurred!");
};
};
}
public function ClearButHit(_arg1:MouseEvent){
levelReached = 0;
}
public function MouseUpFunction(_arg1:MouseEvent){
clicked = 0;
}
trace("class");
}
}//package
Section 49
//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 == 90){
Main.instance.myGUI.visible = true;
Main.instance.myGUI.gotoAndPlay(2);
SoundManager.playSound("sndMusic1");
deleteMe();
};
}
public function deleteMe(){
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
}
}//package
Section 50
//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 51
//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);
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;
}
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 (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 frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
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 52
//Platform (Platform)
package {
import flash.events.*;
import flash.display.*;
public class Platform extends MovieClip {
private var guideY2:int;
private var platType:int;
public var street:MovieClip;
private var guideY1:int;
private var dy:int;
private var dx:int;
private var guideX1:int;
private var guideX2:int;
public function Platform(_arg1:int, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8){
addFrameScript(0, frame1);
this.x = _arg2;
this.y = _arg3;
dx = 0;
dy = 0;
guideX1 = _arg5;
guideY1 = _arg6;
guideY2 = _arg8;
guideX2 = _arg7;
platType = _arg1;
this.street.gotoAndStop(_arg1);
this.street.width = _arg4;
if ((((_arg1 == 4)) && (!((guideX1 == 0))))){
dx = -2;
};
if ((((_arg1 == 4)) && (!((guideY1 == 0))))){
dy = -2;
};
if (_arg1 == 5){
this.street.width = _arg4;
this.street.height = 5;
this.street.rotation = 90;
};
addEventListener(Event.ENTER_FRAME, moveMe);
}
public function removeMeGO(){
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
public function removeMe(){
}
public function moveMe(_arg1:Event){
if (guideX1 != 0){
this.x = (this.x + dx);
if ((((((this.x + dx) + this.street.width) > guideX2)) || (((this.x + dx) < guideX1)))){
dx = -(dx);
};
};
if (guideY1 != 0){
this.y = (this.y + dy);
if (((((this.y + dy) > guideY2)) || (((this.y + dy) < guideY1)))){
dy = -(dy);
};
};
}
function frame1(){
stop();
}
public function getTyp(){
return (platType);
}
public function getDx(){
return (dx);
}
public function getDy(){
return (dy);
}
}
}//package
Section 53
//Player (Player)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Player extends MovieClip {
public var playerAll:MovieClip;
public var COLLIDE:Boolean;
private var rotDir:int;
public var shad:MovieClip;
public var INVUN:Boolean;
public var speed:Number;
private var lastTime:int;
public var boardLength:int;
public var col;
private var dy:Number;
private var hatFrame:int;
private var dz:Number;
private var grav:Number;
public var z:Number;
private var invunIndex:int;
private var dx:Number;
private var colTimer:int;
public var downSpeed:Number;
public var rot:Number;
private static const footDist:int = 10;
private static const legHeight:int = 20;
private static const headHeight:int = 27;
public function Player(_arg1:Number, _arg2:Number){
addFrameScript(0, frame1, 1, frame2);
INVUN = true;
colTimer = 0;
col = 11007462;
dx = 0;
dy = 0;
dz = 0;
rot = 180;
invunIndex = 15;
speed = Arrays.levelSpeedDATA[Main.instance.level];
rotDir = 0;
hatFrame = 1;
grav = 0;
boardLength = 30;
COLLIDE = false;
this.z = 0;
this.y = _arg1;
this.x = _arg2;
this.gotoAndStop(1);
lastTime = getTimer();
}
public function win(){
this.playerAll.torso.gotoAndPlay("win");
}
public function lose(){
this.playerAll.torso.gotoAndPlay("lose");
}
public function checkSpeed(){
speed = Arrays.levelSpeedDATA[Main.instance.level];
}
public function restart(){
COLLIDE = false;
this.playerAll.foot0.visible = true;
this.playerAll.foot1.visible = true;
this.playerAll.torso.visible = true;
this.playerAll.head.visible = true;
this.playerAll.board.gotoAndStop(1);
invunIndex = 15;
INVUN = true;
this.alpha = 0.5;
speed = Arrays.levelSpeedDATA[Main.instance.level];
}
public function removeMeGO(){
parent.removeChild(this);
}
public function checkBaddyCollision(){
}
function frame1(){
stop();
}
public function hitLog(){
COLLIDE = true;
this.playerAll.foot0.visible = false;
this.playerAll.foot1.visible = false;
this.playerAll.torso.visible = false;
this.playerAll.head.visible = false;
this.playerAll.board.gotoAndStop(2);
}
function frame2(){
stop();
}
public function rampJump(){
dz = -(Arrays.levelSpeedDATA[Main.instance.level]);
grav = 0.8;
}
public function update(){
var _local1:*;
var _local2:*;
var _local3:*;
invunIndex--;
if (invunIndex < 0){
INVUN = false;
this.alpha = 1;
};
_local1 = this.x;
if ((((grav == 0)) && ((Main.instance.clicked == 1)))){
dz = -7;
grav = 1;
};
this.z = (this.z + dz);
dz = (dz + grav);
if (z > 0){
this.z = 0;
dz = (-(dz) / 2);
SoundManager.playSound("sndSnowHitLight");
if (Math.abs(dz) < 5){
dz = 0;
grav = 0;
};
};
colTimer = (colTimer - 1);
if (colTimer == 0){
col = 11007462;
};
if (COLLIDE){
speed = (speed * 0.95);
if ((((speed < 0.1)) && ((speed > 0)))){
speed = 0;
Main.instance.lives--;
if (Main.instance.lives > 0){
Main.instance.addGameOverScreen(2);
SoundManager.playSound("sndPop");
} else {
Main.instance.addGameOverScreen(1);
SoundManager.stopSound(null);
SoundManager.playSound("sndGong");
};
};
};
if (!COLLIDE){
_local2 = JMath.getAngle(this.x, this.y, stage.mouseX, stage.mouseY);
rot = (rot + ((_local2 - rot) / 10));
if (rot < 120){
rot = 120;
};
if (rot > 240){
rot = 240;
};
};
downSpeed = (speed * JMath.getY(rot));
this.x = (this.x + (speed * JMath.getX(rot)));
this.playerAll.board.rotation = (this.shad.rotation = rot);
this.playerAll.foot0.x = (footDist * JMath.getX(rot));
this.playerAll.foot0.y = (footDist * JMath.getY(rot));
this.playerAll.foot1.x = (footDist * JMath.getX((rot - 180)));
this.playerAll.foot1.y = (footDist * JMath.getY((rot - 180)));
this.playerAll.foot0.feet.rotation = (rot + 90);
this.playerAll.foot1.feet.rotation = (rot + 90);
this.playerAll.torso.x = (this.playerAll.foot1.x + ((this.playerAll.foot0.x - this.playerAll.foot1.x) / 2));
this.playerAll.torso.y = ((-(legHeight) + this.playerAll.foot1.y) + ((this.playerAll.foot0.y - this.playerAll.foot1.y) / 2));
this.playerAll.torso.rotation = ((rot - 180) / 5);
this.playerAll.head.x = (this.playerAll.torso.x + (headHeight * JMath.getX(((rot - 180) / 5))));
this.playerAll.head.y = (this.playerAll.torso.y + (headHeight * JMath.getY(((rot - 180) / 5))));
hatFrame = (hatFrame + Math.round(downSpeed));
if (hatFrame > this.playerAll.head.hat.totalFrames){
hatFrame = (hatFrame - this.playerAll.head.hat.totalFrames);
};
this.playerAll.head.hat.gotoAndStop(hatFrame);
this.playerAll.head.hat.rotation = ((rot - 180) / 3);
if (!COLLIDE){
_local3 = Math.sin((getTimer() * (Math.PI / 180)));
};
this.playerAll.y = ((_local3 - 1) + this.z);
if (this.z == 0){
Main.instance.newLine(this.x, this.y, _local1, this.y, col);
};
}
public function hitTree(){
COLLIDE = true;
this.playerAll.foot0.visible = false;
this.playerAll.foot1.visible = false;
this.playerAll.torso.visible = false;
this.playerAll.head.visible = false;
}
public function changeLine(){
col = 0x990000;
colTimer = 50;
}
public function checkPlatformCollision(){
}
}
}//package
Section 54
//powerUpBar (powerUpBar)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class powerUpBar extends MovieClip {
public var lives:TextField;
public var messAnim:MovieClip;
public var score:TextField;
public function powerUpBar(){
addEventListener(Event.ENTER_FRAME, moveMe);
this.x = 5;
this.y = 5;
}
public function moveMe(_arg1:Event){
this.score.text = String(Main.instance.score);
this.lives.text = String(Main.instance.lives);
}
public function messMe(_arg1:String){
this.messAnim.messageBox.message.text = String(_arg1);
this.messAnim.gotoAndPlay(2);
}
public function deleteMe(){
removeEventListener(Event.ENTER_FRAME, moveMe);
parent.removeChild(this);
}
}
}//package
Section 55
//s_bounce (s_bounce)
package {
import flash.media.*;
public dynamic class s_bounce extends Sound {
}
}//package
Section 56
//s_cheer (s_cheer)
package {
import flash.media.*;
public dynamic class s_cheer extends Sound {
}
}//package
Section 57
//s_die (s_die)
package {
import flash.media.*;
public dynamic class s_die extends Sound {
}
}//package
Section 58
//s_ding2 (s_ding2)
package {
import flash.media.*;
public dynamic class s_ding2 extends Sound {
}
}//package
Section 59
//s_explode (s_explode)
package {
import flash.media.*;
public dynamic class s_explode extends Sound {
}
}//package
Section 60
//s_gong (s_gong)
package {
import flash.media.*;
public dynamic class s_gong extends Sound {
}
}//package
Section 61
//s_hit1 (s_hit1)
package {
import flash.media.*;
public dynamic class s_hit1 extends Sound {
}
}//package
Section 62
//s_honk (s_honk)
package {
import flash.media.*;
public dynamic class s_honk extends Sound {
}
}//package
Section 63
//s_lucky (s_lucky)
package {
import flash.media.*;
public dynamic class s_lucky extends Sound {
}
}//package
Section 64
//s_music1 (s_music1)
package {
import flash.media.*;
public dynamic class s_music1 extends Sound {
}
}//package
Section 65
//s_music2 (s_music2)
package {
import flash.media.*;
public dynamic class s_music2 extends Sound {
}
}//package
Section 66
//s_pop (s_pop)
package {
import flash.media.*;
public dynamic class s_pop extends Sound {
}
}//package
Section 67
//s_snowHit (s_snowHit)
package {
import flash.media.*;
public dynamic class s_snowHit extends Sound {
}
}//package
Section 68
//s_snowHitLight (s_snowHitLight)
package {
import flash.media.*;
public dynamic class s_snowHitLight extends Sound {
}
}//package
Section 69
//s_splat (s_splat)
package {
import flash.media.*;
public dynamic class s_splat extends Sound {
}
}//package
Section 70
//SoundManager (SoundManager)
package {
import flash.events.*;
import flash.media.*;
public class SoundManager {
private var beep_transform:SoundTransform;
public static var sndHit1:s_hit1 = new s_hit1();
public static var sndHonk:s_honk = new s_honk();
public static var sndBounce:s_bounce = new s_bounce();
public static var sndDing:s_ding2 = new s_ding2();
public static var sndDie:s_die = new s_die();
public static var sndCheer:s_cheer = new s_cheer();
public static var musicChannel;
public static var sndSnowHit:s_snowHit = new s_snowHit();
public static var sndPop:s_pop = new s_pop();
public static var sndSnowHitLight:s_snowHitLight = new s_snowHitLight();
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 sndExplode:s_explode = new s_explode();
public static var sndSplat:s_splat = new s_splat();
public static var sndLucky:s_lucky = new s_lucky();
public function SoundManager(){
beep_transform = new SoundTransform(0.5);
super();
}
public static function initStart(){
}
public static function reduceSound(){
var _local1:SoundTransform;
_local1 = new SoundTransform(0);
musicChannel.soundTransform = _local1;
}
public static function wink(){
trace("winked");
}
public static function stopSound(_arg1){
musicChannel.stop();
}
public static function increaseSound(){
var _local1:SoundTransform;
_local1 = new SoundTransform(1);
musicChannel.soundTransform = _local1;
}
public static function playSound(_arg1){
switch (_arg1){
case "sndMusic1":
musicChannel = sndMusic1.play(0, 1000);
break;
case "sndMusic2":
musicChannel = sndMusic2.play(0, 1000);
break;
case "sndDing":
sndDing.play();
break;
case "sndSplat":
sndSplat.play();
break;
case "sndGong":
sndGong.play();
break;
case "sndHonk":
sndHonk.play();
break;
case "sndBounce":
sndBounce.play();
break;
case "sndHit1":
sndHit1.play();
break;
case "sndPop":
sndPop.play();
break;
case "sndLucky":
sndLucky.play();
break;
case "sndDie":
sndDie.play();
break;
case "sndExplode":
sndExplode.play();
break;
case "sndSnowHitLight":
sndSnowHitLight.play();
break;
case "sndSnowHit":
sndSnowHit.play();
break;
case "sndCheer":
sndCheer.play();
break;
};
}
}
}//package
Section 71
//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 = 610;
this.y = 450;
}
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 72
//Zombie (Zombie)
package {
import flash.events.*;
import flash.display.*;
public class Zombie extends MovieClip {
private var active:Boolean;
private var hitRad:Number;
private var HIT:Boolean;
private var type:Number;
public var z:int;
public var body:MovieClip;
private var dx:int;
private var dy:int;
public function Zombie(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:int){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9);
deactivateMe();
}
public function init(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:int){
type = _arg4;
active = true;
this.alpha = 1;
this.visible = true;
HIT = false;
z = 0;
dx = 0;
dy = 1;
switch (type){
case 1:
hitRad = 30;
break;
case 2:
hitRad = 30;
break;
case 3:
hitRad = 58;
this.alpha = 0.99;
break;
case 4:
hitRad = 12;
break;
case 5:
hitRad = 400;
break;
case 6:
hitRad = 37;
break;
case 7:
hitRad = 37;
dx = 2;
dy = 1;
break;
case 8:
hitRad = 210;
this.alpha = 0.99;
break;
case 9:
hitRad = 40;
break;
};
this.body.gotoAndStop(1);
this.gotoAndStop(type);
this.y = _arg3;
this.x = _arg2;
}
public function checkCollision(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local1 = Main.instance.myPlayer;
_local2 = this;
_local3 = (_local2.x - hitRad);
_local4 = _local2.y;
_local5 = (_local2.x + hitRad);
_local6 = _local2.y;
_local7 = _local1.x;
_local8 = _local1.y;
_local9 = (_local1.x + ((_local1.boardLength / 2) * JMath.getX(_local1.rot)));
_local10 = (_local1.y + ((_local1.boardLength / 2) * JMath.getY(_local1.rot)));
_local11 = (_local9 + (_local1.speed * JMath.getX(_local1.rot)));
_local12 = (_local10 + (_local1.speed * JMath.getY(_local1.rot)));
_local13 = JMath.collCheck(_local3, _local5, _local4, _local6, _local7, _local11, _local8, _local12, null);
if ((((((_local13 > 0)) && (!((_local1.COLLIDE == true))))) && (!(HIT)))){
hitMe(_local13);
};
}
public function removeMeGO(){
parent.removeChild(this);
}
public function deactivateMe(){
this.x = 0;
this.y = -1000;
active = false;
this.visible = false;
}
public function removeMe(){
MovieClip(parent).removeZombie(this);
parent.removeChild(this);
}
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();
}
public function hitMe(_arg1){
var _local2:*;
_local2 = Main.instance.myPlayer;
switch (type){
case 1:
if (_local2.INVUN == false){
HIT = true;
_local2.speed = (_local2.speed * 0.7);
_local2.hitTree();
Main.instance.shakeTimer = 10;
this.body.gotoAndPlay("hit");
Main.instance.myPowerUpBar.messMe("RIGHT in the BALLS");
SoundManager.playSound("sndHit1");
};
break;
case 2:
if ((((_arg1 < 0.2)) || ((_arg1 > 0.8)))){
SoundManager.playSound("sndBounce");
if (_arg1 < 0.2){
this.body.obj1.gotoAndPlay(2);
} else {
this.body.obj3.gotoAndPlay(2);
};
} else {
SoundManager.playSound("sndDing");
Main.instance.incScore(10);
this.body.gotoAndPlay("hit");
HIT = true;
Main.instance.gatesTotal--;
};
break;
case 3:
if ((((_local2.z > -5)) && ((_local2.INVUN == false)))){
HIT = true;
SoundManager.playSound("sndHit1");
_local2.speed = (_local2.speed * 0.7);
_local2.hitLog();
Main.instance.shakeTimer = 10;
this.body.gotoAndPlay("hit");
Main.instance.myPowerUpBar.messMe("FACE PLOUGH !");
};
break;
case 4:
Main.instance.incScore(100);
HIT = true;
this.body.gotoAndPlay("hit");
SoundManager.playSound("sndSplat");
_local2.changeLine();
Main.instance.myPowerUpBar.messMe("100 POINT COLDMEAT BONUS !");
break;
case 5:
HIT = true;
this.body.gotoAndPlay("hit");
Main.instance.levelUp();
break;
case 6:
HIT = true;
if ((((_arg1 < 0.2)) || ((_arg1 > 0.8)))){
_local2.changeLine();
if (_arg1 < 0.2){
this.body.obj1.gotoAndPlay(2);
SoundManager.playSound("sndDie");
Main.instance.myPowerUpBar.messMe("Heh...SORRY KID");
} else {
this.body.obj3.gotoAndPlay(2);
SoundManager.playSound("sndDie");
Main.instance.myPowerUpBar.messMe("Heh...SORRY KID");
};
} else {
Main.instance.incScore(200);
Main.instance.myPowerUpBar.messMe("200 POINT DEATH-TO-FROSTY BONUS !");
this.body.obj2.gotoAndPlay(2);
SoundManager.playSound("sndSnowHit");
};
break;
case 7:
break;
case 8:
HIT = true;
_local2.rampJump();
break;
case 9:
if (_local2.INVUN == false){
SoundManager.playSound("sndExplode");
this.body.gotoAndPlay("hit");
Main.instance.shakeTimer = 20;
Main.instance.myPowerUpBar.messMe("DAMN YOUR BLACK EYES FROSTY !");
HIT = true;
_local2.hitTree();
_local2.speed = (_local2.speed * 0.5);
};
break;
};
}
public function update(){
var _local1:*;
if (!active){
return;
};
switch (type){
case 7:
_local1 = Main.instance.myPlayer;
dx = ((_local1.x - this.x) / 5);
this.x = (this.x + dx);
if ((((JMath.getHyp(this.x, this.y, _local1.x, _local1.y) < 15)) && ((_local1.INVUN == false)))){
this.body.gotoAndPlay("hit");
HIT = true;
_local1.speed = (_local1.speed * 1.5);
_local1.hitTree();
Main.instance.shakeTimer = 20;
Main.instance.myPowerUpBar.messMe("DAMN SUICIDE PENGUINS !");
SoundManager.playSound("sndExplode");
};
break;
};
checkCollision();
this.y = (this.y - (Main.instance.myPlayer.downSpeed / dy));
}
}
}//package