Section 1
//animalartist_157 (AnimalArtist_fla.animalartist_157)
package AnimalArtist_fla {
import flash.display.*;
public dynamic class animalartist_157 extends MovieClip {
public function animalartist_157(){
addFrameScript(111, frame112);
}
function frame112(){
stop();
}
}
}//package AnimalArtist_fla
Section 2
//AnimalBtnMC_96 (AnimalArtist_fla.AnimalBtnMC_96)
package AnimalArtist_fla {
import flash.display.*;
public dynamic class AnimalBtnMC_96 extends MovieClip {
public var SnakeBtn:SimpleButton;
public var PandaBtn:SimpleButton;
public var FlamingoBtn:SimpleButton;
public var CatBtn:SimpleButton;
public var HippoBtn:SimpleButton;
public var ChickBtn:SimpleButton;
}
}//package AnimalArtist_fla
Section 3
//Background_5 (AnimalArtist_fla.Background_5)
package AnimalArtist_fla {
import flash.display.*;
public dynamic class Background_5 extends MovieClip {
public var Pushpin:MovieClip;
}
}//package AnimalArtist_fla
Section 4
//branding_aligned_center_45 (AnimalArtist_fla.branding_aligned_center_45)
package AnimalArtist_fla {
import flash.display.*;
public dynamic class branding_aligned_center_45 extends MovieClip {
public var hitarea_url1:SimpleButton;
public function branding_aligned_center_45(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package AnimalArtist_fla
Section 5
//Chick__104 (AnimalArtist_fla.Chick__104)
package AnimalArtist_fla {
import flash.display.*;
public dynamic class Chick__104 extends MovieClip {
public function Chick__104(){
addFrameScript(42, frame43);
}
function frame43(){
stop();
}
}
}//package AnimalArtist_fla
Section 6
//Flamingo__99 (AnimalArtist_fla.Flamingo__99)
package AnimalArtist_fla {
import flash.display.*;
public dynamic class Flamingo__99 extends MovieClip {
public function Flamingo__99(){
addFrameScript(22, frame23);
}
function frame23(){
stop();
}
}
}//package AnimalArtist_fla
Section 7
//Hippo_110 (AnimalArtist_fla.Hippo_110)
package AnimalArtist_fla {
import flash.display.*;
public dynamic class Hippo_110 extends MovieClip {
public function Hippo_110(){
addFrameScript(53, frame54);
}
function frame54(){
stop();
}
}
}//package AnimalArtist_fla
Section 8
//HowToPlayBtn_168 (AnimalArtist_fla.HowToPlayBtn_168)
package AnimalArtist_fla {
import flash.display.*;
public dynamic class HowToPlayBtn_168 extends MovieClip {
public var TextMC:MovieClip;
}
}//package AnimalArtist_fla
Section 9
//logoani1_189 (AnimalArtist_fla.logoani1_189)
package AnimalArtist_fla {
import flash.display.*;
public dynamic class logoani1_189 extends MovieClip {
public function logoani1_189(){
addFrameScript(239, frame240);
}
function frame240(){
stop();
}
}
}//package AnimalArtist_fla
Section 10
//MianBG_3 (AnimalArtist_fla.MianBG_3)
package AnimalArtist_fla {
import flash.display.*;
public dynamic class MianBG_3 extends MovieClip {
public var HelpShowLayer:MovieClip;
public var OperateLayer:MovieClip;
public var SprayLayer:MovieClip;
public var PrintLayer:MovieClip;
}
}//package AnimalArtist_fla
Section 11
//MoreGameBtn_162 (AnimalArtist_fla.MoreGameBtn_162)
package AnimalArtist_fla {
import flash.display.*;
public dynamic class MoreGameBtn_162 extends MovieClip {
public var TextMC:MovieClip;
}
}//package AnimalArtist_fla
Section 12
//PrintLayer_4 (AnimalArtist_fla.PrintLayer_4)
package AnimalArtist_fla {
import flash.display.*;
public dynamic class PrintLayer_4 extends MovieClip {
public var Background:MovieClip;
public var SoleLayer:MovieClip;
}
}//package AnimalArtist_fla
Section 13
//Snake_113 (AnimalArtist_fla.Snake_113)
package AnimalArtist_fla {
import flash.display.*;
public dynamic class Snake_113 extends MovieClip {
public function Snake_113(){
addFrameScript(50, frame51);
}
function frame51(){
stop();
}
}
}//package AnimalArtist_fla
Section 14
//StartBtn_170 (AnimalArtist_fla.StartBtn_170)
package AnimalArtist_fla {
import flash.display.*;
public dynamic class StartBtn_170 extends MovieClip {
public var TextMC:MovieClip;
}
}//package AnimalArtist_fla
Section 15
//Timeline_31 (AnimalArtist_fla.Timeline_31)
package AnimalArtist_fla {
import flash.display.*;
public dynamic class Timeline_31 extends MovieClip {
public function Timeline_31(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
}
}
}//package AnimalArtist_fla
Section 16
//Timeline_34 (AnimalArtist_fla.Timeline_34)
package AnimalArtist_fla {
import flash.display.*;
public dynamic class Timeline_34 extends MovieClip {
public function Timeline_34(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package AnimalArtist_fla
Section 17
//UI_164 (AnimalArtist_fla.UI_164)
package AnimalArtist_fla {
import flash.display.*;
public dynamic class UI_164 extends MovieClip {
public function UI_164(){
addFrameScript(27, frame28);
}
function frame28(){
stop();
}
}
}//package AnimalArtist_fla
Section 18
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package fl.transitions.easing
Section 19
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
public var begin:Number;// = NAN
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var change:Number;// = NAN
private var _finish:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
isPlaying = false;
obj = null;
prop = "";
func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
begin = NaN;
change = NaN;
useSeconds = false;
prevTime = NaN;
prevPos = NaN;
looping = false;
_duration = NaN;
_time = NaN;
_fps = NaN;
_position = NaN;
_startTime = NaN;
_intervalID = 0;
_finish = NaN;
_timer = null;
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean;
_local2 = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 20
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
time = NaN;
position = NaN;
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 21
//Animal (Gamefile.Animal)
package Gamefile {
import flash.display.*;
import flash.events.*;
import fl.transitions.*;
import flash.filters.*;
import fl.transitions.easing.*;
public class Animal {
private var sprayFirst:Boolean;
private var _chooseUpBtn_:SimpleButton;
public var sound:String;
private var _chooseDownBtn_:SimpleButton;
private var animalFilter:GlowFilter;
public var _animalBtnMC_:MovieClip;
private var PARENT:MovieClip;
private var tweenDown:Tween;
private var _chickBtn_:SimpleButton;
private var helpActionAnimal:MovieClip;
private var _catBtn_:SimpleButton;
private var _snake_:SimpleButton;
private var _flamingoBtn_:SimpleButton;
private var _mouseBtn_:MovieClip;
private var _whaleBtn_:SimpleButton;
public var animalDownFrame:int;
private var actionAnimal:MovieClip;
private var previousAnimal:SimpleButton;
public var animalType:int;
private var _llamaBtn_:MovieClip;
private var movingFlag:Boolean;
public var helpMovie:MovieClip;
private var _hippoBtn_:SimpleButton;
private var chooseAnimal:SimpleButton;
private var tweenUp:Tween;
private var tweenFlag:int;
private var _pandaBtn_:SimpleButton;
public function Animal(_arg1:MovieClip){
initAnimal(_arg1);
}
private function initProperty(){
animalType = 0;
animalFilter = new GlowFilter(0xFFFF00, 1, 10, 10, 10, 1, false, false);
sprayFirst = true;
movingFlag = false;
tweenFlag = 0;
getChooseAnimal(_flamingoBtn_);
animalType = 1;
animalDownFrame = 5;
sound = "_Flamingo_S_";
}
public function animalGlowFilter(_arg1:DisplayObject){
clearBtnFilters();
_arg1.filters = [animalFilter];
}
public function outputHelpAnimal():SimpleButton{
return (_catBtn_);
}
public function showHelpSprayMovie(_arg1:int, _arg2:int, _arg3:Number){
helpMovie = new _WhaleMovie_();
_animalBtnMC_.addChild(helpMovie);
helpMovie.x = _arg1;
helpMovie.y = _arg2;
helpMovie.scaleX = _arg3;
helpMovie.scaleY = _arg3;
}
public function showActionAnimal(_arg1:MovieClip, _arg2:MovieClip, _arg3:int, _arg4:int){
_arg1.addChild(_arg2);
_arg2.x = _arg3;
_arg2.y = _arg4;
}
private function mouseIsOut(_arg1:MouseEvent){
PARENT.dispatchEvent(new Event("mouseIsOut", true));
}
public function returnActionAnimal():MovieClip{
return (actionAnimal);
}
public function delHelpMovie(){
if (helpMovie != null){
helpMovie.parent.removeChild(helpMovie);
helpMovie = null;
};
}
public function showHelpRepealMovie(_arg1:int, _arg2:int, _arg3:Number){
helpMovie = new _RepealMovie_();
_animalBtnMC_.addChild(helpMovie);
helpMovie.x = _arg1;
helpMovie.y = _arg2;
helpMovie.scaleX = _arg3;
helpMovie.scaleY = _arg3;
}
private function initAnimal(_arg1:MovieClip){
PARENT = _arg1;
initElement();
initEvent();
initProperty();
}
public function showHelpRepealAllMovie(_arg1:int, _arg2:int, _arg3:Number){
helpMovie = new _RepealAllMovie_();
_animalBtnMC_.addChild(helpMovie);
helpMovie.x = _arg1;
helpMovie.y = _arg2;
helpMovie.scaleX = _arg3;
helpMovie.scaleY = _arg3;
}
public function returnChooseAnimal():SimpleButton{
return (chooseAnimal);
}
public function clearBtnFilters(){
if (previousAnimal != null){
previousAnimal.filters = [];
};
_catBtn_.filters = [];
_whaleBtn_.filters = [];
}
private function mouseIsOver(_arg1:MouseEvent){
if (movingFlag == true){
PARENT.dispatchEvent(new Event("mouseIsNotEnabled", true));
} else {
SoundsManager.playSound("_GameMouseOver_");
PARENT.dispatchEvent(new Event("mouseIsOver", true));
};
}
public function outputHelpSprayAnimal():SimpleButton{
return (_whaleBtn_);
}
private function getActionAnimal(_arg1:SimpleButton){
switch (_arg1.name){
case "FlamingoBtn":
actionAnimal = new _ActionFlamingo_();
break;
case "PandaBtn":
actionAnimal = new _ActionPanda_();
break;
case "ChickBtn":
actionAnimal = new _ActionChick_();
break;
case "CatBtn":
actionAnimal = new _ActionCat_();
break;
case "HippoBtn":
actionAnimal = new _ActionHippo_();
break;
case "WhaleBtn":
break;
case "LlamaBtn":
break;
case "MouseBtn":
break;
case "SnakeBtn":
actionAnimal = new _ActionSnake_();
break;
};
}
public function getMovingFlag(_arg1:Boolean){
movingFlag = _arg1;
}
private function initElement(){
_animalBtnMC_ = (PARENT.getChildByName("AnimalBtnMC") as MovieClip);
_flamingoBtn_ = (_animalBtnMC_.getChildByName("FlamingoBtn") as SimpleButton);
_pandaBtn_ = (_animalBtnMC_.getChildByName("PandaBtn") as SimpleButton);
_chickBtn_ = (_animalBtnMC_.getChildByName("ChickBtn") as SimpleButton);
_catBtn_ = (_animalBtnMC_.getChildByName("CatBtn") as SimpleButton);
_hippoBtn_ = (_animalBtnMC_.getChildByName("HippoBtn") as SimpleButton);
_whaleBtn_ = (PARENT.getChildByName("WhaleBtn") as SimpleButton);
_snake_ = (_animalBtnMC_.getChildByName("SnakeBtn") as SimpleButton);
}
public function showHelpAnimalMovie(_arg1:int, _arg2:int, _arg3:Number){
helpMovie = new _CatMovie_();
_animalBtnMC_.addChild(helpMovie);
helpMovie.x = _arg1;
helpMovie.y = _arg2;
helpMovie.scaleX = _arg3;
helpMovie.scaleY = _arg3;
}
public function outputHelpActionAnimal():MovieClip{
helpActionAnimal = new _ActionCat_();
return (helpActionAnimal);
}
public function showHelpPencilMovie(_arg1:int, _arg2:int, _arg3:Number){
helpMovie = new _PencilMovie_();
_animalBtnMC_.addChild(helpMovie);
helpMovie.x = _arg1;
helpMovie.y = _arg2;
helpMovie.scaleX = _arg3;
helpMovie.scaleY = _arg3;
}
public function delEvent(){
_flamingoBtn_.removeEventListener(MouseEvent.CLICK, chooseTheAnimal);
_pandaBtn_.removeEventListener(MouseEvent.CLICK, chooseTheAnimal);
_chickBtn_.removeEventListener(MouseEvent.CLICK, chooseTheAnimal);
_catBtn_.removeEventListener(MouseEvent.CLICK, chooseTheAnimal);
_hippoBtn_.removeEventListener(MouseEvent.CLICK, chooseTheAnimal);
_whaleBtn_.removeEventListener(MouseEvent.CLICK, chooseTheAnimal);
_flamingoBtn_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_pandaBtn_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_chickBtn_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_catBtn_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_hippoBtn_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_whaleBtn_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_snake_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_flamingoBtn_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_pandaBtn_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_chickBtn_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_catBtn_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_hippoBtn_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_whaleBtn_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_snake_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_snake_.removeEventListener(MouseEvent.CLICK, chooseTheAnimal);
}
public function outPutBtnMCY():int{
return (_animalBtnMC_.y);
}
private function getChooseAnimal(_arg1:SimpleButton){
chooseAnimal = _arg1;
animalGlowFilter(_arg1);
previousAnimal = _arg1;
getActionAnimal(_arg1);
}
private function initEvent(){
_flamingoBtn_.addEventListener(MouseEvent.CLICK, chooseTheAnimal);
_pandaBtn_.addEventListener(MouseEvent.CLICK, chooseTheAnimal);
_chickBtn_.addEventListener(MouseEvent.CLICK, chooseTheAnimal);
_catBtn_.addEventListener(MouseEvent.CLICK, chooseTheAnimal);
_hippoBtn_.addEventListener(MouseEvent.CLICK, chooseTheAnimal);
_whaleBtn_.addEventListener(MouseEvent.CLICK, chooseTheAnimal);
_flamingoBtn_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_pandaBtn_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_chickBtn_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_catBtn_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_hippoBtn_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_whaleBtn_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_snake_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_flamingoBtn_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_pandaBtn_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_chickBtn_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_catBtn_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_hippoBtn_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_whaleBtn_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_snake_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_snake_.addEventListener(MouseEvent.CLICK, chooseTheAnimal);
}
private function tweenEnd(_arg1:TweenEvent){
if (tweenFlag == 1){
tweenUp.removeEventListener(TweenEvent.MOTION_FINISH, tweenEnd);
} else {
if (tweenFlag == 2){
tweenDown.removeEventListener(TweenEvent.MOTION_FINISH, tweenEnd);
};
};
tweenFlag = 0;
}
private function chooseTheAnimal(_arg1:MouseEvent){
if (movingFlag == false){
delActionAnimal();
switch (_arg1.target.name){
case "FlamingoBtn":
SoundsManager.playSound("_Flamingo_S_");
sound = "_Flamingo_S_";
getChooseAnimal(_flamingoBtn_);
animalType = 1;
sprayFirst = true;
animalDownFrame = 5;
break;
case "PandaBtn":
SoundsManager.playSound("_Panda_S_");
sound = "_Panda_S_";
getChooseAnimal(_pandaBtn_);
animalType = 1;
sprayFirst = true;
animalDownFrame = 6;
break;
case "ChickBtn":
SoundsManager.playSound("_Chick_S_");
sound = "_Chick_S_";
getChooseAnimal(_chickBtn_);
animalType = 1;
sprayFirst = true;
animalDownFrame = 7;
break;
case "CatBtn":
SoundsManager.playSound("_Cat_S_");
sound = "_Cat_S_";
getChooseAnimal(_catBtn_);
animalType = 1;
sprayFirst = true;
animalDownFrame = 8;
break;
case "HippoBtn":
SoundsManager.playSound("_Hippo_S_");
sound = "_Hippo_S_";
getChooseAnimal(_hippoBtn_);
animalType = 1;
sprayFirst = true;
animalDownFrame = 9;
break;
case "WhaleBtn":
SoundsManager.playSound("_Whale_S_");
getChooseAnimal(_whaleBtn_);
animalType = 2;
animalDownFrame = 2;
if (sprayFirst == true){
sprayFirst = false;
} else {
if (sprayFirst == false){
PARENT.dispatchEvent(new Event("changeSprayType", true));
};
};
break;
case "LlamaBtn":
animalType = 3;
break;
case "MouseBtn":
animalType = 4;
break;
case "SnakeBtn":
SoundsManager.playSound("_Snake_S_");
sound = "_Snake_S_";
getChooseAnimal(_snake_);
animalType = 5;
sprayFirst = true;
animalDownFrame = 10;
break;
};
PARENT.dispatchEvent(new Event("chooseTheAnimal", true));
};
}
public function hideActionAnimal(_arg1:MovieClip){
_arg1.visible = false;
}
private function delActionAnimal(){
if (actionAnimal != null){
actionAnimal.parent.removeChild(actionAnimal);
};
}
}
}//package Gamefile
Section 22
//Background (Gamefile.Background)
package Gamefile {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
public class Background {
public var bgNum:int;
public var _bg_:MovieClip;
private var btnSprite:MovieClip;
public var _bgBtn_:MovieClip;
private var bgBtnFilter:GlowFilter;
public var currentlyBGNum:int;
public function Background(_arg1:MovieClip, _arg2:MovieClip){
initBackground(_arg1, _arg2);
}
public function chooseBGMian(){
SoundsManager.playSound("_GameMouseDown_");
bgNum++;
currentlyBGNum = bgNum;
_bg_.gotoAndStop(bgNum);
_bgBtn_.gotoAndStop(bgNum);
if (bgNum == 5){
bgNum = 0;
};
}
public function intoBgNum():int{
return (currentlyBGNum);
}
public function getBgNum(_arg1:int){
currentlyBGNum = _arg1;
bgNum = _arg1;
}
private function initElement(){
_bgBtn_ = (btnSprite.getChildByName("BgBtn") as MovieClip);
}
private function initProperty(){
bgBtnFilter = new GlowFilter(0xFFFFFF, 1, 6, 6, 10, 1, false, false);
bgNum = 1;
currentlyBGNum = 1;
_bgBtn_.gotoAndStop(1);
}
public function delEvent(){
_bgBtn_.removeEventListener(MouseEvent.CLICK, chooseBG);
_bgBtn_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_bgBtn_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
}
private function chooseBG(_arg1:MouseEvent){
chooseBGMian();
}
private function initBackground(_arg1:MovieClip, _arg2:MovieClip){
_bg_ = _arg1;
btnSprite = _arg2;
initElement();
initEvent();
initProperty();
_bg_.gotoAndStop(bgNum);
}
private function mouseIsOver(_arg1:MouseEvent){
SoundsManager.playSound("_GameMouseOver_");
showBgBtnFilters();
_bgBtn_.dispatchEvent(new Event("mouseIsOver", true));
}
private function mouseIsOut(_arg1:MouseEvent){
delBgBtnFilters();
_bgBtn_.dispatchEvent(new Event("mouseIsOut", true));
}
public function delBgBtnFilters(){
_bgBtn_.filters = [];
}
private function initEvent(){
_bgBtn_.addEventListener(MouseEvent.CLICK, chooseBG);
_bgBtn_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_bgBtn_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
}
public function outputCurrentlyBGNum():int{
return (bgNum);
}
public function showBgBtnFilters(){
_bgBtn_.filters = [bgBtnFilter];
}
}
}//package Gamefile
Section 23
//BmpTool (Gamefile.BmpTool)
package Gamefile {
import flash.display.*;
import flash.geom.*;
public class BmpTool {
private var bmp:Bitmap;
private var bmpData:BitmapData;
public function hideBmp(_arg1:MovieClip){
if (bmp != null){
bmp.visible = false;
};
}
public function showBmp(_arg1:MovieClip){
if (bmp != null){
bmp.visible = true;
};
}
private function initProperty(){
}
public function cutoutBmp(_arg1:MovieClip, _arg2:MovieClip, _arg3:Rectangle){
bmpData = new BitmapData(_arg1.width, _arg1.height, true, 0);
bmpData.draw(_arg1, null, null, null, _arg3, true);
bmp = new Bitmap(bmpData);
_arg2.addChild(bmp);
bmpData = null;
}
public function delBmp(_arg1:MovieClip){
if (bmp != null){
_arg1.removeChild(bmp);
bmp = null;
};
}
}
}//package Gamefile
Section 24
//ColorTool (Gamefile.ColorTool)
package Gamefile {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class ColorTool {
private var _colorBtn4_:MovieClip;
private var _colorBtn2_:MovieClip;
private var colorTransform:ColorTransform;
private var _colorBtn6_:MovieClip;
private var bmpData:BitmapData;
private var bmp:Bitmap;
private var _colorBtn9_:MovieClip;
private var _colorBtn7_:MovieClip;
private var _colorBtn5_:MovieClip;
private var color:uint;
private var _colorBtn3_:MovieClip;
private var _colorBtn1_:MovieClip;
private var PARENT:MovieClip;
private var _colorBtnFilter_:MovieClip;
private var _colorBtn8_:MovieClip;
public function ColorTool(_arg1:MovieClip){
initColorTool(_arg1);
}
private function initElement(){
_colorBtnFilter_ = (PARENT.getChildByName("ColorBtnFilter") as MovieClip);
_colorBtn1_ = (PARENT.getChildByName("ColorBtn1") as MovieClip);
_colorBtn2_ = (PARENT.getChildByName("ColorBtn2") as MovieClip);
_colorBtn3_ = (PARENT.getChildByName("ColorBtn3") as MovieClip);
_colorBtn4_ = (PARENT.getChildByName("ColorBtn4") as MovieClip);
_colorBtn5_ = (PARENT.getChildByName("ColorBtn5") as MovieClip);
_colorBtn6_ = (PARENT.getChildByName("ColorBtn6") as MovieClip);
_colorBtn7_ = (PARENT.getChildByName("ColorBtn7") as MovieClip);
_colorBtn8_ = (PARENT.getChildByName("ColorBtn8") as MovieClip);
_colorBtn9_ = (PARENT.getChildByName("ColorBtn9") as MovieClip);
}
public function delEvent(){
_colorBtn1_.removeEventListener(MouseEvent.CLICK, colorBtnClick);
_colorBtn1_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_colorBtn1_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_colorBtn2_.removeEventListener(MouseEvent.CLICK, colorBtnClick);
_colorBtn2_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_colorBtn2_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_colorBtn3_.removeEventListener(MouseEvent.CLICK, colorBtnClick);
_colorBtn3_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_colorBtn3_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_colorBtn4_.removeEventListener(MouseEvent.CLICK, colorBtnClick);
_colorBtn4_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_colorBtn4_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_colorBtn5_.removeEventListener(MouseEvent.CLICK, colorBtnClick);
_colorBtn5_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_colorBtn5_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_colorBtn6_.removeEventListener(MouseEvent.CLICK, colorBtnClick);
_colorBtn6_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_colorBtn6_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_colorBtn7_.removeEventListener(MouseEvent.CLICK, colorBtnClick);
_colorBtn7_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_colorBtn7_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_colorBtn8_.removeEventListener(MouseEvent.CLICK, colorBtnClick);
_colorBtn8_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_colorBtn8_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_colorBtn9_.removeEventListener(MouseEvent.CLICK, colorBtnClick);
_colorBtn9_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_colorBtn9_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
}
public function closeColorBtn(){
_colorBtn1_.enabled = false;
_colorBtn2_.enabled = false;
_colorBtn3_.enabled = false;
_colorBtn4_.enabled = false;
_colorBtn5_.enabled = false;
_colorBtn6_.enabled = false;
_colorBtn7_.enabled = false;
_colorBtn8_.enabled = false;
_colorBtn9_.enabled = false;
}
public function openColorBtn(){
_colorBtn1_.enabled = true;
_colorBtn2_.enabled = true;
_colorBtn3_.enabled = true;
_colorBtn4_.enabled = true;
_colorBtn5_.enabled = true;
_colorBtn6_.enabled = true;
_colorBtn7_.enabled = true;
_colorBtn8_.enabled = true;
_colorBtn9_.enabled = true;
}
private function mouseIsOut(_arg1:MouseEvent){
PARENT.dispatchEvent(new Event("mouseIsOut", true));
}
private function initProperty(){
}
private function initColorTool(_arg1:MovieClip){
PARENT = _arg1;
colorTransform = new ColorTransform();
initElement();
initEvent();
initProperty();
}
private function initEvent(){
_colorBtn1_.addEventListener(MouseEvent.CLICK, colorBtnClick);
_colorBtn1_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_colorBtn1_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_colorBtn2_.addEventListener(MouseEvent.CLICK, colorBtnClick);
_colorBtn2_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_colorBtn2_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_colorBtn3_.addEventListener(MouseEvent.CLICK, colorBtnClick);
_colorBtn3_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_colorBtn3_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_colorBtn4_.addEventListener(MouseEvent.CLICK, colorBtnClick);
_colorBtn4_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_colorBtn4_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_colorBtn5_.addEventListener(MouseEvent.CLICK, colorBtnClick);
_colorBtn5_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_colorBtn5_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_colorBtn6_.addEventListener(MouseEvent.CLICK, colorBtnClick);
_colorBtn6_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_colorBtn6_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_colorBtn7_.addEventListener(MouseEvent.CLICK, colorBtnClick);
_colorBtn7_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_colorBtn7_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_colorBtn8_.addEventListener(MouseEvent.CLICK, colorBtnClick);
_colorBtn8_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_colorBtn8_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_colorBtn9_.addEventListener(MouseEvent.CLICK, colorBtnClick);
_colorBtn9_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_colorBtn9_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
}
private function colorBtnClick(_arg1:MouseEvent){
SoundsManager.playSound("_GameMouseDown_");
switch (_arg1.target.name){
case "ColorBtn1":
color = 16663877;
moveColorFilter(_colorBtn1_);
break;
case "ColorBtn2":
color = 16537770;
moveColorFilter(_colorBtn2_);
break;
case "ColorBtn3":
color = 16622364;
moveColorFilter(_colorBtn3_);
break;
case "ColorBtn4":
color = 2156831;
moveColorFilter(_colorBtn4_);
break;
case "ColorBtn5":
color = 193780;
moveColorFilter(_colorBtn5_);
break;
case "ColorBtn6":
color = 1882877;
moveColorFilter(_colorBtn6_);
break;
case "ColorBtn7":
color = 8867268;
moveColorFilter(_colorBtn7_);
break;
case "ColorBtn8":
color = 11268612;
moveColorFilter(_colorBtn8_);
break;
case "ColorBtn9":
color = 4549374;
moveColorFilter(_colorBtn9_);
break;
};
PARENT.dispatchEvent(new Event("changeColor", true));
}
public function getColor():uint{
return (color);
}
public function showChooseColor(_arg1:MovieClip, _arg2:uint){
colorTransform.color = _arg2;
_arg1.transform.colorTransform = colorTransform;
}
private function moveColorFilter(_arg1:MovieClip){
if (_colorBtnFilter_.visible == false){
_colorBtnFilter_.visible = true;
};
_colorBtnFilter_.x = (_arg1.x + (_colorBtnFilter_.width / 2));
_colorBtnFilter_.y = ((_arg1.y + (_colorBtnFilter_.height / 2)) - 1);
}
private function mouseIsOver(_arg1:MouseEvent){
SoundsManager.playSound("_GameMouseOver_");
PARENT.dispatchEvent(new Event("mouseIsOver", true));
}
}
}//package Gamefile
Section 25
//DrawTool (Gamefile.DrawTool)
package Gamefile {
import flash.display.*;
public class DrawTool {
public const operateType:int = 4;
private var curveLineColor:uint;
public var curveMC:MovieClip;
private var PARENT:MovieClip;
public var curveLineArr:Array;
public function DrawTool(_arg1:MovieClip){
initDrawTool(_arg1);
}
public function setCurveLineColor(_arg1:uint){
curveLineColor = _arg1;
if (curveMC != null){
curveMC.graphics.lineStyle(7, curveLineColor, 1);
};
}
public function startDrawCurveLine(_arg1:MovieClip, _arg2:int, _arg3:int, _arg4:uint){
curveMC = new MovieClip();
_arg1.addChild(curveMC);
setCurveLineColor(_arg4);
curveMC.graphics.moveTo(_arg2, _arg3);
}
public function drawCurveLine(_arg1:int, _arg2:int, _arg3:Number, _arg4:Number){
SoundsManager.playSound("_SnakeMove_S_");
curveMC.graphics.curveTo(_arg1, _arg2, _arg3, _arg4);
}
public function hideCurveLine(){
var _local1:int;
_local1 = 0;
while (_local1 < curveLineArr.length) {
if (curveLineArr[_local1] != "end"){
curveLineArr[_local1].visible = false;
};
_local1++;
};
}
public function clearDraw(){
PARENT.graphics.clear();
}
public function initDrawTool(_arg1:MovieClip){
PARENT = _arg1;
initProperty();
}
public function pushEndFlag(_arg1:Boolean){
if (_arg1 == false){
curveLineArr.push(curveMC);
curveLineArr.push("end");
};
}
public function showCurveLine(){
var _local1:int;
_local1 = 0;
while (_local1 < curveLineArr.length) {
if (curveLineArr[_local1] != "end"){
curveLineArr[_local1].visible = true;
};
_local1++;
};
}
public function startDrawLine(_arg1:int, _arg2:int){
PARENT.graphics.lineStyle(1, 0xFF, 1);
PARENT.graphics.moveTo(_arg1, _arg2);
}
private function initProperty(){
curveLineArr = new Array();
curveLineColor = 16737380;
}
public function drawLine(_arg1:int, _arg2:int){
PARENT.graphics.lineTo(_arg1, _arg2);
}
}
}//package Gamefile
Section 26
//Game (Gamefile.Game)
package Gamefile {
import flash.display.*;
import flash.events.*;
public class Game {
private var gameChina:GameChina;
private var gameStart:GameStart;
private var ROOT:MovieClip;
private var mouseControl:MouseControl;
private var main:Main;
private var loading:Loading;
public function Game(_arg1:MovieClip){
initGame(_arg1);
}
private function advance(_arg1:MovieClip){
_arg1.gotoAndStop(3);
_arg1.gotoAndStop(1);
}
private function showGameChina(_arg1:Event){
delLoading();
gameChina = new GameChina(ROOT);
}
private function delGameStart(){
ROOT.removeEventListener("showMain", showMain);
mouseControl.delMouseControl();
gameStart = null;
}
private function showGameStart(_arg1:Event){
if (Language.mode == 2){
trace("delCHINAGAME");
gameChina.del();
gameChina = null;
} else {
delLoading();
};
showGameStartMain();
}
private function showMain(_arg1:Event){
delGameStart();
main = new Main(ROOT);
main.helpAutoEnd = true;
ROOT.addEventListener("delMain", delMain);
}
private function delMain(_arg1:Event){
main.delMain();
main = null;
ROOT.removeEventListener("delMain", delMain);
showGameStartMain();
}
private function initGame(_arg1:MovieClip){
ROOT = _arg1;
initEvent();
showLoading();
}
private function initEvent(){
ROOT.addEventListener("showGameStart", showGameStart);
ROOT.addEventListener("showGameChina", showGameChina);
}
private function showGameStartMain(){
gameStart = new GameStart(ROOT);
mouseControl = new MouseControl(ROOT);
ROOT.addEventListener("showMain", showMain);
ROOT.addEventListener("showMainHelp", showMainHelp);
}
private function delLoading(){
loading = null;
advance(ROOT);
}
private function showMainHelp(_arg1:Event){
delGameStart();
main = new Main(ROOT);
main.helpAutoEnd = false;
ROOT.addEventListener("delMain", delMain);
main.startHelpMain(true);
}
private function showLoading(){
loading = new Loading(ROOT);
}
}
}//package Gamefile
Section 27
//GameChina (Gamefile.GameChina)
package Gamefile {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class GameChina {
private var PARENT:MovieClip;
private var mc:MovieClip;
public function GameChina(_arg1:MovieClip){
trace("GameChina");
PARENT = _arg1;
initMc();
initEvent();
}
private function clickMc(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.game.com.cn/"), "_blank");
}
private function initMc():void{
mc = new _ChinaGame_();
trace(mc);
PARENT.addChild(mc);
mc.x = 320;
mc.y = 240;
}
private function delMc():void{
PARENT.removeChild(mc);
}
private function initEvent():void{
mc.addEventListener(MouseEvent.CLICK, clickMc);
mc.addEventListener(Event.ENTER_FRAME, enterFrameMc);
}
public function del():void{
delEvent();
delMc();
}
private function enterFrameMc(_arg1:Event):void{
if (mc.totalFrames == mc.currentFrame){
trace("showGameStart");
PARENT.dispatchEvent(new Event("showGameStart", true));
};
}
private function delEvent():void{
mc.removeEventListener(Event.ENTER_FRAME, enterFrameMc);
mc.removeEventListener(MouseEvent.CLICK, clickMc);
}
}
}//package Gamefile
Section 28
//GameStart (Gamefile.GameStart)
package Gamefile {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
public class GameStart {
private var _hotArea_:SimpleButton;
private var textFilter:GlowFilter;
private var _startBtn_:MovieClip;
private var PARENT:MovieClip;
private var _m_:SimpleButton;
private var _howToPlayBtnText_:MovieClip;
private var shadowFilter:DropShadowFilter;
private var _moreGameBtnText_:MovieClip;
private var _logoMC_:MovieClip;
private var _animalsMC_:MovieClip;
private var _startBtnText_:MovieClip;
private var _nameMC_:MovieClip;
private var _howToPlayBtn_:MovieClip;
private var _moreGameBtn_:MovieClip;
public var _gameStart_:MovieClip;
private var _textMC_:MovieClip;
private var mouseControl:MouseControl;
public function GameStart(_arg1:MovieClip){
initGameStart(_arg1);
}
private function moreGameBtnOver(_arg1:MouseEvent){
btnMouseOver();
_moreGameBtn_.gotoAndStop(2);
_moreGameBtnText_.filters = [];
}
private function startBtnOver(_arg1:MouseEvent){
btnMouseOver();
_startBtn_.gotoAndStop(2);
_startBtnText_.filters = [];
}
private function howToPlayBtnOver(_arg1:MouseEvent){
btnMouseOver();
_howToPlayBtn_.gotoAndStop(2);
_howToPlayBtnText_.filters = [];
}
private function initProperty(){
textFilter = new GlowFilter(2607607, 1, 10, 10, 5, 1, false, false);
shadowFilter = new DropShadowFilter(5, 45, 51, 0.2, 7, 7, 1, 1, false, false, false);
_logoMC_.gotoAndStop(Language.frame_logo);
_startBtn_.gotoAndStop(1);
_startBtn_.mouseChildren = false;
_startBtnText_.gotoAndStop(Language.frame_language);
_startBtnText_.filters = [textFilter, shadowFilter];
_howToPlayBtn_.gotoAndStop(1);
_howToPlayBtn_.mouseChildren = false;
_howToPlayBtnText_.gotoAndStop(Language.frame_language);
_howToPlayBtnText_.filters = [textFilter, shadowFilter];
_moreGameBtn_.gotoAndStop(1);
_moreGameBtn_.mouseChildren = false;
_moreGameBtnText_.gotoAndStop(Language.frame_language);
_moreGameBtnText_.filters = [textFilter, shadowFilter];
}
private function moreGameBtnOut(_arg1:MouseEvent){
_moreGameBtn_.gotoAndStop(1);
_moreGameBtnText_.filters = [textFilter, shadowFilter];
}
private function btnMouseOver(){
SoundsManager.playSound("_MenuMouseOver_");
}
private function playOver(_arg1:Event){
if (_textMC_.currentFrame == _textMC_.totalFrames){
_gameStart_.removeEventListener(Event.ENTER_FRAME, playOver);
};
}
private function clickLink(_arg1:MouseEvent){
Language.onCLick5();
}
private function showName(_arg1:MouseEvent){
}
private function delGameStart(){
_startBtn_.removeEventListener(MouseEvent.CLICK, showMain);
PARENT.removeChild(_gameStart_);
}
private function initElement(){
_gameStart_ = new _GameStart_();
PARENT.addChild(_gameStart_);
_textMC_ = (_gameStart_.getChildByName("TextMC") as MovieClip);
_startBtn_ = (_gameStart_.getChildByName("StartBtn") as MovieClip);
_startBtnText_ = (_startBtn_.getChildByName("TextMC") as MovieClip);
_howToPlayBtn_ = (_gameStart_.getChildByName("HowToPlayBtn") as MovieClip);
_howToPlayBtnText_ = (_howToPlayBtn_.getChildByName("TextMC") as MovieClip);
_moreGameBtn_ = (_gameStart_.getChildByName("MoreGameBtn") as MovieClip);
_moreGameBtnText_ = (_moreGameBtn_.getChildByName("TextMC") as MovieClip);
_logoMC_ = (_gameStart_.getChildByName("LogoMC") as MovieClip);
_hotArea_ = (_logoMC_.getChildByName("hitarea_url1") as SimpleButton);
_animalsMC_ = (_gameStart_.getChildByName("AnimalsMC") as MovieClip);
}
private function delEvent(){
}
private function showMain(_arg1:MouseEvent){
SoundsManager.playSound("_MenuMouseDown_");
PARENT.dispatchEvent(new Event("showMain", true));
_startBtn_.gotoAndStop(3);
delGameStart();
}
private function startBtnOut(_arg1:MouseEvent){
_startBtn_.gotoAndStop(1);
_startBtnText_.filters = [textFilter, shadowFilter];
}
private function showHelp(_arg1:MouseEvent){
SoundsManager.playSound("_MenuMouseDown_");
PARENT.dispatchEvent(new Event("showMainHelp", true));
_howToPlayBtn_.gotoAndStop(3);
delGameStart();
}
private function initGameStart(_arg1:MovieClip){
PARENT = _arg1;
initElement();
initEvent();
initProperty();
}
private function moreGame(_arg1:MouseEvent){
_moreGameBtn_.gotoAndStop(3);
SoundsManager.playSound("_MenuMouseDown_");
Language.onCLick4();
}
private function initEvent(){
_gameStart_.addEventListener(Event.ENTER_FRAME, playOver);
_startBtn_.addEventListener(MouseEvent.CLICK, showMain);
_howToPlayBtn_.addEventListener(MouseEvent.CLICK, showHelp);
_moreGameBtn_.addEventListener(MouseEvent.CLICK, moreGame);
_startBtn_.addEventListener(MouseEvent.MOUSE_OVER, startBtnOver);
_startBtn_.addEventListener(MouseEvent.MOUSE_OUT, startBtnOut);
_howToPlayBtn_.addEventListener(MouseEvent.MOUSE_OVER, howToPlayBtnOver);
_howToPlayBtn_.addEventListener(MouseEvent.MOUSE_OUT, howToPlayBtnOut);
_moreGameBtn_.addEventListener(MouseEvent.MOUSE_OVER, moreGameBtnOver);
_moreGameBtn_.addEventListener(MouseEvent.MOUSE_OUT, moreGameBtnOut);
_hotArea_.addEventListener(MouseEvent.CLICK, clickLink);
}
private function howToPlayBtnOut(_arg1:MouseEvent){
_howToPlayBtn_.gotoAndStop(1);
_howToPlayBtnText_.filters = [textFilter, shadowFilter];
}
}
}//package Gamefile
Section 29
//Help (Gamefile.Help)
package Gamefile {
import flash.display.*;
import flash.events.*;
public class Help {
public var repealAllY:int;
public var sprayMovieScale:Number;
public var repealAllX:int;
public var pencilMovieX:int;
public var sprayXArr:Array;
public var repealMovieX:int;
public var repealMovieY:int;
public var pencilMovieY:int;
private var mouse:MovieClip;
public var repealAllMovieScale:int;
public var repealY:int;
public var animalMovieScale:Number;
public var BGX:int;
public var BGY:int;
public var sprayMovieX:int;
public var sprayMovieY:int;
private var PARENT:MovieClip;
public var repealX:int;
private var _helpBtn_:SimpleButton;
public var animalYArr:Array;
public var animalMovieY:int;
public var animalMovieX:int;
public var sprayY:int;
public var sprayX:int;
public var pencilYArr:Array;
public var repealAllMovieY:int;
public var animalX:int;
public var animalY:int;
private var movingFlag:Boolean;
public var animalXArr:Array;
public var pencilMovieScale:Number;
public var pencilX:int;
public var pencilY:int;
public var repealMovieScale:int;
public var repealAllMovieX:int;
public var sprayYArr:Array;
public var pencilXArr:Array;
public function Help(_arg1:MovieClip){
initHelp(_arg1);
}
private function initEvent(){
_helpBtn_.addEventListener(MouseEvent.CLICK, startHelp);
_helpBtn_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_helpBtn_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
}
private function initProperty(){
animalXArr = new Array(43, 50, 58, 65, 73, 81, 92, 108, 127, 153, 177, 206, 218, 229, 241, 249, 0xFF, 262, 269, 281, 292, 305, 319, 334, 353, 371, 398, 425);
animalYArr = new Array(213, 178, 160, 154, 142, 132, 125, 117, 110, 98, 90, 85, 95, 108, 126, 146, 163, 187, 202, 225, 239, 0xFF, 268, 279, 288, 294, 299, 303);
sprayXArr = new Array(158, 220, 326, 479, 529);
sprayYArr = new Array(132, 279, 172, 252, 89);
pencilXArr = new Array(169, 176, 192, 207, 221, 234, 248, 254, 264, 271, 277, 284, 288, 297, 308, 317, 324, 331, 337, 309, 292, 240, 206, 159, 147, 125, 111, 95, 86, 115, 148, 198, 227, 253, 284, 319, 345, 368, 395, 385, 364, 342, 334, 300, 269, 249, 232, 216, 199, 188, 177);
pencilYArr = new Array(329, 284, 246, 213, 191, 174, 155, 147, 130, 119, 107, 119, 145, 196, 240, 262, 280, 294, 310, 307, 301, 274, 258, 235, 229, 218, 212, 206, 200, 198, 198, 198, 196, 191, 185, 181, 176, 170, 167, 176, 189, 201, 207, 232, 0x0100, 271, 281, 290, 300, 306, 313);
animalX = 51;
animalY = 263;
animalMovieX = 5;
animalMovieY = 208;
animalMovieScale = 0.8;
BGX = 120;
BGY = 419;
pencilX = 174;
pencilY = 425;
pencilMovieX = 135;
pencilMovieY = 374;
pencilMovieScale = 0.8;
sprayX = 450;
sprayY = 415;
sprayMovieX = 405;
sprayMovieY = 367;
sprayMovieScale = 0.75;
repealX = 334;
repealY = 431;
repealMovieX = 295;
repealMovieY = 400;
repealMovieScale = 0.8;
repealAllX = 389;
repealAllY = 431;
repealAllMovieX = 359;
repealAllMovieY = 399;
repealAllMovieScale = 0.8;
movingFlag = false;
}
public function getAnimalBtnY(_arg1:int){
}
private function mouseIsOut(_arg1:MouseEvent){
PARENT.dispatchEvent(new Event("mouseIsOut", true));
}
private function mouseIsOver(_arg1:MouseEvent){
if (movingFlag == true){
PARENT.dispatchEvent(new Event("mouseIsNotEnabled", true));
} else {
SoundsManager.playSound("_GameMouseOver_");
PARENT.dispatchEvent(new Event("mouseIsOver", true));
};
}
private function initElement(){
_helpBtn_ = (PARENT.getChildByName("HelpBtn") as SimpleButton);
}
public function delEvent(){
_helpBtn_.removeEventListener(MouseEvent.CLICK, startHelp);
_helpBtn_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_helpBtn_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
}
public function getMovingFlag(_arg1:Boolean){
movingFlag = _arg1;
}
private function startHelp(_arg1:MouseEvent){
SoundsManager.playSound("_GameMouseDown_");
PARENT.dispatchEvent(new Event("startHelp", true));
}
private function initHelp(_arg1:MovieClip){
PARENT = _arg1;
initElement();
initEvent();
initProperty();
}
}
}//package Gamefile
Section 30
//Language (Gamefile.Language)
package Gamefile {
import flash.net.*;
public class Language {
public static var urlString:String;
private static var moreGameLink:String;
public static var mode:int;
public static var frame_language:int;
private static var localConnection:LocalConnection;
private static var freeGameLink:String;
private static var SpillGroupUrl:Array;
public static var frame_logo:int;
public function Language():void{
mode = 1;
localConnection = new LocalConnection();
SpillGroupUrl = new Array();
SpillGroupUrl.push("www8.agame.com");
setPro();
if (localConnection.domain == SpillGroupUrl[0]){
urlString = freeGameLink;
} else {
urlString = moreGameLink;
};
}
private function setPro():void{
switch (mode){
case 1:
moreGameLink = ("http://www.girlsgogames.com/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain);
freeGameLink = "http://www.girlsgogames.com/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
frame_language = 1;
frame_logo = 29;
break;
case 2:
moreGameLink = "http://www.game.com.cn/moregames/";
freeGameLink = "http://www.game.com.cn/downloads/";
frame_language = 16;
frame_logo = 2;
break;
case 3:
moreGameLink = ("http://www.girlsgogames.nl/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain);
freeGameLink = "http://www.girlsgogames.nl/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
frame_language = 3;
frame_logo = 30;
break;
case 4:
moreGameLink = ("http://www.girlsgogames.fr/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain);
freeGameLink = "http://www.girlsgogames.fr/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
frame_language = 4;
frame_logo = 31;
break;
case 5:
moreGameLink = ("http://www.girlsgogames.de/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain);
freeGameLink = "http://www.girlsgogames.de/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
frame_language = 5;
frame_logo = 32;
break;
case 6:
moreGameLink = ("http://www.girlsgogames.pl/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain);
freeGameLink = "http://www.girlsgogames.pl/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
frame_language = 11;
frame_logo = 33;
break;
case 7:
moreGameLink = ("http://www.girlsgogames.se/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain);
freeGameLink = "http://www.girlsgogames.se/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
frame_language = 10;
frame_logo = 34;
break;
case 8:
moreGameLink = ("http://www.girlsgogames.it/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain);
freeGameLink = "http://www.girlsgogames.it/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
frame_language = 9;
frame_logo = 35;
break;
case 9:
moreGameLink = ("http://www.juegosdechicas.com/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain);
freeGameLink = "http://www.juegosdechicas.com/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
frame_language = 6;
frame_logo = 36;
break;
case 10:
moreGameLink = ("http://www.girlsgogames.com.br/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain);
freeGameLink = "http://www.girlsgogames.com.br/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
frame_language = 7;
frame_logo = 38;
break;
case 11:
moreGameLink = ("http://www.games.co.id/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain);
freeGameLink = "http://www.games.co.id/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
frame_language = 14;
frame_logo = 13;
break;
case 12:
moreGameLink = ("http://www.girlsgogames.ru/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain);
freeGameLink = "http://www.girlsgogames.ru/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
frame_language = 12;
frame_logo = 39;
break;
case 13:
moreGameLink = ("http://www.girlsgogames.co.uk/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain);
freeGameLink = "http://www.girlsgogames.co.uk/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
frame_language = 2;
frame_logo = 37;
break;
case 14:
moreGameLink = ("http://www.girlsgogames.in/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain);
freeGameLink = "http://www.girlsgogames.in/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
frame_language = 2;
frame_logo = 40;
break;
case 15:
moreGameLink = ("http://www.girlsgogamestr.com/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain);
freeGameLink = "http://www.girlsgogamestr.com/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
frame_language = 13;
frame_logo = 41;
break;
case 16:
moreGameLink = ("http://www.game.com.my/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain);
freeGameLink = "http://www.game.com.my/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
frame_language = 15;
frame_logo = 16;
break;
case 17:
moreGameLink = ("http://www.ojogos.pt/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain);
freeGameLink = "http://www.ojogos.pt/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
frame_language = 8;
frame_logo = 42;
break;
case 18:
moreGameLink = ("http://www.laro.com.ph/moregames/?utm_source=brandedgames_external&utm_medium=animal_artist&utm_campaign=" + localConnection.domain);
freeGameLink = "http://www.laro.com.ph/moregames/?utm_source=brandedgames_internal&utm_medium=animal_artist";
frame_language = 2;
frame_logo = 43;
break;
};
}
public static function onCLick1(){
if (mode == 2){
navigateToURL(new URLRequest(urlString), "_blank");
} else {
navigateToURL(new URLRequest((urlString + "&utm_term=button_level_moregames")), "_blank");
};
trace("main");
}
public static function onCLick5(){
if (mode == 2){
navigateToURL(new URLRequest(urlString), "_blank");
} else {
navigateToURL(new URLRequest((urlString + "&utm_term=logo_mainscreen")), "_blank");
};
trace("menu logo");
}
public static function onCLick4(){
if (mode == 2){
navigateToURL(new URLRequest(urlString), "_blank");
} else {
navigateToURL(new URLRequest((urlString + "&utm_term=button_mainscreen_moregames")), "_blank");
};
trace("menu button");
}
public static function onCLick3(){
if (mode == 2){
navigateToURL(new URLRequest(urlString), "_blank");
} else {
navigateToURL(new URLRequest((urlString + "&utm_term=logo_preloader")), "_blank");
};
trace("loading logo");
}
}
}//package Gamefile
Section 31
//Loading (Gamefile.Loading)
package Gamefile {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class Loading {
private var _loading_:MovieClip;
private var _loadingBar_:MovieClip;
private var _loadingText_:MovieClip;
private var ROOT:MovieClip;
private var _schedule_:TextField;
private var _loadingMC_:MovieClip;
private var loadedByte:Number;
private var _logoMC_:MovieClip;
public function Loading(_arg1:MovieClip){
initLoading(_arg1);
}
private function initProperty(){
_loadingMC_.gotoAndStop(Language.frame_language);
_logoMC_.gotoAndStop(Language.frame_logo);
}
private function initElement(){
_loading_ = new _Loading_();
ROOT.addChild(_loading_);
_logoMC_ = (_loading_.getChildByName("LogoMC") as MovieClip);
_loadingMC_ = (_loading_.getChildByName("LoadingMC") as MovieClip);
_schedule_ = (_loading_.getChildByName("Schedule") as TextField);
}
private function initLoading(_arg1:MovieClip){
ROOT = _arg1;
initElement();
initEvent();
initProperty();
}
public function delLoading(){
ROOT.removeEventListener(Event.ENTER_FRAME, loading);
ROOT.removeChild(_loading_);
}
private function initEvent(){
_logoMC_.addEventListener(MouseEvent.CLICK, clickLink);
ROOT.addEventListener(Event.ENTER_FRAME, loading);
}
private function clickLink(_arg1:MouseEvent){
Language.onCLick3();
}
private function loading(_arg1:Event){
loadedByte = (ROOT.loaderInfo.bytesLoaded / ROOT.loaderInfo.bytesTotal);
loadedByte = int((loadedByte * 100));
_schedule_.text = (String(loadedByte) + " %");
if (loadedByte == 100){
loadedByte = int((loadedByte * 100));
_schedule_.text = (String(loadedByte) + " %");
if (Language.mode == 2){
ROOT.dispatchEvent(new Event("showGameChina", true));
} else {
ROOT.dispatchEvent(new Event("showGameStart", true));
};
delLoading();
};
}
}
}//package Gamefile
Section 32
//Main (Gamefile.Main)
package Gamefile {
import flash.display.*;
import flash.events.*;
import fl.transitions.*;
import flash.geom.*;
import flash.utils.*;
import fl.transitions.easing.*;
public class Main {
private var _soleLayer_:MovieClip;
private var _bg_:MovieClip;
private var pencilFlag:Boolean;
private var actionAnimalScaleYTween:Tween;
public var helpAutoEnd:Boolean;
private var printHeight:int;
private var _toner_:MovieClip;
private var helprepealAllMovie:MovieClip;
private var pencilTool:PencilTool;
private var helpSoundFunction:Function;
private var BG:Background;
private var moving:Move;
private var delScaleYTween:Tween;
private var mouseTweenX:Tween;
private var mouseTweenY:Tween;
private var helpFlag:Boolean;
private var helpBGNum:int;
private var curveLineDelCount:int;
private var _backBtn_:SimpleButton;
private var helpYTrackArr:Array;
private var delYTween1:Tween;
private var delYTween4:Tween;
private var _printLayer_:MovieClip;
private var delYTween3:Tween;
private var helpSprayCount:int;
private var _hotArea_:SimpleButton;
private var helpLoopSum:int;
private var logoMC:MovieClip;
private var _sprayLayer_:MovieClip;
private var helpLoopCount:int;
private var helpAnimal:SimpleButton;
private var helpTimerFunction:Function;
private var PARENT:MovieClip;
private var spray:Spray;
private var yTrackArr:Array;
private var moveSum:Number;
private var bmpTool:BmpTool;
private var _main_:MovieClip;
private var _helpShowLayer_:MovieClip;
private var sole:Sole;
private var rectSole:Rectangle;
private var movingFlag:Boolean;
private var operateType:int;
private var _pushpin_:MovieClip;
private var loopCount:int;
private var mouseControl:MouseControl;
private var chooseAnimal:SimpleButton;
private var drawTool:DrawTool;
private var helpActionAnimalYTween:Tween;
private var helpActionAnimalScaleXTween:Tween;
private var printWidth:int;
private var _paintBarrel_:MovieClip;
private var delAlphaTween3:Tween;
private var delAlphaTween4:Tween;
private var helpTrackFlag:Boolean;
private var sound:String;
private var actionAnimalAlphaTween:Tween;
private var delAlphaTween1:Tween;
private var delAlphaTween2:Tween;
private var _mainBG_:MovieClip;
private var loopSum:int;
private var helpRepealCount:int;
private var help:Help;
private var timer:Timer;
private var _paintBarrelColorLayer_:MovieClip;
private var animalType:int;
private var trackFlag:Boolean;
private var helpBackFlag:Boolean;
private var curveLineType:int;
private var color:uint;
private var helpXTrackArr:Array;
private var soundTimer:Timer;
private var _mouse_:MovieClip;
private var helprepealMovie:MovieClip;
private var trackTool:TrackTool;
private var sprayType:int;
private var actionAnimalScaleXTween:Tween;
private var sprayDelCount:int;
private var repeal:Repeal;
private var printBmp:Bitmap;
private var colorTool:ColorTool;
private var mouseTimer:Timer;
private var previousCurveLineStartX:int;
private var previousCurveLineStartY:int;
private var helpActionAnimalScaleYTween:Tween;
private var xTrackArr:Array;
private var helpTweenFunction:Function;
private var helpActionAnimal:MovieClip;
private var soleDelCount:int;
private var helpActionAnimalAlphaTween:Tween;
private var delScaleXTween:Tween;
private var printSprite:Sprite;
private var _operateLayer_:MovieClip;
private var actionAnimal:MovieClip;
private var actionAnimalYTween:Tween;
private var printTool:PrintTool;
private var pencilType:int;
private var helpMovingFunction:Function;
private var pencilDelCount:int;
private var currentlyBGNum:int;
private var animal:Animal;
public function Main(_arg1:MovieClip){
initMain(_arg1);
}
private function mouseIsDown(_arg1:MouseEvent){
if ((((((movingFlag == false)) && ((trackFlag == false)))) && ((animalType == 1)))){
if (actionAnimal.visible == false){
actionAnimal.visible = true;
};
moving.getCoord(actionAnimal, _operateLayer_.mouseX, _operateLayer_.mouseY);
actionAnimal.alpha = 0;
actionAnimal.scaleX = 2;
actionAnimal.scaleY = 2;
actionAnimal.stop();
actionAnimalAlphaTween = new Tween(actionAnimal, "alpha", Regular.easeOut, actionAnimal.alpha, 1, 0.2, true);
actionAnimalScaleXTween = new Tween(actionAnimal, "scaleX", Regular.easeOut, actionAnimal.scaleX, 1, 0.2, true);
actionAnimalScaleYTween = new Tween(actionAnimal, "scaleY", Regular.easeOut, actionAnimal.scaleY, 1, 0.2, true);
actionAnimalYTween = new Tween(actionAnimal, "y", Regular.easeOut, (actionAnimal.y - 50), actionAnimal.y, 0.2, true);
startGetTrack();
} else {
if ((((((movingFlag == false)) && ((trackFlag == false)))) && ((((animalType == 2)) || ((animalType == 3)))))){
if (animalType == 2){
SoundsManager.playSound("_Whale_S_");
spray.drawSpray(_soleLayer_, _sprayLayer_, _operateLayer_.mouseX, _operateLayer_.mouseY, sprayType, color, helpFlag);
} else {
if (animalType == 3){
spray.drawSingleSpray(_soleLayer_, _operateLayer_.mouseX, _operateLayer_.mouseY, sprayType);
};
};
operateType = spray.operateType;
repeal.noteInformation(operateType);
drawBmp();
} else {
if ((((((movingFlag == false)) && ((trackFlag == false)))) && ((((animalType == 4)) || ((animalType == 5)))))){
if (actionAnimal.visible == false){
actionAnimal.visible = true;
};
moving.getCoord(actionAnimal, _operateLayer_.mouseX, _operateLayer_.mouseY);
actionAnimal.alpha = 0;
actionAnimal.scaleX = 2;
actionAnimal.scaleY = 2;
actionAnimal.stop();
actionAnimalAlphaTween = new Tween(actionAnimal, "alpha", Regular.easeOut, actionAnimal.alpha, 1, 0.2, true);
actionAnimalScaleXTween = new Tween(actionAnimal, "scaleX", Regular.easeOut, actionAnimal.scaleX, 1, 0.2, true);
actionAnimalScaleYTween = new Tween(actionAnimal, "scaleY", Regular.easeOut, actionAnimal.scaleY, 1, 0.2, true);
actionAnimalYTween = new Tween(actionAnimal, "y", Regular.easeOut, (actionAnimal.y - 50), actionAnimal.y, 0.2, true);
startGetTrack();
} else {
if ((((((movingFlag == false)) && ((trackFlag == false)))) && ((((pencilType == 1)) || ((pencilType == 2)))))){
startPencil();
} else {
if (movingFlag == true){
mouseControl._mouse_.gotoAndStop(4);
_operateLayer_.stage.addEventListener(MouseEvent.MOUSE_UP, mouseIsUp);
};
};
};
};
};
}
private function helpPencilSound(_arg1:TimerEvent){
soundTimer.removeEventListener(TimerEvent.TIMER, helpPencilSound);
soundTimer = null;
SoundsManager.playSound("_GameMouseDown_");
}
private function repealAllMain(){
delAlphaTween1 = null;
delYTween1 = null;
delAlphaTween2 = null;
delScaleXTween = null;
delScaleYTween = null;
soleDelCount = 0;
sprayDelCount = 0;
pencilDelCount = 0;
curveLineDelCount = 0;
if ((((movingFlag == true)) && ((animalType == 1)))){
endMove();
} else {
if ((((((animalType == 4)) || ((animalType == 5)))) && ((movingFlag == true)))){
endMove();
};
};
sole.soleArr = repeal.repealAllObj(sole.soleArr);
spray.sprayArr = repeal.repealAllObj(spray.sprayArr);
pencilTool.pencilArr = repeal.repealAllObj(pencilTool.pencilArr);
drawTool.curveLineArr = repeal.repealAllObj(drawTool.curveLineArr);
bmpTool.delBmp(_soleLayer_);
repeal.repealArr = [];
}
private function choosePencil(_arg1:Event){
if ((((movingFlag == false)) && ((trackFlag == false)))){
animalType = 0;
animal.animalType = 0;
pencilType = pencilTool.pencilType;
animal.clearBtnFilters();
mouseControl._mouse_.gotoAndStop(2);
};
}
private function startPencil(){
if (pencilFlag == false){
_operateLayer_.addEventListener(MouseEvent.MOUSE_MOVE, pencilDrawing);
_operateLayer_.stage.addEventListener(MouseEvent.MOUSE_UP, endPencil);
pencilTool.createPencilMC(_soleLayer_, _operateLayer_.mouseX, _operateLayer_.mouseY, color);
};
}
private function printing(_arg1:Event){
_pushpin_.visible = false;
bmpTool.hideBmp(_soleLayer_);
drawTool.showCurveLine();
pencilTool.showPencilArr();
sole.showSoleArr();
spray.showSpray();
rectSole = new Rectangle(0, 0, printWidth, printHeight);
printTool.createMask(_mainBG_, _printLayer_, _printLayer_.x, _printLayer_.y);
printTool.printOpus(_printLayer_, rectSole);
printTool.delMask(_printLayer_);
_pushpin_.visible = true;
bmpTool.showBmp(_soleLayer_);
drawTool.hideCurveLine();
pencilTool.hidePencilArr();
sole.hideSoleArr();
spray.hideSpray();
}
private function startGetTrack(){
_operateLayer_.stage.addEventListener(MouseEvent.MOUSE_UP, endGetTrack);
_operateLayer_.addEventListener(MouseEvent.MOUSE_MOVE, getTrack);
trackFlag = true;
trackTool.startGetTrack(_operateLayer_.mouseX, _operateLayer_.mouseY);
drawTool.startDrawLine(_operateLayer_.mouseX, _operateLayer_.mouseY);
mouseControl._mouse_.gotoAndStop(1);
}
private function clearTrackArray(){
trackTool.clearArray();
xTrackArr = [];
yTrackArr = [];
}
private function mouseIsOut(_arg1:Event){
if ((((((animalType == 1)) || ((((animalType == 4)) || ((animalType == 5)))))) && ((movingFlag == true)))){
mouseControl._mouse_.gotoAndStop(1);
} else {
if ((((((animalType == 1)) || ((((animalType == 4)) || ((animalType == 5)))))) && ((trackFlag == true)))){
mouseControl._mouse_.gotoAndStop(1);
} else {
if ((((animalType == 1)) || ((((animalType == 4)) || ((animalType == 5)))))){
mouseControl._mouse_.gotoAndStop(animal.animalDownFrame);
} else {
mouseControl._mouse_.gotoAndStop(1);
};
};
};
}
private function helpDelMC(_arg1:TweenEvent){
_helpShowLayer_.removeChildAt((_helpShowLayer_.numChildren - 1));
}
private function mouseIsOver(_arg1:Event){
if ((((((animalType == 1)) || ((((animalType == 4)) || ((animalType == 5)))))) && ((movingFlag == true)))){
mouseControl._mouse_.gotoAndStop(2);
} else {
if ((((((animalType == 1)) || ((((animalType == 4)) || ((animalType == 5)))))) && ((trackFlag == true)))){
mouseControl._mouse_.gotoAndStop(1);
} else {
if ((((animalType == 1)) || ((((animalType == 4)) || ((animalType == 5)))))){
mouseControl._mouse_.gotoAndStop(animal.animalDownFrame);
} else {
mouseControl._mouse_.gotoAndStop(2);
};
};
};
}
private function helpAnimalTweenEnd(_arg1:TweenEvent){
mouseTweenX.removeEventListener(TweenEvent.MOTION_FINISH, helpAnimalTweenEnd);
mouseTweenX = null;
mouseTweenY = null;
SoundsManager.playSound("_GameMouseOver_");
SoundsManager.playSound("_Cat_S_");
animal.showHelpAnimalMovie(help.animalMovieX, help.animalMovieY, help.animalMovieScale);
animal.animalGlowFilter(animal.helpMovie);
_mouse_.gotoAndStop(8);
timer = new Timer(1000, 0);
timer.addEventListener(TimerEvent.TIMER, startHelpTrack);
helpTimerFunction = startHelpTrack;
timer.start();
}
private function helpRepealAllSound(_arg1:TimerEvent){
timer.removeEventListener(TimerEvent.TIMER, helpRepealAllSound);
timer = null;
repeal.showRepealMC(_operateLayer_);
helpRepealAll();
}
private function startHelpTrack(_arg1:TimerEvent){
_mouse_.gotoAndStop(8);
timer.removeEventListener(TimerEvent.TIMER, startHelpTrack);
timer = null;
mouseTweenX = new Tween(_mouse_, "x", Regular.easeOut, _mouse_.x, (helpXTrackArr[0] + 99), 1, true);
mouseTweenY = new Tween(_mouse_, "y", Regular.easeOut, _mouse_.y, (helpYTrackArr[0] + 23.6), 1, true);
mouseTweenX.addEventListener(TweenEvent.MOTION_FINISH, helpTrack);
animal.delHelpMovie();
animal.animalGlowFilter(helpAnimal);
helpTweenFunction = helpTrack;
}
private function chooseTheAnimalMain(){
animalType = animal.animalType;
chooseAnimal = animal.returnChooseAnimal();
actionAnimal = animal.returnActionAnimal();
showActionAnimal();
mouseControl._mouse_.gotoAndStop(animal.animalDownFrame);
}
private function helpRepealOBJ(_arg1:TimerEvent){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_mouse_.gotoAndStop(2);
SoundsManager.playSound("_Squirrel_S_");
if (helpRepealCount == 1){
_local2 = new Tween(_helpShowLayer_.getChildAt((_helpShowLayer_.numChildren - 1)), "alpha", Regular.easeOut, _helpShowLayer_.getChildAt((_helpShowLayer_.numChildren - 1)).alpha, 0, 0.2, true);
_local3 = new Tween(_helpShowLayer_.getChildAt((_helpShowLayer_.numChildren - 1)), "y", Regular.easeOut, _helpShowLayer_.getChildAt((_helpShowLayer_.numChildren - 1)).y, (_helpShowLayer_.getChildAt((_helpShowLayer_.numChildren - 1)).y + 20), 0.2, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, helpDelMC);
helpTweenFunction = helpDelMC;
} else {
_local4 = new Tween(_helpShowLayer_.getChildAt((_helpShowLayer_.numChildren - 1)), "alpha", Regular.easeOut, _helpShowLayer_.getChildAt((_helpShowLayer_.numChildren - 1)).alpha, 0, 0.2, true);
_local5 = new Tween(_helpShowLayer_.getChildAt((_helpShowLayer_.numChildren - 1)), "scaleX", Regular.easeOut, _helpShowLayer_.getChildAt((_helpShowLayer_.numChildren - 1)).scaleX, 1.5, 0.2, true);
_local6 = new Tween(_helpShowLayer_.getChildAt((_helpShowLayer_.numChildren - 1)), "scaleY", Regular.easeOut, _helpShowLayer_.getChildAt((_helpShowLayer_.numChildren - 1)).scaleY, 1.5, 0.2, true);
_local4.addEventListener(TweenEvent.MOTION_FINISH, helpDelMC);
helpTweenFunction = helpDelMC;
};
helpRepealCount++;
if (helpRepealCount == 4){
helprepealMovie.parent.removeChild(helprepealMovie);
helprepealMovie = null;
repeal._repealBtn_.visible = true;
helpRepealCount = 1;
timer.removeEventListener(TimerEvent.TIMER, helpRepealOBJ);
timer = null;
timer = new Timer(500, 0);
timer.addEventListener(TimerEvent.TIMER, startHelpRepealAll);
helpTimerFunction = startHelpRepealAll;
timer.start();
};
}
private function pencilDrawing(_arg1:MouseEvent){
if (pencilTool.drawFlag == false){
pencilTool.drawFlag = true;
};
pencilFlag = true;
pencilTool.Pencildrawing(_operateLayer_.mouseX, _operateLayer_.mouseY);
}
public function delMain(){
mouseControl.delMouseControl();
animal.delEvent();
BG.delEvent();
colorTool.delEvent();
help.delEvent();
pencilTool.delEvent();
printTool.delEvent();
repeal.delEvent();
spray.delEvent();
delEvent();
repealAllMain();
PARENT.removeChild(_main_);
}
private function showMain(){
animal = new Animal(_main_);
moving = new Move();
sole = new Sole();
trackTool = new TrackTool();
colorTool = new ColorTool(_main_);
drawTool = new DrawTool(_operateLayer_);
bmpTool = new BmpTool();
repeal = new Repeal(_main_);
spray = new Spray(_main_);
pencilTool = new PencilTool(_main_);
BG = new Background(_bg_, _main_);
printTool = new PrintTool(_main_);
help = new Help(_main_);
mouseControl = new MouseControl(PARENT);
_main_.addEventListener("chooseTheAnimal", chooseTheAnimal);
_main_.addEventListener("changeColor", changeColor);
_main_.addEventListener("repealOperate", fadeOutSole);
_main_.addEventListener("choosePencil", choosePencil);
_main_.addEventListener("repealAll", repealAll);
_main_.addEventListener("printing", printing);
_main_.addEventListener("startHelp", startHelp);
_main_.addEventListener("mouseIsOver", mouseIsOver);
_main_.addEventListener("mouseIsOut", mouseIsOut);
_main_.addEventListener("mouseIsNotEnabled", mouseIsNotEnabled);
_main_.addEventListener("changeSprayType", changeSprayType);
}
private function helpPencilTweenEnd(_arg1:TweenEvent){
SoundsManager.playSound("_GameMouseOver_");
soundTimer = new Timer(400, 0);
soundTimer.addEventListener(TimerEvent.TIMER, helpPencilSound);
soundTimer.start();
helpSoundFunction = helpPencilSound;
mouseTweenX.removeEventListener(TweenEvent.MOTION_FINISH, helpPencilTweenEnd);
mouseTweenX = null;
mouseTweenY = null;
helpSprayCount = 0;
animal.clearBtnFilters();
animal.showHelpPencilMovie(help.pencilMovieX, help.pencilMovieY, help.pencilMovieScale);
animal.animalGlowFilter(animal.helpMovie);
_mouse_.gotoAndStop(2);
timer = new Timer(1000, 0);
timer.addEventListener(TimerEvent.TIMER, startHelpPencil);
helpTimerFunction = startHelpPencil;
timer.start();
}
private function helpRepealAllTweenEnd(_arg1:TweenEvent){
SoundsManager.playSound("_GameMouseOver_");
helpTimerFunction = helpRepealAllSound;
repeal._repealAllBtn_.visible = false;
helprepealAllMovie = new _RepealAllMovie_();
animal._animalBtnMC_.addChild(helprepealAllMovie);
helprepealAllMovie.x = (help.repealMovieX + 45);
helprepealAllMovie.y = (help.repealMovieY - 25);
helprepealAllMovie.scaleX = 0.8;
helprepealAllMovie.scaleY = 0.8;
mouseTweenX.removeEventListener(TweenEvent.MOTION_FINISH, helpRepealAllTweenEnd);
mouseTweenX = null;
mouseTweenY = null;
_mouse_.gotoAndStop(2);
animal.showHelpRepealAllMovie(help.repealAllMovieX, help.repealAllMovieY, help.repealAllMovieScale);
helpAutoEnd = true;
timer = new Timer(400, 0);
timer.addEventListener(TimerEvent.TIMER, helpRepealAllSound);
timer.start();
}
private function repealOperate(_arg1:TweenEvent){
SoundsManager.stopMusic();
if ((((movingFlag == true)) && ((animalType == 1)))){
endMove();
} else {
if ((((((animalType == 4)) || ((animalType == 5)))) && ((movingFlag == true)))){
endMove();
};
};
switch (repeal.repealOperateType()){
case 1:
delAlphaTween1 = null;
delYTween1 = null;
soleDelCount = 0;
sole.soleArr = repeal.repealObj(sole.soleArr);
drawBmp();
break;
case 2:
delAlphaTween2 = null;
delScaleXTween = null;
delScaleYTween = null;
sprayDelCount = 0;
spray.sprayArr = repeal.repealObj(spray.sprayArr);
drawBmp();
break;
case 3:
delAlphaTween3 = null;
delYTween3 = null;
pencilDelCount = 0;
pencilTool.pencilArr = repeal.repealObj(pencilTool.pencilArr);
drawBmp();
break;
case ((4) || (5)):
delAlphaTween4 = null;
delYTween4 = null;
curveLineDelCount = 0;
drawTool.curveLineArr = repeal.repealObj(drawTool.curveLineArr);
drawBmp();
break;
};
repeal.delInformation();
}
private function helpAnimalStartMoving(){
helpActionAnimalAlphaTween = null;
helpActionAnimalScaleXTween = null;
helpActionAnimalScaleYTween = null;
helpActionAnimalYTween = null;
SoundsManager.playMusic("_WalkLoop_");
_main_.addEventListener(Event.ENTER_FRAME, helpAnimalMoving);
helpMovingFunction = helpAnimalMoving;
_main_.addEventListener("getSpeed", getSpeed);
}
private function helpSpraySound(_arg1:TimerEvent){
soundTimer.removeEventListener(TimerEvent.TIMER, helpSpraySound);
soundTimer = null;
SoundsManager.playSound("_Whale_S_");
}
private function endHelpMain(){
SoundsManager.stopMusic();
PARENT.stage.removeEventListener(MouseEvent.MOUSE_UP, stageClick);
if (timer != null){
timer.removeEventListener(TimerEvent.TIMER, helpTimerFunction);
timer = null;
};
if (mouseTweenX != null){
mouseTweenX.removeEventListener(TweenEvent.MOTION_FINISH, helpTweenFunction);
mouseTweenX = null;
mouseTweenY = null;
};
if (soundTimer != null){
soundTimer.removeEventListener(TweenEvent.MOTION_FINISH, helpSoundFunction);
soundTimer = null;
};
if (helpMovingFunction != null){
_main_.removeEventListener(Event.ENTER_FRAME, helpMovingFunction);
_main_.removeEventListener("getSpeed", getSpeed);
helpMovingFunction = null;
};
if (helpActionAnimalAlphaTween != null){
helpActionAnimalAlphaTween.removeEventListener(TweenEvent.MOTION_FINISH, helpAnimalStartMoving);
helpActionAnimalAlphaTween = null;
helpActionAnimalScaleXTween = null;
helpActionAnimalScaleYTween = null;
helpActionAnimalYTween = null;
};
_operateLayer_.graphics.clear();
_mouse_.parent.removeChild(_mouse_);
_mouse_ = null;
if (helpAutoEnd == false){
repeal.delRepealMCEvent();
helpRepealAll();
};
sole.pushEndFlag(helpFlag);
BG._bg_.gotoAndStop(currentlyBGNum);
BG._bgBtn_.gotoAndStop(currentlyBGNum);
BG.getBgNum(currentlyBGNum);
animal.delHelpMovie();
animal.clearBtnFilters();
pencilTool.clearBtnFilters();
helpFlag = false;
helpLoopCount = 1;
mouseControl.initMouseControl(PARENT);
mouseControl._mouse_.gotoAndStop(animal.animalDownFrame);
bmpTool.showBmp(_soleLayer_);
animal.clearBtnFilters();
helpRepealCount = 1;
helpSprayCount = 0;
helpBGNum = 1;
if (helprepealMovie != null){
helprepealMovie.parent.removeChild(helprepealMovie);
helprepealMovie = null;
};
repeal._repealBtn_.visible = true;
if (helprepealAllMovie != null){
helprepealAllMovie.parent.removeChild(helprepealAllMovie);
helprepealAllMovie = null;
};
repeal._repealAllBtn_.visible = true;
if (animalType > 0){
animal.animalGlowFilter(chooseAnimal);
} else {
if (pencilType > 0){
pencilTool.pencilGlowFilter();
};
};
_main_.mouseChildren = true;
getHelpInformation();
back();
trace("helpEnd");
}
private function getSpeed(_arg1:Event){
if (helpFlag == false){
moving.getSpeed(xTrackArr[(loopCount - 1)], yTrackArr[(loopCount - 1)], xTrackArr[loopCount], yTrackArr[loopCount]);
loopCount++;
} else {
if (helpFlag == true){
moving.getSpeed(helpXTrackArr[(helpLoopCount - 1)], helpYTrackArr[(helpLoopCount - 1)], helpXTrackArr[helpLoopCount], helpYTrackArr[helpLoopCount]);
if (helpTrackFlag == true){
drawTool.drawLine(helpXTrackArr[(helpLoopCount - 1)], helpYTrackArr[(helpLoopCount - 1)]);
};
helpLoopCount++;
};
};
}
private function helpBGTweenStart(_arg1:TimerEvent){
helpActionAnimalAlphaTween = null;
helpActionAnimal.parent.removeChild(helpActionAnimal);
timer.removeEventListener(TimerEvent.TIMER, helpBGTweenStart);
timer = null;
_mouse_.parent.removeChild(_mouse_);
_mouse_ = null;
_mouse_ = new _Mouse_();
PARENT.addChild(_mouse_);
_mouse_.gotoAndStop(8);
_mouse_.x = helpXTrackArr[(helpXTrackArr.length - 1)];
_mouse_.y = (helpYTrackArr[(helpYTrackArr.length - 1)] + 23.6);
mouseTweenX = new Tween(_mouse_, "x", Regular.easeOut, _mouse_.x, help.BGX, 1, true);
mouseTweenY = new Tween(_mouse_, "y", Regular.easeOut, _mouse_.y, help.BGY, 1, true);
mouseTweenX.addEventListener(TweenEvent.MOTION_FINISH, helpBGTweenEnd);
helpTweenFunction = helpBGTweenEnd;
}
private function helpTrack(_arg1:TweenEvent){
mouseTweenX.removeEventListener(TweenEvent.MOTION_FINISH, helpTrack);
mouseTweenX = null;
mouseTweenY = null;
_mouse_.parent.removeChild(_mouse_);
_mouse_ = null;
_mouse_ = new _Mouse_();
_operateLayer_.addChild(_mouse_);
helpTrackFlag = true;
moving.getCoord(_mouse_, helpXTrackArr[0], helpYTrackArr[0]);
drawTool.startDrawLine(helpXTrackArr[0], helpYTrackArr[0]);
helpLoopSum = helpXTrackArr.length;
moving.getSpeed(helpXTrackArr[(helpLoopCount - 1)], helpYTrackArr[(helpLoopCount - 1)], helpXTrackArr[helpLoopCount], helpYTrackArr[helpLoopCount]);
helpLoopCount++;
_main_.addEventListener(Event.ENTER_FRAME, helpTracking);
helpMovingFunction = helpTracking;
_main_.addEventListener("getSpeed", getSpeed);
_operateLayer_.addChild(helpActionAnimal);
helpActionAnimal.alpha = 0;
moving.getCoord(helpActionAnimal, helpXTrackArr[0], helpYTrackArr[0]);
helpActionAnimal.scaleX = 2;
helpActionAnimal.scaleY = 2;
helpActionAnimalAlphaTween = new Tween(helpActionAnimal, "alpha", Regular.easeOut, helpActionAnimal.alpha, 1, 0.2, true);
helpActionAnimalScaleXTween = new Tween(helpActionAnimal, "scaleX", Regular.easeOut, helpActionAnimal.scaleX, 1, 0.2, true);
helpActionAnimalScaleYTween = new Tween(helpActionAnimal, "scaleY", Regular.easeOut, helpActionAnimal.scaleY, 1, 0.2, true);
helpActionAnimalYTween = new Tween(helpActionAnimal, "y", Regular.easeOut, (helpActionAnimal.y - 50), helpActionAnimal.y, 0.2, true);
}
private function endHelp(_arg1:TimerEvent){
helprepealAllMovie.parent.removeChild(helprepealAllMovie);
helprepealAllMovie = null;
repeal._repealAllBtn_.visible = true;
_mouse_.gotoAndStop(animal.animalDownFrame);
endHelpMain();
}
private function helpSprayTweenEnd(_arg1:TweenEvent){
SoundsManager.playSound("_GameMouseOver_");
soundTimer = new Timer(300, 0);
soundTimer.addEventListener(TimerEvent.TIMER, helpSpraySound);
soundTimer.start();
helpSoundFunction = helpSpraySound;
mouseTweenX.removeEventListener(TweenEvent.MOTION_FINISH, helpSprayTweenEnd);
mouseTweenX = null;
mouseTweenY = null;
animal.clearBtnFilters();
helpAnimal = animal.outputHelpSprayAnimal();
animal.showHelpSprayMovie(help.sprayMovieX, help.sprayMovieY, help.sprayMovieScale);
animal.animalGlowFilter(animal.helpMovie);
_mouse_.gotoAndStop(2);
timer = new Timer(1300, 0);
timer.addEventListener(TimerEvent.TIMER, startHelpSpray);
helpTimerFunction = startHelpSpray;
timer.start();
}
private function startHelp(_arg1:Event){
if (movingFlag == false){
startHelpMain(false);
};
}
private function helpRepealTweenEnd(_arg1:TweenEvent){
SoundsManager.playSound("_GameMouseOver_");
repeal._repealBtn_.visible = false;
helprepealMovie = new _RepealMovie_();
animal._animalBtnMC_.addChild(helprepealMovie);
helprepealMovie.x = (help.repealMovieX - 20);
helprepealMovie.y = (help.repealMovieY - 24);
helprepealMovie.scaleX = 0.8;
helprepealMovie.scaleY = 0.8;
mouseTweenX.removeEventListener(TweenEvent.MOTION_FINISH, helpRepealTweenEnd);
mouseTweenX = null;
mouseTweenY = null;
timer = new Timer(1000, 0);
timer.addEventListener(TimerEvent.TIMER, helpRepealOBJ);
helpTimerFunction = helpRepealOBJ;
timer.start();
}
private function helpRepealAll(){
var _local1:int;
var _local2:int;
var _local3:int;
if (helpAutoEnd == true){
SoundsManager.playSound("_Elephant_S_");
};
_local1 = _helpShowLayer_.numChildren;
_local2 = 0;
while (_local2 < (_local1 - 1)) {
_helpShowLayer_.removeChildAt((_helpShowLayer_.numChildren - 1));
_local2++;
};
_local1 = _operateLayer_.numChildren;
_local3 = 0;
while (_local3 < (_local1 - 2)) {
if (helpAutoEnd == false){
_operateLayer_.removeChildAt((_operateLayer_.numChildren - 1));
};
_local3++;
};
if (helpAutoEnd == true){
timer = new Timer(2500, 0);
timer.addEventListener(TimerEvent.TIMER, endHelp);
helpTimerFunction = endHelp;
timer.start();
};
}
private function back(){
if (helpBackFlag == true){
PARENT.dispatchEvent(new Event("delMain", true));
};
}
private function initMain(_arg1:MovieClip){
PARENT = _arg1;
initElement();
initEvent();
initProperty();
getHelpInformation();
chooseTheAnimalMain();
}
private function startHelpRepealObj(_arg1:TimerEvent){
_mouse_.parent.removeChild(_mouse_);
_mouse_ = null;
_mouse_ = new _Mouse_();
PARENT.addChild(_mouse_);
_mouse_.gotoAndStop(1);
_mouse_.x = (helpXTrackArr[(helpXTrackArr.length - 1)] + 99);
_mouse_.y = (helpYTrackArr[(helpYTrackArr.length - 1)] + 23.6);
timer.removeEventListener(TimerEvent.TIMER, startHelpRepealObj);
timer = null;
mouseTweenX = new Tween(_mouse_, "x", Regular.easeOut, _mouse_.x, help.repealX, 1, true);
mouseTweenY = new Tween(_mouse_, "y", Regular.easeOut, _mouse_.y, help.repealY, 1, true);
mouseTweenX.addEventListener(TweenEvent.MOTION_FINISH, helpRepealTweenEnd);
helpTweenFunction = helpRepealTweenEnd;
}
private function fadeOutSprayMain(_arg1:MovieClip){
if (delAlphaTween2 == null){
delAlphaTween2 = new Tween(_arg1, "alpha", Regular.easeOut, _arg1.alpha, 0, 0.2, true);
delScaleXTween = new Tween(_arg1, "scaleX", Regular.easeOut, _arg1.scaleX, 1.5, 0.2, true);
delScaleYTween = new Tween(_arg1, "scaleY", Regular.easeOut, _arg1.scaleY, 1.5, 0.2, true);
delAlphaTween2.addEventListener(TweenEvent.MOTION_FINISH, repealOperate);
};
}
private function getHelpInformation(){
helpAnimal = animal.outputHelpAnimal();
helpActionAnimal = animal.outputHelpActionAnimal();
helpXTrackArr = help.animalXArr;
helpYTrackArr = help.animalYArr;
}
private function mouseIsNotEnabled(_arg1:Event){
mouseControl._mouse_.gotoAndStop(3);
}
private function endMoving(_arg1:TweenEvent){
endMove();
}
private function drawObj(){
rectSole = new Rectangle(0, 0, _bg_.width, _bg_.height);
bmpTool.cutoutBmp(_soleLayer_, _soleLayer_, rectSole);
rectSole = null;
}
private function repealAll(_arg1:Event){
SoundsManager.stopMusic();
repeal.showRepealMC(_operateLayer_);
repealAllMain();
}
private function helpTracking(_arg1:Event){
moving.moving(_mouse_, false);
_mouse_.gotoAndStop(1);
if (helpLoopCount == helpLoopSum){
_main_.removeEventListener(Event.ENTER_FRAME, helpTracking);
_main_.removeEventListener("getSpeed", getSpeed);
helpTrackFlag = false;
_mouse_.gotoAndStop(1);
helpLoopCount = 1;
_operateLayer_.graphics.clear();
moving.getSpeed(helpXTrackArr[(helpLoopCount - 1)], helpYTrackArr[(helpLoopCount - 1)], helpXTrackArr[helpLoopCount], helpYTrackArr[helpLoopCount]);
helpLoopCount++;
helpAnimalStartMoving();
};
}
public function startHelpMain(_arg1:Boolean){
trace("help");
helpBackFlag = _arg1;
mouseControl.delEvent();
mouseControl.delMouse();
helpFlag = true;
_main_.mouseChildren = false;
bmpTool.hideBmp(_soleLayer_);
animal.clearBtnFilters();
pencilTool.clearBtnFilters();
currentlyBGNum = BG.intoBgNum();
trace(("currentlyBGNum === " + currentlyBGNum));
help.getAnimalBtnY(animal.outPutBtnMCY());
_mouse_ = new _Mouse_();
PARENT.addChild(_mouse_);
_mouse_.gotoAndStop(1);
_mouse_.x = (640 / 2);
_mouse_.y = (480 / 2);
mouseTweenX = new Tween(_mouse_, "x", Regular.easeOut, _mouse_.x, help.animalX, 1, true);
mouseTweenY = new Tween(_mouse_, "y", Regular.easeOut, _mouse_.y, help.animalY, 1, true);
mouseTweenX.addEventListener(TweenEvent.MOTION_FINISH, helpAnimalTweenEnd);
helpTweenFunction = helpAnimalTweenEnd;
PARENT.stage.addEventListener(MouseEvent.MOUSE_UP, stageClick);
}
private function initProperty(){
showMain();
animalType = 0;
trackFlag = false;
movingFlag = false;
loopCount = 1;
loopSum = 0;
moveSum = 36;
color = 16663877;
operateType = 0;
sprayType = 1;
pencilType = 0;
pencilFlag = false;
printWidth = 516;
printHeight = 349;
helpFlag = false;
helpTrackFlag = false;
helpLoopCount = 1;
helpLoopSum = 0;
helpBGNum = 1;
helpSprayCount = 0;
helpRepealCount = 1;
helpBackFlag = false;
helpAutoEnd = true;
soleDelCount = 0;
sprayDelCount = 0;
curveLineDelCount = 0;
pencilDelCount = 0;
logoMC.gotoAndStop(Language.frame_logo);
}
private function stageClick(_arg1:MouseEvent){
helpAutoEnd = false;
endHelpMain();
}
private function fadeOutSole(_arg1:Event){
if ((((movingFlag == true)) && ((animalType == 1)))){
endMove();
} else {
if ((((((animalType == 4)) || ((animalType == 5)))) && ((movingFlag == true)))){
endMove();
};
};
drawTool.showCurveLine();
pencilTool.showPencilArr();
sole.showSoleArr();
spray.showSpray();
delBmp();
switch (repeal.repealOperateType()){
case 1:
if ((movingFlag == true)){
soleDelCount = (soleDelCount + 1);
} else {
soleDelCount = (soleDelCount + 2);
};
fadeOutSoleMain(sole.soleArr[(sole.soleArr.length - soleDelCount)]);
break;
case 2:
sprayDelCount = (sprayDelCount + 2);
fadeOutSprayMain(spray.sprayArr[(spray.sprayArr.length - sprayDelCount)]);
break;
case 3:
pencilDelCount = (pencilDelCount + 2);
fadeOutPencilMain(pencilTool.pencilArr[(pencilTool.pencilArr.length - pencilDelCount)]);
break;
case ((4) || (5)):
if ((movingFlag == true)){
curveLineDelCount = (curveLineDelCount + 1);
} else {
curveLineDelCount = (curveLineDelCount + 2);
};
fadeOutCurveLineMain(drawTool.curveLineArr[(drawTool.curveLineArr.length - curveLineDelCount)]);
break;
};
}
private function helpPencilTweenStart(_arg1:TimerEvent){
timer.removeEventListener(TimerEvent.TIMER, helpPencilTweenStart);
timer = null;
mouseTweenX = new Tween(_mouse_, "x", Regular.easeOut, _mouse_.x, help.pencilX, 1, true);
mouseTweenY = new Tween(_mouse_, "y", Regular.easeOut, _mouse_.y, help.pencilY, 1, true);
mouseTweenX.addEventListener(TweenEvent.MOTION_FINISH, helpPencilTweenEnd);
helpTweenFunction = helpPencilTweenEnd;
}
private function fadeOutPencilMain(_arg1:MovieClip){
if (delAlphaTween3 == null){
delAlphaTween3 = new Tween(_arg1, "alpha", Regular.easeOut, _arg1.alpha, 0, 0.2, true);
delYTween3 = new Tween(_arg1, "y", Regular.easeOut, _arg1.y, (_arg1.y + 20), 0.2, true);
delAlphaTween3.addEventListener(TweenEvent.MOTION_FINISH, repealOperate);
};
}
private function helpBG(_arg1:TimerEvent){
helpBGNum++;
if (helpBGNum <= 6){
BG.chooseBGMian();
};
if (helpBGNum > 6){
BG.delBgBtnFilters();
timer.removeEventListener(TimerEvent.TIMER, helpBG);
timer = null;
helpBGNum = 1;
helpLoopSum = helpXTrackArr.length;
_mouse_.gotoAndStop(8);
mouseTweenX = new Tween(_mouse_, "x", Regular.easeOut, _mouse_.x, help.sprayX, 1, true);
mouseTweenY = new Tween(_mouse_, "y", Regular.easeOut, _mouse_.y, help.sprayY, 1, true);
mouseTweenX.addEventListener(TweenEvent.MOTION_FINISH, helpSprayTweenEnd);
helpTweenFunction = helpSprayTweenEnd;
};
}
private function delEvent(){
_main_.removeEventListener("chooseTheAnimal", chooseTheAnimal);
_main_.removeEventListener("changeColor", changeColor);
_main_.removeEventListener("repealOperate", repealOperate);
_main_.removeEventListener("choosePencil", choosePencil);
_main_.removeEventListener("repealAll", repealAll);
_main_.removeEventListener("printing", printing);
_main_.removeEventListener("startHelp", startHelp);
_main_.removeEventListener("mouseIsOver", mouseIsOver);
_main_.removeEventListener("mouseIsOut", mouseIsOut);
_main_.removeEventListener("mouseIsNotEnabled", mouseIsNotEnabled);
_main_.removeEventListener("changeSprayType", changeSprayType);
_operateLayer_.removeEventListener(MouseEvent.MOUSE_DOWN, mouseIsDown);
_operateLayer_.removeEventListener("startMove", startMove);
}
private function startMoving(){
_main_.mouseChildren = true;
if (animalType == 1){
moving.moveSum = 0;
sole.showSole(_soleLayer_, chooseAnimal.name, actionAnimal.x, actionAnimal.y, moving.outPutAngle(), color, helpFlag);
};
_operateLayer_.addEventListener(Event.ENTER_FRAME, animalMoving);
_operateLayer_.addEventListener("getSpeed", getSpeed);
SoundsManager.playMusic("_WalkLoop_");
sound = animal.sound;
}
private function startMove(_arg1:Event){
movingFlag = true;
if (actionAnimal.visible == false){
actionAnimal.visible = true;
};
animal.getMovingFlag(movingFlag);
pencilTool.getMovingFlag(movingFlag);
help.getMovingFlag(movingFlag);
moving.getCoord(actionAnimal, xTrackArr[0], yTrackArr[0]);
loopSum = xTrackArr.length;
moving.getSpeed(xTrackArr[(loopCount - 1)], yTrackArr[(loopCount - 1)], xTrackArr[loopCount], yTrackArr[loopCount]);
if ((((animalType == 4)) || ((animalType == 5)))){
drawTool.startDrawCurveLine(_soleLayer_, xTrackArr[(loopCount - 1)], yTrackArr[(loopCount - 1)], color);
curveLineType = moving.curveLineType;
previousCurveLineStartX = xTrackArr[(loopCount - 1)];
previousCurveLineStartY = yTrackArr[(loopCount - 1)];
};
loopCount++;
startMoving();
}
private function animalMovingMian(){
moving.moving(actionAnimal, true);
if ((((moveSum <= moving.moveSum)) && ((animalType == 1)))){
moving.moveSum = 0;
sole.showSole(_soleLayer_, chooseAnimal.name, actionAnimal.x, actionAnimal.y, moving.outPutAngle(), color, helpFlag);
} else {
if ((((((animalType == 4)) || ((animalType == 5)))) && ((moving.moveSum >= (moveSum * 2))))){
moving.moveSum = 0;
if (xTrackArr[(loopCount - 1)] != "end"){
if (((!((previousCurveLineStartX == actionAnimal.x))) || (!((previousCurveLineStartY == actionAnimal.y))))){
moving.getAnchor(previousCurveLineStartX, previousCurveLineStartY, actionAnimal.x, actionAnimal.y, curveLineType);
previousCurveLineStartX = actionAnimal.x;
previousCurveLineStartY = actionAnimal.y;
drawTool.drawCurveLine(moving.anchorX, moving.anchorY, actionAnimal.x, actionAnimal.y);
curveLineType = moving.curveLineType;
};
};
};
};
if ((((loopCount >= loopSum)) || ((((((((((actionAnimal.x < 0)) || ((actionAnimal.y > _operateLayer_.height)))) || ((actionAnimal.x > _operateLayer_.width)))) || ((actionAnimal.y < 0)))) && ((loopCount >= loopSum)))))){
SoundsManager.stopMusic();
_operateLayer_.removeEventListener(Event.ENTER_FRAME, animalMoving);
_operateLayer_.removeEventListener("getSpeed", getSpeed);
actionAnimalAlphaTween = new Tween(actionAnimal, "alpha", Regular.easeOut, actionAnimal.alpha, 0, 0.4, true);
actionAnimalAlphaTween.addEventListener(TweenEvent.MOTION_FINISH, endMoving);
SoundsManager.playSound(sound);
};
}
private function initEvent(){
_operateLayer_.addEventListener(MouseEvent.MOUSE_DOWN, mouseIsDown);
_operateLayer_.addEventListener("startMove", startMove);
_hotArea_.addEventListener(MouseEvent.CLICK, clickLink);
}
private function endMove(){
actionAnimalAlphaTween.removeEventListener(TweenEvent.MOTION_FINISH, endMoving);
actionAnimalAlphaTween = null;
actionAnimal.alpha = 100;
SoundsManager.stopMusic();
_operateLayer_.removeEventListener(Event.ENTER_FRAME, animalMoving);
_operateLayer_.removeEventListener("getSpeed", getSpeed);
animal.hideActionAnimal(actionAnimal);
clearTrackArray();
mouseControl._mouse_.gotoAndStop(1);
if (sole.soleMC != null){
repeal.noteInformation(operateType);
} else {
if (drawTool.curveMC != null){
repeal.noteInformation(operateType);
};
};
revertProperty();
animal.getMovingFlag(movingFlag);
pencilTool.getMovingFlag(movingFlag);
help.getMovingFlag(movingFlag);
if (animalType == 1){
sole.pushEndFlag(helpFlag);
mouseControl._mouse_.gotoAndStop(animal.animalDownFrame);
} else {
if ((((animalType == 4)) || ((animalType == 5)))){
drawTool.pushEndFlag(helpFlag);
mouseControl._mouse_.gotoAndStop(animal.animalDownFrame);
};
};
drawBmp();
}
private function showActionAnimal(){
pencilType = 0;
animal.showActionAnimal(_operateLayer_, actionAnimal, -200, 0);
animalType = animal.animalType;
pencilTool.clearBtnFilters();
}
private function animalMoving(_arg1:Event){
animalMovingMian();
}
private function helpAnimalMoving(_arg1:Event){
moving.moving(helpActionAnimal, true);
if ((((moveSum <= moving.moveSum)) && ((helpFlag == true)))){
moving.moveSum = 0;
sole.showSole(_helpShowLayer_, "CatBtn", helpActionAnimal.x, helpActionAnimal.y, moving.outPutAngle(), color, helpFlag);
};
if (helpLoopCount == helpLoopSum){
SoundsManager.stopMusic();
sole.pushEndFlag(helpFlag);
_main_.removeEventListener(Event.ENTER_FRAME, helpAnimalMoving);
_main_.removeEventListener("getSpeed", getSpeed);
helpLoopCount = 1;
_mouse_.gotoAndStop(8);
helpActionAnimalAlphaTween = new Tween(helpActionAnimal, "alpha", Regular.easeOut, helpActionAnimal.alpha, 0, 0.4, true);
SoundsManager.playSound("_Cat_S_");
timer = new Timer(1300, 0);
timer.addEventListener(TimerEvent.TIMER, helpBGTweenStart);
helpTimerFunction = helpBGTweenStart;
timer.start();
};
}
private function chooseTheAnimal(_arg1:Event){
chooseTheAnimalMain();
}
private function delBmp(){
bmpTool.delBmp(_soleLayer_);
}
private function fadeOutSoleMain(_arg1:MovieClip){
if ((((delAlphaTween1 == null)) && (!((_arg1 == null))))){
delAlphaTween1 = new Tween(_arg1, "alpha", Regular.easeOut, _arg1.alpha, 0, 0.2, true);
delYTween1 = new Tween(_arg1, "y", Regular.easeOut, _arg1.y, (_arg1.y + 20), 0.2, true);
delAlphaTween1.addEventListener(TweenEvent.MOTION_FINISH, repealOperate);
};
}
private function endGetTrack(_arg1:MouseEvent){
if ((((movingFlag == false)) && ((trackFlag == true)))){
_operateLayer_.removeEventListener(MouseEvent.MOUSE_MOVE, getTrack);
_operateLayer_.stage.removeEventListener(MouseEvent.MOUSE_UP, endGetTrack);
trackFlag = false;
trackTool.endGetTrack();
drawTool.clearDraw();
getTrackArray();
if ((((xTrackArr.length > 1)) && (!((actionAnimal == null))))){
trackTool.startMove(_operateLayer_);
if (animalType == 1){
operateType = sole.operateType;
} else {
if ((((animalType == 4)) || ((animalType == 5)))){
operateType = drawTool.operateType;
};
};
} else {
actionAnimal.visible = false;
actionAnimal.alpha = 0;
clearTrackArray();
mouseControl._mouse_.gotoAndStop(animal.animalDownFrame);
};
};
}
private function startHelpRepealAll(_arg1:TimerEvent){
_mouse_.gotoAndStop(1);
timer.removeEventListener(TimerEvent.TIMER, startHelpRepealAll);
timer = null;
mouseTweenX = new Tween(_mouse_, "x", Regular.easeOut, _mouse_.x, help.repealAllX, 1, true);
mouseTweenY = new Tween(_mouse_, "y", Regular.easeOut, _mouse_.y, help.repealAllY, 1, true);
mouseTweenX.addEventListener(TweenEvent.MOTION_FINISH, helpRepealAllTweenEnd);
helpTweenFunction = helpRepealAllTweenEnd;
}
private function getTrack(_arg1:MouseEvent){
if (trackFlag == true){
mouseControl._mouse_.gotoAndStop(1);
trackTool.getTrack(_operateLayer_.mouseX, _operateLayer_.mouseY);
drawTool.drawLine(_operateLayer_.mouseX, _operateLayer_.mouseY);
};
}
private function changeColor(_arg1:Event){
color = colorTool.getColor();
if ((((animalType == 4)) || ((animalType == 5)))){
drawTool.setCurveLineColor(color);
} else {
if ((((pencilType == 1)) || ((pencilType == 2)))){
pencilTool.setPencilColor(color);
};
};
}
private function helpPencilMoving(_arg1:Event){
moving.moving(_mouse_, false);
pencilTool.Pencildrawing(_mouse_.x, _mouse_.y);
if (helpLoopCount == helpLoopSum){
helpLoopCount = 1;
_main_.removeEventListener(Event.ENTER_FRAME, helpPencilMoving);
_main_.removeEventListener("getSpeed", getSpeed);
_mouse_.gotoAndStop(1);
timer = new Timer(1300, 0);
timer.addEventListener(TimerEvent.TIMER, startHelpRepealObj);
helpTimerFunction = startHelpRepealObj;
timer.start();
};
}
private function helpMouseUp(_arg1:TimerEvent){
mouseTimer.removeEventListener(TimerEvent.TIMER, helpMouseUp);
mouseTimer = null;
if (_mouse_ != null){
_mouse_.gotoAndStop(1);
};
}
private function drawBmp(){
drawTool.showCurveLine();
pencilTool.showPencilArr();
sole.showSoleArr();
spray.showSpray();
delBmp();
drawObj();
drawTool.hideCurveLine();
pencilTool.hidePencilArr();
sole.hideSoleArr();
spray.hideSpray();
}
private function startHelpPencil(_arg1:TimerEvent){
animal.delHelpMovie();
animal.clearBtnFilters();
pencilTool.pencilGlowFilter();
_mouse_.gotoAndStop(1);
timer.removeEventListener(TimerEvent.TIMER, startHelpPencil);
timer = null;
helpXTrackArr = help.pencilXArr;
helpYTrackArr = help.pencilYArr;
mouseTweenX = new Tween(_mouse_, "x", Regular.easeOut, _mouse_.x, (helpXTrackArr[0] + 99), 1, true);
mouseTweenY = new Tween(_mouse_, "y", Regular.easeOut, _mouse_.y, (helpYTrackArr[0] + 23.6), 1, true);
mouseTweenX.addEventListener(TweenEvent.MOTION_FINISH, helpPencil);
helpTweenFunction = helpPencil;
}
private function helpPencil(_arg1:TweenEvent){
mouseTweenX.removeEventListener(TweenEvent.MOTION_FINISH, helpPencil);
mouseTweenX = null;
mouseTweenY = null;
helpLoopSum = helpXTrackArr.length;
_mouse_.parent.removeChild(_mouse_);
_mouse_ = null;
_mouse_ = new _Mouse_();
_operateLayer_.addChild(_mouse_);
_mouse_.gotoAndStop(1);
moving.getCoord(_mouse_, helpXTrackArr[0], helpYTrackArr[0]);
pencilTool.createPencilMC(_helpShowLayer_, _mouse_.x, _mouse_.y, color);
moving.getSpeed(helpXTrackArr[(helpLoopCount - 1)], helpYTrackArr[(helpLoopCount - 1)], helpXTrackArr[helpLoopCount], helpYTrackArr[helpLoopCount]);
helpLoopCount++;
_main_.addEventListener(Event.ENTER_FRAME, helpPencilMoving);
helpMovingFunction = helpPencilMoving;
_main_.addEventListener("getSpeed", getSpeed);
}
private function changeSprayType(_arg1:Event){
sprayType = spray.changeSprayType();
}
private function clickLink(_arg1:MouseEvent){
Language.onCLick1();
}
private function mouseIsUp(_arg1:MouseEvent){
mouseControl._mouse_.gotoAndStop(1);
_operateLayer_.stage.removeEventListener(MouseEvent.MOUSE_UP, mouseIsUp);
}
private function getTrackArray(){
xTrackArr = trackTool.xTrackArr;
yTrackArr = trackTool.yTrackArr;
}
private function initElement(){
_main_ = new _Main_();
PARENT.addChild(_main_);
_mainBG_ = (_main_.getChildByName("MainBG") as MovieClip);
_operateLayer_ = (_mainBG_.getChildByName("OperateLayer") as MovieClip);
_helpShowLayer_ = (_mainBG_.getChildByName("HelpShowLayer") as MovieClip);
_printLayer_ = (_mainBG_.getChildByName("PrintLayer") as MovieClip);
_soleLayer_ = (_printLayer_.getChildByName("SoleLayer") as MovieClip);
_sprayLayer_ = (_mainBG_.getChildByName("SprayLayer") as MovieClip);
_bg_ = (_printLayer_.getChildByName("Background") as MovieClip);
_pushpin_ = (_bg_.getChildByName("Pushpin") as MovieClip);
_toner_ = (_main_.getChildByName("Toner") as MovieClip);
logoMC = (_main_.getChildByName("LogoMC") as MovieClip);
_hotArea_ = (logoMC.getChildByName("hitarea_url1") as SimpleButton);
}
private function endPencil(_arg1:MouseEvent){
_operateLayer_.stage.removeEventListener(MouseEvent.MOUSE_UP, endPencil);
_operateLayer_.removeEventListener(MouseEvent.MOUSE_MOVE, pencilDrawing);
pencilFlag = false;
operateType = pencilTool.operateType;
repeal.noteInformation(operateType);
pencilTool.endPencilDraw(_soleLayer_, helpFlag);
drawBmp();
}
private function fadeOutCurveLineMain(_arg1:MovieClip){
if (delAlphaTween4 == null){
delAlphaTween4 = new Tween(_arg1, "alpha", Regular.easeOut, _arg1.alpha, 0, 0.2, true);
delYTween4 = new Tween(_arg1, "y", Regular.easeOut, _arg1.y, (_arg1.y + 20), 0.2, true);
delAlphaTween4.addEventListener(TweenEvent.MOTION_FINISH, repealOperate);
};
}
private function helpBGTweenEnd(_arg1:TweenEvent){
SoundsManager.playSound("_GameMouseOver_");
BG.showBgBtnFilters();
mouseTweenX.removeEventListener(TweenEvent.MOTION_FINISH, helpBGTweenEnd);
mouseTweenX = null;
mouseTweenY = null;
_mouse_.gotoAndStop(8);
timer = new Timer(1000, 0);
timer.addEventListener(TimerEvent.TIMER, helpBG);
helpTimerFunction = helpBG;
timer.start();
}
private function startHelpSpray(_arg1:TimerEvent){
_mouse_.gotoAndStop(1);
if (helpSprayCount == 0){
animal.delHelpMovie();
animal.animalGlowFilter(helpAnimal);
};
mouseTweenX = new Tween(_mouse_, "x", Regular.easeOut, _mouse_.x, help.sprayXArr[helpSprayCount], 1, true);
mouseTweenY = new Tween(_mouse_, "y", Regular.easeOut, _mouse_.y, help.sprayYArr[helpSprayCount], 1, true);
mouseTweenX.addEventListener(TweenEvent.MOTION_FINISH, helpSpray);
helpTweenFunction = helpSpray;
helpSprayCount++;
}
private function revertProperty(){
moving.moveSum = 0;
movingFlag = false;
loopCount = 1;
operateType = 0;
}
private function helpSpray(_arg1:TweenEvent){
_mouse_.gotoAndStop(1);
SoundsManager.playSound("_Whale_S_");
spray.drawSpray(_helpShowLayer_, _sprayLayer_, (help.sprayXArr[(helpSprayCount - 1)] - 99), (help.sprayYArr[(helpSprayCount - 1)] - 23.6), sprayType, color, helpFlag);
if (helpSprayCount == 5){
helpSprayCount = 0;
timer.removeEventListener(TimerEvent.TIMER, startHelpSpray);
timer = null;
mouseTweenX.removeEventListener(TweenEvent.MOTION_FINISH, helpSpray);
mouseTweenX = null;
mouseTweenY = null;
timer = new Timer(1300, 0);
timer.addEventListener(TimerEvent.TIMER, helpPencilTweenStart);
helpTimerFunction = helpPencilTweenStart;
timer.start();
};
}
}
}//package Gamefile
Section 33
//MathTool (Gamefile.MathTool)
package Gamefile {
public class MathTool {
public function MathTool(){
initMathTool();
}
private function initMathTool(){
}
public function randomInt(_arg1:int, _arg2:int):int{
return (((Math.random() * ((_arg2 - _arg1) + 1)) + _arg1));
}
public function randomNumber(_arg1:Number, _arg2:Number):Number{
return (((Math.random() * ((_arg2 - _arg1) + 1)) + _arg1));
}
}
}//package Gamefile
Section 34
//MouseControl (Gamefile.MouseControl)
package Gamefile {
import flash.display.*;
import flash.events.*;
import flash.ui.*;
public class MouseControl {
private var PARENT:MovieClip;
public var _mouse_:MovieClip;
public function MouseControl(_arg1:MovieClip){
initMouseControl(_arg1);
}
private function mouseIsMove(_arg1:MouseEvent){
_mouse_.x = PARENT.mouseX;
_mouse_.y = PARENT.mouseY;
}
private function mouseIsUp(_arg1:MouseEvent){
_mouse_.gotoAndStop(1);
}
public function delMouseControl(){
delEvent();
PARENT.removeChild(_mouse_);
}
public function mouseShow(){
_mouse_.visible = true;
}
private function initProperty(){
Mouse.hide();
_mouse_.mouseEnabled = false;
_mouse_.mouseChildren = false;
_mouse_.visible = false;
_mouse_.gotoAndStop(1);
}
public function initMouseControl(_arg1:MovieClip){
PARENT = _arg1;
initElement();
initEvent();
initProperty();
}
public function createMouse(_arg1:MovieClip, _arg2:int, _arg3:int){
_mouse_ = new _Mouse_();
_arg1.addChild(_mouse_);
_mouse_.x = _arg2;
_mouse_.y = _arg3;
}
public function initEvent(){
PARENT.addEventListener(MouseEvent.MOUSE_MOVE, mouseIsMove);
PARENT.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
PARENT.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
}
private function initElement(){
_mouse_ = new _Mouse_();
PARENT.addChild(_mouse_);
}
public function mouseHide(){
_mouse_.visible = false;
}
public function delEvent(){
PARENT.removeEventListener(MouseEvent.MOUSE_MOVE, mouseIsMove);
PARENT.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
}
private function mouseIsDown(_arg1:MouseEvent){
_mouse_.gotoAndStop(2);
}
public function delMouse(){
_mouse_.parent.removeChild(_mouse_);
}
private function mouseIsOver(_arg1:MouseEvent){
mouseShow();
}
private function mouseIsOut(_arg1:MouseEvent){
mouseHide();
}
}
}//package Gamefile
Section 35
//Move (Gamefile.Move)
package Gamefile {
import flash.display.*;
import flash.events.*;
public class Move {
private var mcScaleX:int;
private var lineCenterY:Number;
private var lineCenterX:Number;
private var anchorAngle:Number;
private var radian:Number;
private var xSpeed:Number;
private var coefficient:int;
public var startX:int;
public var startY:int;
private var anchorRadian:Number;
public var anchorX:Number;
public var anchorY:Number;
private var speed:int;
public var moveSum:Number;
private var K:Number;
private var ySpeed:Number;
private var angle:Number;
public var endX:int;
public var endY:int;
public var curveLineType:int;
private var chooseAnimal:MovieClip;
private var anchorLength:int;
public function Move(){
initMove();
}
private function initProperty(){
speed = 6;
xSpeed = 0;
ySpeed = 0;
radian = 0;
angle = 0;
moveSum = 0;
anchorLength = 26;
coefficient = 1;
curveLineType = 0;
}
public function getSpeed(_arg1:int, _arg2:int, _arg3:int, _arg4:int){
startX = _arg1;
startY = _arg2;
endX = _arg3;
endY = _arg4;
if (startX < endX){
mcScaleX = 1;
if (startY < endY){
radian = Math.atan(((endY - startY) / (endX - startX)));
xSpeed = (Math.cos(radian) * speed);
ySpeed = (Math.sin(radian) * speed);
getAngle();
angle = (90 + angle);
} else {
if (startY > endY){
radian = Math.atan(((startY - endY) / (endX - startX)));
xSpeed = (Math.cos(radian) * speed);
ySpeed = -((Math.sin(radian) * speed));
getAngle();
angle = (90 - angle);
} else {
if (startY == endY){
radian = Math.atan(0);
xSpeed = (Math.cos(radian) * speed);
ySpeed = 0;
angle = 90;
};
};
};
} else {
if (startX > endX){
mcScaleX = -1;
if (startY < endY){
radian = Math.atan(((endY - startY) / (startX - endX)));
xSpeed = -((Math.cos(radian) * speed));
ySpeed = (Math.sin(radian) * speed);
getAngle();
angle = ((180 + 90) - angle);
} else {
if (startY > endY){
radian = Math.atan(((startY - endY) / (startX - endX)));
xSpeed = -((Math.cos(radian) * speed));
ySpeed = -((Math.sin(radian) * speed));
getAngle();
angle = -((90 - angle));
} else {
if (startY == endY){
radian = Math.atan(0);
xSpeed = -((Math.cos(radian) * speed));
ySpeed = 0;
angle = -90;
};
};
};
} else {
if (startX == endX){
if (startY < endY){
xSpeed = 0;
ySpeed = speed;
angle = 180;
} else {
if (startY > endY){
xSpeed = 0;
ySpeed = -(speed);
angle = 0;
};
};
};
};
};
}
public function initMove(){
initProperty();
}
private function getAngle(){
angle = (radian * (180 / Math.PI));
}
public function getAnchor(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int){
if (_arg1 < _arg3){
if (_arg4 < _arg2){
curveLineType = 1;
K = Math.atan(((_arg2 - _arg4) / (_arg3 - _arg1)));
anchorAngle = (90 - (K * (180 / Math.PI)));
anchorRadian = (anchorAngle / (180 / Math.PI));
anchorX = (Math.cos(anchorRadian) * anchorLength);
anchorY = (Math.sin(anchorRadian) * anchorLength);
lineCenterX = (_arg1 + Math.abs(((_arg1 - _arg3) / 2)));
lineCenterY = (_arg2 - Math.abs(((_arg2 - _arg4) / 2)));
if ((((((_arg5 == 4)) || ((_arg5 == 5)))) || ((_arg5 == 8)))){
coefficient = 1;
anchorX = (lineCenterX + (anchorX * coefficient));
anchorY = (lineCenterY + (anchorY * coefficient));
} else {
if ((((((_arg5 == 2)) || ((_arg5 == 6)))) || ((_arg5 == 7)))){
coefficient = -1;
anchorX = (lineCenterX + (anchorX * coefficient));
anchorY = (lineCenterY + (anchorY * coefficient));
} else {
anchorX = (lineCenterX + (anchorX * coefficient));
anchorY = (lineCenterY + (anchorY * coefficient));
};
};
} else {
if (_arg4 > _arg2){
curveLineType = 4;
K = Math.atan(((_arg4 - _arg2) / (_arg3 - _arg1)));
anchorAngle = (90 - (K * (180 / Math.PI)));
anchorRadian = (anchorAngle / (180 / Math.PI));
anchorX = (Math.cos(anchorRadian) * anchorLength);
anchorY = (Math.sin(anchorRadian) * anchorLength);
lineCenterX = (_arg1 + Math.abs(((_arg1 - _arg3) / 2)));
lineCenterY = (_arg2 + Math.abs(((_arg2 - _arg4) / 2)));
if ((((((_arg5 == 1)) || ((_arg5 == 5)))) || ((_arg5 == 7)))){
coefficient = 1;
anchorX = (lineCenterX + (anchorX * coefficient));
anchorY = (lineCenterY - (anchorY * coefficient));
} else {
if ((((((_arg5 == 3)) || ((_arg5 == 6)))) || ((_arg5 == 8)))){
coefficient = -1;
anchorX = (lineCenterX + (anchorX * coefficient));
anchorY = (lineCenterY - (anchorY * coefficient));
} else {
anchorX = (lineCenterX + (anchorX * coefficient));
anchorY = (lineCenterY - (anchorY * coefficient));
};
};
} else {
if (_arg2 == _arg4){
curveLineType = 5;
anchorX = 0;
anchorY = anchorLength;
lineCenterX = (_arg1 + Math.abs(((_arg1 - _arg3) / 2)));
lineCenterY = _arg2;
if ((((((_arg5 == 1)) || ((_arg5 == 2)))) || ((_arg5 == 7)))){
coefficient = -1;
anchorX = (anchorX + lineCenterX);
anchorY = ((anchorY * coefficient) + lineCenterY);
} else {
if ((((((_arg5 == 3)) || ((_arg5 == 4)))) || ((_arg5 == 8)))){
coefficient = 1;
anchorX = (anchorX + lineCenterX);
anchorY = ((anchorY * coefficient) + lineCenterY);
} else {
anchorX = (anchorX + lineCenterX);
anchorY = ((anchorY * coefficient) + lineCenterY);
};
};
};
};
};
} else {
if (_arg1 > _arg3){
if (_arg4 < _arg2){
curveLineType = 2;
K = Math.atan(((_arg2 - _arg4) / (_arg1 - _arg3)));
anchorAngle = (90 - (K * (180 / Math.PI)));
anchorRadian = (anchorAngle / (180 / Math.PI));
anchorX = (Math.cos(anchorRadian) * anchorLength);
anchorY = (Math.sin(anchorRadian) * anchorLength);
lineCenterX = (_arg3 + Math.abs(((_arg1 - _arg3) / 2)));
lineCenterY = (_arg4 + Math.abs(((_arg2 - _arg4) / 2)));
if ((((((_arg5 == 1)) || ((_arg5 == 5)))) || ((_arg5 == 7)))){
coefficient = 1;
anchorX = (lineCenterX + (anchorX * coefficient));
anchorY = (lineCenterY - (anchorY * coefficient));
} else {
if ((((((_arg5 == 3)) || ((_arg5 == 6)))) || ((_arg5 == 8)))){
coefficient = -1;
anchorX = (lineCenterX + (anchorX * coefficient));
anchorY = (lineCenterY - (anchorY * coefficient));
} else {
anchorX = (lineCenterX + (anchorX * coefficient));
anchorY = (lineCenterY - (anchorY * coefficient));
};
};
} else {
if (_arg4 > _arg2){
curveLineType = 3;
K = Math.atan(((_arg4 - _arg2) / (_arg1 - _arg3)));
anchorAngle = (90 - (K * (180 / Math.PI)));
anchorRadian = (anchorAngle / (180 / Math.PI));
anchorX = (Math.cos(anchorRadian) * anchorLength);
anchorY = (Math.sin(anchorRadian) * anchorLength);
lineCenterX = (_arg3 + Math.abs(((_arg1 - _arg3) / 2)));
lineCenterY = (_arg4 - Math.abs(((_arg2 - _arg4) / 2)));
if ((((((_arg5 == 4)) || ((_arg5 == 5)))) || ((_arg5 == 8)))){
coefficient = -1;
anchorX = (lineCenterX - (anchorX * coefficient));
anchorY = (lineCenterY - (anchorY * coefficient));
} else {
if ((((((_arg5 == 2)) || ((_arg5 == 6)))) || ((_arg5 == 7)))){
coefficient = 1;
anchorX = (lineCenterX - (anchorX * coefficient));
anchorY = (lineCenterY - (anchorY * coefficient));
} else {
anchorX = (lineCenterX - (anchorX * coefficient));
anchorY = (lineCenterY - (anchorY * coefficient));
};
};
} else {
if (_arg2 == _arg4){
curveLineType = 6;
anchorX = 0;
anchorY = anchorLength;
lineCenterX = (_arg3 + Math.abs(((_arg1 - _arg3) / 2)));
lineCenterY = _arg2;
if ((((((_arg5 == 3)) || ((_arg5 == 4)))) || ((_arg5 == 8)))){
coefficient = 1;
anchorX = (anchorX + lineCenterX);
anchorY = ((anchorY * coefficient) + lineCenterY);
} else {
if ((((((_arg5 == 1)) || ((_arg5 == 2)))) || ((_arg5 == 7)))){
coefficient = -1;
anchorX = (anchorX + lineCenterX);
anchorY = ((anchorY * coefficient) + lineCenterY);
} else {
anchorX = (anchorX + lineCenterX);
anchorY = ((anchorY * coefficient) + lineCenterY);
};
};
};
};
};
} else {
if (_arg1 == _arg3){
anchorX = anchorLength;
anchorY = 0;
if (_arg2 < _arg4){
curveLineType = 7;
curveLineType = 0;
lineCenterY = (Math.abs(((_arg2 - _arg4) / 2)) + _arg2);
lineCenterX = _arg1;
if ((((((_arg5 == 2)) || ((_arg5 == 3)))) || ((_arg5 == 6)))){
coefficient = -1;
anchorX = ((anchorX * coefficient) + lineCenterX);
anchorY = (anchorY + lineCenterY);
} else {
if ((((((_arg5 == 1)) || ((_arg5 == 4)))) || ((_arg5 == 5)))){
coefficient = 1;
anchorX = ((anchorX * coefficient) + lineCenterX);
anchorY = (anchorY + lineCenterY);
} else {
anchorX = (anchorX + lineCenterX);
anchorY = ((anchorY * coefficient) + lineCenterY);
};
};
} else {
if (_arg2 > _arg4){
curveLineType = 8;
curveLineType = 0;
lineCenterY = (Math.abs(((_arg2 - _arg4) / 2)) + _arg4);
lineCenterX = _arg1;
if ((((((_arg5 == 1)) || ((_arg5 == 4)))) || ((_arg5 == 5)))){
coefficient = 1;
anchorX = ((anchorX * coefficient) + lineCenterX);
anchorY = (anchorY + lineCenterY);
} else {
if ((((((_arg5 == 2)) || ((_arg5 == 3)))) || ((_arg5 == 6)))){
coefficient = -1;
anchorX = ((anchorX * coefficient) + lineCenterX);
anchorY = (anchorY + lineCenterY);
} else {
anchorX = (anchorX + lineCenterX);
anchorY = ((anchorY * coefficient) + lineCenterY);
};
};
};
};
};
};
};
coefficient = (coefficient * -1);
}
private function getRadian(_arg1:Number):Number{
var _local2:Number;
_local2 = 0;
_local2 = (angle / (180 / Math.PI));
return (radian);
}
public function getCoord(_arg1:MovieClip, _arg2:int, _arg3:int){
if (_arg1 != null){
_arg1.x = _arg2;
_arg1.y = _arg3;
};
}
public function getActionAnimal(_arg1:MovieClip){
chooseAnimal = _arg1;
}
public function moving(_arg1:MovieClip, _arg2:Boolean){
_arg1.x = (_arg1.x + xSpeed);
_arg1.y = (_arg1.y + ySpeed);
if (_arg2 == true){
_arg1.scaleX = mcScaleX;
};
moveSum = (moveSum + Math.sqrt(((xSpeed * xSpeed) + (ySpeed * ySpeed))));
if (endX >= startX){
if (_arg1.x > endX){
_arg1.x = endX;
_arg1.y = endY;
_arg1.dispatchEvent(new Event("getSpeed", true));
};
} else {
if (endX <= startX){
if (_arg1.x < endX){
_arg1.x = endX;
_arg1.y = endY;
_arg1.dispatchEvent(new Event("getSpeed", true));
};
};
};
if (endX == startX){
if (startY < endY){
if (_arg1.y >= endY){
_arg1.x = endX;
_arg1.y = endY;
_arg1.dispatchEvent(new Event("getSpeed", true));
};
} else {
if (startY > endY){
if (_arg1.y <= endY){
_arg1.x = endX;
_arg1.y = endY;
_arg1.dispatchEvent(new Event("getSpeed", true));
};
};
};
};
}
public function outPutAngle():Number{
return (angle);
}
}
}//package Gamefile
Section 36
//PencilTool (Gamefile.PencilTool)
package Gamefile {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
public class PencilTool {
public const operateType:int = 3;
public var PencilMC:MovieClip;
public var drawFlag:Boolean;
private var pencilColor:uint;
private var movingFlag:Boolean;
public var pencilArr:Array;
private var previousBtn:SimpleButton;
private var pencilBtnFilter:GlowFilter;
private var PARENT:MovieClip;
private var _brushBtn_:SimpleButton;
private var pencilSize:int;
public var pencilType:int;
public function PencilTool(_arg1:MovieClip){
initPencilTool(_arg1);
}
private function choosePencil(_arg1:MouseEvent){
if (movingFlag == false){
SoundsManager.playSound("_GameMouseDown_");
pencilGlowFilter();
pencilType = 2;
PARENT.dispatchEvent(new Event("choosePencil", true));
};
}
private function initProperty(){
pencilBtnFilter = new GlowFilter(0xFFFF00, 1, 10, 10, 10, 1, false, false);
pencilType = 0;
pencilSize = 1;
pencilArr = new Array();
drawFlag = false;
pencilColor = 16737380;
pencilSize = 10;
movingFlag = false;
}
public function delEvent(){
_brushBtn_.removeEventListener(MouseEvent.CLICK, choosePencil);
_brushBtn_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_brushBtn_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
}
private function initElement(){
_brushBtn_ = (PARENT.getChildByName("BrushBtn") as SimpleButton);
}
public function Pencildrawing(_arg1:int, _arg2:int){
PencilMC.graphics.lineTo(_arg1, _arg2);
}
public function pencilGlowFilter(){
_brushBtn_.filters = [pencilBtnFilter];
}
public function getMovingFlag(_arg1:Boolean){
movingFlag = _arg1;
}
public function endPencilDraw(_arg1:MovieClip, _arg2:Boolean){
if (drawFlag == false){
_arg1.removeChild(PencilMC);
} else {
if ((((drawFlag == true)) && ((_arg2 == false)))){
pencilArr.push(PencilMC);
pencilArr.push("end");
PencilMC.y = PencilMC.y;
drawFlag = false;
};
};
}
private function mouseIsOut(_arg1:MouseEvent){
PARENT.dispatchEvent(new Event("mouseIsOut", true));
}
public function setPencilColor(_arg1:uint){
pencilColor = _arg1;
if (PencilMC != null){
PencilMC.graphics.lineStyle(pencilSize, pencilColor, 1);
};
}
public function showPencilArr(){
var _local1:int;
_local1 = 0;
while (_local1 < pencilArr.length) {
if (pencilArr[_local1] != "end"){
pencilArr[_local1].visible = true;
};
_local1++;
};
}
private function mouseIsOver(_arg1:MouseEvent){
if (movingFlag == true){
PARENT.dispatchEvent(new Event("mouseIsNotEnabled", true));
} else {
SoundsManager.playSound("_GameMouseOver_");
PARENT.dispatchEvent(new Event("mouseIsOver", true));
};
}
private function initEvent(){
_brushBtn_.addEventListener(MouseEvent.CLICK, choosePencil);
_brushBtn_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_brushBtn_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
}
public function hidePencilArr(){
var _local1:int;
_local1 = 0;
while (_local1 < pencilArr.length) {
if (pencilArr[_local1] != "end"){
pencilArr[_local1].visible = false;
};
_local1++;
};
}
private function initPencilTool(_arg1:MovieClip){
PARENT = _arg1;
initElement();
initEvent();
initProperty();
}
public function clearBtnFilters(){
_brushBtn_.filters = [];
}
public function createPencilMC(_arg1:MovieClip, _arg2:int, _arg3:int, _arg4:Number){
PencilMC = new MovieClip();
_arg1.addChild(PencilMC);
setPencilColor(_arg4);
PencilMC.graphics.moveTo(_arg2, _arg3);
}
}
}//package Gamefile
Section 37
//PrintTool (Gamefile.PrintTool)
package Gamefile {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.printing.*;
public class PrintTool {
private var printMack:MovieClip;
private var PARENT:MovieClip;
private var printJob:PrintJob;
private var _printBtn_:SimpleButton;
public function PrintTool(_arg1:MovieClip){
initPrintTool(_arg1);
}
private function mouseIsOver(_arg1:MouseEvent){
SoundsManager.playSound("_GameMouseOver_");
_printBtn_.dispatchEvent(new Event("mouseIsOver", true));
}
public function createMask(_arg1:MovieClip, _arg2:MovieClip, _arg3:int, _arg4:int){
printMack = new _PrintMask_();
_arg1.addChild(printMack);
printMack.x = _arg3;
printMack.y = _arg4;
_arg2.mask = printMack;
}
private function initElement(){
_printBtn_ = (PARENT.getChildByName("PrintBtn") as SimpleButton);
}
private function initPrintTool(_arg1:MovieClip){
PARENT = _arg1;
initElement();
initEvent();
}
public function delEvent(){
_printBtn_.removeEventListener(MouseEvent.CLICK, printing);
_printBtn_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_printBtn_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
}
public function delMask(_arg1:MovieClip){
printMack.parent.removeChild(printMack);
_arg1.mask = null;
}
private function initEvent(){
_printBtn_.addEventListener(MouseEvent.CLICK, printing);
_printBtn_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_printBtn_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
}
public function printOpus(_arg1:Sprite, _arg2:Rectangle){
var _o = _arg1;
var _rect = _arg2;
printJob = new PrintJob();
printJob.start();
try {
printJob.addPage(_o, _rect);
} catch(e:Error) {
trace("print error");
};
printJob.send();
}
private function printing(_arg1:MouseEvent){
SoundsManager.playSound("_GameMouseDown_");
PARENT.dispatchEvent(new Event("printing", true));
}
private function mouseIsOut(_arg1:MouseEvent){
_printBtn_.dispatchEvent(new Event("mouseIsOut", true));
}
}
}//package Gamefile
Section 38
//Repeal (Gamefile.Repeal)
package Gamefile {
import flash.display.*;
import flash.events.*;
public class Repeal {
public var repealArr:Array;
private var repealMCY:int;
public var _repealBtn_:SimpleButton;
private var repealMCX:int;
private var repealMC:MovieClip;
public var _repealAllBtn_:SimpleButton;
private var PARENT:MovieClip;
public function Repeal(_arg1:MovieClip){
initRepeal(_arg1);
}
private function initRepeal(_arg1:MovieClip){
PARENT = _arg1;
initElement();
initEvent();
initProperty();
}
private function initProperty(){
repealArr = new Array();
repealMCX = -18;
repealMCY = 15;
}
public function showRepealMC(_arg1:MovieClip){
PARENT.mouseChildren = false;
repealMC = new _RepealAllMC_();
_arg1.addChild(repealMC);
repealMC.x = repealMCX;
repealMC.y = repealMCY;
repealMC.addEventListener(Event.ENTER_FRAME, delRepealMC);
}
public function repealAllObj(_arg1:Array):Array{
var _local2:int;
_local2 = 0;
while (_local2 < _arg1.length) {
if (_arg1[_local2] != "end"){
_arg1[_local2].parent.removeChild(_arg1[_local2]);
};
_local2++;
};
_arg1 = [];
return (_arg1);
}
public function repealOperateType():int{
return (repealArr[(repealArr.length - 1)]);
}
private function initElement(){
_repealBtn_ = (PARENT.getChildByName("RepealBtn") as SimpleButton);
_repealAllBtn_ = (PARENT.getChildByName("RepealAllBtn") as SimpleButton);
}
public function delEvent(){
_repealBtn_.removeEventListener(MouseEvent.CLICK, repealOperate);
_repealAllBtn_.removeEventListener(MouseEvent.CLICK, repealAll);
_repealBtn_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_repealBtn_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_repealAllBtn_.removeEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_repealAllBtn_.removeEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
}
public function noteInformation(_arg1:int){
repealArr.push(_arg1);
}
private function delRepealMC(_arg1:Event){
delRepealMCMain();
}
public function repealAll(_arg1:MouseEvent){
SoundsManager.playSound("_Elephant_S_");
PARENT.dispatchEvent(new Event("repealAll", true));
}
private function mouseIsOut(_arg1:MouseEvent){
PARENT.dispatchEvent(new Event("mouseIsOut", true));
}
public function delInformation(){
repealArr.pop();
}
private function mouseIsOver(_arg1:MouseEvent){
SoundsManager.playSound("_GameMouseOver_");
PARENT.dispatchEvent(new Event("mouseIsOver", true));
}
public function delRepealMCEvent(){
if (repealMC != null){
repealMC.addEventListener(Event.ENTER_FRAME, delRepealMC);
repealMC = null;
};
}
private function initEvent(){
_repealBtn_.addEventListener(MouseEvent.CLICK, repealOperate);
_repealAllBtn_.addEventListener(MouseEvent.CLICK, repealAll);
_repealBtn_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_repealBtn_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
_repealAllBtn_.addEventListener(MouseEvent.MOUSE_OVER, mouseIsOver);
_repealAllBtn_.addEventListener(MouseEvent.MOUSE_OUT, mouseIsOut);
}
public function repealObj(_arg1:Array):Array{
var _local2:int;
_local2 = 1;
while ((_arg1.length - 1) >= 0) {
if ((((_arg1[(_arg1.length - 1)] == "end")) && ((_local2 == 1)))){
_arg1.pop();
_local2 = 2;
} else {
if (_arg1[(_arg1.length - 1)] == "end"){
break;
} else {
_arg1[(_arg1.length - 1)].parent.removeChild(_arg1[(_arg1.length - 1)]);
_arg1.pop();
};
};
};
return (_arg1);
}
public function delRepealMCMain(){
if (repealMC != null){
if (repealMC.currentFrame == repealMC.totalFrames){
trace("this1");
repealMC.removeEventListener(Event.ENTER_FRAME, delRepealMC);
trace("this2");
repealMC.parent.removeChild(repealMC);
trace("this3");
repealMC = null;
PARENT.mouseChildren = true;
};
};
}
private function repealOperate(_arg1:MouseEvent){
SoundsManager.playSound("_Squirrel_S_");
PARENT.dispatchEvent(new Event("repealOperate", true));
}
}
}//package Gamefile
Section 39
//Sole (Gamefile.Sole)
package Gamefile {
import flash.display.*;
import flash.geom.*;
import fl.transitions.easing.*;
public class Sole {
public const operateType:int = 1;
private var colorTransform:ColorTransform;
public var soleMC:MovieClip;
public var soleArr:Array;
private var sole:MovieClip;
private var soundName:String;
public function Sole(){
initProperty();
}
public function hideSoleArr(){
var _local1:int;
if (soleArr.length >= 1){
_local1 = 0;
while (_local1 < soleArr.length) {
if (soleArr[_local1] != null){
if (soleArr[_local1] != "end"){
soleArr[_local1].visible = false;
};
};
_local1++;
};
};
}
private function initProperty(){
colorTransform = new ColorTransform();
soleArr = new Array();
}
public function pushEndFlag(_arg1:Boolean){
if (_arg1 == false){
if (soleMC != null){
soleArr.push(soleMC);
soleArr.push("end");
};
trace(soleArr);
};
soleMC = null;
}
public function showSoleArr(){
var _local1:int;
if (soleArr.length >= 1){
_local1 = 0;
while (_local1 < soleArr.length) {
if (soleArr[_local1] != null){
if (soleArr[_local1] != "end"){
soleArr[_local1].visible = true;
};
};
_local1++;
};
};
}
public function showSole(_arg1:MovieClip, _arg2:String, _arg3:int, _arg4:int, _arg5:Number, _arg6:uint, _arg7:Boolean){
if (soundName != null){
SoundsManager.StopSound(soundName);
soundName = null;
};
switch (_arg2){
case "FlamingoBtn":
SoundsManager.playSound("_ModerateAnimal_");
soundName = "_ModerateAnimal_";
sole = new _Flamingo_();
break;
case "PandaBtn":
SoundsManager.playSound("_PonderosityAnimal_");
soundName = "_PonderosityAnimal_";
sole = new _Panda_();
break;
case "ChickBtn":
SoundsManager.playSound("_SmallAnimal_");
soundName = "_SmallAnimal_";
sole = new _Chick_();
break;
case "CatBtn":
SoundsManager.playSound("_SmallAnimal_");
soundName = "_SmallAnimal_";
sole = new _Cat_();
break;
case "HippoBtn":
SoundsManager.playSound("_PonderosityAnimal_");
soundName = "_PonderosityAnimal_";
sole = new _Hippo_();
break;
};
if (soleMC == null){
trace("creat MC");
soleMC = new MovieClip();
_arg1.addChild(soleMC);
};
soleMC.addChild(sole);
sole.x = _arg3;
sole.y = _arg4;
sole.rotation = _arg5;
if (_arg6 > 0){
colorTransform.color = _arg6;
sole.transform.colorTransform = colorTransform;
};
}
}
}//package Gamefile
Section 40
//SoundsManager (Gamefile.SoundsManager)
package Gamefile {
import flash.media.*;
import flash.utils.*;
public class SoundsManager {
private static const SOUNDSLINK:Array = ["_GameMouseDown_", "_GameMouseOver_", "_MenuMouseDown_", "_MenuMouseOver_", "_WalkLoop_", "_PonderosityAnimal_", "_ModerateAnimal_", "_SmallAnimal_", "_Elephant_S_", "_Squirrel_S_", "_Flamingo_S_", "_Panda_S_", "_Chick_S_", "_Cat_S_", "_Hippo_S_", "_Snake_S_", "_SnakeMove_S_", "_Whale_S_"];
private static const VALUEMUSIC:Number = 1;
private static const VALUESOUND:Number = 1;
public static var enabled:Boolean;
private static var currentMusic:String;
private static var soundsArr:Array;
public function SoundsManager():void{
init();
setEnabled(true);
}
public static function stopMusic():void{
var _local1:int;
var _local2:Object;
if (currentMusic != null){
_local1 = 0;
while (_local1 < soundsArr.length) {
_local2 = soundsArr[_local1];
if (_local2.label == currentMusic){
if (_local2.channel != null){
_local2.channel.stop();
_local2.channel = null;
};
};
_local1++;
};
};
}
public static function StopSound(_arg1:String):void{
var _local2:int;
var _local3:Object;
_local2 = 0;
while (_local2 < soundsArr.length) {
_local3 = soundsArr[_local2];
if (_local3.label == _arg1){
if (_local3.channel != null){
_local3.channel.stop();
_local3.channel = null;
};
};
_local2++;
};
}
private static function init():void{
var _local1:int;
var _local2:String;
var _local3:Sound;
var _local4:Object;
soundsArr = new Array();
_local1 = 0;
while (_local1 < SOUNDSLINK.length) {
_local2 = SOUNDSLINK[_local1];
_local3 = getSound(_local2);
_local4 = new Object();
_local4.label = _local2;
_local4.sound = _local3;
soundsArr.push(_local4);
_local1++;
};
}
public static function playMusic(_arg1:String):void{
var _local2:int;
var _local3:Object;
var _local4:SoundChannel;
if (enabled){
_local2 = 0;
while (_local2 < soundsArr.length) {
_local3 = soundsArr[_local2];
if (_local3.label == _arg1){
currentMusic = _arg1;
_local4 = _local3.sound.play(0, int.MAX_VALUE, new SoundTransform(VALUEMUSIC));
_local3.channel = _local4;
};
_local2++;
};
};
}
private static function getSound(_arg1:String):Sound{
var _local2:Class;
var _local3:Sound;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
return (_local3);
}
public static function playSound(_arg1:String):void{
var _local2:int;
var _local3:Object;
var _local4:SoundChannel;
if (enabled){
_local2 = 0;
while (_local2 < soundsArr.length) {
_local3 = soundsArr[_local2];
if (_local3.label == _arg1){
_local4 = _local3.sound.play(0, 0, new SoundTransform(VALUESOUND));
_local3.channel = _local4;
};
_local2++;
};
};
}
public static function setEnabled(_arg1:Boolean):void{
enabled = _arg1;
if (_arg1){
playMusic(currentMusic);
} else {
stopMusic();
};
}
}
}//package Gamefile
Section 41
//Spray (Gamefile.Spray)
package Gamefile {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.filters.*;
public class Spray {
public const operateType:int = 2;
private var sprayMC:MovieClip;
private var sprayMC3:MovieClip;
private var sprayMC4:MovieClip;
private var sprayMC6:MovieClip;
private var sprayMC7:MovieClip;
private var sprayMC1:MovieClip;
public var sprayType:int;
private var sprayMC5:MovieClip;
private var _sprayBtn1_:SimpleButton;
private var sprayMC9:MovieClip;
private var sprayMC2:MovieClip;
private var PARENT:MovieClip;
private var spray:MovieClip;
private var sprayMC8:MovieClip;
private var sprayFlag:Boolean;
private var _sprayBtn2_:SimpleButton;
private var mathTool:MathTool;
private var sprayNum:int;
private var sprayBtnFilter:GlowFilter;
private var colorTransform:ColorTransform;
private var spraySpace:int;
private var _sprayBtn3_:SimpleButton;
private var flower:MovieClip;
private var sprayTypeMC:MovieClip;
private var sprayMC10:MovieClip;
public var singleFlag:Boolean;
private var sprayMCArr:Array;
public var sprayArr:Array;
private var previousSpray:SimpleButton;
public function Spray(_arg1:MovieClip){
initSpray(_arg1);
}
private function initSpray(_arg1:MovieClip){
PARENT = _arg1;
initElement();
initEvent();
initProperty();
}
private function initProperty(){
sprayTypeMC.gotoAndStop(1);
mathTool = new MathTool();
colorTransform = new ColorTransform();
sprayBtnFilter = new GlowFilter(0xFF0000, 1, 10, 10, 10, 1, false, false);
sprayType = 1;
sprayArr = new Array();
spraySpace = 20;
singleFlag = false;
sprayMCArr = new Array();
}
public function hideSpray(){
var _local1:int;
_local1 = 0;
while (_local1 < sprayArr.length) {
if (sprayArr[_local1] != "end"){
sprayArr[_local1].gotoAndStop(1);
sprayArr[_local1].visible = false;
};
_local1++;
};
}
public function showSpray(){
var _local1:int;
_local1 = 0;
while (_local1 < sprayArr.length) {
if (sprayArr[_local1] != "end"){
sprayArr[_local1].gotoAndStop(sprayArr[_local1].totalFrames);
sprayArr[_local1].visible = true;
};
_local1++;
};
}
public function changeSprayType():int{
sprayType++;
if (sprayType == 5){
sprayType = 1;
};
sprayTypeMC.gotoAndStop(sprayType);
return (sprayType);
}
private function initElement(){
sprayTypeMC = (PARENT.getChildByName("SprayTypeMC") as MovieClip);
}
public function showSprayMC(_arg1:MovieClip, _arg2:int, _arg3:int){
var _local4:MovieClip;
if (sprayMC1 == null){
sprayMC1 = new _SprayMC_();
_arg1.addChild(sprayMC1);
sprayMC1.x = _arg2;
sprayMC1.y = _arg3;
} else {
if (sprayMC2 == null){
sprayMC2 = new _SprayMC_();
_arg1.addChild(sprayMC2);
sprayMC2.x = _arg2;
sprayMC2.y = _arg3;
} else {
if (sprayMC3 == null){
sprayMC3 = new _SprayMC_();
_arg1.addChild(sprayMC3);
sprayMC3.x = _arg2;
sprayMC3.y = _arg3;
_local4 = sprayMC3;
} else {
if (sprayMC4 == null){
sprayMC4 = new _SprayMC_();
_arg1.addChild(sprayMC4);
sprayMC4.x = _arg2;
sprayMC4.y = _arg3;
_local4 = sprayMC4;
} else {
if (sprayMC5 == null){
sprayMC5 = new _SprayMC_();
_arg1.addChild(sprayMC5);
sprayMC5.x = _arg2;
sprayMC5.y = _arg3;
_local4 = sprayMC5;
} else {
if (sprayMC6 == null){
sprayMC6 = new _SprayMC_();
_arg1.addChild(sprayMC6);
sprayMC6.x = _arg2;
sprayMC6.y = _arg3;
_local4 = sprayMC6;
} else {
if (sprayMC7 == null){
sprayMC7 = new _SprayMC_();
_arg1.addChild(sprayMC7);
sprayMC7.x = _arg2;
sprayMC7.y = _arg3;
_local4 = sprayMC7;
} else {
if (sprayMC8 == null){
sprayMC8 = new _SprayMC_();
_arg1.addChild(sprayMC8);
sprayMC8.x = _arg2;
sprayMC8.y = _arg3;
_local4 = sprayMC8;
} else {
if (sprayMC9 == null){
sprayMC9 = new _SprayMC_();
_arg1.addChild(sprayMC9);
sprayMC9.x = _arg2;
sprayMC9.y = _arg3;
_local4 = sprayMC9;
} else {
if (sprayMC10 == null){
sprayMC10 = new _SprayMC_();
_arg1.addChild(sprayMC10);
sprayMC10.x = _arg2;
sprayMC10.y = _arg3;
_local4 = sprayMC10;
};
};
};
};
};
};
};
};
};
};
}
private function clearBtnFilters(){
}
public function delEvent(){
PARENT.removeEventListener(Event.ENTER_FRAME, delSprayMCMain);
}
public function drawSpray(_arg1:MovieClip, _arg2:MovieClip, _arg3:int, _arg4:int, _arg5:int, _arg6:uint, _arg7:Boolean){
var _local8:Number;
getSpray(_arg5);
showSprayMC(_arg2, _arg3, _arg4);
_arg1.addChild(spray);
spray.x = _arg3;
spray.y = _arg4;
spray.rotation = mathTool.randomInt(1, 360);
_local8 = (mathTool.randomInt(5, 10) / 10);
spray.scaleX = _local8;
spray.scaleY = _local8;
if (_arg6 > 0){
colorTransform.color = _arg6;
spray.transform.colorTransform = colorTransform;
};
if (_arg7 == false){
sprayArr.push(spray);
};
if (_arg7 == false){
sprayArr.push("end");
};
}
private function delSprayMCMain(_arg1:Event){
if (((!((sprayMC1 == null))) && ((sprayMC1.currentFrame == sprayMC1.totalFrames)))){
sprayMC1.parent.removeChild(sprayMC1);
sprayMC1 = null;
};
if (((!((sprayMC2 == null))) && ((sprayMC2.currentFrame == sprayMC2.totalFrames)))){
sprayMC2.parent.removeChild(sprayMC2);
sprayMC2 = null;
};
if (((!((sprayMC3 == null))) && ((sprayMC3.currentFrame == sprayMC3.totalFrames)))){
sprayMC3.parent.removeChild(sprayMC3);
sprayMC3 = null;
};
if (((!((sprayMC4 == null))) && ((sprayMC4.currentFrame == sprayMC4.totalFrames)))){
sprayMC4.parent.removeChild(sprayMC4);
sprayMC4 = null;
};
if (((!((sprayMC5 == null))) && ((sprayMC5.currentFrame == sprayMC5.totalFrames)))){
sprayMC5.parent.removeChild(sprayMC5);
sprayMC5 = null;
};
if (((!((sprayMC6 == null))) && ((sprayMC6.currentFrame == sprayMC6.totalFrames)))){
sprayMC6.parent.removeChild(sprayMC6);
sprayMC6 = null;
};
if (((!((sprayMC7 == null))) && ((sprayMC7.currentFrame == sprayMC7.totalFrames)))){
sprayMC7.parent.removeChild(sprayMC7);
sprayMC7 = null;
};
if (((!((sprayMC8 == null))) && ((sprayMC8.currentFrame == sprayMC8.totalFrames)))){
sprayMC8.parent.removeChild(sprayMC8);
sprayMC8 = null;
};
if (((!((sprayMC9 == null))) && ((sprayMC9.currentFrame == sprayMC9.totalFrames)))){
sprayMC9.parent.removeChild(sprayMC9);
sprayMC9 = null;
};
if (((!((sprayMC10 == null))) && ((sprayMC10.currentFrame == sprayMC10.totalFrames)))){
sprayMC10.parent.removeChild(sprayMC10);
sprayMC10 = null;
};
}
private function chooseSpray(_arg1:MouseEvent){
}
private function initEvent(){
PARENT.addEventListener(Event.ENTER_FRAME, delSprayMCMain);
}
public function drawSingleSpray(_arg1:MovieClip, _arg2:int, _arg3:int, _arg4:int){
getSpray(_arg4);
_arg1.addChild(spray);
spray.x = _arg2;
spray.y = _arg3;
spray.rotation = mathTool.randomInt(1, 360);
sprayArr.push(spray);
sprayArr.push("end");
}
private function getSpray(_arg1:int){
switch (_arg1){
case 1:
spray = new _Spray1_();
break;
case 2:
spray = new _Spray2_();
break;
case 3:
spray = new _Spray3_();
break;
case 4:
spray = new _Spray4_();
break;
};
}
private function delSprayMC(){
}
}
}//package Gamefile
Section 42
//TrackTool (Gamefile.TrackTool)
package Gamefile {
import flash.display.*;
import flash.events.*;
public class TrackTool {
public var xTrackArr:Array;
public var yTrackArr:Array;
private var PARENT:MovieClip;
private var valueSpace:int;
public function TrackTool(){
initTrackTool();
}
public function startMove(_arg1:MovieClip){
_arg1.dispatchEvent(new Event("startMove", true));
}
public function getTrack(_arg1:int, _arg2:int){
if ((((((((_arg1 >= 0)) && ((_arg1 <= 516)))) && ((_arg2 >= 0)))) && ((_arg2 <= 349)))){
if ((((Math.abs((xTrackArr[(xTrackArr.length - 1)] - _arg1)) > valueSpace)) && ((Math.abs((yTrackArr[(yTrackArr.length - 1)] - _arg2)) > valueSpace)))){
xTrackArr.push(_arg1);
yTrackArr.push(_arg2);
} else {
if (Math.abs((xTrackArr[(xTrackArr.length - 1)] - _arg1)) > (valueSpace * 5)){
xTrackArr.push(_arg1);
yTrackArr.push(_arg2);
} else {
if (Math.abs((yTrackArr[(yTrackArr.length - 1)] - _arg2)) > (valueSpace * 5)){
xTrackArr.push(_arg1);
yTrackArr.push(_arg2);
};
};
};
};
}
public function clearArray(){
xTrackArr = [];
yTrackArr = [];
}
public function endGetTrack(){
if (xTrackArr.length == 1){
clearArray();
} else {
xTrackArr.push("end");
yTrackArr.push("end");
};
}
public function startGetTrack(_arg1:int, _arg2:int){
xTrackArr.push(_arg1);
yTrackArr.push(_arg2);
}
private function initTrackTool(){
valueSpace = 5;
xTrackArr = new Array();
yTrackArr = new Array();
}
}
}//package Gamefile
Section 43
//_ActionCat_ (_ActionCat_)
package {
import flash.display.*;
public dynamic class _ActionCat_ extends MovieClip {
}
}//package
Section 44
//_ActionChick_ (_ActionChick_)
package {
import flash.display.*;
public dynamic class _ActionChick_ extends MovieClip {
}
}//package
Section 45
//_ActionFlamingo_ (_ActionFlamingo_)
package {
import flash.display.*;
public dynamic class _ActionFlamingo_ extends MovieClip {
}
}//package
Section 46
//_ActionHippo_ (_ActionHippo_)
package {
import flash.display.*;
public dynamic class _ActionHippo_ extends MovieClip {
}
}//package
Section 47
//_ActionPanda_ (_ActionPanda_)
package {
import flash.display.*;
public dynamic class _ActionPanda_ extends MovieClip {
}
}//package
Section 48
//_ActionSnake_ (_ActionSnake_)
package {
import flash.display.*;
public dynamic class _ActionSnake_ extends MovieClip {
}
}//package
Section 49
//_Cat_ (_Cat_)
package {
import flash.display.*;
public dynamic class _Cat_ extends MovieClip {
}
}//package
Section 50
//_Cat_S_ (_Cat_S_)
package {
import flash.media.*;
public dynamic class _Cat_S_ extends Sound {
}
}//package
Section 51
//_CatMovie_ (_CatMovie_)
package {
import flash.display.*;
public dynamic class _CatMovie_ extends MovieClip {
public function _CatMovie_(){
addFrameScript(47, frame48);
}
function frame48(){
stop();
}
}
}//package
Section 52
//_Chick_ (_Chick_)
package {
import flash.display.*;
public dynamic class _Chick_ extends MovieClip {
}
}//package
Section 53
//_Chick_S_ (_Chick_S_)
package {
import flash.media.*;
public dynamic class _Chick_S_ extends Sound {
}
}//package
Section 54
//_ChinaGame_ (_ChinaGame_)
package {
import flash.display.*;
public dynamic class _ChinaGame_ extends MovieClip {
public function _ChinaGame_(){
addFrameScript(239, frame240);
}
function frame240(){
stop();
}
}
}//package
Section 55
//_Elephant_S_ (_Elephant_S_)
package {
import flash.media.*;
public dynamic class _Elephant_S_ extends Sound {
}
}//package
Section 56
//_Flamingo_ (_Flamingo_)
package {
import flash.display.*;
public dynamic class _Flamingo_ extends MovieClip {
}
}//package
Section 57
//_Flamingo_S_ (_Flamingo_S_)
package {
import flash.media.*;
public dynamic class _Flamingo_S_ extends Sound {
}
}//package
Section 58
//_GameMouseDown_ (_GameMouseDown_)
package {
import flash.media.*;
public dynamic class _GameMouseDown_ extends Sound {
}
}//package
Section 59
//_GameMouseOver_ (_GameMouseOver_)
package {
import flash.media.*;
public dynamic class _GameMouseOver_ extends Sound {
}
}//package
Section 60
//_GameStart_ (_GameStart_)
package {
import flash.display.*;
public dynamic class _GameStart_ extends MovieClip {
public var HowToPlayBtn:MovieClip;
public var LogoMC:MovieClip;
public var StartBtn:MovieClip;
public var TextMC:MovieClip;
public var MoreGameBtn:MovieClip;
public function _GameStart_(){
addFrameScript(38, frame39);
}
function frame39(){
stop();
}
}
}//package
Section 61
//_Hippo_ (_Hippo_)
package {
import flash.display.*;
public dynamic class _Hippo_ extends MovieClip {
}
}//package
Section 62
//_Hippo_S_ (_Hippo_S_)
package {
import flash.media.*;
public dynamic class _Hippo_S_ extends Sound {
}
}//package
Section 63
//_Loading_ (_Loading_)
package {
import flash.display.*;
import flash.text.*;
public dynamic class _Loading_ extends MovieClip {
public var LogoMC:MovieClip;
public var Schedule:TextField;
public var LoadingMC:MovieClip;
}
}//package
Section 64
//_Main_ (_Main_)
package {
import flash.display.*;
public dynamic class _Main_ extends MovieClip {
public var BrushBtn:SimpleButton;
public var AnimalBtnMC:MovieClip;
public var ColorBtn1:MovieClip;
public var ColorBtn4:MovieClip;
public var ColorBtn5:MovieClip;
public var ColorBtn7:MovieClip;
public var ColorBtn8:MovieClip;
public var ColorBtn6:MovieClip;
public var ColorBtn2:MovieClip;
public var SprayTypeMC:MovieClip;
public var HelpBtn:SimpleButton;
public var ColorBtn9:MovieClip;
public var RepealAllBtn:SimpleButton;
public var WhaleBtn:SimpleButton;
public var ColorBtn3:MovieClip;
public var LogoMC:MovieClip;
public var PrintBtn:SimpleButton;
public var RepealBtn:SimpleButton;
public var BgBtn:MovieClip;
public var MainBG:MovieClip;
public var ColorBtnFilter:MovieClip;
}
}//package
Section 65
//_MenuMouseDown_ (_MenuMouseDown_)
package {
import flash.media.*;
public dynamic class _MenuMouseDown_ extends Sound {
}
}//package
Section 66
//_MenuMouseOver_ (_MenuMouseOver_)
package {
import flash.media.*;
public dynamic class _MenuMouseOver_ extends Sound {
}
}//package
Section 67
//_ModerateAnimal_ (_ModerateAnimal_)
package {
import flash.media.*;
public dynamic class _ModerateAnimal_ extends Sound {
}
}//package
Section 68
//_Mouse_ (_Mouse_)
package {
import flash.display.*;
public dynamic class _Mouse_ extends MovieClip {
}
}//package
Section 69
//_Panda_ (_Panda_)
package {
import flash.display.*;
public dynamic class _Panda_ extends MovieClip {
}
}//package
Section 70
//_Panda_S_ (_Panda_S_)
package {
import flash.media.*;
public dynamic class _Panda_S_ extends Sound {
}
}//package
Section 71
//_PencilMovie_ (_PencilMovie_)
package {
import flash.display.*;
public dynamic class _PencilMovie_ extends MovieClip {
public function _PencilMovie_(){
addFrameScript(21, frame22);
}
function frame22(){
stop();
}
}
}//package
Section 72
//_PonderosityAnimal_ (_PonderosityAnimal_)
package {
import flash.media.*;
public dynamic class _PonderosityAnimal_ extends Sound {
}
}//package
Section 73
//_PrintMask_ (_PrintMask_)
package {
import flash.display.*;
public dynamic class _PrintMask_ extends MovieClip {
}
}//package
Section 74
//_RepealAllMC_ (_RepealAllMC_)
package {
import flash.display.*;
public dynamic class _RepealAllMC_ extends MovieClip {
public function _RepealAllMC_(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 75
//_RepealAllMovie_ (_RepealAllMovie_)
package {
import flash.display.*;
public dynamic class _RepealAllMovie_ extends MovieClip {
public function _RepealAllMovie_(){
addFrameScript(37, frame38);
}
function frame38(){
stop();
}
}
}//package
Section 76
//_RepealMovie_ (_RepealMovie_)
package {
import flash.display.*;
public dynamic class _RepealMovie_ extends MovieClip {
}
}//package
Section 77
//_SmallAnimal_ (_SmallAnimal_)
package {
import flash.media.*;
public dynamic class _SmallAnimal_ extends Sound {
}
}//package
Section 78
//_Snake_S_ (_Snake_S_)
package {
import flash.media.*;
public dynamic class _Snake_S_ extends Sound {
}
}//package
Section 79
//_SnakeMove_S_ (_SnakeMove_S_)
package {
import flash.media.*;
public dynamic class _SnakeMove_S_ extends Sound {
}
}//package
Section 80
//_Spray1_ (_Spray1_)
package {
import flash.display.*;
public dynamic class _Spray1_ extends MovieClip {
}
}//package
Section 81
//_Spray2_ (_Spray2_)
package {
import flash.display.*;
public dynamic class _Spray2_ extends MovieClip {
}
}//package
Section 82
//_Spray3_ (_Spray3_)
package {
import flash.display.*;
public dynamic class _Spray3_ extends MovieClip {
}
}//package
Section 83
//_Spray4_ (_Spray4_)
package {
import flash.display.*;
public dynamic class _Spray4_ extends MovieClip {
}
}//package
Section 84
//_SprayMC_ (_SprayMC_)
package {
import flash.display.*;
public dynamic class _SprayMC_ extends MovieClip {
}
}//package
Section 85
//_Squirrel_S_ (_Squirrel_S_)
package {
import flash.media.*;
public dynamic class _Squirrel_S_ extends Sound {
}
}//package
Section 86
//_WalkLoop_ (_WalkLoop_)
package {
import flash.media.*;
public dynamic class _WalkLoop_ extends Sound {
}
}//package
Section 87
//_Whale_S_ (_Whale_S_)
package {
import flash.media.*;
public dynamic class _Whale_S_ extends Sound {
}
}//package
Section 88
//_WhaleMovie_ (_WhaleMovie_)
package {
import flash.display.*;
public dynamic class _WhaleMovie_ extends MovieClip {
public function _WhaleMovie_(){
addFrameScript(112, frame113);
}
function frame113(){
stop();
}
}
}//package
Section 89
//Document (Document)
package {
import flash.display.*;
import Gamefile.*;
import flash.ui.*;
public class Document extends MovieClip {
public var ChooseDownBtn:SimpleButton;
public var ChooseUpBtn:SimpleButton;
public function Document(){
initDocument();
hideContextMenu();
forbidScale();
this.stage.stageFocusRect = false;
}
private function hideContextMenu():void{
var _local1:ContextMenu;
_local1 = new ContextMenu();
_local1.hideBuiltInItems();
this.contextMenu = _local1;
this.stage.showDefaultContextMenu = false;
}
private function forbidScale():void{
this.stage.scaleMode = "noScale";
}
private function initDocument(){
var _local1:Game;
this.stop();
new SoundsManager();
new Language();
_local1 = new Game(this);
}
}
}//package