Section 1
//AbstractResponder (com.nickonline.services.business.AbstractResponder)
package com.nickonline.services.business {
public class AbstractResponder implements IResponder {
private var validationEnabled:Boolean;// = true
public static const VERSION:String = "1";
public function allowValidation():Boolean{
return (this.validationEnabled);
}
public function onFault(_arg1:Object):void{
throw (new Error("AbstractResponder: onResult: Provide a concrete class."));
}
public function onStatus(_arg1:Object):void{
throw (new Error("AbstractResponder: onResult: Provide a concrete class."));
}
public function isValid(_arg1:String):Boolean{
return ((VERSION == _arg1));
}
public function onResult(_arg1:Object):void{
throw (new Error("AbstractResponder: onResult: Provide a concrete class."));
}
public function validate(_arg1:String):void{
if (((!(this.allowValidation())) || (this.isValid(_arg1)))){
return;
};
this.invalidate((((("Responder::invalid version: request:[" + AbstractResponder.VERSION) + "] - server:[") + _arg1) + "]"));
}
public function invalidate(_arg1:String):void{
if (!this.allowValidation()){
return;
};
throw (new Error(_arg1));
}
public function enableValidation(_arg1:Boolean):void{
this.validationEnabled = _arg1;
}
}
}//package com.nickonline.services.business
Section 2
//IResponder (com.nickonline.services.business.IResponder)
package com.nickonline.services.business {
public interface IResponder {
function onStatus(_arg1:Object):void;
function allowValidation():Boolean;
function onFault(_arg1:Object):void;
function validate(_arg1:String):void;
function isValid(_arg1:String):Boolean;
function invalidate(_arg1:String):void;
function enableValidation(_arg1:Boolean):void;
function onResult(_arg1:Object):void;
}
}//package com.nickonline.services.business
Section 3
//ProxyResponder (com.nickonline.services.business.ProxyResponder)
package com.nickonline.services.business {
public class ProxyResponder extends AbstractResponder {
private var proxyOnResult:Function;
private var proxyOnFault:Function;
private var proxyOnUpdate:Function;
private var proxyOnStatus:Function;
public function ProxyResponder(_arg1:Function, _arg2:Function, _arg3:Function=null){
this.proxyOnResult = _arg1;
this.proxyOnFault = _arg2;
this.proxyOnStatus = _arg3;
}
override public function onFault(_arg1:Object):void{
if (this.proxyOnFault != null){
this.proxyOnFault(_arg1);
};
}
override public function onResult(_arg1:Object):void{
if (this.proxyOnResult != null){
this.proxyOnResult(_arg1);
};
}
override public function onStatus(_arg1:Object):void{
if (this.proxyOnStatus != null){
this.proxyOnStatus(_arg1);
};
}
override public function invalidate(_arg1:String):void{
if (!this.allowValidation()){
return;
};
trace(("ProxyResponder: invalidate: " + _arg1));
}
}
}//package com.nickonline.services.business
Section 4
//ServiceLocator (com.nickonline.services.business.ServiceLocator)
package com.nickonline.services.business {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.utils.*;
import flash.net.*;
public final class ServiceLocator {
private var pManagerURI:String;
private var doServiceLoaded:Function;
private var managerLoader:Loader;
private var serviceEvents:Object;
private var managerLoaderContext:LoaderContext;
private var serviceManager;
private var pConfigURI:String;
private var pDefaultURI:String;
public static const DEFAULT_MANAGER_URI:String = "/common/flash/services/ServiceManager.swf";
public function ServiceLocator(_arg1:String=null, _arg2:String=null){
this.managerURI = _arg1;
this.configURI = _arg2;
this.serviceEvents = null;
}
private function loaded(_arg1:Event):void{
if (Event.INIT == _arg1.type){
} else {
if (Event.COMPLETE == _arg1.type){
this.serviceManager = _arg1.target.content;
this.serviceManager.defaultURI = this.defaultURI;
this.addEventToManager("EVENT_SERVICES_LOADED");
this.addEventToManager("EVENT_SERVICE_INVALID");
this.addEventToManager("EVENT_SERVICES_NOT_FOUND");
this.serviceManager.loadServices(this.configURI);
} else {
if (this.serviceEvents == null){
return;
};
var _local2 = this.serviceEvents;
_local2["EVENT_SERVICES_NOT_FOUND"](new Event("EVENT_SERVICES_NOT_FOUND"));
};
};
}
public function removeEventListener(_arg1:String, _arg2:Function):void{
if (this.serviceManager == null){
return;
};
this.serviceManager.removeEventListener(_arg1, _arg2);
}
public function addEventListener(_arg1:String, _arg2:Function):void{
if (this.serviceEvents == null){
this.serviceEvents = new Object();
};
this.serviceEvents[_arg1] = _arg2;
}
public function get configURI():String{
return (this.pConfigURI);
}
public function set configURI(_arg1:String):void{
this.pConfigURI = _arg1;
}
public function set defaultURI(_arg1:String):void{
this.pDefaultURI = _arg1;
}
public function load():void{
this.managerLoader = new Loader();
this.managerLoader.contentLoaderInfo.addEventListener(Event.INIT, this.loaded);
this.managerLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, this.loaded);
this.managerLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, this.loaded);
this.managerLoader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.loaded);
this.managerLoaderContext = new LoaderContext(false, new ApplicationDomain(ApplicationDomain.currentDomain));
this.managerLoader.load(new URLRequest((this.defaultURI + this.managerURI)), this.managerLoaderContext);
}
public function get defaultURI():String{
return (((this.pDefaultURI == null)) ? "" : this.pDefaultURI);
}
public function execute(_arg1:String, _arg2:String, _arg3:Object, _arg4):void{
this.serviceManager.execute(_arg1, _arg2, _arg3, _arg4);
}
public function addEventToManager(_arg1:String):void{
if ((((((((this.serviceManager == null)) || ((_arg1 == null)))) || ((this.serviceEvents == null)))) || ((this.serviceEvents[_arg1] == null)))){
return;
};
this.serviceManager.addEventListener(_arg1, this.serviceEvents[_arg1]);
}
public function set managerURI(_arg1:String):void{
this.pManagerURI = _arg1;
}
public function get managerURI():String{
return (((this.pManagerURI == null)) ? DEFAULT_MANAGER_URI : this.pManagerURI);
}
}
}//package com.nickonline.services.business
Section 5
//CAmmo (local.CAmmo)
package local {
import mabinga3.engine.*;
import flash.display.*;
public class CAmmo extends MovieClip {
var mTimer:int;// = 0
var destY:Number;// = 0
var xpos:Number;// = 0
var lives:int;// = 0
var lastMoveTime:int;// = 0
var moveDelay:Number;// = 25
var ypos:Number;// = 0
var ammoFuse:int;// = 0
var ammoName:String;// = ""
var killMe:Boolean;// = false
var movePeriods:Number;// = 0
var angleToTarget:Number;// = 0
var destX:Number;// = 0
var curSpeed:Number;// = 0
public function CAmmo(){
killMe = false;
lives = 0;
ammoName = "";
xpos = 0;
ypos = 0;
destX = 0;
destY = 0;
angleToTarget = 0;
curSpeed = 0;
mTimer = 0;
lastMoveTime = 0;
moveDelay = 25;
movePeriods = 0;
ammoFuse = 0;
super();
killMe = false;
xpos = (ypos = (destX = (destY = 0)));
curSpeed = 15;
lives = 2;
ammoName = "Ball";
}
public function OnMissTarget(_arg1:int){
}
public function Init(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int){
var _local6:Number;
var _local7:Number;
xpos = (x = _arg1);
ypos = (y = _arg2);
destX = _arg3;
destY = _arg4;
angleToTarget = Math.atan2((_arg3 - _arg1), ((_arg4 - _arg2) * -1));
rotation = Util.RadToDeg(angleToTarget);
_local6 = Math.sqrt((Math.pow((_arg3 - _arg1), 2) + Math.pow((_arg4 - _arg2), 2)));
_local7 = ((_local6 / ((1000 / moveDelay) * curSpeed)) * 1000);
ammoFuse = (_arg5 + _local7);
}
public function OnHitTarget(_arg1:int){
}
public function Update(_arg1:int):Boolean{
if (_arg1 < mTimer){
return (false);
};
if (mTimer > 0){
movePeriods = ((_arg1 - lastMoveTime) / moveDelay);
} else {
movePeriods = 1;
};
xpos = (xpos + ((movePeriods * curSpeed) * Math.cos((angleToTarget - (Math.PI / 2)))));
ypos = (ypos + ((movePeriods * curSpeed) * Math.sin((angleToTarget - (Math.PI / 2)))));
lastMoveTime = _arg1;
mTimer = (_arg1 + moveDelay);
return (true);
}
}
}//package local
Section 6
//CBall (local.CBall)
package local {
import mabinga3.engine.*;
public class CBall extends CAmmo {
public function CBall(){
ammoName = "Ball";
}
override public function OnMissTarget(_arg1:int){
ammoFuse = (_arg1 + 3000);
}
override public function Init(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int){
super.Init(_arg1, _arg2, _arg3, _arg4, _arg5);
}
override public function OnHitTarget(_arg1:int){
ammoFuse = (_arg1 + 3000);
destX = (Util.rnd(1000) - 200);
destY = -100;
angleToTarget = Math.atan2((destX - xpos), ((destY - ypos) * -1));
}
override public function Update(_arg1:int):Boolean{
return (super.Update(_arg1));
}
}
}//package local
Section 7
//CBanana (local.CBanana)
package local {
public class CBanana extends CAmmo {
public function CBanana(){
ammoName = "Banana";
}
override public function OnMissTarget(_arg1:int){
ammoFuse = (_arg1 + 3000);
}
override public function Init(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int){
super.Init(_arg1, _arg2, _arg3, _arg4, _arg5);
}
override public function Update(_arg1:int):Boolean{
return (super.Update(_arg1));
}
}
}//package local
Section 8
//CBees (local.CBees)
package local {
public class CBees extends CAmmo {
public function CBees(){
ammoName = "Bees";
}
override public function OnMissTarget(_arg1:int){
ammoFuse = (_arg1 + 3000);
}
override public function Init(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int){
super.Init(_arg1, _arg2, _arg3, _arg4, _arg5);
}
override public function Update(_arg1:int):Boolean{
return (super.Update(_arg1));
}
}
}//package local
Section 9
//CGame (local.CGame)
package local {
import mabinga3.nick.*;
public class CGame {
public var nextShot:int;// = 0
public var bonusURL:String;// = ""
public var pNick:CNick;// = null
public var zeeboHits:int;// = 0
public var levelTimer:int;// = 0
public var activePickup:CPickup;// = null
public var curLevel:int;// = 0
public var pickupDieFuse:int;// = 0
public var pickupTimer:int;// = 0
public var hooligan:Boolean;// = false
public var scoreMult:int;// = 1
public var pickupAppearFuse:int;// = 0
public var nickPoints:int;// = 0
public var levelGoal:int;// = 0
public var curScore:int;// = 0
public var gotBonus:Boolean;// = false
public function CGame(){
curScore = 0;
curLevel = 0;
levelTimer = 0;
zeeboHits = 0;
levelGoal = 0;
activePickup = null;
pickupTimer = 0;
pickupAppearFuse = 0;
pickupDieFuse = 0;
nextShot = 0;
scoreMult = 1;
hooligan = false;
gotBonus = false;
bonusURL = "";
pNick = null;
nickPoints = 0;
super();
}
public function NewGame(){
curLevel = 0;
curScore = 0;
hooligan = false;
gotBonus = false;
nickPoints = 0;
scoreMult = 1;
}
public function NewLevel(_arg1:int){
curLevel++;
levelTimer = (_arg1 + 62999);
zeeboHits = 0;
levelGoal = (5 + ((curLevel - 1) * 3));
activePickup = null;
pickupAppearFuse = (5000 + ((curLevel - 1) * 500));
pickupDieFuse = (5000 - ((curLevel - 3) * 500));
if (pickupDieFuse < 1000){
pickupDieFuse = 1000;
};
pickupTimer = (_arg1 + pickupAppearFuse);
nextShot = 0;
}
}
}//package local
Section 10
//CInfoBoard (local.CInfoBoard)
package local {
import mabinga3.engine.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class CInfoBoard extends MovieClip {
public var btnQuitNo:SimpleButton;
public var btnGetBonus0:MovieClip;
public var btnGetBonus1:SimpleButton;
public var btnUp:SimpleButton;
public var btnQuitYes:SimpleButton;
public var btnDown:SimpleButton;
var scoreList:Array;// = null
var curStartRank:int;// = 0
public var mcNickPoints:MovieClip;
public var pHideNick:MovieClip;
public var btnSubmitScore:SimpleButton;
public var btnPlayAgain:SimpleButton;
var mStage;// = null
public var btnScoreBack:SimpleButton;
var buttonsOn:Boolean;// = false
public var btnGoHelp:SimpleButton;
public var pNoSubmit:MovieClip;
var soundMan:CSoundMan;// = null
public var tbScoreList0:TextField;
public var tbScoreList1:TextField;
public var btnScorePlay:SimpleButton;
public var mcFinalScore:MovieClip;
public var tbScoreList2:TextField;
public function CInfoBoard(){
mStage = null;
soundMan = null;
buttonsOn = false;
scoreList = null;
curStartRank = 0;
super();
}
function GoScoreListUp(_arg1:Event){
soundMan.Play("buttonDown");
ShowScores((curStartRank - 10));
}
function QuitYes(_arg1:Event){
soundMan.Play("buttonDown");
gotoAndPlay("quitOffYes");
}
function GoScoreListDown(_arg1:Event){
soundMan.Play("buttonDown");
ShowScores((curStartRank + 10));
}
function GoScoreSubmit(_arg1:Event){
soundMan.Play("buttonDown");
gotoAndPlay("gameOverSubmit");
}
public function Init(_arg1:CSoundMan, _arg2:Object){
soundMan = _arg1;
mStage = _arg2;
}
function CloseHelp(_arg1:Event){
soundMan.Play("buttonDown");
gotoAndPlay("helpOff");
}
function GoBonus(_arg1:Event){
soundMan.Play("buttonDown");
gotoAndPlay("gameOverGetBonus");
}
function GoPlayAgain(_arg1:Event){
soundMan.Play("buttonDown");
gotoAndPlay("gameOverPlay");
}
function GoScoreBack(_arg1:Event){
soundMan.Play("buttonDown");
gotoAndPlay("menuScoresOff");
}
function ButtonOver(_arg1:Event){
soundMan.Play("buttonOver");
}
function QuitNo(_arg1:Event){
soundMan.Play("buttonDown");
gotoAndPlay("quitOffNo");
}
public function DeactivateButtons(){
if (buttonsOn == false){
return;
};
buttonsOn = false;
btnGoHelp.removeEventListener(MouseEvent.CLICK, CloseHelp);
btnGoHelp.removeEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnQuitYes.removeEventListener(MouseEvent.CLICK, QuitYes);
btnQuitYes.removeEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnQuitNo.removeEventListener(MouseEvent.CLICK, QuitNo);
btnQuitNo.removeEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnPlayAgain.removeEventListener(MouseEvent.CLICK, GoPlayAgain);
btnPlayAgain.removeEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnGetBonus1.removeEventListener(MouseEvent.CLICK, GoBonus);
btnGetBonus1.removeEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnScoreBack.removeEventListener(MouseEvent.CLICK, GoScoreBack);
btnScoreBack.removeEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnScorePlay.removeEventListener(MouseEvent.CLICK, GoScorePlay);
btnScorePlay.removeEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnSubmitScore.removeEventListener(MouseEvent.CLICK, GoScoreSubmit);
btnSubmitScore.removeEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnUp.removeEventListener(MouseEvent.CLICK, GoScoreListUp);
btnUp.removeEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnDown.removeEventListener(MouseEvent.CLICK, GoScoreListDown);
btnDown.removeEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
}
function GoScorePlay(_arg1:Event){
soundMan.Play("buttonDown");
gotoAndPlay("scoresOff");
}
public function ShowScores(_arg1:int){
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:int;
var _local7:int;
if (scoreList == null){
return;
};
if (_arg1 < 1){
_arg1 = 1;
} else {
if (_arg1 > 91){
_arg1 = 91;
};
};
curStartRank = _arg1;
_local2 = "";
_local3 = "";
_local4 = "";
_local5 = scoreList.length;
_arg1--;
_local6 = _arg1;
_local7 = _arg1;
while (_local7 <= (_arg1 + 10)) {
if (_local7 < _local5){
_local2 = ((_local2 + scoreList[_local7].rank) + ".\n");
_local3 = ((_local3 + scoreList[_local7].name) + "\n");
_local4 = ((_local4 + Util.FormatNumber(scoreList[_local7].score)) + "\n");
_local6 = int(scoreList[_local7].rank);
} else {
++_local6;
_local2 = ((_local2 + _local6) + ".\n");
_local3 = (_local3 + "\n");
_local4 = (_local4 + "0\n");
};
_local7++;
};
tbScoreList0.text = _local2;
tbScoreList1.text = _local3;
tbScoreList2.text = _local4;
}
public function ActivateButtons(){
if (buttonsOn == true){
return;
};
buttonsOn = true;
btnGoHelp.addEventListener(MouseEvent.CLICK, CloseHelp);
btnGoHelp.addEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnQuitYes.addEventListener(MouseEvent.CLICK, QuitYes);
btnQuitYes.addEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnQuitNo.addEventListener(MouseEvent.CLICK, QuitNo);
btnQuitNo.addEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnPlayAgain.addEventListener(MouseEvent.CLICK, GoPlayAgain);
btnPlayAgain.addEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnGetBonus1.addEventListener(MouseEvent.CLICK, GoBonus);
btnGetBonus1.addEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnScoreBack.addEventListener(MouseEvent.CLICK, GoScoreBack);
btnScoreBack.addEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnScorePlay.addEventListener(MouseEvent.CLICK, GoScorePlay);
btnScorePlay.addEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnSubmitScore.addEventListener(MouseEvent.CLICK, GoScoreSubmit);
btnSubmitScore.addEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnUp.addEventListener(MouseEvent.CLICK, GoScoreListUp);
btnUp.addEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnDown.addEventListener(MouseEvent.CLICK, GoScoreListDown);
btnDown.addEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
}
}
}//package local
Section 11
//CLevel (local.CLevel)
package local {
import mabinga3.engine.*;
import flash.display.*;
public class CLevel extends MovieClip {
public var goodList:Array;// = null
var mTimer:int;
var lastMoveTime:int;// = 0
public var visibleDelay;// = 2000
public var moveDelay:Number;// = 50
public var popupDelay;// = 3000
public var badList:Array;// = null
public var pCarly0:MovieClip;
public var pCarly4:MovieClip;
public var pCarly5:MovieClip;
public var pCarly2:MovieClip;
public var pCarly1:MovieClip;
public var pickupPoints:Array;// = null
public var pCarly3:MovieClip;
public var pSam0:MovieClip;
public var pSam1:MovieClip;
public var pSam2:MovieClip;
public var pMob2:MovieClip;
public var pMob3:MovieClip;
public var pMob5:MovieClip;
public var pMob6:MovieClip;
public var pSam6:MovieClip;
public var pMob0:MovieClip;
public var pMob1:MovieClip;
public var pMob4:MovieClip;
public var pSam5:MovieClip;
var movePeriods:Number;// = 0
public var slotUsed:Array;// = null
var popupTimer:int;
public var girlChance;// = 30
public static var pStage = null;
public function CLevel(){
lastMoveTime = 0;
movePeriods = 0;
moveDelay = 50;
popupDelay = 3000;
visibleDelay = 2000;
girlChance = 30;
badList = null;
goodList = null;
slotUsed = null;
pickupPoints = null;
super();
badList = new Array();
goodList = new Array();
}
public function FindTargets(){
var _local1:int;
var _local2:int;
var _local3:MovieClip;
var _local4:MovieClip;
var _local5:CTarget;
var _local6:int;
_local1 = 0;
_local2 = 0;
_local3 = null;
_local4 = null;
_local5 = null;
while ((_local3 = MovieClip(getChildByName(("pMob" + _local1)))) != null) {
_local5 = new CTarget();
_local5.myClip = _local3;
_local5.targetType = CTarget.T_ZEEBO;
badList.push(_local5);
_local1++;
};
while (((!(((_local3 = MovieClip(getChildByName(("pCarly" + _local2)))) == null))) || (!((MovieClip(getChildByName(("pSam" + _local2))) == null))))) {
_local5 = new CTarget();
if (_local3 != null){
_local5.myClip = _local3;
_local5.targetType = CTarget.T_CARLY;
} else {
_local5.myClip = _local4;
_local5.targetType = CTarget.T_SAM;
};
goodList.push(_local5);
_local2++;
};
if (_local1 > _local2){
slotUsed = new Array(_local1);
} else {
slotUsed = new Array(_local2);
};
_local6 = 0;
while (_local6 < slotUsed.length) {
slotUsed[_local6] = false;
_local6++;
};
}
function DoShowTarget(_arg1:int){
var _local2:Array;
var _local3:int;
var _local4:CTarget;
var _local5:int;
_local2 = null;
if (Util.rnd(100) <= girlChance){
_local2 = goodList;
} else {
_local2 = badList;
};
_local3 = 0;
_local4 = null;
_local5 = 0;
while ((((_local4 == null)) && ((_local3 < 100)))) {
_local3++;
_local5 = (Util.rnd(_local2.length) - 1);
_local4 = _local2[_local5];
if (_local4.isVisible == true){
_local4 = null;
};
if (slotUsed[_local5] == true){
_local4 = null;
};
};
if (_local4 == null){
return;
};
_local4.isDead = false;
_local4.isVisible = true;
_local4.visibleTimer = (_arg1 + visibleDelay);
slotUsed[_local5] = true;
_local4.myClip.gotoAndPlay("reveal");
}
public function GetTargetHit(_arg1:CAmmo):CTarget{
var _local2:int;
var _local3:CTarget;
var _local4:int;
_local3 = null;
_local4 = badList.length;
_local2 = 0;
while (_local2 < _local4) {
_local3 = badList[_local2];
if (_local3.isVisible == false){
} else {
if (_local3.isDead == true){
} else {
if (Util.PixHit(_arg1, _local3.myClip, 120) != null){
return (_local3);
};
};
};
_local2++;
};
_local4 = goodList.length;
_local2 = 0;
while (_local2 < _local4) {
_local3 = goodList[_local2];
if (_local3.isVisible == false){
} else {
if (_local3.isDead == true){
} else {
if (Util.PixHit(_arg1, _local3.myClip, 120) != null){
return (_local3);
};
};
};
_local2++;
};
return (null);
}
public function SelectPickup(){
var _local1:int;
_local1 = (Util.rnd(pickupPoints.length) - 1);
return (pickupPoints[_local1]);
}
public function Update(_arg1:int):Boolean{
var _local2:int;
var _local3:int;
var _local4:CTarget;
if (_arg1 < mTimer){
return (false);
};
_local2 = badList.length;
_local3 = 0;
_local4 = null;
_local3 = 0;
while (_local3 < _local2) {
_local4 = badList[_local3];
if ((((_local4.isVisible == true)) && ((_arg1 > _local4.visibleTimer)))){
_local4.visibleTimer = (_arg1 + 15000);
if (_local4.isDead == true){
_local4.myClip.gotoAndStop("hiding");
_local4.isVisible = false;
slotUsed[_local3] = false;
} else {
_local4.myClip.gotoAndPlay("hide");
};
} else {
if ((((_local4.isVisible == true)) && ((_local4.myClip.currentLabel == "hiding")))){
_local4.isVisible = false;
slotUsed[_local3] = false;
};
};
_local3++;
};
_local2 = goodList.length;
_local3 = 0;
while (_local3 < _local2) {
_local4 = goodList[_local3];
if ((((_local4.isVisible == true)) && ((_arg1 > _local4.visibleTimer)))){
_local4.visibleTimer = (_arg1 + 180000);
if (_local4.isDead == true){
_local4.myClip.gotoAndStop("hiding");
_local4.isVisible = false;
slotUsed[_local3] = false;
} else {
_local4.myClip.gotoAndPlay("hide");
};
} else {
if ((((_local4.isVisible == true)) && ((_local4.myClip.currentLabel == "hiding")))){
_local4.isVisible = false;
slotUsed[_local3] = false;
};
};
_local3++;
};
if (_arg1 > popupTimer){
DoShowTarget(_arg1);
popupTimer = (_arg1 + Util.rnd(popupDelay));
};
mTimer = (_arg1 + moveDelay);
return (true);
}
}
}//package local
Section 12
//CPickup (local.CPickup)
package local {
import flash.display.*;
public class CPickup {
var myFuse:int;// = 0
var killMe:Boolean;// = false
var myName:String;// = ""
var mTimer:int;// = 0
var myClip:MovieClip;// = null
public function CPickup(){
killMe = false;
mTimer = 0;
myName = "";
myFuse = 0;
myClip = null;
super();
}
public function Init(_arg1:String, _arg2:MovieClip, _arg3:int, _arg4:int, _arg5:int){
myClip = _arg2;
myClip.x = _arg3;
myClip.y = _arg4;
myFuse = _arg5;
myName = _arg1;
mTimer = 0;
killMe = false;
}
public function Update(_arg1:int):Boolean{
if (_arg1 < mTimer){
return (false);
};
if (myClip.currentLabel == "animDone"){
killMe = true;
};
if (_arg1 > myFuse){
myClip.gotoAndPlay("goAway");
myFuse = (_arg1 + 30000);
};
mTimer = (_arg1 + 100);
return (true);
}
}
}//package local
Section 13
//CSnake (local.CSnake)
package local {
public class CSnake extends CAmmo {
public function CSnake(){
ammoName = "Snake";
}
override public function OnMissTarget(_arg1:int){
ammoFuse = (_arg1 + 3000);
}
override public function Init(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int){
super.Init(_arg1, _arg2, _arg3, _arg4, _arg5);
}
override public function Update(_arg1:int):Boolean{
return (super.Update(_arg1));
}
}
}//package local
Section 14
//CStateGame (local.CStateGame)
package local {
import mabinga3.engine.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
public class CStateGame extends CState {
public var pStats:MovieClip;
public var pBadScore:MovieClip;
var tbTime:TextField;// = null
var btnSound1:SimpleButton;// = null
var btnSound0:SimpleButton;// = null
var pGame:CGame;// = null
var tbGoal:TextField;// = null
var gameMode:int;// = 0
var fireFuse:int;// = 0
var tbScore:TextField;// = null
var btnQuit:SimpleButton;// = null
public var ammoStage:MovieClip;
var fireDelay:int;// = 250
var displayScore:int;// = 0
var fireMode:Boolean;// = true
var wowStr:String;// = ""
var myLevel:CLevel;// = null
var tbNickPoints:TextField;// = null
public var pInfo:CInfoBoard;
public var pGoodScore:MovieClip;
var buttonsOn:Boolean;// = false
var timeOut:int;// = 0
public var pCannon:MovieClip;
public var pBonus:MovieClip;
var stateChange:CStateChange;// = null
public var pHook:MovieClip;
var btnHelp:SimpleButton;// = null
var tbFinalScore:TextField;// = null
var cursorOn:Boolean;// = false
public var levelStage:MovieClip;
public var pickupStage:MovieClip;
public var pCursor:MovieClip;
var infoBoardReturnMode:int;// = 0
public var mcScoreMult:MovieClip;
var statsTimer:int;// = 0
var scoreJump:int;// = 0
static const GM_ShowQuit:int = 7;
static const GM_IntraLevelSecondPart:int = 11;
static const GM_QuitNow:int = 5;
static const GM_QuitReq:int = 4;
static const GM_LevelOver:int = 3;
static const GM_ShowHigh:int = 12;
static const GM_StartLevel:int = 1;
static const GM_ShowGameOver:int = 9;
static const GM_IntraLevel:int = 10;
static const GM_Init:int = 0;
static const GM_Playing:int = 2;
static const GM_ShowHelp:int = 6;
static const GM_GameOver:int = 8;
public function CStateGame(){
gameMode = 0;
stateChange = null;
buttonsOn = false;
wowStr = "";
statsTimer = 0;
tbScore = null;
tbTime = null;
tbGoal = null;
pGame = null;
cursorOn = false;
timeOut = 0;
infoBoardReturnMode = 0;
btnSound0 = null;
btnSound1 = null;
btnHelp = null;
btnQuit = null;
displayScore = 0;
scoreJump = 0;
tbFinalScore = null;
tbNickPoints = null;
myLevel = null;
fireFuse = 0;
fireDelay = 250;
fireMode = true;
super();
}
function CreateBlong(_arg1:int, _arg2:int){
pBadScore.x = (_arg1 - 10);
pBadScore.y = (_arg2 - 80);
pBadScore.gotoAndPlay(1);
}
function ProcessGameMode():int{
switch (gameMode){
case GM_Init:
DoInitStuff();
StopSound("menu");
PlaySound("menu", true);
gameMode = GM_StartLevel;
break;
case GM_StartLevel:
while (pickupStage.numChildren > 0) {
pickupStage.removeChildAt(0);
};
pGame.NewLevel(curTime);
pHook.visible = false;
fireMode = true;
while (levelStage.numChildren > 0) {
levelStage.removeChildAt(0);
};
if ((pGame.curLevel % 2) == 1){
myLevel = new CPinkRoom();
myLevel.pickupPoints = [[90, 304], [456, 290], [544, 312], [219, 125], [340, 125], [501, 82]];
} else {
myLevel = new CBrownRoom();
myLevel.pickupPoints = [[54, 318], [157, 284], [240, 245], [89, 99], [429, 200]];
};
myLevel.FindTargets();
levelStage.addChild(myLevel);
myLevel.popupDelay = 1500;
myLevel.visibleDelay = 850;
myLevel.girlChance = (20 + (pGame.curLevel * 5));
if (myLevel.girlChance > 50){
myLevel.girlChance = 50;
};
pInfo.x = 300;
pInfo.gotoAndPlay("readyGo");
gameMode = GM_IntraLevelSecondPart;
break;
case GM_LevelOver:
while (ammoStage.numChildren > 0) {
ammoStage.removeChildAt(0);
};
pStats.gotoAndPlay("zoomOut");
if (pGame.scoreMult > 1){
mcScoreMult.gotoAndPlay("zoomOut");
};
DeactivateButtons();
pInfo.x = 300;
pInfo.y = 0;
pInfo.gotoAndPlay("levelCompleteOn");
gameMode = GM_IntraLevel;
break;
case GM_IntraLevel:
if (pInfo.currentLabel == "animDone"){
ActivateButtons();
ResetFocus();
gameMode = GM_StartLevel;
};
break;
case GM_IntraLevelSecondPart:
if (pInfo.currentLabel == "animDone"){
pStats.gotoAndPlay("zoomIn");
if (pGame.scoreMult > 1){
mcScoreMult.gotoAndPlay("zoomIn");
};
ActivateButtons();
ResetFocus();
gameMode = GM_Playing;
};
break;
case GM_GameOver:
tbFinalScore.text = Util.FormatNumber(pGame.curScore);
tbNickPoints.text = "0";
pStats.gotoAndPlay("zoomOut");
if (pGame.scoreMult > 1){
mcScoreMult.gotoAndPlay("zoomOut");
};
DeactivateButtons();
displayScore = 0;
scoreJump = int((pGame.curScore / 75));
pInfo.x = 30;
pInfo.y = 100;
pInfo.ActivateButtons();
if (pGame.gotBonus == true){
pInfo.btnGetBonus1.visible = true;
pInfo.btnGetBonus0.visible = false;
PlaySound("secretBonusShort");
} else {
pInfo.btnGetBonus1.visible = false;
pInfo.btnGetBonus0.visible = true;
};
if ((((((pGame.pNick.connected == true)) && (!((pGame.pNick.pCurrentUser == null))))) && ((pGame.hooligan == false)))){
pInfo.pHideNick.visible = false;
pInfo.pNoSubmit.visible = false;
if (pGame.curScore >= 15000){
pGame.pNick.SubmitAchievement("score_15000");
} else {
if (pGame.curScore >= 5000){
pGame.pNick.SubmitAchievement("score_5000");
} else {
if (pGame.curScore > 0){
pGame.pNick.SubmitAchievement("score_1");
};
};
};
} else {
pInfo.pHideNick.visible = true;
pInfo.pNoSubmit.visible = true;
};
pInfo.gotoAndPlay("gameOverOn");
statsTimer = (curTime - 1);
gameMode = GM_ShowGameOver;
break;
case GM_ShowGameOver:
if (curTime > statsTimer){
UpdateFinalScore();
};
if (pInfo.currentLabel == "animDone"){
pInfo.DeactivateButtons();
ActivateButtons();
ResetFocus();
gameMode = GM_Init;
} else {
if (pInfo.currentLabel == "animDone2"){
navigateToURL(new URLRequest(pGame.bonusURL), "_blank");
pInfo.DeactivateButtons();
pInfo.ActivateButtons();
tbFinalScore.text = Util.FormatNumber(pGame.curScore);
pInfo.gotoAndPlay("gameOverOn");
} else {
if (pInfo.currentLabel == "animDone3"){
pGame.pNick.DoGetScores = DoGetScores;
pGame.pNick.SubmitScore(pGame.curScore);
gameMode = GM_ShowHigh;
pInfo.DeactivateButtons();
pInfo.ActivateButtons();
pInfo.x = 69;
pInfo.y = 36;
pInfo.gotoAndPlay("scoresOn");
};
};
};
break;
case GM_ShowHigh:
if (pInfo.currentLabel == "animDone"){
pInfo.DeactivateButtons();
ActivateButtons();
ResetFocus();
gameMode = GM_Init;
};
break;
case GM_ShowHelp:
if (pInfo.currentLabel == "animDone"){
AddTimers();
pInfo.DeactivateButtons();
pStats.gotoAndPlay("zoomIn");
if (pGame.scoreMult > 1){
mcScoreMult.gotoAndPlay("zoomIn");
};
ActivateButtons();
gameMode = infoBoardReturnMode;
};
break;
case GM_ShowQuit:
if (pInfo.currentLabel == "animDone"){
AddTimers();
pInfo.DeactivateButtons();
ResetFocus();
gameMode = GM_QuitReq;
} else {
if (pInfo.currentLabel == "animDone2"){
AddTimers();
pInfo.DeactivateButtons();
pStats.gotoAndPlay("zoomIn");
if (pGame.scoreMult > 1){
mcScoreMult.gotoAndPlay("zoomIn");
};
ActivateButtons();
gameMode = infoBoardReturnMode;
};
};
break;
case GM_QuitReq:
stateChange = new CStateChange(true, null);
break;
default:
break;
};
return (gameMode);
}
public function DoNPResult(_arg1:String){
pGame.nickPoints = (pGame.nickPoints + int(_arg1));
if (gameMode == GM_ShowGameOver){
UpdateFinalScore();
};
}
function DoInitStuff(){
tbScore = TextField(MovieClip(pStats.getChildByName("pStats")).getChildByName("tbScore"));
tbGoal = TextField(MovieClip(pStats.getChildByName("pStats")).getChildByName("tbGoal"));
tbTime = TextField(MovieClip(pStats.getChildByName("pStats")).getChildByName("tbTime"));
btnQuit = SimpleButton(MovieClip(pStats.getChildByName("pStats2")).getChildByName("btnQuit"));
btnHelp = SimpleButton(MovieClip(pStats.getChildByName("pStats2")).getChildByName("btnHelp"));
btnSound0 = SimpleButton(MovieClip(pStats.getChildByName("pStats2")).getChildByName("btnSound0"));
btnSound1 = SimpleButton(MovieClip(pStats.getChildByName("pStats2")).getChildByName("btnSound1"));
levelStage.x = (levelStage.y = 0);
ammoStage.x = (ammoStage.y = 0);
pickupStage.x = (pickupStage.y = 0);
pGame.NewGame();
ActivateButtons();
mcScoreMult.gotoAndStop("animDone");
btnSound1.visible = soundMan.soundOn;
btnSound0.visible = !(soundMan.soundOn);
ResetFocus();
}
function DeactivateButtons(){
if (buttonsOn == false){
return;
};
pStage.removeEventListener(MouseEvent.MOUSE_MOVE, DoMouseMove);
btnQuit.removeEventListener(MouseEvent.CLICK, GoQuit);
btnQuit.removeEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnHelp.removeEventListener(MouseEvent.CLICK, GoHelp);
btnHelp.removeEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnSound0.removeEventListener(MouseEvent.CLICK, GoMute);
btnSound0.removeEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnSound1.removeEventListener(MouseEvent.CLICK, GoMute);
btnSound1.removeEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
Mouse.show();
buttonsOn = false;
}
function GoHelp(_arg1:Event){
if (pInfo.currentFrame > 3){
return;
};
pStats.gotoAndPlay("zoomOut");
if (pGame.scoreMult > 1){
mcScoreMult.gotoAndPlay("zoomOut");
};
timeOut = curTime;
infoBoardReturnMode = gameMode;
PlaySound("buttonDown");
gameMode = GM_ShowHelp;
DeactivateButtons();
pInfo.x = 70;
pInfo.y = 36;
pInfo.ActivateButtons();
pInfo.gotoAndPlay("helpOn");
}
override public function Shutdown(){
pGame.pNick.DoNPResult = null;
DeactivateButtons();
Mouse.show();
StopSound("menu");
super.Shutdown();
}
function UpdateGame():int{
var _local1:int;
var _local2:CAmmo;
var _local3:CTarget;
var _local4:int;
var _local5:MovieClip;
var _local6:MovieClip;
var _local7:Array;
var _local8:CPickup;
var _local9:int;
myLevel.Update(curTime);
_local1 = 0;
while (_local1 < ammoStage.numChildren) {
_local2 = CAmmo(ammoStage.getChildAt(_local1));
if (_local2.killMe == true){
_local2.lives--;
_local2.killMe = false;
//unresolved if
ammoStage.removeChildAt(_local1);
} else {
if (_local2.Update(curTime) == true){
_local2.x = _local2.xpos;
_local2.y = _local2.ypos;
if (curTime > _local2.ammoFuse){
_local2.killMe = true;
_local3 = myLevel.GetTargetHit(_local2);
if (_local3 == null){
_local2.OnMissTarget(curTime);
} else {
_local2.OnHitTarget(curTime);
_local3.GetHit(curTime, _local2.ammoName);
if (_local3.targetType == CTarget.T_ZEEBO){
if (_local2.ammoName != "Ball"){
pGame.scoreMult++;
if (pGame.scoreMult > 9){
pGame.scoreMult = 9;
};
TextField(MovieClip(mcScoreMult.getChildByName("mcMulti")).getChildByName("tbMulti")).text = Util.FormatNumber(pGame.scoreMult);
mcScoreMult.gotoAndPlay("zoomIn");
};
_local4 = (100 * pGame.scoreMult);
pGame.curScore = (pGame.curScore + _local4);
pGame.zeeboHits++;
PlaySound(("hitZeebo" + _local2.ammoName));
CreateBling(_local4, _local3.myClip.x, _local3.myClip.y);
} else {
if (_local3.targetType == CTarget.T_CARLY){
PlaySound(("hitCarly" + Util.rnd(4)));
} else {
PlaySound(("hitSam" + Util.rnd(2)));
};
pGame.levelTimer = (pGame.levelTimer - 10000);
if (pGame.levelTimer < curTime){
pGame.levelTimer = curTime;
};
if (pGame.scoreMult > 1){
pGame.scoreMult = 1;
mcScoreMult.gotoAndPlay("zoomOut");
};
CreateBlong(_local3.myClip.x, _local3.myClip.y);
};
};
};
};
_local1++;
};
};
if (curTime > statsTimer){
UpdateStats();
};
if (fireMode == false){
if (pHook.currentLabel == "animDone"){
pHook.visible = false;
fireMode = true;
} else {
if (pHook.currentLabel == "grab"){
if (pGame.activePickup == null){
} else {
pGame.activePickup.killMe = true;
_local5 = MovieClip(pHook.getChildByName("pickupHolder"));
while (_local5.numChildren > 0) {
_local5.removeChildAt(0);
};
_local6 = null;
switch (pGame.activePickup.myName){
case "Bees":
_local6 = new CPickupBees();
pGame.nextShot = 1;
break;
case "Banana":
_local6 = new CPickupBanana();
pGame.nextShot = 2;
break;
case "Snake":
_local6 = new CPickupSnake();
pGame.nextShot = 3;
break;
case "Teeth":
_local6 = new CPickupTeeth();
pGame.nextShot = 4;
break;
default:
_local6 = new CPickupBonus();
pGame.nextShot = 0;
pBonus.gotoAndPlay(2);
pGame.gotBonus = true;
PlaySound("secretBonus");
break;
};
PlaySound("grabIn");
_local6.scaleX = (_local6.scaleY = 1.75);
_local6.gotoAndStop("showing");
_local5.addChild(_local6);
};
pHook.gotoAndPlay("goGrab");
};
};
};
if (pGame.activePickup != null){
pGame.activePickup.Update(curTime);
if (pGame.activePickup.killMe == true){
while (pickupStage.numChildren > 0) {
pickupStage.removeChildAt(0);
};
pGame.activePickup = null;
pGame.pickupTimer = (curTime + pGame.pickupAppearFuse);
};
};
if ((((pGame.activePickup == null)) && ((curTime > pGame.pickupTimer)))){
_local7 = myLevel.SelectPickup();
_local8 = new CPickup();
_local9 = Util.rnd(4);
if ((((pGame.gotBonus == false)) && ((pGame.curScore > 50000)))){
_local9 = 5;
};
switch (_local9){
case 1:
_local8.Init("Bees", new CPickupBees(), _local7[0], _local7[1], (curTime + pGame.pickupDieFuse));
break;
case 2:
_local8.Init("Banana", new CPickupBanana(), _local7[0], _local7[1], (curTime + pGame.pickupDieFuse));
break;
case 3:
_local8.Init("Snake", new CPickupSnake(), _local7[0], _local7[1], (curTime + pGame.pickupDieFuse));
break;
case 4:
_local8.Init("Teeth", new CPickupTeeth(), _local7[0], _local7[1], (curTime + pGame.pickupDieFuse));
break;
default:
_local8.Init("Bonus", new CPickupBonus(), _local7[0], _local7[1], (curTime + pGame.pickupDieFuse));
break;
};
while (pickupStage.numChildren > 0) {
pickupStage.removeChildAt(0);
};
pickupStage.addChild(_local8.myClip);
pGame.activePickup = _local8;
};
if (pGame.zeeboHits >= pGame.levelGoal){
gameMode = GM_LevelOver;
};
if (curTime > pGame.levelTimer){
gameMode = GM_GameOver;
};
return (gameMode);
}
function UpdateFinalScore(){
var s:int;
var d:int;
s = pGame.curScore;
d = displayScore;
try {
tbNickPoints.text = Util.FormatNumber(pGame.nickPoints);
} catch(errObj2:Error) {
};
if (s == d){
return;
};
try {
if ((d + scoreJump) <= s){
d = (d + scoreJump);
} else {
d = s;
};
displayScore = d;
tbFinalScore.text = Util.FormatNumber(displayScore);
} catch(errObject:Error) {
displayScore = pGame.curScore;
};
statsTimer = (curTime + 20);
}
public function DoGetScores(_arg1:Array){
pInfo.scoreList = _arg1;
pInfo.ShowScores(1);
}
override public function Update():CStateChange{
var _local1:int;
super.Update();
_local1 = gameMode;
stateChange = null;
if (ProcessGameMode() != _local1){
return (stateChange);
};
if (gameMode < GM_QuitReq){
if (ProcessKeyboard() != _local1){
return (stateChange);
};
if (ProcessMouse() != _local1){
return (stateChange);
};
if (UpdateGame() != _local1){
return (stateChange);
};
};
return (stateChange);
}
function ActivateButtons(){
if (buttonsOn == true){
return;
};
pStage.addEventListener(MouseEvent.MOUSE_MOVE, DoMouseMove);
btnQuit.addEventListener(MouseEvent.CLICK, GoQuit);
btnQuit.addEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnHelp.addEventListener(MouseEvent.CLICK, GoHelp);
btnHelp.addEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnSound0.addEventListener(MouseEvent.CLICK, GoMute);
btnSound0.addEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnSound1.addEventListener(MouseEvent.CLICK, GoMute);
btnSound1.addEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
Mouse.hide();
ResetFocus();
buttonsOn = true;
}
override public function Init(){
super.Init();
pGame = CGame(globalGame);
pGame.pNick.DoNPResult = DoNPResult;
Mouse.hide();
cursorOn = false;
pCannon.gotoAndStop(1);
pBonus.gotoAndStop(1);
wowStr = String.fromCharCode(80, 73, 84, 70, 65, 76, 76);
pInfo.x = 30;
pInfo.y = 0;
pInfo.Init(soundMan, pStage);
pInfo.gotoAndStop("animDone");
pStats.gotoAndStop(1);
tbFinalScore = TextField(MovieClip(pInfo.getChildByName("mcFinalScore")).getChildByName("tbFinalScore"));
tbNickPoints = TextField(MovieClip(pInfo.getChildByName("mcNickPoints")).getChildByName("tbNickPoints"));
gameMode = GM_Init;
}
function UpdateStats(){
var _local1:int;
var _local2:int;
if (inStr.indexOf(wowStr) > -1){
inStr = "";
pGame.hooligan = true;
};
_local1 = ((pGame.levelTimer - curTime) / 1000);
_local2 = int((_local1 % 60));
tbTime.text = (((int((_local1 / 60)) + ":") + ((_local2 < 10)) ? "0" : "") + _local2);
tbScore.text = Util.FormatNumber(pGame.curScore);
tbGoal.text = ((pGame.zeeboHits + "/") + pGame.levelGoal);
statsTimer = (curTime + 50);
}
function ButtonOver(_arg1:Event){
PlaySound("buttonOver");
}
function GoMute(_arg1:Event){
soundMan.ToggleMute();
btnSound1.visible = soundMan.soundOn;
btnSound0.visible = !(soundMan.soundOn);
}
function ProcessKeyboard():int{
if (gameMode == GM_Playing){
if (keyState[Keyboard.ESCAPE] == true){
if (keyLock[Keyboard.ESCAPE] == false){
keyLock[Keyboard.ESCAPE] = true;
GoQuit(null);
};
};
};
if (pGame.hooligan == true){
if (keyState[49] == true){
if (keyLock[49] == false){
keyLock[49] = true;
pGame.levelTimer = (curTime - 1);
};
};
if (keyState[50] == true){
if (keyLock[50] == false){
keyLock[50] = true;
pBonus.gotoAndPlay(2);
pGame.gotBonus = true;
PlaySound("secretBonus");
};
};
};
return (gameMode);
}
function GoQuit(_arg1:Event){
if (pInfo.currentFrame > 3){
return;
};
pStats.gotoAndPlay("zoomOut");
if (pGame.scoreMult > 1){
mcScoreMult.gotoAndPlay("zoomOut");
};
timeOut = curTime;
infoBoardReturnMode = gameMode;
PlaySound("buttonDown");
gameMode = GM_ShowQuit;
DeactivateButtons();
pInfo.x = 97;
pInfo.y = 30;
pInfo.ActivateButtons();
pInfo.gotoAndPlay("quitOn");
}
function AddTimers(){
var _local1:int;
_local1 = (curTime - timeOut);
pGame.levelTimer = (pGame.levelTimer + _local1);
}
function DoMouseMove(_arg1:MouseEvent){
var _local2:int;
var _local3:int;
var _local4:Number;
if (fireMode == false){
return;
};
_local2 = _arg1.stageX;
_local3 = _arg1.stageY;
if ((((cursorOn == false)) && ((_local3 > 350)))){
cursorOn = true;
Mouse.show();
pCursor.visible = false;
} else {
if ((((cursorOn == true)) && ((_local3 <= 350)))){
cursorOn = false;
Mouse.hide();
pCursor.visible = true;
};
};
pCursor.x = _local2;
pCursor.y = _local3;
pCannon.x = (300 + ((_local2 - 300) / 3));
pCannon.y = (360 + (_local3 / 5));
_local4 = Math.atan2((_local2 - pCannon.x), ((_local3 - pCannon.y) * -1));
pCannon.rotation = Util.RadToDeg(_local4);
}
function CreateBling(_arg1:int, _arg2:int, _arg3:int){
pGoodScore.x = (_arg2 - 10);
pGoodScore.y = (_arg3 - 80);
TextField(MovieClip(pGoodScore.getChildByName("mcScore")).getChildByName("tbScore")).text = ("+" + Util.FormatNumber(_arg1));
pGoodScore.gotoAndPlay(1);
}
function ProcessMouse():int{
if (mouseDown == true){
if (mouseLock == true){
} else {
mouseLock = true;
DoFireRequest(mouseX, mouseY);
};
} else {
if (mouseLock == true){
mouseLock = false;
};
};
return (gameMode);
}
function DoFireRequest(_arg1:int, _arg2:int){
var _local3:CAmmo;
var _local4:int;
var _local5:int;
var _local6:Number;
var _local7:Number;
if (curTime < fireFuse){
return;
};
if (fireMode == false){
return;
};
if (pCursor.visible == false){
return;
};
if (_arg2 > 350){
_arg2 = 350;
};
if (pGame.activePickup != null){
if (Util.PixHit(pGame.activePickup.myClip, pCursor, 120) != null){
_local4 = pGame.activePickup.myClip.x;
_local5 = pGame.activePickup.myClip.y;
fireMode = false;
_local6 = Math.atan2((pGame.activePickup.myClip.x - pCannon.x), ((pGame.activePickup.myClip.y - pCannon.y) * -1));
pHook.rotation = Util.RadToDeg(_local6);
pHook.x = ((pCannon.x + _local4) / 2);
pHook.y = ((pCannon.y + _local5) / 2);
_local7 = (0.5 * (Math.sqrt((Math.pow((pCannon.x - _local4), 2) + Math.pow((pCannon.y - _local5), 2))) - 291));
pHook.x = (pHook.x + (_local7 * Math.cos((_local6 - (Math.PI / 2)))));
pHook.y = (pHook.y + (_local7 * Math.sin((_local6 - (Math.PI / 2)))));
pHook.visible = true;
pHook.gotoAndPlay("extend");
PlaySound("grabOut");
return;
};
};
_local3 = null;
switch (pGame.nextShot){
case 0:
_local3 = new CBall();
break;
case 1:
_local3 = new CBees();
break;
case 2:
_local3 = new CBanana();
break;
case 3:
_local3 = new CSnake();
break;
default:
_local3 = new CTeeth();
break;
};
_local3.Init(pCannon.x, pCannon.y, _arg1, _arg2, curTime);
pGame.nextShot = 0;
ammoStage.addChild(_local3);
fireFuse = (curTime + fireDelay);
PlaySound("fireShot");
pCannon.gotoAndPlay("fireShot");
}
}
}//package local
Section 15
//CStateMenu (local.CStateMenu)
package local {
import mabinga3.engine.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import mabinga3.nick.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
public class CStateMenu extends CState {
public var btnHigh:SimpleButton;
public var pLogo:MovieClip;
public var pInfo:CInfoBoard;
public var tbSoundMan:TextField;
var pGame:CGame;// = null
public var tbLogStatus:TextField;
public var btnPlay:SimpleButton;
var mapLoader:URLLoader;// = null
var menuSongPlaying:String;// = ""
var gameMode:int;// = 0
public var btnHelp:SimpleButton;
static const GM_Init:int = 0;
static const GM_BackFromOtherState:int = 4;
static const GM_Waiting:int = 2;
static const GM_ShowHelp:int = 5;
static const GM_ShowHigh:int = 6;
static const GM_Initing:int = 1;
static const GM_StartGame:int = 3;
public function CStateMenu(){
gameMode = 0;
pGame = null;
mapLoader = null;
menuSongPlaying = "";
super();
}
function GoGame(_arg1:Event){
if (gameMode != GM_Waiting){
return;
};
PlaySound("buttonDown");
gameMode = GM_StartGame;
}
override public function Init(){
super.Init();
CLevel.pStage = pStage;
pGame = new CGame();
pGame.pNick = new CNick();
globalGame = pGame;
LoadBonusURL();
soundMan = new CSoundMan();
soundMan.RegisterSound("menu", new S_Menu(), true);
soundMan.RegisterSound("introTalk", new S_Intro(), false);
soundMan.RegisterSound("buttonOver", new S_ButtonOver(), false);
soundMan.RegisterSound("buttonDown", new S_ButtonDown(), false);
soundMan.RegisterSound("fireShot", new S_Fire(), false);
soundMan.RegisterSound("hitZeeboBall", new S_HitZeeboBall(), false);
soundMan.RegisterSound("hitZeeboBanana", new S_HitZeeboBanana(), false);
soundMan.RegisterSound("hitZeeboBees", new S_HitZeeboBees(), false);
soundMan.RegisterSound("hitZeeboSnake", new S_HitZeeboSnake(), false);
soundMan.RegisterSound("hitZeeboTeeth", new S_HitZeeboTeeth(), false);
soundMan.RegisterSound("hitSam1", new S_HitSam1(), false);
soundMan.RegisterSound("hitSam2", new S_HitSam2(), false);
soundMan.RegisterSound("hitCarly1", new S_HitCarly1(), false);
soundMan.RegisterSound("hitCarly2", new S_HitCarly2(), false);
soundMan.RegisterSound("hitCarly3", new S_HitCarly2(), false);
soundMan.RegisterSound("hitCarly4", new S_HitCarly2(), false);
soundMan.RegisterSound("grabOut", new S_GrabOut(), false);
soundMan.RegisterSound("grabIn", new S_GrabIn(), false);
soundMan.LoadSound("media/secretBonus.mp3", "secretBonus", "buttonOver", false);
soundMan.LoadSound("media/secretBonusShort.mp3", "secretBonusShort", "buttonOver", false);
soundMan.StartLoading();
pInfo.x = 30;
pInfo.y = 0;
pInfo.Init(soundMan, pStage);
pInfo.gotoAndStop("animDone");
ActivateButtons();
btnHelp.visible = false;
btnHigh.visible = false;
btnPlay.visible = false;
gameMode = GM_Init;
}
function ErrorMap(_arg1:Event){
mapLoader.removeEventListener(Event.COMPLETE, ParseMap);
mapLoader.removeEventListener(IOErrorEvent.IO_ERROR, ErrorMap);
pGame.bonusURL = "";
}
function ProcessKeyboard(){
if (gameMode == GM_Waiting){
if (keyState[Keyboard.SPACE] == true){
if (keyLock[Keyboard.SPACE] == false){
keyLock[Keyboard.SPACE] = true;
GoGame(null);
};
};
if (keyState[Keyboard.ENTER] == true){
if (keyLock[Keyboard.ENTER] == false){
keyLock[Keyboard.ENTER] = true;
GoGame(null);
};
};
};
}
function GoHelp(_arg1:Event){
if (gameMode != GM_Waiting){
return;
};
pLogo.visible = false;
PlaySound("buttonDown");
gameMode = GM_ShowHelp;
DeactivateButtons();
pInfo.x = 70;
pInfo.y = 36;
pInfo.ActivateButtons();
pInfo.gotoAndPlay("helpOn");
}
override public function Shutdown(){
super.Shutdown();
}
function ButtonOver(_arg1:Event){
PlaySound("buttonOver");
}
public function DoGotConnection(_arg1:Object){
if (pGame.pNick.pCurrentUser != null){
if (pGame.pNick.emulated == true){
tbLogStatus.text = "Nick: logged in (EMULATION)";
} else {
tbLogStatus.text = "Nick: logged in";
};
} else {
if (pGame.pNick.emulated == true){
tbLogStatus.text = "Nick: NOT logged in (EMULATION)";
} else {
tbLogStatus.text = "Nick: NOT logged in";
};
};
btnHelp.visible = true;
btnHigh.visible = true;
btnPlay.visible = true;
gameMode = GM_Waiting;
}
function DeactivateButtons(){
btnPlay.visible = false;
btnHelp.visible = false;
btnHigh.visible = false;
btnPlay.removeEventListener(MouseEvent.CLICK, GoGame);
btnPlay.removeEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnHelp.removeEventListener(MouseEvent.CLICK, GoHelp);
btnHelp.removeEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnHigh.removeEventListener(MouseEvent.CLICK, GoHigh);
btnHigh.removeEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
}
public function DoGetScores(_arg1:Array){
pInfo.scoreList = _arg1;
pInfo.ShowScores(1);
}
function ParseMap(_arg1:Event){
var _local2:XML;
_local2 = new XML(_arg1.target.data);
mapLoader.removeEventListener(Event.COMPLETE, ParseMap);
mapLoader.removeEventListener(IOErrorEvent.IO_ERROR, ErrorMap);
pGame.bonusURL = _local2.bonusLoc[0].@url;
}
function GoHigh(_arg1:Event){
if (gameMode != GM_Waiting){
return;
};
PlaySound("buttonDown");
gameMode = GM_ShowHigh;
pGame.pNick.DoGetScores = DoGetScores;
pGame.pNick.GetHighScores();
pLogo.visible = false;
PlaySound("buttonDown");
gameMode = GM_ShowHigh;
DeactivateButtons();
pInfo.x = 69;
pInfo.y = 36;
pInfo.ActivateButtons();
pInfo.gotoAndPlay("menuScoresOn");
}
public function DoConnError(_arg1:Event){
tbLogStatus.text = "Nick: API error";
btnHelp.visible = true;
btnHigh.visible = true;
btnPlay.visible = true;
gameMode = GM_Waiting;
}
override public function Update():CStateChange{
super.Update();
if (tbSoundMan.visible == true){
if (soundMan.loadIndex < soundMan.aliasList.length){
tbSoundMan.text = (((((("LOADING SOUND " + (soundMan.loadIndex + 1)) + "/") + soundMan.aliasList.length) + ": ") + Math.floor(soundMan.loadPercent)) + "%");
} else {
tbSoundMan.visible = false;
};
};
switch (gameMode){
case GM_StartGame:
gameMode = GM_BackFromOtherState;
DeactivateButtons();
StopSound(menuSongPlaying);
ResetFocus();
return (new CStateChange(false, new CStateGame()));
case GM_Waiting:
break;
case GM_Init:
gameMode = GM_Initing;
pGame.pNick.DoGotConnection = DoGotConnection;
pGame.pNick.DoConnError = DoConnError;
pGame.pNick.emulated = true;
pGame.pNick.Connect("ic_zeebo", "pop_icarly");
menuSongPlaying = PlaySound("menu", true);
PlaySound("introTalk");
break;
case GM_Initing:
break;
case GM_BackFromOtherState:
menuSongPlaying = PlaySound("menu", true);
ActivateButtons();
pLogo.visible = true;
ResetFocus();
gameMode = GM_Waiting;
return (null);
case GM_ShowHelp:
if (pInfo.currentLabel == "animDone"){
pInfo.DeactivateButtons();
gameMode = GM_StartGame;
};
break;
case GM_ShowHigh:
if (pInfo.currentLabel == "animDone"){
pInfo.DeactivateButtons();
ActivateButtons();
ResetFocus();
pLogo.visible = true;
gameMode = GM_Waiting;
};
break;
default:
break;
};
ProcessKeyboard();
return (null);
}
function ActivateButtons(){
btnPlay.visible = true;
btnHelp.visible = true;
btnHigh.visible = true;
btnPlay.addEventListener(MouseEvent.CLICK, GoGame);
btnPlay.addEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnHelp.addEventListener(MouseEvent.CLICK, GoHelp);
btnHelp.addEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
btnHigh.addEventListener(MouseEvent.CLICK, GoHigh);
btnHigh.addEventListener(MouseEvent.MOUSE_OVER, ButtonOver);
}
function LoadBonusURL(){
mapLoader = new URLLoader();
mapLoader.addEventListener(Event.COMPLETE, ParseMap);
mapLoader.addEventListener(IOErrorEvent.IO_ERROR, ErrorMap);
mapLoader.load(new URLRequest("media/bonus.xml"));
}
}
}//package local
Section 16
//CTarget (local.CTarget)
package local {
import flash.display.*;
public class CTarget {
public var isVisible:Boolean;// = false
public var targetType:int;// = -1
public var targetID:int;// = 0
public var isDead:Boolean;// = true
public var visibleTimer:int;// = 0
public var myClip:MovieClip;// = null
static const T_NONE:int = -1;
static const T_SAM:int = 1;
static const T_CARLY:int = 0;
static const T_ZEEBO:int = 2;
static var nextTargetID = 0;
public function CTarget(){
targetID = 0;
visibleTimer = 0;
isVisible = false;
myClip = null;
targetType = T_NONE;
isDead = true;
super();
targetID = nextTargetID++;
visibleTimer = 0;
isVisible = false;
myClip = null;
targetType = T_NONE;
isDead = false;
}
public function GetHit(_arg1:int, _arg2:String){
isDead = true;
visibleTimer = (_arg1 + 1000);
myClip.gotoAndPlay(("getHit" + _arg2));
}
}
}//package local
Section 17
//CTeeth (local.CTeeth)
package local {
public class CTeeth extends CAmmo {
public function CTeeth(){
ammoName = "Teeth";
}
override public function OnMissTarget(_arg1:int){
ammoFuse = (_arg1 + 3000);
}
override public function Init(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int){
super.Init(_arg1, _arg2, _arg3, _arg4, _arg5);
}
override public function Update(_arg1:int):Boolean{
return (super.Update(_arg1));
}
}
}//package local
Section 18
//CSoundMan (mabinga3.engine.CSoundMan)
package mabinga3.engine {
import flash.media.*;
import flash.events.*;
import flash.net.*;
public class CSoundMan {
public var soundVol:Number;// = 0.9
var bufferList:Array;// = null
var loadSound:Sound;// = null
public var loadIndex:int;// = 0
public var aliasList:Array;// = null
var loadSoundIsMusic:Boolean;// = false
var loadSoundAlias:String;// = ""
public var soundOn:Boolean;// = true
var loadSoundURL:String;// = ""
public var musicVol:Number;// = 0.6
var playList:Array;// = null
var loadSoundName:String;// = ""
public var loadPercent:Number;// = 0
public function CSoundMan(){
bufferList = null;
playList = null;
aliasList = null;
loadIndex = 0;
loadPercent = 0;
loadSound = null;
loadSoundURL = "";
loadSoundName = "";
loadSoundAlias = "";
loadSoundIsMusic = false;
soundOn = true;
soundVol = 0.9;
musicVol = 0.6;
super();
bufferList = new Array();
playList = new Array();
aliasList = new Array();
loadIndex = 0;
}
function LoaderProgress(_arg1:ProgressEvent){
loadPercent = ((Number(_arg1.bytesLoaded) * 100) / Number(_arg1.bytesTotal));
}
public function SetVolume(_arg1:Boolean, _arg2:Number){
var _local3:int;
var _local4:SoundTransform;
if (_arg1 == true){
musicVol = _arg2;
} else {
soundVol = _arg2;
};
_local3 = 0;
while (_local3 < playList.length) {
_local4 = playList[_local3][1].soundTransform;
if (soundOn == false){
_local4.volume = 0;
} else {
if (playList[_local3][2] == true){
_local4.volume = musicVol;
} else {
_local4.volume = soundVol;
};
};
playList[_local3][1].soundTransform = _local4;
_local3++;
};
}
public function SoundPlaying(_arg1:String):Boolean{
var _local2:int;
_local2 = 0;
while (_local2 < playList.length) {
if (playList[_local2][0] == _arg1){
return (true);
};
_local2++;
};
return (false);
}
public function Play(_arg1:String, _arg2:Boolean=false):String{
var _local3:Boolean;
var _local4:int;
var _local5:Sound;
var _local6:SoundChannel;
var _local7:SoundTransform;
_local3 = false;
if (_arg1 == ""){
return ("");
};
_local4 = 0;
while (_local4 < bufferList.length) {
if (bufferList[_local4][0] == _arg1){
_local5 = bufferList[_local4][1];
_local6 = _local5.play(0, ((_arg2 == true)) ? 800000 : 0);
_local7 = _local6.soundTransform;
if (soundOn == false){
_local7.volume = 0;
} else {
if (bufferList[_local4][2] == false){
_local7.volume = soundVol;
} else {
_local7.volume = musicVol;
};
};
_local6.soundTransform = _local7;
playList.push([_arg1, _local6, bufferList[_local4][2]]);
_local6.addEventListener(Event.SOUND_COMPLETE, SoundCompleteHandler);
_local3 = true;
break;
};
_local4++;
};
if (_local3 == false){
return (Play(GetAlias(_arg1), _arg2));
};
return (_arg1);
}
public function StartLoading(){
if (loadIndex >= aliasList.length){
return;
};
loadSoundURL = aliasList[loadIndex][0];
loadSoundName = aliasList[loadIndex][1];
loadSoundAlias = aliasList[loadIndex][2];
loadSoundIsMusic = aliasList[loadIndex][3];
loadSound = new Sound();
loadSound.addEventListener(ProgressEvent.PROGRESS, LoaderProgress);
loadSound.addEventListener(Event.COMPLETE, LoaderComplete);
loadSound.addEventListener(IOErrorEvent.IO_ERROR, LoaderError);
loadSound.load(new URLRequest(loadSoundURL));
}
public function RegisterSound(_arg1:String, _arg2:Sound, _arg3:Boolean){
bufferList.push([_arg1, _arg2, _arg3]);
}
public function StopAll(){
var _local1:int;
var _local2:SoundChannel;
_local1 = 0;
while (_local1 < playList.length) {
_local2 = playList[_local1][1];
_local2.stop();
_local2.removeEventListener(Event.SOUND_COMPLETE, SoundCompleteHandler);
playList.splice(_local1, 1);
};
}
public function Stop(_arg1:String){
var _local2:int;
var _local3:SoundChannel;
if (_arg1 == ""){
return;
};
_local2 = 0;
while (_local2 < playList.length) {
if (playList[_local2][0] == _arg1){
_local3 = playList[_local2][1];
_local3.stop();
_local3.removeEventListener(Event.SOUND_COMPLETE, SoundCompleteHandler);
playList.splice(_local2, 1);
} else {
_local2++;
};
};
}
public function ToggleMute():Boolean{
var _local1:int;
var _local2:SoundTransform;
soundOn = !(soundOn);
_local1 = 0;
while (_local1 < playList.length) {
_local2 = playList[_local1][1].soundTransform;
if (soundOn == false){
_local2.volume = 0;
} else {
if (playList[_local1][2] == true){
_local2.volume = musicVol;
} else {
_local2.volume = soundVol;
};
};
playList[_local1][1].soundTransform = _local2;
_local1++;
};
return (soundOn);
}
public function LoadSound(_arg1:String, _arg2:String, _arg3:String, _arg4:Boolean=true){
aliasList.push([_arg1, _arg2, _arg3, _arg4]);
}
private function SoundCompleteHandler(_arg1:Event):void{
var _local2:SoundChannel;
var _local3:int;
var _local4:SoundChannel;
_local2 = SoundChannel(_arg1.target);
_local3 = 0;
while (_local3 < playList.length) {
_local4 = playList[_local3][1];
if (_local4 == _local2){
_local2.removeEventListener(Event.SOUND_COMPLETE, SoundCompleteHandler);
playList.splice(_local3, 1);
};
_local3++;
};
}
public function Shutdown(){
}
function LoaderError(_arg1:Event){
loadSound.removeEventListener(Event.COMPLETE, LoaderComplete);
loadSound.removeEventListener(IOErrorEvent.IO_ERROR, LoaderError);
loadIndex++;
StartLoading();
}
function LoaderComplete(_arg1:Event){
RegisterSound(loadSoundName, loadSound, loadSoundIsMusic);
loadSound.removeEventListener(ProgressEvent.PROGRESS, LoaderProgress);
loadSound.removeEventListener(Event.COMPLETE, LoaderComplete);
loadSound.removeEventListener(IOErrorEvent.IO_ERROR, LoaderError);
loadIndex++;
StartLoading();
}
function GetAlias(_arg1:String):String{
var _local2:int;
_local2 = 0;
while (_local2 < aliasList.length) {
if (aliasList[_local2][1] == _arg1){
return (aliasList[_local2][2]);
};
_local2++;
};
return ("");
}
}
}//package mabinga3.engine
Section 19
//CState (mabinga3.engine.CState)
package mabinga3.engine {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class CState extends MovieClip {
public static var soundMan:CSoundMan = null;
public static var inStr:String = "";
public static var lastFrameCheck:int = 0;
public static var framesShown:int = 0;
public static var mouseDown:Boolean;
public static var curTime:int = 0;
public static var nextFrameCheck:int = 1;
public static var mouseLock:Boolean;
public static var keyLock:Array = null;
public static var keyState:Array = null;
public static var lastFPS:Number = 0;
public static var inStrSize:int = 10;
public static var globalGame:Object = null;
public static var pStage = null;
public function Init(){
}
public function Shutdown(){
}
public function Update():CStateChange{
curTime = getTimer();
framesShown++;
if (curTime >= nextFrameCheck){
lastFPS = ((framesShown * 1000) / Number((curTime - lastFrameCheck)));
lastFrameCheck = curTime;
nextFrameCheck = (curTime + 3000);
framesShown = 0;
};
return (null);
}
public static function StopSound(_arg1:String){
soundMan.Stop(_arg1);
}
public static function doKeyUp(_arg1:KeyboardEvent){
keyState[_arg1.keyCode] = false;
keyLock[_arg1.keyCode] = false;
}
public static function doMouseUp(_arg1:MouseEvent){
mouseDown = false;
}
public static function PlaySound(_arg1:String, _arg2:Boolean=false):String{
return (soundMan.Play(_arg1, _arg2));
}
public static function doKeyDown(_arg1:KeyboardEvent){
keyState[_arg1.keyCode] = true;
inStr = (inStr + String.fromCharCode(_arg1.keyCode));
if (inStr.length > inStrSize){
inStr = inStr.substr(1);
};
}
public static function doMouseDown(_arg1:MouseEvent){
mouseDown = true;
}
public static function ResetFocus(){
pStage.focus = pStage;
}
public static function InitInput(){
var _local1:int;
mouseDown = false;
mouseLock = false;
keyState = new Array(0x0100);
keyLock = new Array(0x0100);
_local1 = 0;
_local1 = 0;
while (_local1 < 0x0100) {
keyState[_local1] = false;
_local1++;
};
_local1 = 0;
while (_local1 < 0x0100) {
keyLock[_local1] = false;
_local1++;
};
pStage.addEventListener(MouseEvent.MOUSE_DOWN, doMouseDown);
pStage.addEventListener(MouseEvent.MOUSE_UP, doMouseUp);
pStage.addEventListener(KeyboardEvent.KEY_DOWN, doKeyDown);
pStage.addEventListener(KeyboardEvent.KEY_UP, doKeyUp);
}
}
}//package mabinga3.engine
Section 20
//CStateChange (mabinga3.engine.CStateChange)
package mabinga3.engine {
public class CStateChange {
public var terminated:Boolean;
public var nextState:CState;
public function CStateChange(_arg1:Boolean, _arg2:CState){
terminated = _arg1;
nextState = _arg2;
}
}
}//package mabinga3.engine
Section 21
//CStateMan (mabinga3.engine.CStateMan)
package mabinga3.engine {
import flash.display.*;
public class CStateMan {
private var updateResult:CStateChange;// = null
private var curState:CState;// = null
public var pStage:Stage;// = null
public var stateStack:Array;// = null
public function CStateMan(){
pStage = null;
stateStack = null;
curState = null;
updateResult = null;
super();
stateStack = new Array();
}
public function Update():Boolean{
if (stateStack.length == 0){
return (false);
};
if (curState == null){
curState = stateStack[(stateStack.length - 1)];
pStage.addChild(curState);
};
updateResult = curState.Update();
if (updateResult != null){
if (updateResult.terminated == true){
curState.Shutdown();
pStage.removeChild(curState);
curState = null;
stateStack.pop();
} else {
pStage.removeChild(curState);
};
if (updateResult.nextState != null){
curState = updateResult.nextState;
stateStack.push(curState);
pStage.addChild(curState);
curState.Init();
} else {
curState = stateStack[(stateStack.length - 1)];
pStage.addChild(curState);
};
};
return (true);
}
public function AddState(_arg1:CState){
stateStack.push(_arg1);
pStage.addChild(_arg1);
_arg1.Init();
}
public function Shutdown(){
curState = null;
while (stateStack.length > 0) {
curState = stateStack[(stateStack.length - 1)];
curState.Shutdown();
pStage.removeChild(curState);
stateStack.pop();
};
}
}
}//package mabinga3.engine
Section 22
//Loader2 (mabinga3.engine.Loader2)
package mabinga3.engine {
import flash.display.*;
public class Loader2 extends Loader {
public var cookie:String;// = "mabinga3"
public var mStage:Object;// = null
public function Loader2(){
cookie = "mabinga3";
mStage = null;
super();
}
}
}//package mabinga3.engine
Section 23
//Util (mabinga3.engine.Util)
package mabinga3.engine {
import flash.display.*;
import flash.geom.*;
public class Util {
public static const EngineVersion:String = "Mabinga Engine v3.9";
public static var pStage = null;
public static function FormatNumber(_arg1:int):String{
var _local2:String;
var _local3:int;
var _local4:int;
var _local5:String;
var _local6:int;
if (_arg1 <= 0){
return (_arg1.toString());
};
_local2 = _arg1.toString();
_local3 = ((_local2.length - 1) / 3);
_local4 = (((_local2.length - 1) % 3) + 1);
_local5 = _local2.substring(0, _local4);
_local6 = 0;
while (_local6 < _local3) {
_local5 = (_local5 + ("," + _local2.substr(((_local6 * 3) + _local4), 3)));
_local6++;
};
return (_local5);
}
public static function StringReplace(_arg1:String, _arg2:String, _arg3:String):String{
if (_arg1.lastIndexOf(_arg2)){
return (_arg1.split(_arg2).join(_arg3));
};
return (_arg1);
}
public static function rnd(_arg1:int):int{
return ((int((Math.random() * _arg1)) + 1));
}
public static function RoundTo(_arg1:Number, _arg2:Number=0):Number{
if (_arg2 == 0){
_arg2 = 1;
};
return ((Math.round((_arg1 / _arg2)) * _arg2));
}
public static function DegToRad(_arg1:Number):Number{
return ((_arg1 * 0.01745329251));
}
public static function Constrain(_arg1:Number, _arg2:Number, _arg3:Number):Number{
return (Math.max(Math.min(_arg1, _arg3), _arg2));
}
public static function PixHit(_arg1:MovieClip, _arg2:MovieClip, _arg3:Number):Rectangle{
var _local4:Rectangle;
var _local5:Rectangle;
var _local6:Rectangle;
var _local7:BitmapData;
var _local8:Matrix;
var _local9:Rectangle;
_local4 = _arg1.getBounds(pStage);
_local5 = _arg2.getBounds(pStage);
if ((((((_local4.right < _local5.left)) || ((_local5.right < _local4.left)))) || ((((_local4.bottom < _local5.top)) || ((_local5.bottom < _local4.top)))))){
return (null);
};
_local6 = new Rectangle();
_local6.left = int(Math.max(_local4.left, _local5.left));
_local6.right = int(Math.min(_local4.right, _local5.right));
_local6.top = int(Math.max(_local4.top, _local5.top));
_local6.bottom = int(Math.min(_local4.bottom, _local5.bottom));
if ((((_local6.width <= 0)) || ((_local6.height <= 0)))){
return (null);
};
_local7 = new BitmapData((_local6.right - _local6.left), (_local6.bottom - _local6.top), false);
_local8 = _arg1.transform.concatenatedMatrix;
_arg1.transform.concatenatedMatrix.tx = (_local8.tx - _local6.left);
_local8.ty = (_local8.ty - _local6.top);
_local7.draw(_arg1, _local8, new ColorTransform(1, 1, 1, 1, 0xFF, -255, -255, _arg3));
_local8 = _arg2.transform.concatenatedMatrix;
_arg2.transform.concatenatedMatrix.tx = (_local8.tx - _local6.left);
_local8.ty = (_local8.ty - _local6.top);
_local7.draw(_arg2, _local8, new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0xFF, _arg3), "difference");
_local9 = _local7.getColorBoundsRect(4294967295, 4278255615);
if (_local9.width <= 0){
return (null);
};
_local9.x = (_local9.x + _local6.left);
_local9.y = (_local9.y + _local6.top);
return (_local9);
}
public static function RadToDeg(_arg1:Number):Number{
return ((_arg1 * 57.29577951308));
}
}
}//package mabinga3.engine
Section 24
//CNick (mabinga3.nick.CNick)
package mabinga3.nick {
import flash.events.*;
import com.nickonline.services.business.*;
import flash.net.*;
public class CNick {
public var debugString:String;// = ""
public var connected:Boolean;// = false
public var pCurrentUser:Object;
public var emulated:Boolean;// = false
private var loginResponder:ProxyResponder;
private var serviceManagerURI:String;// = "/common/flash/services/ServiceManager.swf"
public var DoGotConnection:Function;// = null
private var npResponder:ProxyResponder;
private var scoresResponder:ProxyResponder;
private var serviceLocator:ServiceLocator;
public var DoNPResult:Function;// = null
public var DoGetScores:Function;// = null
private var gHighTag:String;// = ""
private var serviceManagerConfigURI:String;// = "/common/flash/services/data/services.xml"
public var DoConnError:Function;// = null
private var gAchievementTag:String;// = ""
public function CNick(){
debugString = "";
connected = false;
gHighTag = "";
gAchievementTag = "";
serviceManagerURI = "/common/flash/services/ServiceManager.swf";
serviceManagerConfigURI = "/common/flash/services/data/services.xml";
emulated = false;
DoGotConnection = null;
DoConnError = null;
DoGetScores = null;
DoNPResult = null;
super();
connected = false;
debugString = "";
emulated = false;
}
public function Connect(_arg1:String, _arg2:String=""){
var _local3:String;
if (emulated == true){
debugTrace("Connect (emulated)");
doGotConnection(null);
return;
};
gHighTag = _arg1;
if (_arg2 != ""){
gAchievementTag = _arg2;
} else {
gAchievementTag = gHighTag;
};
_local3 = ((new LocalConnection().domain == "localhost")) ? "http://www.nick-q.mtvi.com" : "";
this.serviceLocator = new ServiceLocator(this.serviceManagerURI, this.serviceManagerConfigURI);
this.serviceLocator.defaultURI = _local3;
this.serviceLocator.addEventListener("EVENT_SERVICES_LOADED", this.doGotConnection);
this.serviceLocator.addEventListener("EVENT_SERVICE_INVALID", this.doConnError);
this.serviceLocator.addEventListener("EVENT_SERVICES_NOT_FOUND", this.doConnError);
this.serviceLocator.load();
}
function debugTrace(_arg1:String):void{
debugString = (debugString + (_arg1 + "\n"));
}
public function doScoreFault(_arg1:Object){
}
public function doNPResult(_arg1:Object){
if (DoNPResult != null){
DoNPResult(_arg1.data.value);
};
}
public function doScoreResult(_arg1:Object){
var _local2:Array;
if (String(_arg1.type) != "LOAD_SCORES_SUCCESS"){
return;
};
_local2 = _arg1.data.scores;
if (DoGetScores != null){
DoGetScores(_local2);
};
}
public function doNPFault(_arg1:Object){
}
public function SubmitAchievement(_arg1:String){
if (emulated == true){
debugTrace("SubmitAchievement (emulated)");
return;
};
if (pCurrentUser == null){
return;
};
this.serviceLocator.execute("NickPointsCampaign", "awardNickPoints", new Array(gAchievementTag, _arg1), npResponder);
}
public function SubmitScore(_arg1:int){
if (connected == false){
return;
};
if (emulated == true){
debugTrace("SubmitScore (emulated)");
GetHighScores();
return;
};
this.serviceLocator.execute("HighScores", "doSubmitHighScore", new Array(gHighTag, _arg1, this.pCurrentUser.nickName), scoresResponder);
}
public function GetHighScores(){
var _local1:Object;
var _local2:Array;
var _local3:int;
var _local4:Object;
if (emulated == true){
debugTrace("GetHighScores (emulated)");
_local1 = new Object();
_local1.type = "LOAD_SCORES_SUCCESS";
_local1.data = new Object();
_local2 = new Array();
_local3 = 0;
while (_local3 < 100) {
_local4 = new Object();
_local4.name = String(("fakeUser" + _local3));
_local4.score = Number((10000 - (50 * _local3)));
_local4.rank = Number((_local3 + 1));
_local2.push(_local4);
_local3++;
};
_local1.data.scores = _local2;
_local1.data.totalScore = 10000;
_local1.data.highestScore = 10000;
_local1.data.count = 100;
_local1.data.average = 2000;
doScoreResult(_local1);
return;
};
if (connected == false){
return;
};
this.serviceLocator.execute("HighScores", "doLoadHighScores", new Array(gHighTag), scoresResponder);
}
public function doConnError(_arg1:Event){
this.serviceLocator.removeEventListener("EVENT_SERVICES_LOADED", this.DoGotConnection);
this.serviceLocator.removeEventListener("EVENT_SERVICE_INVALID", this.DoConnError);
this.serviceLocator.removeEventListener("EVENT_SERVICES_NOT_FOUND", this.DoConnError);
connected = false;
if (DoConnError != null){
DoConnError(_arg1);
};
}
public function doLoginFault(_arg1:Event){
connected = false;
}
public function doLoginResult(_arg1:Object){
switch (_arg1.type){
case "LOGIN_COMPLETE":
case "LOGIN_CHECK_LOGGED_IN":
this.pCurrentUser = _arg1.data;
if (DoGotConnection != null){
DoGotConnection(_arg1);
};
return;
case "LOGIN_CHECK_LOGGED_OUT":
case "LOGGED_OUT_COMPLETE":
case "LOGIN_UI_LOADED":
case "LOGIN_FAILED":
case "LOGIN_DISABLED":
default:
if (DoGotConnection != null){
DoGotConnection(_arg1);
};
return;
};
}
public function doGotConnection(_arg1:Event){
var _local2:Object;
if (emulated == true){
connected = true;
debugTrace("doGotConnection (emulated)");
_local2 = new Object();
_local2.type = "LOGIN_CHECK_LOGGED_IN";
_local2.data = new Object();
_local2.data.nickName = "EmulatedUser";
_local2.data.points = 0;
_local2.data.messages = "";
doLoginResult(_local2);
return;
};
this.serviceLocator.removeEventListener("EVENT_SERVICES_LOADED", this.DoGotConnection);
this.serviceLocator.removeEventListener("EVENT_SERVICE_INVALID", this.DoConnError);
this.serviceLocator.removeEventListener("EVENT_SERVICES_NOT_FOUND", this.DoConnError);
connected = true;
this.loginResponder = new ProxyResponder(this.doLoginResult, this.doLoginFault);
this.scoresResponder = new ProxyResponder(this.doScoreResult, this.doScoreFault);
this.npResponder = new ProxyResponder(this.doNPResult, this.doNPFault);
this.serviceLocator.execute("Authentication", "checkLogin", null, loginResponder);
}
}
}//package mabinga3.nick
Section 25
//badscore_mc_16 (main_fla.badscore_mc_16)
package main_fla {
import flash.display.*;
public dynamic class badscore_mc_16 extends MovieClip {
public var mcScore:MovieClip;
public function badscore_mc_16(){
addFrameScript(27, frame28);
}
function frame28(){
stop();
}
}
}//package main_fla
Section 26
//bonus_mc_20 (main_fla.bonus_mc_20)
package main_fla {
import flash.display.*;
public dynamic class bonus_mc_20 extends MovieClip {
public function bonus_mc_20(){
addFrameScript(0, frame1, 79, frame80);
}
function frame80(){
stop();
}
function frame1(){
stop();
}
}
}//package main_fla
Section 27
//buttonsmc_7 (main_fla.buttonsmc_7)
package main_fla {
import flash.display.*;
public dynamic class buttonsmc_7 extends MovieClip {
public var btnSound0:SimpleButton;
public var btnSound1:SimpleButton;
public var btnHelp:SimpleButton;
public var btnQuit:SimpleButton;
}
}//package main_fla
Section 28
//cannonboom_mc_19 (main_fla.cannonboom_mc_19)
package main_fla {
import flash.display.*;
public dynamic class cannonboom_mc_19 extends MovieClip {
public function cannonboom_mc_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package main_fla
Section 29
//carlymc_77 (main_fla.carlymc_77)
package main_fla {
import flash.display.*;
public dynamic class carlymc_77 extends MovieClip {
public function carlymc_77(){
addFrameScript(1, frame2, 35, frame36, 44, frame45, 61, frame62, 78, frame79, 94, frame95, 110, frame111, 126, frame127);
}
function frame79(){
gotoAndPlay("hitHidingBees");
}
function frame95(){
gotoAndPlay("hitHidingBanana");
}
function frame111(){
gotoAndPlay("hitHidingSnake");
}
function frame2(){
stop();
}
function frame36(){
stop();
}
function frame127(){
gotoAndPlay("hitHidingTeeth");
}
function frame45(){
gotoAndStop("hiding");
}
function frame62(){
gotoAndPlay("hitHidingBall");
}
}
}//package main_fla
Section 30
//extenderpart_mc_18 (main_fla.extenderpart_mc_18)
package main_fla {
import flash.display.*;
public dynamic class extenderpart_mc_18 extends MovieClip {
public var pickupHolder:MovieClip;
public function extenderpart_mc_18(){
addFrameScript(11, frame12, 25, frame26);
}
function frame12(){
stop();
}
function frame26(){
stop();
}
}
}//package main_fla
Section 31
//gamestatsmainmc_6 (main_fla.gamestatsmainmc_6)
package main_fla {
import flash.display.*;
public dynamic class gamestatsmainmc_6 extends MovieClip {
public var pStats2:MovieClip;
public var pStats:MovieClip;
public function gamestatsmainmc_6(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package main_fla
Section 32
//goodscore_gr_15 (main_fla.goodscore_gr_15)
package main_fla {
import flash.display.*;
import flash.text.*;
public dynamic class goodscore_gr_15 extends MovieClip {
public var tbScore:TextField;
}
}//package main_fla
Section 33
//goodscore_mc_14 (main_fla.goodscore_mc_14)
package main_fla {
import flash.display.*;
public dynamic class goodscore_mc_14 extends MovieClip {
public var mcScore:MovieClip;
public function goodscore_mc_14(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package main_fla
Section 34
//MainTimeline (main_fla.MainTimeline)
package main_fla {
import mabinga3.engine.*;
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import local.*;
import flash.system.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var stateMan:CStateMan;
public var appTimer:Timer;
public function MainTimeline(){
addFrameScript(0, frame1);
}
public function AppUpdate(_arg1:TimerEvent){
var _local2:Boolean;
_local2 = stateMan.Update();
if (_local2 == false){
appTimer.stop();
stateMan.Shutdown();
AppExit();
};
}
function frame1(){
stateMan = new CStateMan();
appTimer = new Timer(1);
AppInit();
}
public function AppInit(){
if (stage == null){
CState.pStage = Loader2(parent).mStage;
stateMan.pStage = Stage(Loader2(parent).mStage);
Util.pStage = Stage(Loader2(parent).mStage);
} else {
CState.pStage = stage;
stateMan.pStage = stage;
Util.pStage = stage;
};
CState.InitInput();
CState.pStage.frameRate = 31;
stateMan.AddState(new CStateMenu());
appTimer.addEventListener(TimerEvent.TIMER, AppUpdate);
appTimer.start();
}
public function AppExit(){
}
}
}//package main_fla
Section 35
//mult_mc_5 (main_fla.mult_mc_5)
package main_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mult_mc_5 extends MovieClip {
public var tbMulti:TextField;
}
}//package main_fla
Section 36
//multiplier_mc_3 (main_fla.multiplier_mc_3)
package main_fla {
import flash.display.*;
public dynamic class multiplier_mc_3 extends MovieClip {
public var mcMulti:MovieClip;
public function multiplier_mc_3(){
addFrameScript(52, frame53, 61, frame62);
}
function frame53(){
gotoAndPlay("fabulous");
}
function frame62(){
stop();
}
}
}//package main_fla
Section 37
//nickpointsclip_24 (main_fla.nickpointsclip_24)
package main_fla {
import flash.display.*;
import flash.text.*;
public dynamic class nickpointsclip_24 extends MovieClip {
public var tbNickPoints:TextField;
}
}//package main_fla
Section 38
//sammc_76 (main_fla.sammc_76)
package main_fla {
import flash.display.*;
public dynamic class sammc_76 extends MovieClip {
public function sammc_76(){
addFrameScript(1, frame2, 35, frame36, 44, frame45, 61, frame62, 78, frame79, 94, frame95, 110, frame111, 126, frame127);
}
function frame79(){
gotoAndPlay("hitHidingBees");
}
function frame95(){
gotoAndPlay("hitHidingBanana");
}
function frame111(){
gotoAndPlay("hitHidingSnake");
}
function frame2(){
stop();
}
function frame36(){
stop();
}
function frame127(){
gotoAndPlay("hitHidingTeeth");
}
function frame45(){
gotoAndStop("hiding");
}
function frame62(){
gotoAndPlay("hitHidingBall");
}
}
}//package main_fla
Section 39
//scoretextclip_23 (main_fla.scoretextclip_23)
package main_fla {
import flash.display.*;
import flash.text.*;
public dynamic class scoretextclip_23 extends MovieClip {
public var tbFinalScore:TextField;
}
}//package main_fla
Section 40
//statsmc_12 (main_fla.statsmc_12)
package main_fla {
import flash.display.*;
import flash.text.*;
public dynamic class statsmc_12 extends MovieClip {
public var tbTime:TextField;
public var tbGoal:TextField;
public var tbScore:TextField;
}
}//package main_fla
Section 41
//zeebomc_75 (main_fla.zeebomc_75)
package main_fla {
import flash.display.*;
public dynamic class zeebomc_75 extends MovieClip {
public function zeebomc_75(){
addFrameScript(1, frame2, 34, frame35, 46, frame47, 63, frame64, 81, frame82, 98, frame99, 121, frame122, 137, frame138);
}
function frame64(){
gotoAndPlay("hitHidingBall");
}
function frame82(){
gotoAndPlay("hitHidingBees");
}
function frame2(){
stop();
}
function frame99(){
gotoAndPlay("hitHidingBanana");
}
function frame35(){
stop();
}
function frame47(){
gotoAndStop("hiding");
}
function frame122(){
gotoAndPlay("hitHidingSnake");
}
function frame138(){
gotoAndPlay("hitHidingTeeth");
}
}
}//package main_fla
Section 42
//CBall (CBall)
package {
import local.*;
public dynamic class CBall extends CBall {
}
}//package
Section 43
//CBanana (CBanana)
package {
import local.*;
public dynamic class CBanana extends CBanana {
}
}//package
Section 44
//CBees (CBees)
package {
import local.*;
public dynamic class CBees extends CBees {
}
}//package
Section 45
//CBrownRoom (CBrownRoom)
package {
import local.*;
public dynamic class CBrownRoom extends CLevel {
}
}//package
Section 46
//CInfoBoard (CInfoBoard)
package {
import local.*;
public dynamic class CInfoBoard extends CInfoBoard {
public function CInfoBoard(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 8, frame9, 13, frame14, 18, frame19, 75, frame76, 135, frame136, 136, frame137, 141, frame142, 142, frame143, 146, frame147, 147, frame148, 152, frame153, 153, frame154, 157, frame158, 164, frame165, 169, frame170, 175, frame176, 180, frame181, 186, frame187, 192, frame193);
}
function frame154(){
tbScoreList0.alpha = 0;
tbScoreList1.alpha = 0;
tbScoreList2.alpha = 0;
}
function frame158(){
gotoAndStop("animDone");
}
function frame153(){
tbScoreList0.alpha = 1;
tbScoreList1.alpha = 1;
tbScoreList2.alpha = 1;
stop();
}
function frame165(){
stop();
}
function frame176(){
mcFinalScore.visible = true;
mcNickPoints.visible = true;
stop();
}
function frame170(){
gotoAndStop("animDone");
}
function frame14(){
gotoAndStop("animDone");
}
function frame181(){
mcFinalScore.visible = false;
mcNickPoints.visible = false;
gotoAndStop("animDone");
}
function frame187(){
mcFinalScore.visible = false;
mcNickPoints.visible = false;
gotoAndStop("animDone2");
}
function frame3(){
tbScoreList0.alpha = 0;
tbScoreList1.alpha = 0;
tbScoreList2.alpha = 0;
mcFinalScore.visible = false;
mcNickPoints.visible = false;
stop();
}
function frame9(){
stop();
}
function frame2(){
tbScoreList0.alpha = 0;
tbScoreList1.alpha = 0;
tbScoreList2.alpha = 0;
mcFinalScore.visible = false;
mcNickPoints.visible = false;
stop();
}
function frame19(){
gotoAndStop("animDone2");
}
function frame1(){
tbScoreList0.alpha = 0;
tbScoreList1.alpha = 0;
tbScoreList2.alpha = 0;
mcFinalScore.visible = false;
mcNickPoints.visible = false;
stop();
}
function frame193(){
mcFinalScore.visible = false;
mcNickPoints.visible = false;
gotoAndStop("animDone3");
}
function frame76(){
gotoAndStop("animDone");
}
function frame136(){
gotoAndStop("animDone");
}
function frame137(){
tbScoreList0.alpha = 0;
tbScoreList1.alpha = 0;
tbScoreList2.alpha = 0;
}
function frame142(){
tbScoreList0.alpha = 1;
tbScoreList1.alpha = 1;
tbScoreList2.alpha = 1;
stop();
}
function frame143(){
tbScoreList0.alpha = 0;
tbScoreList1.alpha = 0;
tbScoreList2.alpha = 0;
}
function frame147(){
gotoAndStop("animDone");
}
function frame148(){
tbScoreList0.alpha = 0;
tbScoreList1.alpha = 0;
tbScoreList2.alpha = 0;
}
}
}//package
Section 47
//CPickupBanana (CPickupBanana)
package {
import flash.display.*;
public dynamic class CPickupBanana extends MovieClip {
public function CPickupBanana(){
addFrameScript(9, frame10, 24, frame25);
}
function frame10(){
stop();
}
function frame25(){
stop();
}
}
}//package
Section 48
//CPickupBees (CPickupBees)
package {
import flash.display.*;
public dynamic class CPickupBees extends MovieClip {
public function CPickupBees(){
addFrameScript(9, frame10, 24, frame25);
}
function frame10(){
stop();
}
function frame25(){
stop();
}
}
}//package
Section 49
//CPickupBonus (CPickupBonus)
package {
import flash.display.*;
public dynamic class CPickupBonus extends MovieClip {
public function CPickupBonus(){
addFrameScript(9, frame10, 24, frame25);
}
function frame10(){
stop();
}
function frame25(){
stop();
}
}
}//package
Section 50
//CPickupSnake (CPickupSnake)
package {
import flash.display.*;
public dynamic class CPickupSnake extends MovieClip {
public function CPickupSnake(){
addFrameScript(9, frame10, 24, frame25);
}
function frame10(){
stop();
}
function frame25(){
stop();
}
}
}//package
Section 51
//CPickupTeeth (CPickupTeeth)
package {
import flash.display.*;
public dynamic class CPickupTeeth extends MovieClip {
public function CPickupTeeth(){
addFrameScript(9, frame10, 24, frame25);
}
function frame10(){
stop();
}
function frame25(){
stop();
}
}
}//package
Section 52
//CPinkRoom (CPinkRoom)
package {
import local.*;
public dynamic class CPinkRoom extends CLevel {
}
}//package
Section 53
//CSnake (CSnake)
package {
import local.*;
public dynamic class CSnake extends CSnake {
}
}//package
Section 54
//CStateGame (CStateGame)
package {
import local.*;
public dynamic class CStateGame extends CStateGame {
}
}//package
Section 55
//CStateMenu (CStateMenu)
package {
import local.*;
public dynamic class CStateMenu extends CStateMenu {
}
}//package
Section 56
//CTeeth (CTeeth)
package {
import local.*;
public dynamic class CTeeth extends CTeeth {
}
}//package
Section 57
//S_ButtonDown (S_ButtonDown)
package {
import flash.media.*;
public dynamic class S_ButtonDown extends Sound {
}
}//package
Section 58
//S_ButtonOver (S_ButtonOver)
package {
import flash.media.*;
public dynamic class S_ButtonOver extends Sound {
}
}//package
Section 59
//S_Fire (S_Fire)
package {
import flash.media.*;
public dynamic class S_Fire extends Sound {
}
}//package
Section 60
//S_GrabIn (S_GrabIn)
package {
import flash.media.*;
public dynamic class S_GrabIn extends Sound {
}
}//package
Section 61
//S_GrabOut (S_GrabOut)
package {
import flash.media.*;
public dynamic class S_GrabOut extends Sound {
}
}//package
Section 62
//S_HitCarly1 (S_HitCarly1)
package {
import flash.media.*;
public dynamic class S_HitCarly1 extends Sound {
}
}//package
Section 63
//S_HitCarly2 (S_HitCarly2)
package {
import flash.media.*;
public dynamic class S_HitCarly2 extends Sound {
}
}//package
Section 64
//S_HitCarly3 (S_HitCarly3)
package {
import flash.media.*;
public dynamic class S_HitCarly3 extends Sound {
}
}//package
Section 65
//S_HitCarly4 (S_HitCarly4)
package {
import flash.media.*;
public dynamic class S_HitCarly4 extends Sound {
}
}//package
Section 66
//S_HitSam1 (S_HitSam1)
package {
import flash.media.*;
public dynamic class S_HitSam1 extends Sound {
}
}//package
Section 67
//S_HitSam2 (S_HitSam2)
package {
import flash.media.*;
public dynamic class S_HitSam2 extends Sound {
}
}//package
Section 68
//S_HitZeeboBall (S_HitZeeboBall)
package {
import flash.media.*;
public dynamic class S_HitZeeboBall extends Sound {
}
}//package
Section 69
//S_HitZeeboBanana (S_HitZeeboBanana)
package {
import flash.media.*;
public dynamic class S_HitZeeboBanana extends Sound {
}
}//package
Section 70
//S_HitZeeboBees (S_HitZeeboBees)
package {
import flash.media.*;
public dynamic class S_HitZeeboBees extends Sound {
}
}//package
Section 71
//S_HitZeeboSnake (S_HitZeeboSnake)
package {
import flash.media.*;
public dynamic class S_HitZeeboSnake extends Sound {
}
}//package
Section 72
//S_HitZeeboTeeth (S_HitZeeboTeeth)
package {
import flash.media.*;
public dynamic class S_HitZeeboTeeth extends Sound {
}
}//package
Section 73
//S_Intro (S_Intro)
package {
import flash.media.*;
public dynamic class S_Intro extends Sound {
}
}//package
Section 74
//S_Menu (S_Menu)
package {
import flash.media.*;
public dynamic class S_Menu extends Sound {
}
}//package