Section 1
//ArrowAnimLayer2_22 (darefishing_fla.ArrowAnimLayer2_22)
package darefishing_fla {
import flash.display.*;
public dynamic class ArrowAnimLayer2_22 extends MovieClip {
public function ArrowAnimLayer2_22(){
addFrameScript(0, frame1);
}
function frame1(){
this.cacheAsBitmap = true;
stop();
}
}
}//package darefishing_fla
Section 2
//assetHolder_15 (darefishing_fla.assetHolder_15)
package darefishing_fla {
import flash.display.*;
public dynamic class assetHolder_15 extends MovieClip {
public function assetHolder_15(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package darefishing_fla
Section 3
//BG_33 (darefishing_fla.BG_33)
package darefishing_fla {
import flash.display.*;
public dynamic class BG_33 extends MovieClip {
public function BG_33(){
addFrameScript(0, frame1, 159, frame160);
}
function frame1(){
stop();
}
function frame160(){
gotoAndPlay(2);
}
}
}//package darefishing_fla
Section 4
//BlackOut_70 (darefishing_fla.BlackOut_70)
package darefishing_fla {
import flash.display.*;
public dynamic class BlackOut_70 extends MovieClip {
public function BlackOut_70(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package darefishing_fla
Section 5
//Circle_18 (darefishing_fla.Circle_18)
package darefishing_fla {
import flash.display.*;
public dynamic class Circle_18 extends MovieClip {
public function Circle_18(){
addFrameScript(0, frame1, 48, frame49, 57, frame58, 58, frame59);
}
function frame58(){
}
function frame59(){
stop();
}
function frame49(){
gotoAndPlay(1);
}
function frame1(){
this.cacheAsBitmap = true;
}
}
}//package darefishing_fla
Section 6
//CIRCLEHAND_47 (darefishing_fla.CIRCLEHAND_47)
package darefishing_fla {
import flash.display.*;
public dynamic class CIRCLEHAND_47 extends MovieClip {
public function CIRCLEHAND_47(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package darefishing_fla
Section 7
//CountDown_71 (darefishing_fla.CountDown_71)
package darefishing_fla {
import flash.display.*;
public dynamic class CountDown_71 extends MovieClip {
public function CountDown_71(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package darefishing_fla
Section 8
//Fish_orig_17 (darefishing_fla.Fish_orig_17)
package darefishing_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.system.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Fish_orig_17 extends MovieClip {
public var spot:MovieClip;
public var isOnHowTo;
public var fishMouth:MovieClip;
public var fishHead:MovieClip;
public var enableHitPoint;
public var enableHitBite;
public var isStartPlay;
public var isWarningSign;
public var biteSound;
public var biteHit:MovieClip;
public function Fish_orig_17(){
addFrameScript(0, frame1, 5, frame6, 30, frame31, 41, frame42, 46, frame47, 47, frame48, 50, frame51, 51, frame52, 57, frame58, 77, frame78, 89, frame90, 92, frame93, 93, frame94, 96, frame97, 97, frame98, 102, frame103, 117, frame118, 126, frame127, 132, frame133, 133, frame134, 138, frame139);
}
function frame127(){
enableHitPoint = false;
}
function frame134(){
isStartPlay = false;
}
function frame93(){
enableHitBite = true;
isStartPlay = true;
}
function frame94(){
isStartPlay = false;
}
function frame52(){
enableHitPoint = false;
enableHitBite = false;
isWarningSign = false;
stop();
}
function frame98(){
enableHitPoint = false;
enableHitBite = false;
isWarningSign = false;
stop();
}
function frame78(){
isWarningSign = true;
}
function frame139(){
stop();
enableHitBite = false;
}
function frame31(){
isWarningSign = true;
}
function frame90(){
enableHitPoint = false;
}
function frame58(){
enableHitPoint = true;
}
function frame97(){
stop();
enableHitBite = false;
}
function frame133(){
enableHitBite = true;
isStartPlay = true;
}
function frame51(){
stop();
enableHitBite = false;
}
function frame118(){
isWarningSign = true;
}
function frame1(){
enableHitPoint = false;
enableHitBite = false;
isWarningSign = false;
this.cacheAsBitmap = true;
stop();
addEventListener(Event.ENTER_FRAME, soundUpdate);
biteSound = new BiteSFX();
isStartPlay = false;
isOnHowTo = false;
}
function frame103(){
enableHitPoint = true;
}
function frame6(){
enableHitPoint = true;
}
function frame42(){
enableHitPoint = false;
}
function frame48(){
isStartPlay = false;
}
public function soundUpdate(_arg1:Event){
if (((isStartPlay) && (!(isOnHowTo)))){
biteSound.play();
};
}
function frame47(){
enableHitBite = true;
isStartPlay = true;
}
}
}//package darefishing_fla
Section 9
//GameOver_56 (darefishing_fla.GameOver_56)
package darefishing_fla {
import flash.display.*;
public dynamic class GameOver_56 extends MovieClip {
public function GameOver_56(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package darefishing_fla
Section 10
//Hand_46 (darefishing_fla.Hand_46)
package darefishing_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.system.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Hand_46 extends MovieClip {
public var circle:MovieClip;
public var dizzySFX;
public var isSFXStart;
public function Hand_46(){
addFrameScript(0, frame1, 71, frame72, 126, frame127, 127, frame128);
}
function frame1(){
dizzySFX = new Dizzy();
isSFXStart = false;
if (isSFXStart){
dizzySFX.play();
isSFXStart = false;
};
}
function frame72(){
gotoAndPlay(1);
}
function frame127(){
gotoAndPlay(1);
}
function frame128(){
isSFXStart = true;
}
}
}//package darefishing_fla
Section 11
//LoadingBar_3 (darefishing_fla.LoadingBar_3)
package darefishing_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.system.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class LoadingBar_3 extends MovieClip {
public var orbA:MovieClip;
public var orbB:MovieClip;
public var orbD:MovieClip;
public var orbE:MovieClip;
public var orbF:MovieClip;
public var orbG:MovieClip;
public var orbH:MovieClip;
public var orbC:MovieClip;
public var loadBar:MovieClip;
public var countArray;
public var maskBar:MovieClip;
public var fish:MovieClip;
public var orbArray;
public function LoadingBar_3(){
addFrameScript(0, frame1);
}
public function onLoading(_arg1:Event){
maskBar.x = (maskBar.x + (((loadBar.width + 10) - maskBar.x) * 0.15));
fish.x = (fish.x + (((loadBar.width + 10) - maskBar.x) * 0.18));
if (fish.currentLabel == "Bite"){
if (orbArray[countArray] != null){
if (fish.hitTestObject(orbArray[countArray])){
removeChild(MovieClip(orbArray[countArray]));
countArray++;
};
};
};
if (orbArray[countArray] != null){
if (orbArray[countArray].x <= fish.x){
removeChild(MovieClip(orbArray[countArray]));
countArray++;
};
};
if (fish.x >= 220){
removeEventListener(Event.ENTER_FRAME, onLoading);
fish = null;
};
}
function frame1(){
addEventListener(Event.ENTER_FRAME, onLoading);
orbArray = new Array(orbA, orbB, orbC, orbD, orbE, orbF, orbG, orbH);
countArray = 0;
}
}
}//package darefishing_fla
Section 12
//MainTimeline (darefishing_fla.MainTimeline)
package darefishing_fla {
import flash.events.*;
import flash.display.*;
import mochi.as3.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.system.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var _3rdFlyingFishSec:int;
public var _3rdJumpFishSec:int;
public var is1stJumpFishSummoned;
public var hiScore:int;
public var trdflyingFishMS:int;
public var testTimerMode;
public var textTotal:TextField;
public var gateClosed;
public var handFadeIn;
public var nextExtraPoints:int;
public var enable3rdPopUpFish;
public var isOnHit;
public var secjumpfishSecond:int;
public var alertLoop;
public var gameOverText:MovieClip;
public var introLogo:MovieClip;
public var enableChange2ndJumpFish;
public var secflyingFishMS:int;
public var handSpeedX;
public var handSpeedY;
public var bg:MovieClip;
public var is2ndPopUpFishSummoned;
public var secpopUpfishSecond:int;
public var gravity;
public var countDown:MovieClip;
public var trdpopUpfishSecond:int;
public var tempTable:Object;
public var timerFall:int;
public var _2ndJumpFishSec:int;
public var trdpopUpfishMS:int;
public var enable3rdFlyingFish;
public var enable2ndFlyingFish;
public var hand:MovieClip;
public var b;
public var enable2ndFishSmoke;
public var _3rdPopUpFishSec:int;
public var _1stFlyingFishSec:int;
public var isOnWallHit;
public var trdflyingFishSecond:int;
public var loadingTitle:MovieClip;
public var redAlertSound;
public var is2ndFlyingFishSummoned;
public var hurtSound;
public var switchBtn:MovieClip;
public var i;
public var fallTimer:int;
public var score;
public var bubble;
public var ui:MovieClip;
public var startSending;
public var trapArrayL;
public var is1stPopUpFishSummoned;
public var isStartTrap;
public var trapArrayR;
public var positionArray;
public var enable1stJumpFish;
public var popUpfishSecond:int;
public var jumpSpeed;
public var minusTimer:int;
public var secjumpfishMS:int;
public var trdjumpfishSecond:int;
public var easyMode;
public var tButton:SimpleButton;
public var blackOut:MovieClip;
public var sumbitScore;
public var currentLastPosY;
public var enable1stFlyingFish;
public var isSending;
public var secpopUpfishMS:int;
public var flyingFishSecond:int;
public var currentMS:int;
public var position01:MovieClip;
public var position02:MovieClip;
public var position03:MovieClip;
public var currentMinute:int;
public var smallMinor:MovieClip;
public var is1stFlyingFishSummoned;
public var isStillTrap;
public var position04:MovieClip;
public var position05:MovieClip;
public var start_btn:MovieClip;
public var lives:int;
public var enable3rdJumpFish;
public var dizzyTimer:int;
public var water:MovieClip;
public var bgmChannel;
public var isPlayOnce;
public var _2ndFlyingFishSec:int;
public var enableChange1stJumpFish;
public var hitMeteor;
public var normalHiScore:int;
public var is2ndJumpFishSummoned;
public var secflyingFishSecond:int;
public var isGameOver;
public var levelUpSound;
public var hitDirection:int;
public var loadingBar:MovieClip;
public var fButton:SimpleButton;
public var myCustomMenu;
public var _1stJumpFishSec:int;
public var tempClip:Object;
public var bgintro:MovieClip;
public var oldPosY;
public var currentSecond:int;
public var trapArea;
public var is3rdJumpFishSummoned;
public var getSound;
public var flyingFishMS:int;
public var liveCounter:MovieClip;
public var howToBtn:MovieClip;
public var textloaded:TextField;
public var selectSound;
public var mustStopTrap;
public var isOnMouse;
public var is3rdFlyingFishSummoned;
public var gameTitle:MovieClip;
public var bumpSound;
public var point;
public var bubbleMask;
public var jumpfishSecond:int;
public var _1stPopUpFishSec:int;
public var is3rdPopUpFishSummoned;
public var increaseToNormal;
public var jumpfishMS:int;
public var timerRise:int;
public var easyHiScore:int;
public var levelDiff:int;
public var _2ndPopUpFishSec:int;
public var enable2ndPopUpFish;
public var popUpfishMS:int;
public var enable2ndJumpFish;
public var trdjumpfishMS:int;
public var summonMeteor;
public var trapSet:int;
public var mainLoop;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 3, frame4);
}
public function onFadeCloud(_arg1:Event){
_arg1.target.alpha = (_arg1.target.alpha - 0.001);
if (_arg1.target.alpha <= 0){
_arg1.target.removeEventListener(Event.ENTER_FRAME, onFadeCloud);
removeTemp(_arg1.target);
};
}
public function onFly(_arg1:Event){
if ((((((_arg1.target.x >= (450 + 50))) || ((_arg1.target.y >= (stage.stageHeight + 100))))) || ((_arg1.target.x <= -50)))){
if (_arg1.target.rank == 1){
is1stFlyingFishSummoned = false;
};
if (_arg1.target.rank == 2){
is2ndFlyingFishSummoned = false;
};
if (_arg1.target.rank == 3){
is3rdFlyingFishSummoned = false;
};
_arg1.target.removeEventListener(Event.ENTER_FRAME, onFly);
removeTemp(_arg1.target);
};
if (!_arg1.target.isOnHit){
if (_arg1.target.randDirection == 2){
_arg1.target.x = (_arg1.target.x - (8 * 0.9));
hitDirection = 2;
} else {
_arg1.target.x = (_arg1.target.x + (8 * 0.9));
hitDirection = 1;
};
if (_arg1.target.onSmoke){
_arg1.target.createTimer = (_arg1.target.createTimer + 1);
if (_arg1.target.createTimer >= 7){
_arg1.target.createTimer = 0;
createSmokeCloud(MovieClip(_arg1.target), _arg1.target.randDirection);
};
};
if (_arg1.target.hitTestObject(hand)){
isOnHit = true;
hand.gotoAndPlay(128);
bumpSound.play();
_arg1.target.isOnHit = true;
isOnMouse = false;
handSpeedX = randRange(14, 25);
handSpeedY = randRange(14, 25);
};
} else {
_arg1.target.x = (_arg1.target.x + _arg1.target.xVelocity);
_arg1.target.y = (_arg1.target.y + _arg1.target.yVelocity);
_arg1.target.yVelocity = (_arg1.target.yVelocity + 0.7);
(_arg1.target.xVelocity * 0.9);
(_arg1.target.yVelocity * 0.9);
_arg1.target.rotation = (_arg1.target.rotation + 5);
};
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:* = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
public function createSmokeCloud(_arg1:MovieClip, _arg2:Number){
var _local3:* = new SmokeCloud();
_local3.cacheAsBitmap = true;
_local3.scaleX = (_local3.scaleY = randRange(1, 2));
if (_arg2 == 1){
_local3.x = (_arg1.x - 20);
} else {
_local3.x = (_arg1.x + 20);
};
_local3.y = randRange((_arg1.y - 80), (_arg1.y + 80));
_local3.rotation = ((Math.random() * 30) - 10);
addChild(_local3);
_local3.addEventListener(Event.ENTER_FRAME, onFadeCloud);
}
public function showLogo(_arg1:Event){
if (introLogo.currentLabel == "End"){
play();
removeEventListener(Event.ENTER_FRAME, showLogo);
};
}
public function onMove(_arg1:Event){
if (water.currentLabel == "Start"){
_arg1.target.play();
};
if (water.currentLabel == "End"){
_arg1.target.play();
};
}
public function addCustomMenuItems():void{
var _local1:ContextMenuItem = new ContextMenuItem("Design, Programming and Music by Philip Mark Roxas © 2010");
myCustomMenu.customItems.push(_local1);
}
function frame2(){
stop();
addEventListener(Event.ENTER_FRAME, showLogo);
}
public function updateGame(_arg1:Event){
if (!isGameOver){
start_btn.removeEventListener(MouseEvent.MOUSE_DOWN, onStart);
switchBtn.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
howToBtn.removeEventListener(MouseEvent.MOUSE_DOWN, onShowGuide);
fButton.removeEventListener(MouseEvent.MOUSE_DOWN, gotoURL);
tButton.removeEventListener(MouseEvent.MOUSE_DOWN, gotoURL);
addEventListener(Event.ENTER_FRAME, gameTimer);
if (currentMinute == 0){
levelDiff = 1;
enable2ndPopUpFish = false;
enable3rdPopUpFish = false;
enable1stJumpFish = false;
enable2ndJumpFish = false;
enable3rdJumpFish = false;
_1stPopUpFishSec = 6;
};
if (currentMinute == 1){
enable1stJumpFish = true;
_1stPopUpFishSec = 5;
_1stJumpFishSec = 8;
if (currentSecond >= 30){
if (((!(easyMode)) || (increaseToNormal))){
levelDiff = 2;
_1stPopUpFishSec = 3;
_1stJumpFishSec = 6;
if (enable1stFlyingFish){
enableChange1stJumpFish = true;
};
};
};
};
if (currentMinute == 2){
enable2ndPopUpFish = true;
if (((easyMode) && (!(increaseToNormal)))){
_1stPopUpFishSec = 5;
_2ndPopUpFishSec = 7;
_1stJumpFishSec = 9;
if (enable2ndFlyingFish){
enableChange2ndJumpFish = true;
};
} else {
_1stPopUpFishSec = 5;
_2ndPopUpFishSec = 3;
_1stJumpFishSec = 4;
};
if (currentSecond >= 30){
enable2ndJumpFish = true;
_2ndJumpFishSec = 3;
if (enable1stFlyingFish){
if (mustStopTrap){
enable2ndFlyingFish = true;
_2ndFlyingFishSec = (10 - minusTimer);
if (enable3rdFlyingFish){
if (summonMeteor){
enable2ndFishSmoke = true;
};
};
};
};
};
};
if (currentMinute == 3){
enable3rdPopUpFish = true;
if (((easyMode) && (!(increaseToNormal)))){
_1stPopUpFishSec = 8;
_2ndPopUpFishSec = 6;
_3rdPopUpFishSec = 5;
_1stJumpFishSec = 6;
_2ndJumpFishSec = 7;
} else {
levelDiff = 3;
_1stPopUpFishSec = 4;
_2ndPopUpFishSec = 2;
_3rdPopUpFishSec = 3;
_1stJumpFishSec = 2;
_2ndJumpFishSec = 3;
};
if (currentSecond >= 30){
enable3rdPopUpFish = false;
enable3rdJumpFish = true;
_3rdJumpFishSec = 4;
};
};
if (currentMinute >= 4){
currentMS = 0;
currentSecond = 0;
currentMinute = 0;
if (mustStopTrap){
enable1stFlyingFish = true;
_1stFlyingFishSec = (10 - minusTimer);
};
if (((!(easyMode)) || (increaseToNormal))){
if (enable2ndFlyingFish){
if (minusTimer <= 9){
minusTimer++;
};
if (((mustStopTrap) || (summonMeteor))){
if (((increaseToNormal) || (!(easyMode)))){
enable3rdFlyingFish = true;
};
_3rdFlyingFishSec = (10 - minusTimer);
};
};
};
};
if (!mustStopTrap){
enable1stFlyingFish = false;
enable2ndFlyingFish = false;
};
if (timerRise >= 1000){
addEventListener(Event.ENTER_FRAME, riseWater);
};
if (summonMeteor){
fallTimer++;
if (fallTimer >= 75){
createMeteor();
fallTimer = 0;
};
enable3rdFlyingFish = false;
enable2ndFishSmoke = false;
};
if (isStartTrap){
mustStopTrap = false;
makeTrapL();
makeTrapR();
isStillTrap = true;
isStartTrap = false;
bg.play();
alertLoop = redAlertSound.play(0, 9999);
};
if (hand.y >= (water.lockPosition.y + 350)){
countDown.play();
} else {
countDown.gotoAndStop(1);
};
if (hand.y <= (0 + (hand.height / 2))){
hand.y = (0 + (hand.height / 2));
};
if (hand.x <= (0 + (hand.width / 2))){
hand.x = (0 + (hand.width / 2));
};
if (hand.x >= (450 - (hand.width / 2))){
hand.x = (450 - (hand.width / 2));
};
if (trapSet >= 6){
bgmChannel.stop();
mustStopTrap = true;
removeEventListener(Event.ENTER_FRAME, onReturn);
removeEventListener(Event.ENTER_FRAME, gameTimer);
blackOut.play();
};
if (startSending){
blackOut.gotoAndStop(1);
};
if (countDown.currentLabel == "End"){
countDown.visible = false;
bgmChannel.stop();
if (!startSending){
blackOut.play();
};
};
if (water.isRiseFinshed){
timerRise = (timerRise + 1);
};
if (lives <= 0){
bgmChannel.stop();
isOnMouse = false;
removeEventListener(Event.ENTER_FRAME, onReturn);
removeEventListener(Event.ENTER_FRAME, gameTimer);
if (!startSending){
blackOut.play();
};
mustStopTrap = true;
isStillTrap = false;
liveCounter.visible = false;
};
if (isOnHit){
Mouse.show();
if (handSpeedX >= 0){
dizzyTimer = 0;
handSpeedX = (handSpeedY = (handSpeedY - 1));
hand.y = (hand.y + (handSpeedY * 0.9));
if ((((hand.x >= (stage.stageWidth - (hand.width / 2)))) || ((hand.x <= (0 + (hand.width / 2)))))){
isOnWallHit = true;
};
if (!isOnWallHit){
if (hitDirection == 1){
hand.x = (hand.x + (handSpeedX * 0.9));
};
if (hitDirection == 2){
hand.x = (hand.x - (handSpeedX * 0.9));
};
};
if (isOnWallHit){
if (hitDirection == 1){
hand.x = (hand.x - (handSpeedX * 0.9));
};
if (hitDirection == 2){
hand.x = (hand.x + (handSpeedX * 0.9));
};
};
} else {
dizzyTimer = (dizzyTimer + 1);
if (dizzyTimer >= 50){
dizzyTimer = 0;
isOnHit = false;
isOnWallHit = false;
hitDirection = 0;
addEventListener(Event.ENTER_FRAME, onReturn);
};
};
} else {
if (isOnMouse){
hand.x = mouseX;
hand.y = mouseY;
Mouse.hide();
};
if (isStillTrap){
if (hand.y != mouseY){
isOnMouse = false;
addEventListener(Event.ENTER_FRAME, onReturn);
};
if (hand.y <= trapArea){
hand.y = (trapArea + (hand.height / 2));
};
};
};
if (easyMode){
if (point >= 200){
increaseToNormal = true;
};
if (point == 200){
if (!isPlayOnce){
levelUpSound.play();
hand.circle.play();
isPlayOnce = true;
};
};
if (mustStopTrap){
if (point >= 500){
if (!isStillTrap){
isStartTrap = true;
};
};
};
} else {
if (point >= 250){
summonMeteor = true;
};
if (mustStopTrap){
if (point >= 500){
if (!isStillTrap){
isStartTrap = true;
};
};
};
};
};
if (isGameOver){
mustStopTrap = true;
summonMeteor = false;
isStillTrap = false;
increaseToNormal = false;
isOnMouse = false;
Mouse.show();
removeEventListener(Event.ENTER_FRAME, onReturn);
removeEventListener(Event.ENTER_FRAME, gameTimer);
switchBtn.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
howToBtn.addEventListener(MouseEvent.MOUSE_DOWN, onShowGuide);
fButton.addEventListener(MouseEvent.MOUSE_DOWN, gotoURL);
tButton.addEventListener(MouseEvent.MOUSE_DOWN, gotoURL);
currentMS = 0;
currentSecond = 0;
currentMinute = 0;
enable2ndPopUpFish = false;
enable3rdPopUpFish = false;
enable1stJumpFish = false;
enable2ndJumpFish = false;
enable3rdJumpFish = false;
enable1stFlyingFish = false;
enable2ndFlyingFish = false;
enable3rdFlyingFish = false;
enable2ndFishSmoke = false;
enableChange1stJumpFish = false;
enableChange2ndJumpFish = false;
};
liveCounter.gotoAndStop(lives);
if (point > nextExtraPoints){
if (lives <= 4){
lives++;
hand.circle.play();
levelUpSound.play();
};
nextExtraPoints = (nextExtraPoints + 25);
};
}
public function gameTimer(_arg1:Event){
currentMS = (currentMS + Math.floor((1 / 0.3)));
if (currentMS >= 60){
currentMS = 0;
currentSecond = (currentSecond + 1);
};
if (currentSecond >= 60){
currentSecond = 0;
currentMinute = (currentMinute + 1);
};
if (enable1stJumpFish){
if (!is1stJumpFishSummoned){
jumpfishMS = (jumpfishMS + Math.floor((1 / 0.3)));
if (jumpfishMS >= 60){
jumpfishMS = 0;
jumpfishSecond = (jumpfishSecond + 1);
};
if (jumpfishSecond >= _1stJumpFishSec){
is1stJumpFishSummoned = true;
jumpfishSecond = 0;
if (!enableChange1stJumpFish){
createJumpFish(1);
} else {
createNewJumpFish(1);
};
};
};
};
if (!is1stPopUpFishSummoned){
popUpfishMS = (popUpfishMS + Math.floor((1 / 0.3)));
if (popUpfishMS >= 60){
popUpfishMS = 0;
popUpfishSecond = (popUpfishSecond + 1);
};
if (popUpfishSecond >= _1stPopUpFishSec){
is1stPopUpFishSummoned = true;
popUpfishSecond = 0;
createPopUpFish(1);
};
};
if (enable2ndJumpFish){
if (!is2ndJumpFishSummoned){
secjumpfishMS = (secjumpfishMS + Math.floor((1 / 0.3)));
if (secjumpfishMS >= 60){
secjumpfishMS = 0;
secjumpfishSecond = (secjumpfishSecond + 1);
};
if (secjumpfishSecond >= _2ndJumpFishSec){
is2ndJumpFishSummoned = true;
secjumpfishSecond = 0;
if (!enableChange2ndJumpFish){
createJumpFish(2);
} else {
createNewJumpFish(2);
};
};
};
};
if (enable2ndPopUpFish){
if (!is2ndPopUpFishSummoned){
secpopUpfishMS = (secpopUpfishMS + Math.floor((1 / 0.3)));
if (secpopUpfishMS >= 60){
secpopUpfishMS = 0;
secpopUpfishSecond = (secpopUpfishSecond + 1);
};
if (secpopUpfishSecond >= _2ndPopUpFishSec){
is2ndPopUpFishSummoned = true;
secpopUpfishSecond = 0;
createPopUpFish(2);
};
};
};
if (enable3rdJumpFish){
if (!is3rdJumpFishSummoned){
trdjumpfishMS = (trdjumpfishMS + Math.floor((1 / 0.3)));
if (trdjumpfishMS >= 60){
trdjumpfishMS = 0;
trdjumpfishSecond = (trdjumpfishSecond + 1);
};
if (trdjumpfishSecond >= _3rdJumpFishSec){
is3rdJumpFishSummoned = true;
trdjumpfishSecond = 0;
createJumpFish(3);
};
};
};
if (enable3rdPopUpFish){
if (!is3rdPopUpFishSummoned){
trdpopUpfishMS = (trdpopUpfishMS + Math.floor((1 / 0.3)));
if (trdpopUpfishMS >= 60){
trdpopUpfishMS = 0;
trdpopUpfishSecond = (trdpopUpfishSecond + 1);
};
if (trdpopUpfishSecond >= _3rdPopUpFishSec){
is3rdPopUpFishSummoned = true;
trdpopUpfishSecond = 0;
createPopUpFish(3);
};
};
};
if (enable1stFlyingFish){
if (!is1stFlyingFishSummoned){
flyingFishMS = (flyingFishMS + Math.floor((1 / 0.3)));
if (flyingFishMS >= 60){
flyingFishMS = 0;
flyingFishSecond = (flyingFishSecond + 1);
};
if (flyingFishSecond >= _1stFlyingFishSec){
is1stFlyingFishSummoned = true;
flyingFishSecond = 0;
createFlyingFish(1, false);
};
};
};
if (enable2ndFlyingFish){
if (!is2ndFlyingFishSummoned){
secflyingFishMS = (secflyingFishMS + Math.floor((1 / 0.3)));
if (secflyingFishMS >= 60){
secflyingFishMS = 0;
secflyingFishSecond = (secflyingFishSecond + 1);
};
if (secflyingFishSecond >= _2ndFlyingFishSec){
is2ndFlyingFishSummoned = true;
secflyingFishSecond = 0;
if (enable2ndFishSmoke){
createFlyingFish(2, true);
} else {
createFlyingFish(2, false);
};
};
};
};
if (enable3rdFlyingFish){
if (!is3rdFlyingFishSummoned){
trdflyingFishMS = (trdflyingFishMS + Math.floor((1 / 0.3)));
if (trdflyingFishMS >= 60){
trdflyingFishMS = 0;
trdflyingFishSecond = (trdflyingFishSecond + 1);
};
if (trdflyingFishSecond >= _3rdFlyingFishSec){
is3rdFlyingFishSummoned = true;
trdflyingFishSecond = 0;
createFlyingFish(3, true);
};
};
};
}
function frame4(){
stop();
water.cacheAsBitmap = true;
hand.cacheAsBitmap = true;
jumpSpeed = 0;
gravity = 0.5;
point = 0;
score = 0;
hiScore = 0;
easyHiScore = 0;
normalHiScore = 0;
timerRise = 0;
timerFall = 0;
currentMS = 0;
currentSecond = 0;
currentMinute = 0;
flyingFishMS = 0;
flyingFishSecond = 0;
secflyingFishMS = 0;
secflyingFishSecond = 0;
trdflyingFishMS = 0;
trdflyingFishSecond = 0;
jumpfishMS = 0;
jumpfishSecond = 0;
secjumpfishMS = 0;
secjumpfishSecond = 0;
trdjumpfishMS = 0;
trdjumpfishSecond = 0;
popUpfishMS = 0;
popUpfishSecond = 0;
secpopUpfishMS = 0;
secpopUpfishSecond = 0;
trdpopUpfishMS = 0;
trdpopUpfishSecond = 0;
_1stPopUpFishSec = 0;
_2ndPopUpFishSec = 0;
_3rdPopUpFishSec = 0;
_1stJumpFishSec = 0;
_2ndJumpFishSec = 0;
_3rdJumpFishSec = 0;
_1stFlyingFishSec = 0;
_2ndFlyingFishSec = 0;
_3rdFlyingFishSec = 0;
is1stPopUpFishSummoned = false;
is2ndPopUpFishSummoned = false;
is3rdPopUpFishSummoned = false;
is1stJumpFishSummoned = false;
is2ndJumpFishSummoned = false;
is3rdJumpFishSummoned = false;
is1stFlyingFishSummoned = false;
is2ndFlyingFishSummoned = false;
is3rdFlyingFishSummoned = false;
enable2ndPopUpFish = false;
enable3rdPopUpFish = false;
enable1stJumpFish = false;
enable2ndJumpFish = false;
enable3rdJumpFish = false;
enable1stFlyingFish = false;
enable2ndFlyingFish = false;
enable3rdFlyingFish = false;
enable2ndFishSmoke = false;
enableChange1stJumpFish = false;
enableChange2ndJumpFish = false;
sumbitScore = false;
hitDirection = 0;
isOnHit = false;
isOnWallHit = false;
dizzyTimer = 0;
handSpeedX = 0;
handSpeedY = 0;
minusTimer = 0;
isPlayOnce = false;
isGameOver = true;
isOnMouse = false;
positionArray = new Array(position01, position02, position03, position04, position05);
easyMode = false;
testTimerMode = false;
levelDiff = 1;
lives = 0;
nextExtraPoints = 24;
increaseToNormal = false;
tempClip = null;
tempTable = null;
liveCounter.visible = false;
start_btn.visible = false;
howToBtn.visible = false;
switchBtn.visible = false;
hand.alpha = 0;
handFadeIn = false;
oldPosY = 0;
currentLastPosY = (0 - 13);
trapArea = -250;
trapSet = 0;
isStartTrap = false;
isStillTrap = false;
trapArrayL = new Array();
trapArrayR = new Array();
blackOut.mouseChildren = false;
blackOut.mouseEnabled = false;
countDown.cacheAsBitmap = true;
mustStopTrap = true;
summonMeteor = true;
fallTimer = 0;
isSending = false;
startSending = false;
fButton.visible = false;
tButton.visible = false;
bgmChannel = new SoundChannel();
alertLoop = new SoundChannel();
mainLoop = new BGMLoop();
getSound = new PickUpSFX();
selectSound = new SelectSFX();
hurtSound = new HurtSFX();
hitMeteor = new HitMeteor();
gateClosed = new GateClosed();
redAlertSound = new AlarmSiren();
bumpSound = new BumpSFX();
levelUpSound = new LevelUpSFX();
addEventListener(Event.ENTER_FRAME, updateScene);
addEventListener(Event.ENTER_FRAME, updateGame);
i = 0;
while (i < positionArray.length) {
positionArray[i].visible = false;
positionArray[i].cacheAsBitmap = false;
i++;
};
b = 0;
while (b < 15) {
bubble = new Bubble();
bubbleMask = new BubbleMask();
bubbleMask.x = 222.1;
bubbleMask.y = 397;
bubble.x = randRange(-5.5, 448);
bubble.y = randRange(431, 570);
bubble.speed = randRange(1, 4);
bubble.randomSize = (Math.random() * 1);
bubble.scaleX = bubble.randomSize;
bubble.scaleY = bubble.randomSize;
bubble.mask = bubbleMask;
bubble.cacheAsBitmap = true;
addChildAt(bubble, 9);
addChildAt(bubbleMask, 9);
bubble.addEventListener(Event.ENTER_FRAME, onFloat);
bubbleMask.addEventListener(Event.ENTER_FRAME, onMove);
b++;
};
}
public function removeTemp(_arg1:Object){
if (_arg1 != null){
removeChild(MovieClip(_arg1));
_arg1 = null;
};
}
function frame1(){
stop();
MochiServices.connect("cb726178fa9cb64b", root);
loadingBar.loadBar.width = 0;
addEventListener(Event.ENTER_FRAME, onLoaded);
}
public function removeDefaultItems():void{
myCustomMenu.hideBuiltInItems();
var _local1:ContextMenuBuiltInItems = myCustomMenu.builtInItems;
_local1.quality = true;
}
public function fishJump(_arg1:Event){
_arg1.target.jumpSpeed = (_arg1.target.jumpSpeed + 1);
_arg1.target.y = (_arg1.target.y + (_arg1.target.jumpSpeed * _arg1.target.gravity));
var _local2:* = _arg1.target.arrowGuide;
_local2.x = _arg1.target.x;
_local2.y = (_arg1.target.y - 35);
if (_arg1.target.firstJump){
if (_arg1.target.fish.hitTestObject(positionArray[_arg1.target.randomPos])){
_arg1.target.jumpSpeed = -30;
if (_local2.currentLabel == "Start"){
_local2.play();
};
};
};
if (!_arg1.target.firstJump){
if (_arg1.target.fish.hitTestObject(positionArray[_arg1.target.randomPos])){
_arg1.target.alreadyGetPoint = false;
positionArray[_arg1.target.randomPos].preserve = false;
if (_arg1.target.rank == 1){
is1stJumpFishSummoned = false;
};
if (_arg1.target.rank == 2){
is2ndJumpFishSummoned = false;
};
if (_arg1.target.rank == 3){
is3rdJumpFishSummoned = false;
};
_arg1.target.removeEventListener(Event.ENTER_FRAME, fishJump);
if (!_arg1.target.alreadyGetPoint){
_local2.addEventListener(Event.ENTER_FRAME, leaveArrow);
};
removeTemp(_arg1.target);
};
};
if (_arg1.target.jumpSpeed == -30){
if (_arg1.target.randomNum == 0){
_arg1.target.fish.gotoAndPlay("Slow");
};
if (_arg1.target.randomNum == 1){
_arg1.target.fish.gotoAndPlay("Slow");
};
if (_arg1.target.randomNum == 2){
_arg1.target.fish.gotoAndPlay("Slow");
};
if (_arg1.target.randomNum == 3){
_arg1.target.fish.gotoAndPlay("Fast");
};
if (_arg1.target.randomNum == 4){
_arg1.target.fish.gotoAndPlay("Fast");
};
};
if (_arg1.target.jumpSpeed >= 5){
_arg1.target.firstJump = false;
};
if (!_arg1.target.alreadyGetPoint){
if (_arg1.target.fish.isWarningSign){
_local2.sign.play();
};
if (hand.hitTestObject(_arg1.target.fish.biteHit)){
if (_arg1.target.fish.enableHitPoint){
_local2.addEventListener(Event.ENTER_FRAME, leaveArrow);
getSound.play();
_arg1.target.fish.spot.gotoAndPlay("Get");
point = (point + 1);
_arg1.target.alreadyGetPoint = true;
};
};
};
if (hand.hitTestObject(_arg1.target.fish.biteHit)){
if (_arg1.target.fish.enableHitBite){
lives--;
hurtSound.play();
hand.gotoAndPlay(73);
_arg1.target.fish.enableHitBite = false;
if (isOnHit){
dizzyTimer = 0;
addEventListener(Event.ENTER_FRAME, onReturn);
isOnHit = false;
};
};
};
if (_arg1.target.fish.enableHitBite){
if (!_arg1.target.alreadyGetPoint){
_local2.addEventListener(Event.ENTER_FRAME, leaveArrow);
};
};
}
public function onLoaded(_arg1:Event){
var _local2:* = stage.loaderInfo.bytesTotal;
var _local3:* = stage.loaderInfo.bytesLoaded;
var _local4:* = (_local3 / _local2);
if (_local3 >= _local2){
removeEventListener(Event.ENTER_FRAME, onLoaded);
removeChild(bgintro);
removeChild(loadingBar);
removeChild(loadingTitle);
textloaded.text = "";
textTotal.text = "";
removeChild(smallMinor);
play();
} else {
loadingBar.loadBar.width = (_local4 * 211);
textloaded.text = _local3;
textTotal.text = _local2;
};
}
public function createJumpFish(_arg1){
var _local2:Fish = new Fish();
_local2.randomPos = Math.floor((Math.random() * 5));
if (!positionArray[_local2.randomPos].preserve){
_local2.y = (water.lockPosition.y + 450);
_local2.x = positionArray[_local2.randomPos].x;
_local2.jumpSpeed = 0;
_local2.gravity = 0.5;
_local2.firstJump = true;
_local2.alreadyGetPoint = false;
_local2.rank = _arg1;
_local2.randomNum = Math.ceil((Math.random() * levelDiff));
_local2.cacheAsBitmap = true;
positionArray[_local2.randomPos].preserve = true;
_local2.arrowGuide = new ArrowGuide();
_local2.arrowGuide.cacheAsBitmap = true;
addChildAt(_local2, 1);
addChild(_local2.arrowGuide);
_local2.addEventListener(Event.ENTER_FRAME, fishJump);
} else {
_local2.randomPos = Math.floor((Math.random() * 5));
};
}
public function createNewJumpFish(_arg1){
var _local2:Fish = new Fish();
_local2.randomPos = Math.floor((Math.random() * 5));
if (!positionArray[_local2.randomPos].preserve){
_local2.y = positionArray[_local2.randomPos].y;
_local2.x = positionArray[_local2.randomPos].x;
_local2.isAppear = true;
_local2.isLeave = false;
_local2.isReadyAnim = 0;
_local2.jumpSpeed = 0;
_local2.gravity = 0.5;
_local2.rank = _arg1;
_local2.firstJump = true;
_local2.randomJumpPos = Math.ceil((Math.random() * 2));
_local2.randomNum = Math.ceil((Math.random() * 4));
_local2.cacheAsBitmap = true;
_local2.arrowGuide = new ArrowGuide();
addChildAt(_local2, 1);
addChild(_local2.arrowGuide);
if (_local2.randomPos == 5){
_local2.randomJumpPos = 2;
};
if (_local2.randomPos == 1){
_local2.randomJumpPos = 1;
};
_local2.addEventListener(Event.ENTER_FRAME, fishJumpOn);
} else {
_local2.randomPos = Math.floor((Math.random() * 5));
};
}
public function onShowGuide(_arg1:Event){
var _local2:* = new HowToScreen();
_local2.x = (stage.stageWidth / 2);
_local2.y = 220.45;
tempClip = _local2;
addChild(_local2);
}
public function gotoURL(_arg1:Event){
var _local2 = "";
if (_arg1.target.name == "fButton"){
_local2 = "http://www.facebook.com/pages/True-Blue-Creature/147218475304129";
};
if (_arg1.target.name == "tButton"){
_local2 = "http://twitter.com/trubluecreature";
};
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3);
}
public function onDown(_arg1:Event){
if (isGameOver){
if (!easyMode){
easyMode = true;
switchBtn.modeStatus.text = "EASY MODE";
} else {
easyMode = false;
switchBtn.modeStatus.text = "NORMAL MODE";
};
};
}
public function fishPopup(_arg1:Event){
_arg1.target.y = (water.lockPosition.y + 450);
var _local2:* = _arg1.target.arrowGuide;
_local2.x = _arg1.target.x;
_local2.y = (_arg1.target.y - 155);
if (_arg1.target.isAppear){
_arg1.target.play();
if (_arg1.target.randomNum == 0){
_arg1.target.fish.gotoAndStop("Slow");
};
if (_arg1.target.randomNum == 1){
_arg1.target.fish.gotoAndStop("Slow");
};
if (_arg1.target.randomNum == 2){
_arg1.target.fish.gotoAndStop("Slow");
};
if (_arg1.target.randomNum == 3){
_arg1.target.fish.gotoAndStop("Fast");
};
if (_arg1.target.randomNum == 4){
_arg1.target.fish.gotoAndStop("Fast");
};
if (_arg1.target.currentLabel == "Mid"){
_arg1.target.isAppear = false;
_arg1.target.isLeave = true;
_arg1.target.isReadyAnim = 1;
};
};
if (_arg1.target.isReadyAnim == 1){
if (!_arg1.target.alreadyGetPoint){
_arg1.target.fish.play();
if (_local2.currentLabel == "Start"){
_local2.play();
};
};
_arg1.target.isReadyAnim = 0;
};
if (_arg1.target.fish.enableHitBite){
if (!_arg1.target.alreadyGetPoint){
_local2.addEventListener(Event.ENTER_FRAME, leaveArrow);
};
};
if (_arg1.target.fish.currentLabel == "Slow_End"){
if (_arg1.target.isLeave){
_arg1.target.play();
if (_arg1.target.currentLabel == "End"){
positionArray[_arg1.target.randomPos].preserve = false;
if (_arg1.target.rank == 1){
is1stPopUpFishSummoned = false;
};
if (_arg1.target.rank == 2){
is2ndPopUpFishSummoned = false;
};
if (_arg1.target.rank == 3){
is3rdPopUpFishSummoned = false;
};
_arg1.target.removeEventListener(Event.ENTER_FRAME, fishPopup);
if (!_arg1.target.alreadyGetPoint){
_arg1.target.arrowGuide.addEventListener(Event.ENTER_FRAME, leaveArrow);
};
removeTemp(_arg1.target);
};
};
};
if (_arg1.target.fish.currentLabel == "Fast_End"){
if (_arg1.target.isLeave){
_arg1.target.play();
if (_arg1.target.currentLabel == "End"){
positionArray[_arg1.target.randomPos].preserve = false;
if (_arg1.target.rank == 1){
is1stPopUpFishSummoned = false;
};
if (_arg1.target.rank == 2){
is2ndPopUpFishSummoned = false;
};
if (_arg1.target.rank == 3){
is3rdPopUpFishSummoned = false;
};
_arg1.target.removeEventListener(Event.ENTER_FRAME, fishPopup);
if (!_arg1.target.alreadyGetPoint){
_local2.addEventListener(Event.ENTER_FRAME, leaveArrow);
};
removeTemp(_arg1.target);
};
};
};
if (!_arg1.target.alreadyGetPoint){
if (_arg1.target.fish.isWarningSign){
_local2.sign.play();
};
if (hand.hitTestObject(_arg1.target.fish.biteHit)){
if (_arg1.target.fish.enableHitPoint){
_local2.play();
_local2.addEventListener(Event.ENTER_FRAME, leaveArrow);
_arg1.target.fish.spot.gotoAndPlay("Get");
getSound.play();
point = (point + 1);
_arg1.target.alreadyGetPoint = true;
};
};
};
if (hand.hitTestObject(_arg1.target.fish.biteHit)){
if (_arg1.target.fish.enableHitBite){
lives--;
hurtSound.play();
hand.gotoAndPlay(73);
_arg1.target.fish.enableHitBite = false;
if (isOnHit){
dizzyTimer = 0;
addEventListener(Event.ENTER_FRAME, onReturn);
isOnHit = false;
};
};
};
}
public function fishJumpOn(_arg1:Event){
var _local2:* = _arg1.target.arrowGuide;
_local2.x = _arg1.target.x;
_local2.y = (_arg1.target.y - 35);
_arg1.target.jumpSpeed = (_arg1.target.jumpSpeed + 1);
if (_arg1.target.randomJumpPos == 1){
_arg1.target.rotation = (_arg1.target.rotation + 2.8);
_arg1.target.x = (_arg1.target.x + 2);
} else {
_arg1.target.scaleX = -1;
_arg1.target.rotation = (_arg1.target.rotation - 2.8);
_arg1.target.x = (_arg1.target.x - 2);
};
_arg1.target.y = (_arg1.target.y + (_arg1.target.jumpSpeed * _arg1.target.gravity));
if (_arg1.target.firstJump){
if (_arg1.target.fish.hitTestObject(positionArray[_arg1.target.randomPos])){
_arg1.target.jumpSpeed = -30;
if (_local2.currentLabel == "Start"){
_local2.play();
};
};
};
if (!_arg1.target.firstJump){
if (_arg1.target.y >= positionArray[_arg1.target.randomPos].y){
_arg1.target.alreadyGetPoint = false;
if (_arg1.target.rank == 1){
is1stJumpFishSummoned = false;
};
if (_arg1.target.rank == 2){
is2ndJumpFishSummoned = false;
};
if (_arg1.target.rank == 3){
is3rdJumpFishSummoned = false;
};
_arg1.target.removeEventListener(Event.ENTER_FRAME, fishPopup);
removeTemp(_arg1.target);
};
};
if (_arg1.target.jumpSpeed == -30){
if (_arg1.target.randomNum == 0){
_arg1.target.fish.gotoAndPlay("Slow");
};
if (_arg1.target.randomNum == 1){
_arg1.target.fish.gotoAndPlay("Slow");
};
if (_arg1.target.randomNum == 2){
_arg1.target.fish.gotoAndPlay("Slow");
};
if (_arg1.target.randomNum == 3){
_arg1.target.fish.gotoAndPlay("Fast");
};
if (_arg1.target.randomNum == 4){
_arg1.target.fish.gotoAndPlay("Fast");
};
};
if (_arg1.target.jumpSpeed >= 5){
_arg1.target.firstJump = false;
};
if (!_arg1.target.alreadyGetPoint){
if (_arg1.target.fish.isWarningSign){
_local2.sign.play();
};
if (hand.hitTestObject(_arg1.target.fish.biteHit)){
if (_arg1.target.fish.enableHitPoint){
_local2.addEventListener(Event.ENTER_FRAME, leaveArrow);
getSound.play();
_arg1.target.fish.spot.gotoAndPlay("Get");
point = (point + 1);
_arg1.target.alreadyGetPoint = true;
};
};
};
if (hand.hitTestObject(_arg1.target.fish.biteHit)){
if (_arg1.target.fish.enableHitBite){
lives--;
hurtSound.play();
hand.gotoAndPlay(73);
_arg1.target.fish.enableHitBite = false;
if (isOnHit){
dizzyTimer = 0;
addEventListener(Event.ENTER_FRAME, onReturn);
isOnHit = false;
};
};
};
if (_arg1.target.fish.enableHitBite){
if (!_arg1.target.alreadyGetPoint){
_local2.addEventListener(Event.ENTER_FRAME, leaveArrow);
};
};
}
public function updateScene(_arg1:Event){
var objectA:Sprite;
var objectB:Sprite;
var o2:Object;
var boardID2:String;
var o1:Object;
var boardID1:String;
var evt = _arg1;
position01.y = (water.lockPosition.y + 450);
position02.y = (water.lockPosition.y + 450);
position03.y = (water.lockPosition.y + 450);
position04.y = (water.lockPosition.y + 450);
position05.y = (water.lockPosition.y + 450);
position01.preserve = false;
position02.preserve = false;
position03.preserve = false;
position04.preserve = false;
position05.preserve = false;
ui.uiMenu.pointText.text = point.toString();
ui.uiMenu.hiScoreText.text = hiScore.toString();
countDown.x = mouseX;
countDown.y = mouseY;
if (gameTitle.currentLabel == "End"){
handFadeIn = true;
start_btn.visible = true;
howToBtn.visible = true;
switchBtn.visible = true;
fButton.visible = true;
tButton.visible = true;
start_btn.addEventListener(MouseEvent.MOUSE_DOWN, onStart);
howToBtn.addEventListener(MouseEvent.MOUSE_DOWN, onShowGuide);
switchBtn.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
fButton.addEventListener(MouseEvent.MOUSE_DOWN, gotoURL);
tButton.addEventListener(MouseEvent.MOUSE_DOWN, gotoURL);
};
if (handFadeIn){
hand.alpha = (hand.alpha + 0.1);
if (hand.alpha >= 1){
handFadeIn = false;
};
};
if (water.isRiseStop){
timerFall = (timerFall + 1);
};
if (timerFall >= 300){
water.play();
timerFall = 0;
};
if (tempClip != null){
if (tempClip.isDone){
removeChild(MovieClip(tempClip));
tempClip = null;
};
};
if (!easyMode){
switchBtn.modeStatus.text = "NORMAL MODE";
hiScore = normalHiScore;
} else {
switchBtn.modeStatus.text = "EASY MODE";
hiScore = easyHiScore;
};
setHighScore();
MyCustomMenu();
if (testTimerMode){
ui.uiMenu.timerText.text = timerRise.toString();
ui.uiMenu.mainMinText.text = currentMinute.toString();
if (currentSecond <= 9){
ui.uiMenu.mainSecText.text = ("0" + currentSecond.toString());
} else {
ui.uiMenu.mainSecText.text = currentSecond.toString();
};
if (currentMS <= 9){
ui.uiMenu.mainMSText.text = ("0" + currentMS.toString());
} else {
ui.uiMenu.mainMSText.text = currentMS.toString();
};
};
if (tempTable != null){
if (tempTable.isFinished){
removeChild(MovieClip(tempTable));
tempTable = null;
};
};
if (blackOut.currentLabel == "Mid"){
mustStopTrap = true;
bg.gotoAndStop(1);
oldPosY = 0;
currentLastPosY = (0 - 13);
trapArea = -250;
trapSet = 0;
isOnMouse = false;
hand.x = 223;
hand.y = 180;
alertLoop.stop();
bg.gotoAndStop(1);
};
if (blackOut.currentLabel == "MidMid"){
if (isStillTrap){
for each (objectA in trapArrayL) {
removeChild(objectA);
};
trapArrayL = [];
for each (objectB in trapArrayR) {
removeChild(objectB);
};
trapArrayR = [];
};
score = point;
start_btn.visible = true;
gameTitle.visible = true;
howToBtn.visible = true;
switchBtn.visible = true;
fButton.visible = true;
tButton.visible = true;
start_btn.addEventListener(MouseEvent.MOUSE_DOWN, onStart);
fButton.addEventListener(MouseEvent.MOUSE_DOWN, gotoURL);
tButton.addEventListener(MouseEvent.MOUSE_DOWN, gotoURL);
liveCounter.visible = false;
isGameOver = true;
};
if (blackOut.currentLabel == "End"){
if (!easyMode){
o2 = {n:[3, 5, 15, 7, 8, 2, 7, 14, 4, 14, 13, 15, 7, 3, 9, 2], f:function (_arg1:Number, _arg2:String):String{
if (_arg2.length == 16){
return (_arg2);
};
return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16))));
}};
boardID2 = o2.f(0, "");
MochiScores.showLeaderboard({boardID:boardID2, score:score});
} else {
o1 = {n:[15, 13, 9, 0, 3, 13, 4, 2, 11, 9, 15, 10, 6, 7, 4, 11], f:function (_arg1:Number, _arg2:String):String{
if (_arg2.length == 16){
return (_arg2);
};
return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16))));
}};
boardID1 = o1.f(0, "");
MochiScores.showLeaderboard({boardID:boardID1, score:score});
};
};
}
public function MyCustomMenu(){
myCustomMenu = new ContextMenu();
removeDefaultItems();
addCustomMenuItems();
this.contextMenu = myCustomMenu;
}
public function makeTrapL(){
var _local1:*;
if (!mustStopTrap){
_local1 = new DangerBar();
oldPosY = (currentLastPosY + (_local1.height / 2));
_local1.y = oldPosY;
_local1.x = (0 - (_local1.width / 2));
_local1.dir = "L";
_local1.cacheAsBitmap = true;
trapArrayL.push(_local1);
addChildAt(_local1, 10);
_local1.addEventListener(Event.ENTER_FRAME, onMoveTrap);
};
}
public function makeTrapR(){
var _local1:*;
if (!mustStopTrap){
_local1 = new DangerBar();
oldPosY = (currentLastPosY + (_local1.height / 2));
_local1.y = oldPosY;
_local1.x = (stage.stageWidth + (_local1.width / 2));
_local1.scaleX = -1;
_local1.cacheAsBitmap = true;
trapArrayR.push(_local1);
addChildAt(_local1, 10);
_local1.addEventListener(Event.ENTER_FRAME, onMoveTrap);
};
}
public function leaveArrow(_arg1:Event){
if (_arg1.target != null){
_arg1.target.play();
if (_arg1.target.currentLabel == "Start"){
_arg1.target.gotoAndPlay("Mid");
};
if (_arg1.target.currentLabel == "End"){
_arg1.target.removeEventListener(Event.ENTER_FRAME, leaveArrow);
removeTemp(_arg1.target);
};
};
}
public function onMoveTrap(_arg1:Event){
if (!mustStopTrap){
if (_arg1.target.dir == "L"){
_arg1.target.x = (_arg1.target.x + 0.5);
if (_arg1.target.hitTestObject(hand)){
if ((((hand.x >= ((_arg1.target.x + (_arg1.target.width / 2)) - 50))) && ((hand.x <= (_arg1.target.x + (_arg1.target.width / 2)))))){
hand.x = (_arg1.target.x + (_arg1.target.width / 2));
} else {
if (hand.y <= (currentLastPosY + _arg1.target.height)){
hand.y = ((currentLastPosY + (_arg1.target.height - 13)) + (hand.height / 2));
};
};
};
if (_arg1.target.x >= 112){
currentLastPosY = ((currentLastPosY + _arg1.target.height) - 13);
trapArea = currentLastPosY;
if (!mustStopTrap){
trapSet++;
gateClosed.play();
makeTrapL();
};
_arg1.target.removeEventListener(Event.ENTER_FRAME, onMoveTrap);
};
} else {
_arg1.target.x = (_arg1.target.x - 0.5);
if (_arg1.target.hitTestObject(hand)){
if ((((hand.x >= (_arg1.target.x - (_arg1.target.width / 2)))) && ((hand.x <= ((_arg1.target.x - (_arg1.target.width / 2)) + 50))))){
hand.x = (_arg1.target.x - (_arg1.target.width / 2));
} else {
if (hand.y <= (currentLastPosY + _arg1.target.height)){
hand.y = ((currentLastPosY + (_arg1.target.height - 13)) + (hand.height / 2));
};
};
};
if (_arg1.target.x <= (stage.stageWidth - 112)){
makeTrapR();
_arg1.target.removeEventListener(Event.ENTER_FRAME, onMoveTrap);
};
};
};
}
public function createFlyingFish(_arg1, _arg2:Boolean=false){
var _local3:* = new FlyingFish();
_local3.y = randRange(26.7, 144.4);
_local3.isOnHit = false;
_local3.randDirection = Math.ceil((Math.random() * 2));
if (_local3.randDirection == 2){
_local3.x = (450 + (_local3.width / 2));
_local3.scaleX = -1;
} else {
_local3.x = -20;
};
_local3.xVelocity = 2;
_local3.yVelocity = -10;
_local3.rank = _arg1;
_local3.onSmoke = _arg2;
_local3.createTimer = 0;
addChild(_local3);
_local3.addEventListener(Event.ENTER_FRAME, onFly);
}
public function createPopUpFish(_arg1){
var _local2:Fish = new Fish();
_local2.randomPos = Math.floor((Math.random() * 5));
if (!positionArray[_local2.randomPos].preserve){
_local2.y = positionArray[_local2.randomPos].y;
_local2.x = positionArray[_local2.randomPos].x;
_local2.randomNum = Math.ceil((Math.random() * levelDiff));
_local2.isAppear = true;
_local2.isLeave = false;
_local2.isReadyAnim = 0;
_local2.alreadyGetPoint = false;
_local2.speed = 0;
_local2.rank = _arg1;
positionArray[_local2.randomPos].preserve = true;
_local2.cacheAsBitmap = true;
_local2.arrowGuide = new ArrowGuide();
_local2.arrowGuide.cacheAsBitmap = true;
addChildAt(_local2, 1);
addChild(_local2.arrowGuide);
_local2.addEventListener(Event.ENTER_FRAME, fishPopup);
} else {
_local2.randomPos = Math.floor((Math.random() * 5));
};
}
public function onStart(_arg1:MouseEvent){
start_btn.visible = false;
gameTitle.visible = false;
howToBtn.visible = false;
switchBtn.visible = false;
fButton.visible = false;
tButton.visible = false;
isGameOver = false;
isPlayOnce = false;
countDown.visible = true;
trapSet = 0;
nextExtraPoints = 24;
lives = 3;
point = 0;
minusTimer = 0;
liveCounter.visible = true;
selectSound.play();
bgmChannel = mainLoop.play(0, 9999);
removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
addEventListener(Event.ENTER_FRAME, onReturn);
}
public function onFloat(_arg1:Event){
if (_arg1.target.y >= 176){
_arg1.target.y = (_arg1.target.y - _arg1.target.speed);
};
if (_arg1.target.y <= 176){
_arg1.target.x = randRange(-5.5, 448);
_arg1.target.y = randRange(431, 570);
_arg1.target.randomSize = (Math.random() * 1);
_arg1.target.scaleX = _arg1.target.randomSize;
_arg1.target.scaleY = _arg1.target.randomSize;
_arg1.target.speed = randRange(1, 4);
};
}
public function createMeteor(){
var _local2:*;
var _local3:*;
var _local1:int = (Math.random() * 4);
if (_local1 == 1){
_local2 = new MeteorRed();
_local2.x = (Math.random() * stage.stageWidth);
_local2.y = -200;
_local2.velocity = randRange(3, 9);
_local2.types = "Red";
_local2.cacheAsBitmap = true;
addChildAt(_local2, 2);
_local2.addEventListener(Event.ENTER_FRAME, onFallCrash);
} else {
_local3 = new MeteorBlue();
_local3.x = (Math.random() * stage.stageWidth);
_local3.y = -200;
_local3.velocity = randRange(3, 9);
_local3.types = "Blue";
_local3.cacheAsBitmap = true;
addChildAt(_local3, 2);
_local3.addEventListener(Event.ENTER_FRAME, onFallCrash);
};
}
public function onFallCrash(_arg1:Event){
_arg1.target.y = (_arg1.target.y + (_arg1.target.velocity * 0.9));
if (_arg1.target.types == "Blue"){
if (_arg1.target.hitTestObject(hand)){
hitMeteor.play();
isOnHit = true;
hand.gotoAndPlay(128);
_arg1.target.isOnHit = true;
isOnMouse = false;
handSpeedX = randRange(14, 25);
handSpeedY = randRange(14, 25);
hitDirection = int((Math.random() * 2));
};
};
if (_arg1.target.types == "Red"){
if (!isOnHit){
if (_arg1.target.hitTestObject(hand)){
lives--;
hitMeteor.play();
isOnHit = true;
hand.gotoAndPlay(128);
_arg1.target.isOnHit = true;
isOnMouse = false;
handSpeedX = randRange(14, 25);
handSpeedY = randRange(14, 25);
hitDirection = int(((Math.random() * 2) + 1));
};
};
};
if (_arg1.target.y >= stage.stageHeight){
_arg1.target.removeEventListener(Event.ENTER_FRAME, onFallCrash);
removeTemp(_arg1.target);
};
}
public function setHighScore(){
if (isGameOver){
if (easyMode){
if (point >= easyHiScore){
easyHiScore = point;
point = 0;
} else {
point = 0;
};
} else {
if (point >= normalHiScore){
normalHiScore = point;
point = 0;
} else {
point = 0;
};
};
};
}
public function riseWater(_arg1:Event){
water.play();
timerRise = 0;
removeEventListener(Event.ENTER_FRAME, riseWater);
}
public function onReturn(_arg1:Event){
var _local2:* = Math.sin(((360 * Math.PI) / 180));
var _local3:* = Math.cos(((360 * Math.PI) / 180));
var _local4:* = (mouseX + _local2);
var _local5:* = (mouseY + _local3);
var _local6:* = (_local4 - hand.x);
var _local7:* = (_local5 - hand.y);
hand.x = (hand.x + (_local6 / 2));
hand.y = (hand.y + (_local7 / 2));
if ((((Math.abs(_local6) < 2)) && ((Math.abs(_local7) < 2)))){
isOnMouse = true;
Mouse.hide();
removeEventListener(Event.ENTER_FRAME, onReturn);
};
}
}
}//package darefishing_fla
Section 13
//Scene1_77 (darefishing_fla.Scene1_77)
package darefishing_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.system.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Scene1_77 extends MovieClip {
public var spot:MovieClip;
public var fish03:MovieClip;
public var fishMouth:MovieClip;
public var fishHead:MovieClip;
public var fish01:MovieClip;
public var fish02:MovieClip;
public var biteHit:MovieClip;
public function Scene1_77(){
addFrameScript(9, frame10, 17, frame18, 24, frame25, 44, frame45, 45, frame46, 65, frame66);
}
function frame18(){
fish01.spot.gotoAndPlay("Get");
}
function frame46(){
fish02.spot.gotoAndPlay("Get");
}
function frame10(){
fish01.gotoAndPlay(1);
fish01.isOnHowTo = true;
}
function frame66(){
fish03.spot.gotoAndPlay("Get");
}
function frame45(){
fish03.gotoAndPlay(1);
fish03.isOnHowTo = true;
}
function frame25(){
fish02.gotoAndPlay(1);
fish02.isOnHowTo = true;
}
}
}//package darefishing_fla
Section 14
//Scene2_79 (darefishing_fla.Scene2_79)
package darefishing_fla {
import flash.display.*;
public dynamic class Scene2_79 extends MovieClip {
public var hand:MovieClip;
public function Scene2_79(){
addFrameScript(0, frame1);
}
function frame1(){
if (hand.currentFrame >= 21){
hand.gotoAndPlay(1);
};
}
}
}//package darefishing_fla
Section 15
//Scene3_81 (darefishing_fla.Scene3_81)
package darefishing_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.system.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Scene3_81 extends MovieClip {
public var spot:MovieClip;
public var fishMouth:MovieClip;
public var hand:MovieClip;
public var fishHead:MovieClip;
public var fish01:MovieClip;
public var biteHit:MovieClip;
public function Scene3_81(){
addFrameScript(0, frame1, 9, frame10, 29, frame30);
}
function frame30(){
fish01.spot.gotoAndPlay("Get");
}
function frame1(){
if (hand.currentFrame >= 21){
hand.gotoAndPlay(1);
};
}
function frame10(){
fish01.gotoAndPlay(1);
fish01.isOnHowTo = true;
}
}
}//package darefishing_fla
Section 16
//Scene4_82 (darefishing_fla.Scene4_82)
package darefishing_fla {
import flash.display.*;
public dynamic class Scene4_82 extends MovieClip {
public var spot:MovieClip;
public var fishMouth:MovieClip;
public var hand:MovieClip;
public var fishHead:MovieClip;
public var fish01:MovieClip;
public var biteHit:MovieClip;
public function Scene4_82(){
addFrameScript(58, frame59);
}
function frame59(){
if (hand.currentFrame <= 126){
hand.gotoAndPlay(73);
} else {
hand.gotoAndPlay(1);
};
}
}
}//package darefishing_fla
Section 17
//Title_59 (darefishing_fla.Title_59)
package darefishing_fla {
import flash.display.*;
public dynamic class Title_59 extends MovieClip {
public function Title_59(){
addFrameScript(32, frame33);
}
function frame33(){
stop();
}
}
}//package darefishing_fla
Section 18
//UI_57 (darefishing_fla.UI_57)
package darefishing_fla {
import flash.display.*;
public dynamic class UI_57 extends MovieClip {
public var uiMenu:MovieClip;
public function UI_57(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
}
}
}//package darefishing_fla
Section 19
//wave_55 (darefishing_fla.wave_55)
package darefishing_fla {
import flash.display.*;
public dynamic class wave_55 extends MovieClip {
public function wave_55(){
addFrameScript(0, frame1);
}
function frame1(){
this.cacheAsBitmap = true;
}
}
}//package darefishing_fla
Section 20
//wave01_51 (darefishing_fla.wave01_51)
package darefishing_fla {
import flash.display.*;
public dynamic class wave01_51 extends MovieClip {
public var isRiseFinshed;
public var lockPosition:MovieClip;
public var isRiseStop;
public var wave:MovieClip;
public function wave01_51(){
addFrameScript(0, frame1, 1, frame2, 99, frame100, 100, frame101, 196, frame197);
}
function frame197(){
isRiseFinshed = true;
}
function frame100(){
stop();
isRiseStop = true;
}
function frame101(){
isRiseStop = false;
}
function frame1(){
this.cacheAsBitmap = true;
stop();
isRiseFinshed = true;
}
function frame2(){
isRiseFinshed = false;
isRiseStop = false;
}
}
}//package darefishing_fla
Section 21
//MochiCoins (mochi.as3.MochiCoins)
package mochi.as3 {
public class MochiCoins {
public static const STORE_HIDE:String = "StoreHide";
public static const NO_USER:String = "NoUser";
public static const IO_ERROR:String = "IOError";
public static const ITEM_NEW:String = "ItemNew";
public static const ITEM_OWNED:String = "ItemOwned";
public static const STORE_ITEMS:String = "StoreItems";
public static const ERROR:String = "Error";
public static const STORE_SHOW:String = "StoreShow";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public static var _inventory:MochiInventory;
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function getStoreItems():void{
MochiServices.send("coins_getStoreItems");
}
public static function get inventory():MochiInventory{
return (_inventory);
}
public static function showStore(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("coins_showStore", {options:_arg1}, null, null);
}
public static function requestFunding(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("social_requestFunding", _arg1);
}
public static function showItem(_arg1:Object=null):void{
if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){
trace("ERROR: showItem call must pass an Object with an item key");
return;
};
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("coins_showItem", {options:_arg1}, null, null);
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function showVideo(_arg1:Object=null):void{
if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){
trace("ERROR: showVideo call must pass an Object with an item key");
return;
};
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("coins_showVideo", {options:_arg1}, null, null);
}
addEventListener(MochiSocial.LOGGED_IN, function (_arg1:Object):void{
_inventory = new MochiInventory();
});
addEventListener(MochiSocial.LOGGED_OUT, function (_arg1:Object):void{
_inventory = null;
});
}
}//package mochi.as3
Section 22
//MochiDigits (mochi.as3.MochiDigits)
package mochi.as3 {
public final class MochiDigits {
private var Sibling:MochiDigits;
private var Fragment:Number;
private var Encoder:Number;
public function MochiDigits(_arg1:Number=0, _arg2:uint=0):void{
Encoder = 0;
setValue(_arg1, _arg2);
}
public function reencode():void{
var _local1:uint = int((2147483647 * Math.random()));
Fragment = (Fragment ^ (_local1 ^ Encoder));
Encoder = _local1;
}
public function set value(_arg1:Number):void{
setValue(_arg1);
}
public function toString():String{
var _local1:String = String.fromCharCode((Fragment ^ Encoder));
if (Sibling != null){
_local1 = (_local1 + Sibling.toString());
};
return (_local1);
}
public function setValue(_arg1:Number=0, _arg2:uint=0):void{
var _local3:String = _arg1.toString();
var _temp1 = _arg2;
_arg2 = (_arg2 + 1);
Fragment = (_local3.charCodeAt(_temp1) ^ Encoder);
if (_arg2 < _local3.length){
Sibling = new MochiDigits(_arg1, _arg2);
} else {
Sibling = null;
};
reencode();
}
public function get value():Number{
return (Number(this.toString()));
}
public function addValue(_arg1:Number):void{
value = (value + _arg1);
}
}
}//package mochi.as3
Section 23
//MochiEventDispatcher (mochi.as3.MochiEventDispatcher)
package mochi.as3 {
public class MochiEventDispatcher {
private var eventTable:Object;
public function MochiEventDispatcher():void{
eventTable = {};
}
public function triggerEvent(_arg1:String, _arg2:Object):void{
var _local3:Object;
if (eventTable[_arg1] == undefined){
return;
};
for (_local3 in eventTable[_arg1]) {
var _local6 = eventTable[_arg1];
_local6[_local3](_arg2);
};
}
public function removeEventListener(_arg1:String, _arg2:Function):void{
var _local3:Object;
if (eventTable[_arg1] == undefined){
eventTable[_arg1] = [];
return;
};
for (_local3 in eventTable[_arg1]) {
if (eventTable[_arg1][_local3] != _arg2){
} else {
eventTable[_arg1].splice(Number(_local3), 1);
};
};
}
public function addEventListener(_arg1:String, _arg2:Function):void{
removeEventListener(_arg1, _arg2);
eventTable[_arg1].push(_arg2);
}
}
}//package mochi.as3
Section 24
//MochiEvents (mochi.as3.MochiEvents)
package mochi.as3 {
import flash.display.*;
public class MochiEvents {
public static const ALIGN_BOTTOM_LEFT:String = "ALIGN_BL";
public static const FORMAT_LONG:String = "LongForm";
public static const ALIGN_BOTTOM:String = "ALIGN_B";
public static const ACHIEVEMENT_RECEIVED:String = "AchievementReceived";
public static const FORMAT_SHORT:String = "ShortForm";
public static const ALIGN_TOP_RIGHT:String = "ALIGN_TR";
public static const ALIGN_BOTTOM_RIGHT:String = "ALIGN_BR";
public static const ALIGN_TOP:String = "ALIGN_T";
public static const ALIGN_LEFT:String = "ALIGN_L";
public static const ALIGN_RIGHT:String = "ALIGN_R";
public static const ALIGN_TOP_LEFT:String = "ALIGN_TL";
public static const ALIGN_CENTER:String = "ALIGN_C";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
private static var gameStart:Number;
private static var levelStart:Number;
public static function endPlay():void{
MochiServices.send("events_clearRoundID", null, null, null);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function trackEvent(_arg1:String, _arg2=null):void{
MochiServices.send("events_trackEvent", {tag:_arg1, value:_arg2}, null, null);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function startSession(_arg1:String):void{
MochiServices.send("events_beginSession", {achievementID:_arg1}, null, null);
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function setNotifications(_arg1:MovieClip, _arg2:Object):void{
var _local4:Object;
var _local3:Object = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
_local3.clip = _arg1;
MochiServices.send("events_setNotifications", _local3, null, null);
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function startPlay(_arg1:String="gameplay"):void{
MochiServices.send("events_setRoundID", {tag:String(_arg1)}, null, null);
}
}
}//package mochi.as3
Section 25
//MochiInventory (mochi.as3.MochiInventory)
package mochi.as3 {
import flash.events.*;
import flash.utils.*;
public dynamic class MochiInventory extends Proxy {
private var _timer:Timer;
private var _names:Array;
private var _syncID:Number;
private var _consumableProperties:Object;
private var _storeSync:Object;
private var _outstandingID:Number;
private var _syncPending:Boolean;
public static const READY:String = "InvReady";
public static const ERROR:String = "Error";
public static const IO_ERROR:String = "IoError";
private static const KEY_SALT:String = " syncMaint";
public static const WRITTEN:String = "InvWritten";
public static const NOT_READY:String = "InvNotReady";
public static const VALUE_ERROR:String = "InvValueError";
private static const CONSUMER_KEY:String = "MochiConsumables";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public function MochiInventory():void{
MochiCoins.addEventListener(MochiCoins.ITEM_OWNED, itemOwned);
MochiCoins.addEventListener(MochiCoins.ITEM_NEW, newItems);
MochiSocial.addEventListener(MochiSocial.LOGGED_IN, loggedIn);
MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, loggedOut);
_storeSync = new Object();
_syncPending = false;
_outstandingID = 0;
_syncID = 0;
_timer = new Timer(1000);
_timer.addEventListener(TimerEvent.TIMER, sync);
_timer.start();
if (MochiSocial.loggedIn){
loggedIn();
} else {
loggedOut();
};
}
private function newItems(_arg1:Object):void{
if (!this[(_arg1.id + KEY_SALT)]){
this[(_arg1.id + KEY_SALT)] = 0;
};
if (!this[_arg1.id]){
this[_arg1.id] = 0;
};
this[(_arg1.id + KEY_SALT)] = (this[(_arg1.id + KEY_SALT)] + _arg1.count);
this[_arg1.id] = (this[_arg1.id] + _arg1.count);
if (((_arg1.privateProperties) && (_arg1.privateProperties.consumable))){
if (!this[_arg1.privateProperties.tag]){
this[_arg1.privateProperties.tag] = 0;
};
this[_arg1.privateProperties.tag] = (this[_arg1.privateProperties.tag] + (_arg1.privateProperties.inc * _arg1.count));
};
}
public function release():void{
MochiCoins.removeEventListener(MochiCoins.ITEM_NEW, newItems);
MochiSocial.removeEventListener(MochiSocial.LOGGED_IN, loggedIn);
MochiSocial.removeEventListener(MochiSocial.LOGGED_OUT, loggedOut);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return (-1);
};
if (_consumableProperties[_arg1]){
return (MochiDigits(_consumableProperties[_arg1]).value);
};
return (undefined);
}
private function loggedIn(_arg1:Object=null):void{
MochiUserData.get(CONSUMER_KEY, getConsumableBag);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function hasProperty(_arg1):Boolean{
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return (false);
};
if (_consumableProperties[_arg1] == undefined){
return (false);
};
return (true);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextNameIndex(_arg1:int):int{
return (((_arg1)>=_names.length) ? 0 : (_arg1 + 1));
}
private function putConsumableBag(_arg1:MochiUserData):void{
_syncPending = false;
if (_arg1.error){
triggerEvent(ERROR, {type:IO_ERROR, error:_arg1.error});
_outstandingID = -1;
};
triggerEvent(WRITTEN, {});
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{
var _local3:MochiDigits;
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return;
};
if (!(_arg2 is Number)){
triggerEvent(ERROR, {type:VALUE_ERROR, error:"Invalid type", arg:_arg2});
return;
};
if (_consumableProperties[_arg1]){
_local3 = MochiDigits(_consumableProperties[_arg1]);
if (_local3.value == _arg2){
return;
};
_local3.value = _arg2;
} else {
_names.push(_arg1);
_consumableProperties[_arg1] = new MochiDigits(_arg2);
};
_syncID++;
}
private function itemOwned(_arg1:Object):void{
_storeSync[_arg1.id] = {properties:_arg1.properties, count:_arg1.count};
}
private function sync(_arg1:Event=null):void{
var _local3:String;
if (((_syncPending) || ((_syncID == _outstandingID)))){
return;
};
_outstandingID = _syncID;
var _local2:Object = {};
for (_local3 in _consumableProperties) {
_local2[_local3] = MochiDigits(_consumableProperties[_local3]).value;
};
MochiUserData.put(CONSUMER_KEY, _local2, putConsumableBag);
_syncPending = true;
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextName(_arg1:int):String{
return (_names[(_arg1 - 1)]);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function deleteProperty(_arg1):Boolean{
if (!_consumableProperties[_arg1]){
return (false);
};
_names.splice(_names.indexOf(_arg1), 1);
delete _consumableProperties[_arg1];
return (true);
}
private function getConsumableBag(_arg1:MochiUserData):void{
var _local2:String;
var _local3:Number;
if (_arg1.error){
triggerEvent(ERROR, {type:IO_ERROR, error:_arg1.error});
return;
};
_consumableProperties = {};
_names = new Array();
if (_arg1.data){
for (_local2 in _arg1.data) {
_names.push(_local2);
_consumableProperties[_local2] = new MochiDigits(_arg1.data[_local2]);
};
};
for (_local2 in _storeSync) {
_local3 = _storeSync[_local2].count;
if (_consumableProperties[(_local2 + KEY_SALT)]){
_local3 = (_local3 - _consumableProperties[(_local2 + KEY_SALT)].value);
};
if (_local3 == 0){
} else {
newItems({id:_local2, count:_local3, properties:_storeSync[_local2].properties});
};
};
triggerEvent(READY, {});
}
private function loggedOut(_arg1:Object=null):void{
_consumableProperties = null;
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
}
}//package mochi.as3
Section 26
//MochiScores (mochi.as3.MochiScores)
package mochi.as3 {
import flash.display.*;
import flash.text.*;
public class MochiScores {
private static var boardID:String;
public static var onErrorHandler:Object;
public static var onCloseHandler:Object;
public static function showLeaderboard(_arg1:Object=null):void{
var n:Number;
var options = _arg1;
if (options != null){
delete options.clip;
MochiServices.setContainer();
MochiServices.bringToTop();
if (options.name != null){
if ((options.name is TextField)){
if (options.name.text.length > 0){
options.name = options.name.text;
};
};
};
if (options.score != null){
if ((options.score is TextField)){
if (options.score.text.length > 0){
options.score = options.score.text;
};
} else {
if ((options.score is MochiDigits)){
options.score = options.score.value;
};
};
n = Number(options.score);
if (isNaN(n)){
trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'"));
} else {
if ((((n == Number.NEGATIVE_INFINITY)) || ((n == Number.POSITIVE_INFINITY)))){
trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite"));
} else {
if (Math.floor(n) != n){
trace((("WARNING: Submitted score '" + options.score) + "' will be truncated"));
};
options.score = n;
};
};
};
if (options.onDisplay != null){
options.onDisplay();
} else {
if (MochiServices.clip != null){
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onDisplay.");
};
};
};
} else {
options = {};
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onDisplay.");
};
};
if (options.onClose != null){
onCloseHandler = options.onClose;
} else {
onCloseHandler = function ():void{
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.play();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onClose.");
};
};
};
if (options.onError != null){
onErrorHandler = options.onError;
} else {
onErrorHandler = null;
};
if (options.boardID == null){
if (MochiScores.boardID != null){
options.boardID = MochiScores.boardID;
};
};
MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose);
}
public static function closeLeaderboard():void{
MochiServices.send("scores_closeLeaderboard");
}
public static function getPlayerInfo(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_getPlayerInfo", null, _arg1, _arg2);
}
public static function requestList(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_requestList", null, _arg1, _arg2);
}
public static function scoresArrayToObjects(_arg1:Object):Object{
var _local3:Number;
var _local4:Number;
var _local5:Object;
var _local6:Object;
var _local7:String;
var _local8:String;
var _local2:Object = {};
for (_local7 in _arg1) {
if (typeof(_arg1[_local7]) == "object"){
if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){
_local2[_local7] = [];
_local5 = _arg1[_local7];
_local4 = 0;
while (_local4 < _local5.rows.length) {
_local6 = {};
_local3 = 0;
while (_local3 < _local5.cols.length) {
_local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3];
_local3++;
};
_local2[_local7].push(_local6);
_local4++;
};
} else {
_local2[_local7] = {};
for (_local8 in _arg1[_local7]) {
_local2[_local7][_local8] = _arg1[_local7][_local8];
};
};
} else {
_local2[_local7] = _arg1[_local7];
};
};
return (_local2);
}
public static function submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{
_arg1 = Number(_arg1);
if (isNaN(_arg1)){
trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is 'Not a Number'"));
} else {
if ((((_arg1 == Number.NEGATIVE_INFINITY)) || ((_arg1 == Number.POSITIVE_INFINITY)))){
trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is an infinite"));
} else {
if (Math.floor(_arg1) != _arg1){
trace((("WARNING: Submitted score '" + String(_arg1)) + "' will be truncated"));
};
_arg1 = Number(_arg1);
};
};
MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4);
}
public static function onClose(_arg1:Object=null):void{
if (((((_arg1) && ((_arg1.error == true)))) && (onErrorHandler))){
if (_arg1.errorCode == null){
_arg1.errorCode = "IOError";
};
onErrorHandler(_arg1.errorCode);
MochiServices.doClose();
return;
};
onCloseHandler();
MochiServices.doClose();
}
public static function setBoardID(_arg1:String):void{
MochiServices.warnID(_arg1, true);
MochiScores.boardID = _arg1;
MochiServices.send("scores_setBoardID", {boardID:_arg1});
}
}
}//package mochi.as3
Section 27
//MochiServices (mochi.as3.MochiServices)
package mochi.as3 {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.geom.*;
public class MochiServices {
public static const CONNECTED:String = "onConnected";
private static var _container:Object;
private static var _connected:Boolean = false;
private static var _queue:Array;
private static var _swfVersion:String;
private static var _preserved:Object;
public static var netupAttempted:Boolean = false;
private static var _sendChannel:LocalConnection;
private static var _nextCallbackID:Number;
private static var _clip:MovieClip;
private static var _loader:Loader;
private static var _id:String;
private static var _services:String = "services.swf";
private static var _servURL:String = "http://www.mochiads.com/static/lib/services/";
public static var widget:Boolean = false;
private static var _timer:Timer;
private static var _sendChannelName:String;
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
private static var _callbacks:Object;
private static var _connecting:Boolean = false;
private static var _mochiLocalConnection:MovieClip;
private static var _listenChannelName:String = "__ms_";
public static var onError:Object;
public static var netup:Boolean = true;
private static var _mochiLC:String = "MochiLC.swf";
public static function isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function get connected():Boolean{
return (_connected);
}
private static function onReceive(_arg1:Object):void{
var methodName:String;
var pkg = _arg1;
var cb:String = pkg.callbackID;
var cblst:Object = _callbacks[cb];
if (!cblst){
return;
};
var method:* = cblst.callbackMethod;
methodName = "";
var obj:Object = cblst.callbackObject;
if (((obj) && ((typeof(method) == "string")))){
methodName = method;
if (obj[method] != null){
method = obj[method];
} else {
trace((("Error: Method " + method) + " does not exist."));
};
};
if (method != undefined){
try {
method.apply(obj, pkg.args);
} catch(error:Error) {
trace(((("Error invoking callback method '" + methodName) + "': ") + error.toString()));
};
} else {
if (obj != null){
try {
obj(pkg.args);
} catch(error:Error) {
trace(("Error invoking method on object: " + error.toString()));
};
};
};
delete _callbacks[cb];
}
public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{
if (_connected){
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_nextCallbackID});
} else {
if ((((_clip == null)) || (!(_connecting)))){
trace(("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + _arg1));
handleError(_arg2, _arg3, _arg4);
flush(true);
return;
};
_queue.push({methodName:_arg1, args:_arg2, callbackID:_nextCallbackID});
};
if (_clip != null){
if (_callbacks != null){
_callbacks[_nextCallbackID] = {callbackObject:_arg3, callbackMethod:_arg4};
_nextCallbackID++;
};
};
}
private static function init(_arg1:String, _arg2:Object):void{
_id = _arg1;
if (_arg2 != null){
_container = _arg2;
loadCommunicator(_arg1, _container);
};
}
private static function clickMovie(_arg1:String, _arg2:Function):MovieClip{
var _local4:int;
var _local14:Loader;
var _local3:Array = [150, 21, 0, 7, 1, 0, 0, 0, 0, 98, 116, 110, 0, 7, 2, 0, 0, 0, 0, 116, 104, 105, 115, 0, 28, 150, 22, 0, 0, 99, 114, 101, 97, 116, 101, 69, 109, 112, 116, 121, 77, 111, 118, 105, 101, 67, 108, 105, 112, 0, 82, 135, 1, 0, 0, 23, 150, 13, 0, 4, 0, 0, 111, 110, 82, 101, 108, 101, 97, 115, 101, 0, 142, 8, 0, 0, 0, 0, 2, 42, 0, 114, 0, 150, 17, 0, 0, 32, 0, 7, 1, 0, 0, 0, 8, 0, 0, 115, 112, 108, 105, 116, 0, 82, 135, 1, 0, 1, 23, 150, 7, 0, 4, 1, 7, 0, 0, 0, 0, 78, 150, 8, 0, 0, 95, 98, 108, 97, 110, 107, 0, 154, 1, 0, 0, 150, 7, 0, 0, 99, 108, 105, 99, 107, 0, 150, 7, 0, 4, 1, 7, 1, 0, 0, 0, 78, 150, 27, 0, 7, 2, 0, 0, 0, 7, 0, 0, 0, 0, 0, 76, 111, 99, 97, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 64, 150, 6, 0, 0, 115, 101, 110, 100, 0, 82, 79, 150, 15, 0, 4, 0, 0, 95, 97, 108, 112, 104, 97, 0, 7, 0, 0, 0, 0, 79, 150, 23, 0, 7, 0xFF, 0, 0xFF, 0, 7, 1, 0, 0, 0, 4, 0, 0, 98, 101, 103, 105, 110, 70, 105, 108, 108, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 109, 111, 118, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 16, 0, 7, 0, 0, 0, 0, 4, 0, 0, 101, 110, 100, 70, 105, 108, 108, 0, 82, 23];
var _local5:Array = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3];
var _local6:Array = [0, 64, 0, 0, 0];
var _local7:MovieClip = new MovieClip();
var _local8:LocalConnection = new LocalConnection();
var _local9:String = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().time));
_local8 = new LocalConnection();
_local7.lc = _local8;
_local7.click = _arg2;
_local8.client = _local7;
_local8.connect(_local9);
var _local10:ByteArray = new ByteArray();
var _local11:ByteArray = new ByteArray();
_local11.endian = Endian.LITTLE_ENDIAN;
_local11.writeShort(1);
_local11.writeUTFBytes(((_arg1 + " ") + _local9));
_local11.writeByte(0);
var _local12:uint = ((_local3.length + _local11.length) + 4);
var _local13:uint = (_local12 + 35);
_local10.endian = Endian.LITTLE_ENDIAN;
_local10.writeUTFBytes("FWS");
_local10.writeByte(8);
_local10.writeUnsignedInt(_local13);
for each (_local4 in _local5) {
_local10.writeByte(_local4);
};
_local10.writeUnsignedInt(_local12);
_local10.writeByte(136);
_local10.writeShort(_local11.length);
_local10.writeBytes(_local11);
for each (_local4 in _local3) {
_local10.writeByte(_local4);
};
for each (_local4 in _local6) {
_local10.writeByte(_local4);
};
_local14 = new Loader();
_local14.loadBytes(_local10);
_local7.addChild(_local14);
return (_local7);
}
private static function detach(_arg1:Event):void{
var _local2:LoaderInfo = LoaderInfo(_arg1.target);
_local2.removeEventListener(Event.COMPLETE, detach);
_local2.removeEventListener(IOErrorEvent.IO_ERROR, detach);
_local2.removeEventListener(Event.COMPLETE, loadLCBridgeComplete);
_local2.removeEventListener(IOErrorEvent.IO_ERROR, loadError);
}
public static function stayOnTop():void{
_container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true);
if (_clip != null){
_clip.visible = true;
};
}
private static function loadLCBridgeComplete(_arg1:Event):void{
var _local2:Loader = LoaderInfo(_arg1.target).loader;
_mochiLocalConnection = MovieClip(_local2.content);
listen();
}
public static function disconnect():void{
if (((_connected) || (_connecting))){
if (_clip != null){
if (_clip.parent != null){
if ((_clip.parent is Sprite)){
Sprite(_clip.parent).removeChild(_clip);
_clip = null;
};
};
};
_connecting = (_connected = false);
flush(true);
try {
_mochiLocalConnection.close();
} catch(error:Error) {
};
};
if (_timer != null){
try {
_timer.stop();
_timer.removeEventListener(TimerEvent.TIMER, connectWait);
_timer = null;
} catch(error:Error) {
};
};
}
public static function allowDomains(_arg1:String):String{
var _local2:String;
if (Security.sandboxType != "application"){
Security.allowDomain("*");
Security.allowInsecureDomain("*");
};
if (_arg1.indexOf("http://") != -1){
_local2 = _arg1.split("/")[2].split(":")[0];
if (Security.sandboxType != "application"){
Security.allowDomain(_local2);
Security.allowInsecureDomain(_local2);
};
};
return (_local2);
}
public static function getVersion():String{
return ("3.9.1 as3");
}
public static function doClose():void{
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
}
public static function warnID(_arg1:String, _arg2:Boolean):void{
_arg1 = _arg1.toLowerCase();
if (_arg1.length != 16){
trace((("WARNING: " + (_arg2) ? "board" : "game") + " ID is not the appropriate length"));
return;
} else {
if (_arg1 == "1e113c7239048b3f"){
if (_arg2){
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
};
return;
} else {
if (_arg1 == "84993a1de4031cd8"){
if (_arg2){
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
};
return;
};
};
};
var _local3:Number = 0;
while (_local3 < _arg1.length) {
switch (_arg1.charAt(_local3)){
case "0":
case "1":
case "2":
case "3":
case "4":
case "5":
case "6":
case "7":
case "8":
case "9":
case "a":
case "b":
case "c":
case "d":
case "e":
case "f":
break;
default:
trace(("WARNING: Board ID contains illegal characters: " + _arg1));
return;
};
_local3++;
};
}
private static function flush(_arg1:Boolean):void{
var _local2:Object;
var _local3:Object;
if (((_clip) && (_queue))){
while (_queue.length > 0) {
_local2 = _queue.shift();
_local3 = null;
if (_local2 != null){
if (_local2.callbackID != null){
_local3 = _callbacks[_local2.callbackID];
};
delete _callbacks[_local2.callbackID];
if (((_arg1) && (!((_local3 == null))))){
handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod);
};
};
};
};
}
public static function get id():String{
return (_id);
}
private static function onEvent(_arg1:Object):void{
var _local2:String = _arg1.target;
var _local3:String = _arg1.event;
switch (_local2){
case "services":
MochiServices.triggerEvent(_arg1.event, _arg1.args);
break;
case "events":
MochiEvents.triggerEvent(_arg1.event, _arg1.args);
break;
case "coins":
MochiCoins.triggerEvent(_arg1.event, _arg1.args);
break;
case "social":
MochiSocial.triggerEvent(_arg1.event, _arg1.args);
break;
};
}
private static function urlOptions(_arg1:Object):Object{
var _local3:String;
var _local4:Array;
var _local5:Number;
var _local6:Array;
var _local2:Object = {};
if (_arg1.stage){
_local3 = _arg1.stage.loaderInfo.parameters.mochiad_options;
} else {
_local3 = _arg1.loaderInfo.parameters.mochiad_options;
};
if (_local3){
_local4 = _local3.split("&");
_local5 = 0;
while (_local5 < _local4.length) {
_local6 = _local4[_local5].split("=");
_local2[unescape(_local6[0])] = unescape(_local6[1]);
_local5++;
};
};
return (_local2);
}
public static function addLinkEvent(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{
var avm1Click:DisplayObject;
var x:String;
var req:URLRequest;
var loader:Loader;
var setURL:Function;
var err:Function;
var complete:Function;
var url = _arg1;
var burl = _arg2;
var btn = _arg3;
var onClick = _arg4;
var vars:Object = new Object();
vars["mav"] = getVersion();
vars["swfv"] = "9";
vars["swfurl"] = btn.loaderInfo.loaderURL;
vars["fv"] = Capabilities.version;
vars["os"] = Capabilities.os;
vars["lang"] = Capabilities.language;
vars["scres"] = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY);
var s = "?";
var i:Number = 0;
for (x in vars) {
if (i != 0){
s = (s + "&");
};
i = (i + 1);
s = (((s + x) + "=") + escape(vars[x]));
};
req = new URLRequest("http://link.mochiads.com/linkping.swf");
loader = new Loader();
setURL = function (_arg1:String):void{
if (avm1Click){
btn.removeChild(avm1Click);
};
avm1Click = clickMovie(_arg1, onClick);
var _local2:Rectangle = btn.getBounds(btn);
btn.addChild(avm1Click);
avm1Click.x = _local2.x;
avm1Click.y = _local2.y;
avm1Click.scaleX = (0.01 * _local2.width);
avm1Click.scaleY = (0.01 * _local2.height);
};
err = function (_arg1:Object):void{
netup = false;
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
setURL(burl);
};
complete = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
if (netup){
setURL((url + s));
} else {
setURL(burl);
};
if (!((netupAttempted) || (_connected))){
netupAttempted = true;
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.load(req);
};
}
public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{
if (_clip.parent){
_clip.parent.removeChild(_clip);
};
if (_arg1 != null){
if ((_arg1 is DisplayObjectContainer)){
_container = _arg1;
};
};
if (_arg2){
if ((_container is DisplayObjectContainer)){
DisplayObjectContainer(_container).addChild(_clip);
};
};
}
private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{
var args = _arg1;
var callbackObject = _arg2;
var callbackMethod = _arg3;
if (args != null){
if (args.onError != null){
args.onError.apply(null, ["NotConnected"]);
};
if (((!((args.options == null))) && (!((args.options.onError == null))))){
args.options.onError.apply(null, ["NotConnected"]);
};
};
if (callbackMethod != null){
args = {};
args.error = true;
args.errorCode = "NotConnected";
if (((!((callbackObject == null))) && ((callbackMethod is String)))){
try {
var _local5 = callbackObject;
_local5[callbackMethod](args);
} catch(error:Error) {
};
} else {
if (callbackMethod != null){
try {
callbackMethod.apply(args);
} catch(error:Error) {
};
};
};
};
}
private static function loadError(_arg1:Object):void{
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load.");
MochiServices.disconnect();
MochiServices.onError("IOError");
}
public static function get childClip():Object{
return (_clip);
}
private static function initComChannels():void{
if (!_connected){
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"registerGame", preserved:_preserved, id:_id, version:getVersion(), parentURL:_container.loaderInfo.loaderURL});
_clip.onReceive = onReceive;
_clip.onEvent = onEvent;
_clip.onError = function ():void{
MochiServices.onError("IOError");
};
while (_queue.length > 0) {
_mochiLocalConnection.send(_sendChannelName, "onReceive", _queue.shift());
};
};
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
private static function listen():void{
_mochiLocalConnection.connect(_listenChannelName);
_clip.handshake = function (_arg1:Object):void{
MochiServices.comChannelName = _arg1.newChannel;
};
trace("Waiting for MochiAds services to connect...");
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
private static function loadLCBridge(_arg1:Object):void{
var _local2:Loader = new Loader();
var _local3:String = (_servURL + _mochiLC);
var _local4:URLRequest = new URLRequest(_local3);
_local2.contentLoaderInfo.addEventListener(Event.COMPLETE, detach);
_local2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, detach);
_local2.contentLoaderInfo.addEventListener(Event.COMPLETE, loadLCBridgeComplete);
_local2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
_local2.load(_local4);
_arg1.addChild(_local2);
}
public static function set comChannelName(_arg1:String):void{
if (_arg1 != null){
if (_arg1.length > 3){
_sendChannelName = (_arg1 + "_fromgame");
initComChannels();
};
};
}
private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{
if (_clip != null){
return (_clip);
};
if (!MochiServices.isNetworkAvailable()){
return (null);
};
if (urlOptions(_arg2).servURL){
_servURL = urlOptions(_arg2).servURL;
};
var _local3:String = (_servURL + _services);
if (urlOptions(_arg2).servicesURL){
_local3 = urlOptions(_arg2).servicesURL;
};
_listenChannelName = (_listenChannelName + ((Math.floor(new Date().time) + "_") + Math.floor((Math.random() * 99999))));
MochiServices.allowDomains(_local3);
_clip = new MovieClip();
loadLCBridge(_clip);
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, detach);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, detach);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
var _local4:URLRequest = new URLRequest(_local3);
var _local5:URLVariables = new URLVariables();
_local5.listenLC = _listenChannelName;
_local5.mochiad_options = _arg2.loaderInfo.parameters.mochiad_options;
_local5.api_version = getVersion();
if (widget){
_local5.widget = true;
};
_local4.data = _local5;
_loader.load(_local4);
_clip.addChild(_loader);
_sendChannel = new LocalConnection();
_queue = [];
_nextCallbackID = 0;
_callbacks = {};
_timer = new Timer(10000, 1);
_timer.addEventListener(TimerEvent.TIMER, connectWait);
_timer.start();
return (_clip);
}
public static function get clip():Object{
return (_container);
}
public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{
var id = _arg1;
var clip = _arg2;
var onError = _arg3;
warnID(id, false);
if ((clip is DisplayObject)){
if (clip.stage == null){
trace("MochiServices connect requires the containing clip be attached to the stage");
};
if (((!(_connected)) && ((_clip == null)))){
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
};
} else {
trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage.");
};
if (onError != null){
MochiServices.onError = onError;
} else {
if (MochiServices.onError == null){
MochiServices.onError = function (_arg1:String):void{
trace(_arg1);
};
};
};
}
public static function bringToTop(_arg1:Event=null):void{
var e = _arg1;
if (((!((MochiServices.clip == null))) && (!((MochiServices.childClip == null))))){
try {
if (MochiServices.clip.numChildren > 1){
MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1));
};
} catch(errorObject:Error) {
trace("Warning: Depth sort error.");
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
};
};
}
public static function connectWait(_arg1:TimerEvent):void{
if (!_connected){
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load. (timeout)");
MochiServices.disconnect();
MochiServices.onError("IOError");
} else {
_timer.stop();
_timer.removeEventListener(TimerEvent.TIMER, connectWait);
_timer = null;
};
}
}
}//package mochi.as3
Section 28
//MochiSocial (mochi.as3.MochiSocial)
package mochi.as3 {
public class MochiSocial {
public static const LOGGED_IN:String = "LoggedIn";
public static const ACTION_CANCELED:String = "onCancel";
public static const PROPERTIES_SIZE:String = "PropertiesSize";
public static const IO_ERROR:String = "IOError";
public static const NO_USER:String = "NoUser";
public static const FRIEND_LIST:String = "FriendsList";
public static const PROFILE_DATA:String = "ProfileData";
public static const GAMEPLAY_DATA:String = "GameplayData";
public static const ACTION_COMPLETE:String = "onComplete";
public static const LOGIN_SHOW:String = "LoginShow";
public static const PROFILE_HIDE:String = "ProfileHide";
public static const USER_INFO:String = "UserInfo";
public static const PROPERTIES_SAVED:String = "PropertySaved";
public static const WIDGET_LOADED:String = "WidgetLoaded";
public static const ERROR:String = "Error";
public static const LOGGED_OUT:String = "LoggedOut";
public static const PROFILE_SHOW:String = "ProfileShow";
public static const LOGIN_HIDE:String = "LoginHide";
public static const LOGIN_SHOWN:String = "LoginShown";
public static var _user_info:Object = null;
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public static function requestFan(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("social_requestFan", _arg1);
}
public static function postToStream(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("social_postToStream", _arg1);
}
public static function getFriendsList(_arg1:Object=null):void{
MochiServices.send("social_getFriendsList", _arg1);
}
public static function requestLogin(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("social_requestLogin", _arg1);
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function saveUserProperties(_arg1:Object):void{
MochiServices.send("social_saveUserProperties", _arg1);
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function inviteFriends(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("social_inviteFriends", _arg1);
}
public static function get loggedIn():Boolean{
return (!((_user_info == null)));
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function showLoginWidget(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("social_showLoginWidget", {options:_arg1});
}
public static function getAPIURL():String{
if (!_user_info){
return (null);
};
return (_user_info.api_url);
}
public static function hideLoginWidget():void{
MochiServices.send("social_hideLoginWidget");
}
public static function getAPIToken():String{
if (!_user_info){
return (null);
};
return (_user_info.api_token);
}
MochiSocial.addEventListener(MochiSocial.LOGGED_IN, function (_arg1:Object):void{
_user_info = _arg1;
});
MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, function (_arg1:Object):void{
_user_info = null;
});
}
}//package mochi.as3
Section 29
//MochiUserData (mochi.as3.MochiUserData)
package mochi.as3 {
import flash.events.*;
import flash.utils.*;
import flash.net.*;
public class MochiUserData extends EventDispatcher {
public var callback:Function;// = null
public var operation:String;// = null
public var error:Event;// = null
public var data;// = null
public var _loader:URLLoader;
public var key:String;// = null
public function MochiUserData(_arg1:String="", _arg2:Function=null){
this.key = _arg1;
this.callback = _arg2;
}
public function serialize(_arg1):ByteArray{
var _local2:ByteArray = new ByteArray();
_local2.objectEncoding = ObjectEncoding.AMF3;
_local2.writeObject(_arg1);
_local2.compress();
return (_local2);
}
public function errorHandler(_arg1:IOErrorEvent):void{
data = null;
error = _arg1;
if (callback != null){
performCallback();
} else {
dispatchEvent(_arg1);
};
close();
}
public function putEvent(_arg1):void{
request("put", serialize(_arg1));
}
public function deserialize(_arg1:ByteArray){
_arg1.objectEncoding = ObjectEncoding.AMF3;
_arg1.uncompress();
return (_arg1.readObject());
}
public function securityErrorHandler(_arg1:SecurityErrorEvent):void{
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + _arg1.toString())));
}
public function getEvent():void{
request("get", serialize(null));
}
override public function toString():String{
return ((((((((("[MochiUserData operation=" + operation) + " key=\"") + key) + "\" data=") + data) + " error=\"") + error) + "\"]"));
}
public function performCallback():void{
try {
callback(this);
} catch(e:Error) {
trace(("[MochiUserData] exception during callback: " + e));
};
}
public function request(_arg1:String, _arg2:ByteArray):void{
var _operation = _arg1;
var _data = _arg2;
operation = _operation;
var api_url:String = MochiSocial.getAPIURL();
var api_token:String = MochiSocial.getAPIToken();
if ((((api_url == null)) || ((api_token == null)))){
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, "not logged in"));
return;
};
_loader = new URLLoader();
var args:URLVariables = new URLVariables();
args.op = _operation;
args.key = key;
var req:URLRequest = new URLRequest((((MochiSocial.getAPIURL() + "/") + "MochiUserData?") + args.toString()));
req.method = URLRequestMethod.POST;
req.contentType = "application/x-mochi-userdata";
req.requestHeaders = [new URLRequestHeader("x-mochi-services-version", MochiServices.getVersion()), new URLRequestHeader("x-mochi-api-token", api_token)];
req.data = _data;
_loader.dataFormat = URLLoaderDataFormat.BINARY;
_loader.addEventListener(Event.COMPLETE, completeHandler);
_loader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
_loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
try {
_loader.load(req);
} catch(e:SecurityError) {
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + e.toString())));
};
}
public function completeHandler(_arg1:Event):void{
var event = _arg1;
try {
if (_loader.data.length){
data = deserialize(_loader.data);
} else {
data = null;
};
} catch(e:Error) {
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("deserialize error: " + e.toString())));
return;
};
if (callback != null){
performCallback();
} else {
dispatchEvent(event);
};
close();
}
public function close():void{
if (_loader){
_loader.removeEventListener(Event.COMPLETE, completeHandler);
_loader.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler);
_loader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
_loader.close();
_loader = null;
};
error = null;
callback = null;
}
public static function get(_arg1:String, _arg2:Function):void{
var _local3:MochiUserData = new MochiUserData(_arg1, _arg2);
_local3.getEvent();
}
public static function put(_arg1:String, _arg2, _arg3:Function):void{
var _local4:MochiUserData = new MochiUserData(_arg1, _arg3);
_local4.putEvent(_arg2);
}
}
}//package mochi.as3
Section 30
//AlarmSiren (AlarmSiren)
package {
import flash.media.*;
public dynamic class AlarmSiren extends Sound {
}
}//package
Section 31
//ArrowGuide (ArrowGuide)
package {
import flash.display.*;
public dynamic class ArrowGuide extends MovieClip {
public var sign:MovieClip;
public function ArrowGuide(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
}
}//package
Section 32
//BGMLoop (BGMLoop)
package {
import flash.media.*;
public dynamic class BGMLoop extends Sound {
}
}//package
Section 33
//BiteSFX (BiteSFX)
package {
import flash.media.*;
public dynamic class BiteSFX extends Sound {
}
}//package
Section 34
//Box (Box)
package {
import flash.display.*;
public dynamic class Box extends MovieClip {
}
}//package
Section 35
//Bubble (Bubble)
package {
import flash.display.*;
public dynamic class Bubble extends MovieClip {
}
}//package
Section 36
//BubbleMask (BubbleMask)
package {
import flash.display.*;
public dynamic class BubbleMask extends MovieClip {
public function BubbleMask(){
addFrameScript(0, frame1, 98, frame99);
}
function frame1(){
stop();
}
function frame99(){
stop();
}
}
}//package
Section 37
//BumpSFX (BumpSFX)
package {
import flash.media.*;
public dynamic class BumpSFX extends Sound {
}
}//package
Section 38
//DangerBar (DangerBar)
package {
import flash.display.*;
public dynamic class DangerBar extends MovieClip {
}
}//package
Section 39
//Dizzy (Dizzy)
package {
import flash.media.*;
public dynamic class Dizzy extends Sound {
}
}//package
Section 40
//Fish (Fish)
package {
import flash.display.*;
public dynamic class Fish extends MovieClip {
public var fish:MovieClip;
public function Fish(){
addFrameScript(0, frame1, 29, frame30);
}
function frame30(){
stop();
}
function frame1(){
stop();
}
}
}//package
Section 41
//FlyingFish (FlyingFish)
package {
import flash.display.*;
public dynamic class FlyingFish extends MovieClip {
public function FlyingFish(){
addFrameScript(0, frame1);
}
function frame1(){
this.cacheAsBitmap = true;
}
}
}//package
Section 42
//GateClosed (GateClosed)
package {
import flash.media.*;
public dynamic class GateClosed extends Sound {
}
}//package
Section 43
//HighScoreForm (HighScoreForm)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.system.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class HighScoreForm extends MovieClip {
public var sendBtn:SimpleButton;
public var nameForm:TextField;
public var isFinished;
public function HighScoreForm(){
addFrameScript(0, frame1);
}
public function sendAction(_arg1:Event){
if (nameForm.text != ""){
submitScores();
};
}
public function submitScores(){
var _local1:URLVariables = new URLVariables();
_local1.name = nameForm.text;
_local1.score = MovieClip(this.root).score;
_local1.game = "DareFishing";
var _local2:URLRequest = new URLRequest();
_local2.url = "http://www.opendrive.com/files/7058463_k13O9/writeScores.php";
_local2.data = _local1;
var _local3:URLLoader = new URLLoader();
_local3.load(_local2);
_local3.addEventListener(Event.COMPLETE, submitDone);
}
public function submitDone(_arg1:Event){
isFinished = true;
}
function frame1(){
stop();
isFinished = false;
sendBtn.addEventListener(MouseEvent.MOUSE_DOWN, sendAction);
}
}
}//package
Section 44
//HitMeteor (HitMeteor)
package {
import flash.media.*;
public dynamic class HitMeteor extends Sound {
}
}//package
Section 45
//HowToScreen (HowToScreen)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.system.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class HowToScreen extends MovieClip {
public var previousBtn:MovieClip;
public var nextBtn:MovieClip;
public var isDone;
public var fishMouth:MovieClip;
public var doneBtn:MovieClip;
public var fishHead:MovieClip;
public function HowToScreen(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 4, frame5);
}
public function onDown(_arg1:MouseEvent){
if (_arg1.target.name == "previousBtn"){
this.prevFrame();
};
if (_arg1.target.name == "nextBtn"){
this.nextFrame();
};
}
function frame1(){
stop();
previousBtn.visible = false;
previousBtn.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
nextBtn.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
doneBtn.addEventListener(MouseEvent.MOUSE_DOWN, onDone);
isDone = false;
}
function frame4(){
nextBtn.visible = true;
}
public function onDone(_arg1:Event){
previousBtn.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
nextBtn.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
doneBtn.removeEventListener(MouseEvent.MOUSE_DOWN, onDone);
isDone = true;
}
function frame5(){
nextBtn.visible = false;
}
function frame2(){
previousBtn.visible = true;
}
}
}//package
Section 46
//HurtSFX (HurtSFX)
package {
import flash.media.*;
public dynamic class HurtSFX extends Sound {
}
}//package
Section 47
//LevelUpSFX (LevelUpSFX)
package {
import flash.media.*;
public dynamic class LevelUpSFX extends Sound {
}
}//package
Section 48
//MeteorBlue (MeteorBlue)
package {
import flash.display.*;
public dynamic class MeteorBlue extends MovieClip {
}
}//package
Section 49
//MeteorRed (MeteorRed)
package {
import flash.display.*;
public dynamic class MeteorRed extends MovieClip {
}
}//package
Section 50
//PickUpSFX (PickUpSFX)
package {
import flash.media.*;
public dynamic class PickUpSFX extends Sound {
}
}//package
Section 51
//SelectSFX (SelectSFX)
package {
import flash.media.*;
public dynamic class SelectSFX extends Sound {
}
}//package
Section 52
//SmokeCloud (SmokeCloud)
package {
import flash.display.*;
public dynamic class SmokeCloud extends MovieClip {
public function SmokeCloud(){
addFrameScript(0, frame1);
}
function frame1(){
this.cacheAsBitmap = true;
}
}
}//package
Section 53
//URLLOCK (URLLOCK)
package {
import flash.display.*;
public dynamic class URLLOCK extends MovieClip {
}
}//package