Section 1
//back_92 (SaveTheBabies_gamesonly_fla.back_92)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
public dynamic class back_92 extends MovieClip {
public function back_92(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SaveTheBabies_gamesonly_fla
Section 2
//bt_mc_fscreen_52 (SaveTheBabies_gamesonly_fla.bt_mc_fscreen_52)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
public dynamic class bt_mc_fscreen_52 extends MovieClip {
public function bt_mc_fscreen_52(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SaveTheBabies_gamesonly_fla
Section 3
//heart_43 (SaveTheBabies_gamesonly_fla.heart_43)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
public dynamic class heart_43 extends MovieClip {
public function heart_43(){
addFrameScript(28, frame29);
}
function frame29(){
stop();
}
}
}//package SaveTheBabies_gamesonly_fla
Section 4
//items_118 (SaveTheBabies_gamesonly_fla.items_118)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
public dynamic class items_118 extends MovieClip {
public function items_118(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SaveTheBabies_gamesonly_fla
Section 5
//level_128 (SaveTheBabies_gamesonly_fla.level_128)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
import flash.text.*;
public dynamic class level_128 extends MovieClip {
public var d_Play:SimpleButton;
public var d_Time:TextField;
}
}//package SaveTheBabies_gamesonly_fla
Section 6
//MainTimeline (SaveTheBabies_gamesonly_fla.MainTimeline)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.external.*;
import flash.system.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var furl;
public var d_Fscreen:MovieClip;
public var d_RePlay:SimpleButton;
public var d_Facebook:SimpleButton;
public var d_Twitter:SimpleButton;
public var gamename;
public var d_Submit:SimpleButton;
public var ss;
public var d_HelpPlay:SimpleButton;
public var isfull:String;
public var loadingMC:MovieClip;
public var d_Score:TextField;
public var ss2;
public function MainTimeline(){
addFrameScript(0, frame1, 2, frame3, 3, frame4, 5, frame6);
}
public function onHelpPlay(_arg1){
gotoAndStop("game");
}
function frame3(){
stop();
SoundMixer.stopAll();
Input.init(this.stage);
Config.soundChannel = null;
if (Config.SSound){
ss = new SStart();
ss.play(0, 10000000);
};
d_Twitter.addEventListener(MouseEvent.CLICK, onShare);
d_Facebook.addEventListener(MouseEvent.CLICK, onShare);
d_Fscreen.addEventListener(MouseEvent.CLICK, onFscreen);
d_Fscreen.buttonMode = true;
try {
isfull = String(EmbedObject.getParamViaExternal("allowFullScreen"));
isfull = isfull.toLowerCase();
if (isfull != "true"){
d_Fscreen.visible = false;
};
} catch(e) {
};
}
function frame1(){
stop();
}
public function onShare(_arg1){
var _local2:String;
var _local3:String;
_local2 = ExternalInterface.call("eval", "window.location.href");
if (_local2 == null){
_local2 = "http://www.gamesonly.com.cn";
};
if (_arg1.currentTarget == d_Facebook){
_local3 = (("http://www.facebook.com/share.php?u=" + _local2) + "&t= Playing SaveTheBabies");
} else {
_local3 = ("http://twitter.com/home?status=Currently Playing SaveTheBabies " + _local2);
};
navigateToURL(new URLRequest(_local3), "_blank");
}
function frame4(){
stop();
d_HelpPlay.addEventListener(MouseEvent.CLICK, onHelpPlay);
}
public function onFscreen(_arg1:MouseEvent):void{
var event = _arg1;
try {
switch (stage.displayState){
case "normal":
stage.displayState = "fullScreen";
d_Fscreen.gotoAndStop(2);
break;
case "fullScreen":
default:
stage.displayState = "normal";
d_Fscreen.gotoAndStop(1);
break;
};
} catch(e:SecurityError) {
trace("<param name=\"allowFullScreen\" value=\"true\" />");
};
}
function frame6(){
stop();
SoundMixer.stopAll();
Config.soundChannel = null;
if (Config.SSound){
ss2 = new SOver();
ss2.play();
};
d_Score.text = String(Game.AllScore);
d_RePlay.addEventListener(MouseEvent.CLICK, onClick);
d_Submit.addEventListener(MouseEvent.CLICK, onSubmit);
gamename = "SaveTheBabies";
furl = "www.gamesonly.com.cn";
}
public function onSubmit(_arg1){
var _local2:*;
_local2 = MD5.hash((((furl + gamename) + d_Score.text) + "zygomaticgames"));
navigateToURL(new URLRequest((((((("http://www.gamesonly.com.cn/highscore.php?game=" + gamename) + "&score=") + d_Score.text) + "&otherparam=") + _local2) + "")), "_blank");
}
public function onClick(_arg1){
gotoAndStop("start");
}
}
}//package SaveTheBabies_gamesonly_fla
Section 7
//music_124 (SaveTheBabies_gamesonly_fla.music_124)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
public dynamic class music_124 extends MovieClip {
public function music_124(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (!Config.SSound){
gotoAndStop(2);
};
}
}
}//package SaveTheBabies_gamesonly_fla
Section 8
//pause_126 (SaveTheBabies_gamesonly_fla.pause_126)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
public dynamic class pause_126 extends MovieClip {
public var d_Pause:SimpleButton;
}
}//package SaveTheBabies_gamesonly_fla
Section 9
//sound_125 (SaveTheBabies_gamesonly_fla.sound_125)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
public dynamic class sound_125 extends MovieClip {
public function sound_125(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (!Config.SMusic){
gotoAndStop(2);
};
}
}
}//package SaveTheBabies_gamesonly_fla
Section 10
//Timeline_1 (SaveTheBabies_gamesonly_fla.Timeline_1)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
public dynamic class Timeline_1 extends MovieClip {
public var d_Load:TextField;
public var skip_btn:SimpleButton;
public var mc_9_loading:MovieClip;
public function Timeline_1(){
addFrameScript(1, frame2, 150, frame151, 151, frame152);
}
function frame151(){
stop();
if (this.root.loaderInfo.bytesLoaded == this.root.loaderInfo.bytesTotal){
gotoAndStop(152);
};
}
function frame152(){
stop();
SoundMixer.stopAll();
MovieClip(this.parent).gotoAndPlay("start");
}
public function onProgress(_arg1:ProgressEvent){
var _local2:*;
_local2 = Math.floor(((_arg1.bytesLoaded / _arg1.bytesTotal) * 100));
d_Load.text = (("Loading....." + _local2) + "%");
}
public function skipEvent(_arg1:MouseEvent){
this.gotoAndStop(152);
}
function frame2(){
skip_btn.visible = false;
skip_btn.addEventListener(MouseEvent.CLICK, skipEvent);
this.root.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.root.loaderInfo.addEventListener(Event.COMPLETE, onInit);
if (this.root.loaderInfo.bytesLoaded == this.root.loaderInfo.bytesTotal){
onInit(null);
};
}
public function onInit(_arg1){
skip_btn.visible = true;
d_Load.visible = false;
if (this.currentFrame == 151){
gotoAndStop(152);
};
}
}
}//package SaveTheBabies_gamesonly_fla
Section 11
//Timeline_27 (SaveTheBabies_gamesonly_fla.Timeline_27)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
public dynamic class Timeline_27 extends MovieClip {
public function Timeline_27(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SaveTheBabies_gamesonly_fla
Section 12
//Timeline_5 (SaveTheBabies_gamesonly_fla.Timeline_5)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
public dynamic class Timeline_5 extends MovieClip {
public function Timeline_5(){
addFrameScript(79, frame80);
}
function frame80(){
stop();
}
}
}//package SaveTheBabies_gamesonly_fla
Section 13
//Timeline_7 (SaveTheBabies_gamesonly_fla.Timeline_7)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
public dynamic class Timeline_7 extends MovieClip {
public function Timeline_7(){
addFrameScript(106, frame107);
}
function frame107(){
stop();
}
}
}//package SaveTheBabies_gamesonly_fla
Section 14
//title_33 (SaveTheBabies_gamesonly_fla.title_33)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.external.*;
import flash.system.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class title_33 extends MovieClip {
public var d_Help:SimpleButton;
public var d_More:SimpleButton;
public var d_Play:SimpleButton;
public var d_High:SimpleButton;
public function title_33(){
addFrameScript(0, frame1, 46, frame47);
}
function frame1(){
this.stage.addEventListener(MouseEvent.CLICK, onGotoOver);
}
function frame47(){
stop();
this.stage.removeEventListener(MouseEvent.CLICK, onGotoOver);
d_Play.addEventListener(MouseEvent.CLICK, onClick);
d_Help.addEventListener(MouseEvent.CLICK, onClick);
d_More.addEventListener(MouseEvent.CLICK, onClick);
d_High.addEventListener(MouseEvent.CLICK, onHighScore);
}
public function onGotoOver(_arg1){
gotoAndStop(47);
}
public function onClick(_arg1){
switch (_arg1.currentTarget.name){
case "d_Play":
MovieClip(parent).gotoAndStop("game");
break;
case "d_Help":
MovieClip(parent).gotoAndStop("help");
break;
case "d_More":
navigateToURL(new URLRequest("http://www.gamesonly.com.cn/"), "_blank");
break;
};
}
public function onHighScore(_arg1){
navigateToURL(new URLRequest("http://www.gamesonly.com.cn/highscore.php?game=SaveTheBabies"), "_blank");
}
}
}//package SaveTheBabies_gamesonly_fla
Section 15
//trutle1_67 (SaveTheBabies_gamesonly_fla.trutle1_67)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
public dynamic class trutle1_67 extends MovieClip {
public function trutle1_67(){
addFrameScript(0, frame1, 4, frame5);
}
function frame1(){
stop();
}
function frame5(){
gotoAndStop(1);
}
}
}//package SaveTheBabies_gamesonly_fla
Section 16
//trutle2_72 (SaveTheBabies_gamesonly_fla.trutle2_72)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
public dynamic class trutle2_72 extends MovieClip {
public function trutle2_72(){
addFrameScript(0, frame1, 4, frame5);
}
function frame1(){
stop();
}
function frame5(){
gotoAndStop(1);
}
}
}//package SaveTheBabies_gamesonly_fla
Section 17
//trutle3_77 (SaveTheBabies_gamesonly_fla.trutle3_77)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
public dynamic class trutle3_77 extends MovieClip {
public function trutle3_77(){
addFrameScript(0, frame1, 4, frame5);
}
function frame1(){
stop();
}
function frame5(){
gotoAndStop(1);
}
}
}//package SaveTheBabies_gamesonly_fla
Section 18
//trutle4_82 (SaveTheBabies_gamesonly_fla.trutle4_82)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
public dynamic class trutle4_82 extends MovieClip {
public function trutle4_82(){
addFrameScript(0, frame1, 4, frame5);
}
function frame1(){
stop();
}
function frame5(){
gotoAndStop(1);
}
}
}//package SaveTheBabies_gamesonly_fla
Section 19
//Turtle1copy_66 (SaveTheBabies_gamesonly_fla.Turtle1copy_66)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
public dynamic class Turtle1copy_66 extends MovieClip {
public var trutle:MovieClip;
public function Turtle1copy_66(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package SaveTheBabies_gamesonly_fla
Section 20
//Turtle2copy_71 (SaveTheBabies_gamesonly_fla.Turtle2copy_71)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
public dynamic class Turtle2copy_71 extends MovieClip {
public var trutle:MovieClip;
}
}//package SaveTheBabies_gamesonly_fla
Section 21
//Turtle3copy_76 (SaveTheBabies_gamesonly_fla.Turtle3copy_76)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
public dynamic class Turtle3copy_76 extends MovieClip {
public var trutle:MovieClip;
public function Turtle3copy_76(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package SaveTheBabies_gamesonly_fla
Section 22
//Turtle4copy_81 (SaveTheBabies_gamesonly_fla.Turtle4copy_81)
package SaveTheBabies_gamesonly_fla {
import flash.display.*;
public dynamic class Turtle4copy_81 extends MovieClip {
public var trutle:MovieClip;
public function Turtle4copy_81(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package SaveTheBabies_gamesonly_fla
Section 23
//Config (Config)
package {
public class Config {
public static var SMusic:Boolean = true;
public static var soundChannel;
public static var SSound:Boolean = true;
}
}//package
Section 24
//EatHp (EatHp)
package {
import flash.display.*;
public dynamic class EatHp extends MovieClip {
public function EatHp(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
if (parent != null){
parent.removeChild(this);
};
}
}
}//package
Section 25
//EmbedObject (EmbedObject)
package {
import flash.external.*;
import flash.system.*;
public class EmbedObject {
private var attemptedPropsRetrieval:Boolean;// = false
private var embedObjectProps:Object;
private static var _singleton:EmbedObject;
private static var SET_CALLBACK_NAME:String = "asorg_setEmbedObjectProps";
public function EmbedObject(){
attemptedPropsRetrieval = false;
super();
initialize();
}
public function external_SetEmbedObjectProps(_arg1:Object){
this.embedObjectProps = _arg1;
}
private function initialize(){
ExternalInterface.addCallback(SET_CALLBACK_NAME, external_SetEmbedObjectProps);
}
public function _getEmbedObjectProps():Object{
if (!attemptedPropsRetrieval){
retrieveEmbedObjectProps();
attemptedPropsRetrieval = true;
};
return (embedObjectProps);
}
public function retrieveEmbedObjectProps(){
retrieveEmbedObjectPropsForTagname("embed");
if (!embedObjectProps){
retrieveEmbedObjectPropsForTagname("object");
};
}
public function executeJS(_arg1:String):Object{
return (ExternalInterface.call((("function() {" + _arg1) + "}")));
}
public function retrieveEmbedObjectPropsForTagname(_arg1:String){
var _local2:String;
if ((((Capabilities.playerType == "PlugIn")) || ((Capabilities.playerType == "ActiveX")))){
_local2 = (((((("var elts = document.getElementsByTagName('" + _arg1) + "'); for (var i=0;i<elts.length;i++) {if(typeof elts[i].") + SET_CALLBACK_NAME) + " != 'undefined') { if (!elts[i].getAttribute('id')) {elts[i].setAttribute('id','asorgid_'+Math.floor(Math.random()*100000));} var props = {}; props.id = elts[i].getAttribute('id'); for (var x=0; x < elts[i].attributes.length; x++) { props[elts[i].attributes[x].nodeName] = elts[i].attributes[x].nodeValue;} elts[i].") + SET_CALLBACK_NAME) + "(props); }}");
singleton.executeJS(_local2);
} else {
singleton.external_SetEmbedObjectProps({});
};
}
public static function getId():String{
return (getEnumerableParam("id"));
}
public static function getEnumerableParams():Object{
if (!singleton.embedObjectProps){
singleton._getEmbedObjectProps();
};
return (singleton.embedObjectProps);
}
public static function getSingleton():EmbedObject{
if (_singleton == null){
_singleton = new (EmbedObject);
};
return (_singleton);
}
private static function testFunc(){
}
public static function getParamViaExternal(_arg1:String):Object{
return (Object(singleton.executeJS((((("return document.getElementById('" + getEnumerableParam("id")) + "').getAttribute('") + _arg1) + "');"))));
}
public static function get singleton():EmbedObject{
return (getSingleton());
}
public static function getEnumerableParam(_arg1:String):String{
return (String(getEnumerableParams()[_arg1]));
}
}
}//package
Section 26
//FFade (FFade)
package {
import flash.display.*;
import flash.events.*;
public class FFade {
public static var SPEED = 0.1;
public static var HIDE = "ffd_hide";
public static var SHOW = "ffd_show";
public static function In(_arg1:DisplayObject, _arg2:Number=0, _arg3:Number=0.2){
if (_arg1 == null){
return;
};
if (_arg1.hasEventListener(Event.ENTER_FRAME)){
_arg1.removeEventListener(Event.ENTER_FRAME, FFade.FadeInFrame);
_arg1.removeEventListener(Event.ENTER_FRAME, FFade.FadeOutFrame);
};
if (_arg2 < 0){
_arg2 = 0;
};
_arg1.alpha = -(_arg2);
_arg1.visible = true;
_arg1.addEventListener(Event.ENTER_FRAME, FFade.FadeInFrame);
}
public static function Out(_arg1:DisplayObject, _arg2:Number=0, _arg3:Number=0.2){
if (_arg1 == null){
return;
};
if (_arg1.hasEventListener(Event.ENTER_FRAME)){
_arg1.removeEventListener(Event.ENTER_FRAME, FFade.FadeInFrame);
_arg1.removeEventListener(Event.ENTER_FRAME, FFade.FadeOutFrame);
};
if (_arg2 < 0){
_arg2 = 0;
};
_arg1.alpha = (_arg2 + 1);
_arg1.addEventListener(Event.ENTER_FRAME, FFade.FadeOutFrame);
}
static function FadeOutFrame(_arg1:Event){
var _local2:DisplayObject;
_local2 = DisplayObject(_arg1.currentTarget);
if (_local2 != null){
_local2.alpha = (_local2.alpha - FFade.SPEED);
if (_local2.alpha <= 0){
_local2.visible = false;
_local2.removeEventListener(Event.ENTER_FRAME, FFade.FadeOutFrame);
};
};
}
static function FadeInFrame(_arg1:Event){
var _local2:DisplayObject;
_local2 = DisplayObject(_arg1.currentTarget);
if (_local2 != null){
_local2.alpha = (_local2.alpha + FFade.SPEED);
if (_local2.alpha >= 1){
_local2.alpha = 1;
_local2.removeEventListener(Event.ENTER_FRAME, FFade.FadeInFrame);
_local2.dispatchEvent(new Event("ffd_show"));
};
};
}
}
}//package
Section 27
//Game (Game)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.ui.*;
public class Game extends MovieClip {
private var _player:Player;
public var d_Back:MovieClip;
public var d_PauseWindow:MovieClip;
public var d_Life:TextField;
public var d_Pause:SimpleButton;
public var d_LevelUp:MovieClip;
private var _initX:int;// = 60
private var _initY:int;// = 225
public var d_End:MovieClip;
private var _mission:int;
public var d_Music:MovieClip;
public var turtle1:Trutle1;
public var turtle2:Trutle2;
public var turtle3:Trutle3;
public var turtle4:Trutle4;
public var turtle5:Trutle1;
private var hpProb:Number;// = 0.15
private var _level:int;
public var d_Mission:TextField;
public var d_Menu:SimpleButton;
public var d_Start:MovieClip;
public var d_Score:TextField;
public var d_Hp:MovieClip;
private var levelupChannel;
private var hpCount:int;
private var timer:Timer;
public var d_Sound:MovieClip;
private var trutleList:Array;
private var _time:int;
public var d_Level:TextField;
private var _life:int;
public var d_Time:TextField;
private var hpTime:int;// = 5
private var pause:Boolean;// = false
public static var AllScore:int = 0;
public function Game(){
var _local1:*;
pause = false;
_initX = 60;
_initY = 225;
hpTime = 5;
hpProb = 0.15;
super();
d_PauseWindow.visible = false;
d_PauseWindow.d_Pause.addEventListener(MouseEvent.CLICK, onPause);
d_Pause.addEventListener(MouseEvent.CLICK, onPause);
d_Menu.addEventListener(MouseEvent.CLICK, onExit);
d_Sound.addEventListener(MouseEvent.CLICK, onSound);
d_Sound.buttonMode = true;
d_Music.addEventListener(MouseEvent.CLICK, onMusic);
d_Music.buttonMode = true;
d_LevelUp.visible = false;
d_LevelUp.d_Play.addEventListener(MouseEvent.CLICK, onPlay);
this.stage.addEventListener(KeyboardEvent.KEY_DOWN, onKey);
Score = 0;
Level = 1;
_player = new Player();
this.addChild(_player);
_player.addEventListener(Player.JumpComplete, onJumpComplete);
_player.addEventListener(Player.DieComplete, onDieComplete);
_player.addEventListener(Player.JumpTop, onJumpTop);
this.setChildIndex(d_LevelUp, (this.numChildren - 1));
this.setChildIndex(d_PauseWindow, (this.numChildren - 1));
SoundMixer.stopAll();
trutleList = new Array();
trutleList[1] = turtle1;
trutleList[2] = turtle2;
trutleList[3] = turtle3;
trutleList[4] = turtle4;
trutleList[5] = turtle5;
_local1 = 1;
while (_local1 <= 5) {
trutleList[_local1].addEventListener("turtleLove", onTurtleLove);
_local1++;
};
timer = new Timer(1000);
timer.addEventListener(TimerEvent.TIMER, onTime);
Life = 5;
onPlay();
}
private function onTurtleLove(_arg1):void{
var _local2:uint;
_local2 = uint(_arg1.currentTarget.name.charAt(6));
if (((((!(_player.jump)) && (!(_player.die)))) && ((_player.pos == _local2)))){
playerDie();
};
trace("海龟落下去");
}
private function onKey(_arg1){
if (pause){
return;
};
switch (_arg1.keyCode){
case Keyboard.LEFT:
_player.leftJump();
break;
case Keyboard.RIGHT:
_player.rightJump();
break;
case Keyboard.UP:
_player.upJump();
break;
};
}
public function set Life(_arg1){
_life = _arg1;
d_Life.text = String(_arg1);
}
private function clear(){
var _local1:*;
timer.removeEventListener(TimerEvent.TIMER, onTime);
this.stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKey);
_player.over();
_local1 = 1;
while (_local1 <= 5) {
trutleList[_local1].over();
_local1++;
};
}
function onSound(_arg1){
if (d_Sound.currentFrame == 1){
d_Sound.gotoAndStop(2);
Config.SSound = false;
if (Config.soundChannel == null){
return;
};
Config.soundChannel.soundTransform = new SoundTransform(0);
} else {
d_Sound.gotoAndStop(1);
Config.SSound = true;
if (Config.soundChannel == null){
};
Config.soundChannel.soundTransform = new SoundTransform(1);
};
}
public function get Score(){
return (Game.AllScore);
}
private function onDieComplete(_arg1):void{
if (Life == 0){
gameOver();
} else {
Life--;
resetPlayer();
timer.start();
};
trace("死亡完成");
}
public function set Level(_arg1){
_level = _arg1;
d_Level.text = String(_arg1);
}
public function set Mission(_arg1){
_mission = _arg1;
d_Mission.text = String(_arg1);
}
public function set Score(_arg1){
Game.AllScore = _arg1;
d_Score.text = String(_arg1);
}
public function get Time(){
return (_time);
}
private function onJumpComplete(_arg1):void{
var _local2:Trutle;
if (_player.pos == 0){
if (d_Start.visible){
d_Start.visible = false;
if (d_End.visible){
FFade.Out(d_End, 1);
};
_player.setMonkey(true);
playMusic(SGet);
};
} else {
if (_player.pos == _player.maxpos){
if (_player.monkey){
d_End.visible = true;
d_End.alpha = 1;
FFade.In(d_Start, 1);
_player.setMonkey(false);
Score = (Score + 100);
Mission--;
if (Mission <= 0){
levelUp();
} else {
playMusic(SPut);
};
};
} else {
_local2 = trutleList[_player.pos];
if (_local2.checkTread()){
_local2.tread();
playMusic(SJump);
} else {
playerDie();
};
};
};
trace("猴子落地");
}
function resetPlayer(){
_player.x = this._initX;
_player.y = this._initY;
_player.pos = 0;
_player.scaleX = 1;
_player.jump = false;
_player.setDie(false);
_player.setMonkey(true);
d_Start.visible = false;
}
public function get Life(){
return (_life);
}
function levelUp(){
var _local1:*;
var _local2:*;
timer.stop();
d_LevelUp.visible = true;
Level++;
d_LevelUp.d_Time.text = String((Time * 10));
_player.over();
_local1 = 1;
while (_local1 <= 5) {
trutleList[_local1].over();
_local1++;
};
if (Config.SMusic){
if (Config.soundChannel != null){
Config.soundChannel.stop();
Config.soundChannel = null;
};
_local2 = new SLevel();
levelupChannel = _local2.play();
};
}
private function onTime(_arg1){
if (pause){
return;
};
if ((Time % 3) == 0){
this.trutleList[(Math.floor((Math.random() * 5)) + 1)].toLove();
};
if (!d_Hp.visible){
if (Math.random() < hpProb){
d_Hp.visible = true;
d_Hp.x = (150 + (Math.floor((Math.random() * 5)) * 100));
hpCount = hpTime;
};
} else {
hpCount--;
if (hpCount <= 0){
d_Hp.visible = false;
};
};
Time--;
if (Time <= 0){
gameOver();
};
}
private function onPause(_arg1){
var _local2:*;
pause = !(pause);
d_PauseWindow.visible = pause;
_player.pause = pause;
_local2 = 1;
while (_local2 <= 5) {
trutleList[_local2].pause = pause;
_local2++;
};
}
public function get Level(){
return (_level);
}
private function playMusic(_arg1:Class){
var _local2:*;
if (Config.SMusic){
_local2 = new (_arg1);
_local2.play();
};
}
private function onJumpTop(_arg1):void{
var _local2:uint;
var _local3:*;
if (d_Hp.visible){
_local2 = (((d_Hp.x - 150) / 100) + 1);
if ((((_local2 == _player.pos)) && (_player.hit.hitTestObject(d_Hp)))){
trace("吃到血!");
d_Hp.visible = false;
_local3 = new EatHp();
this.addChild(_local3);
_local3.x = d_Hp.x;
_local3.y = d_Hp.y;
Score = (Score + 300);
playMusic(SHp);
};
};
trace("跳到顶端");
}
public function get Mission(){
return (_mission);
}
public function disorder(_arg1:Array):Array{
var _local2:uint;
var _local3:*;
var _local4:uint;
var _local5:uint;
_local2 = _arg1.length;
_local5 = 0;
while (_local5 < _local2) {
_local4 = int((Math.random() * _local2));
_local3 = _arg1[_local5];
_arg1[_local5] = _arg1[_local4];
_arg1[_local4] = _local3;
_local5++;
};
while (--_local5 >= 0) {
_local4 = int((Math.random() * _local2));
_local3 = _arg1[_local5];
_arg1[_local5] = _arg1[_local4];
_arg1[_local4] = _local3;
};
return (_arg1);
}
function onMusic(_arg1){
if (d_Music.currentFrame == 1){
d_Music.gotoAndStop(2);
Config.SMusic = false;
} else {
d_Music.gotoAndStop(1);
Config.SMusic = true;
};
}
function onExit(_arg1){
this.clear();
Config.soundChannel = null;
MovieClip(parent).gotoAndPlay("start");
}
function onPlay(_arg1=null){
var _local2:*;
if (((Config.SSound) && ((Config.soundChannel == null)))){
_local2 = new SBack();
Config.soundChannel = _local2.play(0, 100000);
};
if (levelupChannel != null){
levelupChannel.stop();
levelupChannel = null;
};
if (d_LevelUp.visible){
Score = (Score + uint(d_LevelUp.d_Time.text));
d_LevelUp.visible = false;
};
if (_arg1 != null){
if (d_Back.currentFrame == d_Back.totalFrames){
d_Back.gotoAndStop(1);
} else {
d_Back.nextFrame();
};
};
Time = (60 + (Level * 20));
Mission = (2 + (Level * 3));
this.trutleList[(Math.floor((Math.random() * 5)) + 1)].toLove();
d_End.visible = false;
d_Hp.visible = false;
this.resetPlayer();
timer.start();
}
private function getClass(_arg1:String):Class{
return ((this.root.loaderInfo.applicationDomain.getDefinition(_arg1) as Class));
}
public function set Time(_arg1){
var _local2:String;
var _local3:String;
_time = _arg1;
_local2 = String(Math.floor((_arg1 / 60)));
if (_local2.length == 1){
_local2 = ("0" + _local2);
};
_local3 = String(Math.floor((_arg1 % 60)));
if (_local3.length == 1){
_local3 = ("0" + _local3);
};
d_Time.text = ((_local2 + ":") + _local3);
}
function gameOver(){
this.clear();
MovieClip(parent).gotoAndPlay("over");
Config.soundChannel = null;
}
private function playerDie(){
var _local1:*;
_player.setDie(true);
timer.stop();
_local1 = new WaterFlower();
this.addChild(_local1);
_local1.x = _player.x;
_local1.y = _player.y;
playMusic(SDie);
}
}
}//package
Section 28
//Input (Input)
package {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Input {
public static var mousePos:Point;
private static var _keysDown:Object;
public static var stage:Stage;
private static function keyPressedHandler(_arg1:KeyboardEvent):void{
_keysDown[_arg1.keyCode] = true;
}
public static function isDown(_arg1:uint):Boolean{
return (Boolean(_keysDown[_arg1]));
}
private static function keyReleasedHandler(_arg1:KeyboardEvent):void{
delete _keysDown[_arg1.keyCode];
}
public static function init(_arg1:Stage){
mousePos = new Point();
_arg1.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
_keysDown = new Object();
_arg1.addEventListener(KeyboardEvent.KEY_DOWN, keyPressedHandler);
_arg1.addEventListener(KeyboardEvent.KEY_UP, keyReleasedHandler);
_arg1.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler);
}
private static function focusOutHandler(_arg1:FocusEvent):void{
_keysDown = new Object();
}
public static function destroy():void{
if (stage == null){
return;
};
_keysDown = new Object();
stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyPressedHandler);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyReleasedHandler);
stage.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler);
stage = null;
}
private static function mouseMoveHandler(_arg1:MouseEvent):void{
mousePos.x = _arg1.stageX;
mousePos.y = _arg1.stageY;
}
}
}//package
Section 29
//IntUtil (IntUtil)
package {
public class IntUtil {
private static var hexChars:String = "0123456789abcdef";
public static function toHex(_arg1:int, _arg2:Boolean=false):String{
var _local3:String;
var _local4:int;
var _local5:int;
_local3 = "";
if (_arg2){
_local4 = 0;
while (_local4 < 4) {
_local3 = (_local3 + (hexChars.charAt(((_arg1 >> (((3 - _local4) * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> ((3 - _local4) * 8)) & 15))));
_local4++;
};
} else {
_local5 = 0;
while (_local5 < 4) {
_local3 = (_local3 + (hexChars.charAt(((_arg1 >> ((_local5 * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> (_local5 * 8)) & 15))));
_local5++;
};
};
return (_local3);
}
public static function ror(_arg1:int, _arg2:int):uint{
var _local3:int;
_local3 = (32 - _arg2);
return (((_arg1 << _local3) | (_arg1 >>> (32 - _local3))));
}
public static function rol(_arg1:int, _arg2:int):int{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
}
}//package
Section 30
//MD5 (MD5)
package {
public class MD5 {
private static function ff(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(f, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private static function createBlocks(_arg1:String):Array{
var _local2:Array;
var _local3:int;
var _local4:int;
var _local5:int;
_local2 = new Array();
_local3 = (_arg1.length * 8);
_local4 = 0xFF;
_local5 = 0;
while (_local5 < _local3) {
_local2[(_local5 >> 5)] = (_local2[(_local5 >> 5)] | ((_arg1.charCodeAt((_local5 / 8)) & _local4) << (_local5 % 32)));
_local5 = (_local5 + 8);
};
_local2[(_local3 >> 5)] = (_local2[(_local3 >> 5)] | (128 << (_local3 % 32)));
_local2[((((_local3 + 64) >>> 9) << 4) + 14)] = _local3;
return (_local2);
}
private static function ii(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(i, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private static function f(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 & _arg2) | (~(_arg1) & _arg3)));
}
private static function g(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 & _arg3) | (_arg2 & ~(_arg3))));
}
private static function h(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 ^ _arg2) ^ _arg3));
}
private static function i(_arg1:int, _arg2:int, _arg3:int):int{
return ((_arg2 ^ (_arg1 | ~(_arg3))));
}
private static function transform(_arg1:Function, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int):int{
var _local9:int;
_local9 = (((_arg2 + int(_arg1(_arg3, _arg4, _arg5))) + _arg6) + _arg8);
return ((IntUtil.rol(_local9, _arg7) + _arg3));
}
private static function hh(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(h, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
public static function hash(_arg1:String):String{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:Array;
var _local11:int;
var _local12:int;
_local2 = 1732584193;
_local3 = -271733879;
_local4 = -1732584194;
_local5 = 271733878;
_local10 = createBlocks(_arg1);
_local11 = _local10.length;
_local12 = 0;
while (_local12 < _local11) {
_local6 = _local2;
_local7 = _local3;
_local8 = _local4;
_local9 = _local5;
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 0)], 7, -680876936);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 1)], 12, -389564586);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 2)], 17, 606105819);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 3)], 22, -1044525330);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 4)], 7, -176418897);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 5)], 12, 1200080426);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 6)], 17, -1473231341);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 7)], 22, -45705983);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 8)], 7, 1770035416);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 9)], 12, -1958414417);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 10)], 17, -42063);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 11)], 22, -1990404162);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 12)], 7, 1804603682);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 13)], 12, -40341101);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 14)], 17, -1502002290);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 15)], 22, 1236535329);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 1)], 5, -165796510);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 6)], 9, -1069501632);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 11)], 14, 643717713);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 0)], 20, -373897302);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 5)], 5, -701558691);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 10)], 9, 38016083);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 15)], 14, -660478335);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 4)], 20, -405537848);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 9)], 5, 568446438);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 14)], 9, -1019803690);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 3)], 14, -187363961);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 8)], 20, 1163531501);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 13)], 5, -1444681467);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 2)], 9, -51403784);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 7)], 14, 1735328473);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 12)], 20, -1926607734);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 5)], 4, -378558);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 8)], 11, -2022574463);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 11)], 16, 1839030562);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 14)], 23, -35309556);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 1)], 4, -1530992060);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 4)], 11, 1272893353);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 7)], 16, -155497632);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 10)], 23, -1094730640);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 13)], 4, 681279174);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 0)], 11, -358537222);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 3)], 16, -722521979);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 6)], 23, 76029189);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 9)], 4, -640364487);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 12)], 11, -421815835);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 15)], 16, 530742520);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 2)], 23, -995338651);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 0)], 6, -198630844);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 7)], 10, 1126891415);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 14)], 15, -1416354905);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 5)], 21, -57434055);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 12)], 6, 1700485571);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 3)], 10, -1894986606);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 10)], 15, -1051523);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 1)], 21, -2054922799);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 8)], 6, 1873313359);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 15)], 10, -30611744);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 6)], 15, -1560198380);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 13)], 21, 1309151649);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 4)], 6, -145523070);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 11)], 10, -1120210379);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 2)], 15, 718787259);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 9)], 21, -343485551);
_local2 = (_local2 + _local6);
_local3 = (_local3 + _local7);
_local4 = (_local4 + _local8);
_local5 = (_local5 + _local9);
_local12 = (_local12 + 16);
};
return ((((IntUtil.toHex(_local2) + IntUtil.toHex(_local3)) + IntUtil.toHex(_local4)) + IntUtil.toHex(_local5)));
}
private static function gg(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(g, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
}
}//package
Section 31
//Player (Player)
package {
import flash.display.*;
import flash.events.*;
public class Player extends MovieClip {
private var _xOffset:int;// = 100
private var _jumpHSpeed:Number;
public var jump:Boolean;
private var _jumpInitX:int;
private var _jumpInitY:int;
private var _yOffset:int;// = 118
private var _jumpHSpeedDef:Number;// = 7
public var die:Boolean;
private var _jumpGravity:Number;// = 3
public var hit:MovieClip;
private var _maxpos:uint;// = 6
private var _pos:uint;// = 1
private var _jumpVSpeedDef:Number;// = -20
public var monkey:Boolean;
private var _headFix:int;// = 8
private var _jumpVSpeed:Number;
public var pause:Boolean;// = false
public static const JumpStart:String = "playerjumpstart";
public static const JumpTop:String = "playerjumptop";
public static const JumpComplete:String = "playerjumpcomplete";
public static const DieComplete:String = "playerdiecomplete";
public function Player(){
pause = false;
_yOffset = 118;
_xOffset = 100;
_headFix = 8;
_jumpHSpeedDef = 7;
_jumpVSpeedDef = -20;
_jumpGravity = 3;
_pos = 1;
_maxpos = 6;
super();
addFrameScript(0, frame1);
hit.visible = false;
}
private function onTick(_arg1){
if (pause){
return;
};
this.x = (this.x + _jumpHSpeed);
this.y = (this.y + _jumpVSpeed);
_jumpVSpeed = (_jumpVSpeed + _jumpGravity);
if ((((_jumpVSpeed >= 0)) && ((_jumpVSpeed < _jumpGravity)))){
dispatchEvent(new Event(JumpTop));
};
if ((((((this.y >= _jumpInitY)) && ((_jumpVSpeed > 0)))) && ((((((_jumpHSpeed == 0)) || ((((_jumpHSpeed > 0)) && ((this.x > _jumpInitX)))))) || ((((_jumpHSpeed < 0)) && ((this.x < _jumpInitX)))))))){
this.y = _jumpInitY;
this.x = _jumpInitX;
if (monkey){
this.gotoAndStop(1);
} else {
this.gotoAndStop(3);
};
this.removeEventListener(Event.ENTER_FRAME, onTick);
jump = false;
dispatchEvent(new Event(JumpComplete));
};
}
public function get pos():uint{
return (_pos);
}
public function rightJump(){
if (((((jump) || ((_pos == _maxpos)))) || (die))){
return;
};
if (_pos == (_maxpos - 1)){
addJump(_jumpHSpeedDef, (_jumpVSpeedDef - _headFix), -(_yOffset));
} else {
if (_pos == 0){
addJump(_jumpHSpeedDef, (_jumpVSpeedDef + _headFix), _yOffset);
} else {
addJump(_jumpHSpeedDef, _jumpVSpeedDef);
};
};
_pos++;
this.scaleX = 1;
}
function frame1(){
stop();
}
private function onDieTick(_arg1){
if (pause){
return;
};
this.alpha = (this.alpha - 0.03);
this.y = (this.y + 6);
if (this.alpha <= 0){
this.removeEventListener(Event.ENTER_FRAME, onDieTick);
dispatchEvent(new Event(DieComplete));
};
}
public function get maxpos():uint{
return (_maxpos);
}
private function addJump(_arg1, _arg2, _arg3=0){
jump = true;
dispatchEvent(new Event(JumpStart));
_jumpHSpeed = _arg1;
_jumpVSpeed = _arg2;
if (_jumpHSpeed > 0){
_jumpInitX = (this.x + _xOffset);
} else {
if (_jumpHSpeed < 0){
_jumpInitX = (this.x - _xOffset);
} else {
_jumpInitX = this.x;
};
};
_jumpInitY = (this.y + _arg3);
this.addEventListener(Event.ENTER_FRAME, onTick);
if (monkey){
this.gotoAndStop(2);
} else {
this.gotoAndStop(4);
};
}
public function set pos(_arg1){
_pos = _arg1;
}
public function upJump(){
if (((((((jump) || ((_pos == 0)))) || ((_pos == _maxpos)))) || (die))){
return;
};
addJump(0, (_jumpVSpeedDef - 5));
}
public function setDie(_arg1):void{
die = _arg1;
this.alpha = 1;
if (_arg1){
this.gotoAndStop(5);
this.addEventListener(Event.ENTER_FRAME, onDieTick);
} else {
this.gotoAndStop(3);
this.removeEventListener(Event.ENTER_FRAME, onDieTick);
};
}
public function over(){
die = true;
this.removeEventListener(Event.ENTER_FRAME, onDieTick);
this.removeEventListener(Event.ENTER_FRAME, onTick);
}
public function setMonkey(_arg1){
monkey = _arg1;
if (_arg1){
if (jump){
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
};
} else {
if (jump){
this.gotoAndStop(4);
} else {
this.gotoAndStop(3);
};
};
}
public function leftJump(){
if (((((jump) || ((_pos == 0)))) || (die))){
return;
};
if (_pos == 1){
addJump(-(_jumpHSpeedDef), (_jumpVSpeedDef - _headFix), -(_yOffset));
} else {
if (_pos == _maxpos){
addJump(-(_jumpHSpeedDef), (_jumpVSpeedDef + _headFix), _yOffset);
} else {
addJump(-(_jumpHSpeedDef), _jumpVSpeedDef);
};
};
_pos--;
this.scaleX = -1;
}
}
}//package
Section 32
//SBack (SBack)
package {
import flash.media.*;
public dynamic class SBack extends Sound {
}
}//package
Section 33
//SDie (SDie)
package {
import flash.media.*;
public dynamic class SDie extends Sound {
}
}//package
Section 34
//SGet (SGet)
package {
import flash.media.*;
public dynamic class SGet extends Sound {
}
}//package
Section 35
//SHp (SHp)
package {
import flash.media.*;
public dynamic class SHp extends Sound {
}
}//package
Section 36
//SJump (SJump)
package {
import flash.media.*;
public dynamic class SJump extends Sound {
}
}//package
Section 37
//SLevel (SLevel)
package {
import flash.media.*;
public dynamic class SLevel extends Sound {
}
}//package
Section 38
//SOver (SOver)
package {
import flash.media.*;
public dynamic class SOver extends Sound {
}
}//package
Section 39
//SPut (SPut)
package {
import flash.media.*;
public dynamic class SPut extends Sound {
}
}//package
Section 40
//SStart (SStart)
package {
import flash.media.*;
public dynamic class SStart extends Sound {
}
}//package
Section 41
//Trutle (Trutle)
package {
import flash.display.*;
public class Trutle extends MovieClip {
public var trutle:MovieClip;
public function set pause(_arg1){
if (_arg1){
if ((((this.currentFrame >= 17)) && ((this.currentFrame < 78)))){
this.stop();
};
} else {
if ((((this.currentFrame >= 17)) && ((this.currentFrame < 78)))){
this.play();
};
};
}
public function tread(){
this.trutle.gotoAndPlay(2);
}
public function toLove(){
if (this.currentFrame < 18){
this.gotoAndPlay("love");
};
}
public function over(){
gotoAndStop(1);
}
public function checkTread(){
return ((this.currentFrame <= 49));
}
}
}//package
Section 42
//Trutle1 (Trutle1)
package {
import flash.events.*;
public dynamic class Trutle1 extends Trutle {
public function Trutle1(){
addFrameScript(0, frame1, 48, frame49, 77, frame78);
}
function frame78(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame49(){
dispatchEvent(new Event("turtleLove"));
}
}
}//package
Section 43
//Trutle2 (Trutle2)
package {
import flash.events.*;
public dynamic class Trutle2 extends Trutle {
public function Trutle2(){
addFrameScript(0, frame1, 48, frame49, 77, frame78);
}
function frame78(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame49(){
dispatchEvent(new Event("turtleLove"));
}
}
}//package
Section 44
//Trutle3 (Trutle3)
package {
import flash.events.*;
public dynamic class Trutle3 extends Trutle {
public function Trutle3(){
addFrameScript(0, frame1, 48, frame49, 77, frame78);
}
function frame78(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame49(){
dispatchEvent(new Event("turtleLove"));
}
}
}//package
Section 45
//Trutle4 (Trutle4)
package {
import flash.events.*;
public dynamic class Trutle4 extends Trutle {
public function Trutle4(){
addFrameScript(0, frame1, 48, frame49, 77, frame78);
}
function frame78(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame49(){
dispatchEvent(new Event("turtleLove"));
}
}
}//package
Section 46
//WaterFlower (WaterFlower)
package {
import flash.display.*;
public dynamic class WaterFlower extends MovieClip {
public function WaterFlower(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
if (parent != null){
MovieClip(parent).removeChild(this);
};
}
}
}//package