Section 1
//PlayerView (GameObjects.PlayerView)
package GameObjects {
import flash.display.*;
import flash.utils.*;
import Level.*;
import flash.geom.*;
public class PlayerView extends MovieClip {
public var slideT:Timer;
public var left:Boolean;
public var bLeft:Number;
public var guy:MovieClip;
public var down:Boolean;
public var alive:Boolean;
public var up:Boolean;
public var right:Boolean;
public var tapPush:int;// = 10
public var invincible:int;// = 0
public var back:Background;
public var bRight:Number;
public var vY:Number;// = 0
public var vX:Number;// = 0
public var bDown:Number;
public var bUp:Number;
public var slide:Boolean;
public var airborne:Boolean;
public var inGame:Boolean;
public var player2:Boolean;
public function PlayerView(_arg1:Array=null, _arg2:Boolean=false){
var _look = _arg1;
var p2 = _arg2;
slideT = new Timer(1000, 1);
super();
mouseChildren = false;
try {
name = "player";
} catch(e:Error) {
};
player2 = p2;
if (player2){
guy.y = (guy.y - 10);
};
if (_look != null){
look = _look;
};
}
public function set look(_arg1:Array){
guy.headi = _arg1[0];
guy.expressi = _arg1[1];
guy.armi = _arg1[2];
guy.bodyi = _arg1[3];
guy.legi = _arg1[4];
}
public function get look():Array{
return ([guy.headi, guy.expressi, guy.armi, guy.bodyi, guy.legi]);
}
public function reset(){
left = (right = (up = (slide = (down = (airborne = false)))));
alive = (inGame = true);
slideT.stop();
bLeft = -25;
bRight = 25;
bUp = -100;
bDown = -3;
y = 370;
x = (50 - (player2) ? 10 : 0);
vX = (vY = (invincible = 0));
reColour();
back = Facade.gameM.background[1];
guy.gotoAndPlay("walk");
}
public function reColour(_arg1:Number=0){
guy.transform.colorTransform = new ColorTransform(1, 1, 1, 1, _arg1, _arg1, _arg1);
}
public function endGame(){
slideT.stop();
up = (down = (left = (right = (slide = (alive = false)))));
}
}
}//package GameObjects
Section 2
//ActualyLoader_4 (Kawairun_fla.ActualyLoader_4)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class ActualyLoader_4 extends MovieClip {
public const FRAME_RATE_ADJUST:Boolean = true;
public const AUTO_PLAY:Boolean = false;
public const LOADER_FRAME_RATE:Number = 30;
public var bar:MovieClip;
public var initialized:Boolean;
public var loadingComplete:Boolean;
public var movieFrameRate:Number;
public function ActualyLoader_4(){
addFrameScript(0, frame1, 1, frame2);
}
function frame2(){
MovieClip(this.parent).gotoAndStop(2);
MovieClip(this.parent.parent).gotoAndStop(2);
stop();
}
public function cleanup(_arg1:Event=null){
if (initialized){
removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
if (meetsVersion([9, 0, 28, 0])){
removeEventListener(Event.REMOVED_FROM_STAGE, cleanup);
};
if (movieFrameRate){
stage.frameRate = movieFrameRate;
movieFrameRate = 0;
};
};
initialized = false;
}
public function meetsVersion(_arg1:Array):Boolean{
var _local2:Array = String(Capabilities.version.split(" ")[1]).split(",");
var _local3:uint;
while (_local3 < _arg1.length) {
if (uint(_local2[_local3]) > _arg1[_local3]){
return (true);
};
if (uint(_local2[_local3]) < _arg1[_local3]){
return (false);
};
_local3++;
};
return (true);
}
public function enterFrameHandler(_arg1:Event=null):void{
var _local2:Number;
if (((((!(movieFrameRate)) && (FRAME_RATE_ADJUST))) && (stage))){
movieFrameRate = stage.frameRate;
stage.frameRate = LOADER_FRAME_RATE;
};
if (!loadingComplete){
_local2 = 0;
if (loaderInfo){
_local2 = (loaderInfo.bytesLoaded / loaderInfo.bytesTotal);
};
if (bar){
bar.scaleX = (_local2 * 0.6);
};
if (_local2 == 1){
loadingComplete = true;
if (AUTO_PLAY){
startMovie();
} else {
gotoAndPlay(2);
};
};
};
}
public function startMovie():void{
cleanup();
if (((root) && ((root is MovieClip)))){
MovieClip(root).play();
};
dispatchEvent(new Event(Event.COMPLETE));
}
public function init():void{
if (initialized){
return;
};
movieFrameRate = 0;
if (((FRAME_RATE_ADJUST) && (stage))){
movieFrameRate = stage.frameRate;
stage.frameRate = LOADER_FRAME_RATE;
};
initialized = true;
stop();
if (((root) && ((root is MovieClip)))){
MovieClip(root).stop();
};
loadingComplete = false;
addEventListener(Event.ENTER_FRAME, enterFrameHandler, false, 0, true);
if (meetsVersion([9, 0, 28, 0])){
addEventListener(Event.REMOVED_FROM_STAGE, cleanup, false, 0, true);
};
enterFrameHandler();
}
function frame1(){
initialized = false;
init();
}
}
}//package Kawairun_fla
Section 3
//ArmA1_87 (Kawairun_fla.ArmA1_87)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class ArmA1_87 extends MovieClip {
public function ArmA1_87(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame8(){
stop();
}
function frame9(){
stop();
}
}
}//package Kawairun_fla
Section 4
//ArmA2_88 (Kawairun_fla.ArmA2_88)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class ArmA2_88 extends MovieClip {
public function ArmA2_88(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame8(){
stop();
}
function frame9(){
stop();
}
}
}//package Kawairun_fla
Section 5
//B_112 (Kawairun_fla.B_112)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class B_112 extends MovieClip {
public function B_112(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 6
//B_113 (Kawairun_fla.B_113)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class B_113 extends MovieClip {
public function B_113(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 7
//B_114 (Kawairun_fla.B_114)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class B_114 extends MovieClip {
public function B_114(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 8
//B_115 (Kawairun_fla.B_115)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class B_115 extends MovieClip {
public function B_115(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 9
//B_117 (Kawairun_fla.B_117)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class B_117 extends MovieClip {
public function B_117(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 10
//B_118 (Kawairun_fla.B_118)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class B_118 extends MovieClip {
public function B_118(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 11
//B_119 (Kawairun_fla.B_119)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class B_119 extends MovieClip {
public function B_119(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 12
//BUT_120 (Kawairun_fla.BUT_120)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class BUT_120 extends MovieClip {
public function BUT_120(){
addFrameScript(0, frame1);
}
function frame1(){
buttonMode = true;
mouseChildren = false;
}
}
}//package Kawairun_fla
Section 13
//CoverButton_121 (Kawairun_fla.CoverButton_121)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class CoverButton_121 extends MovieClip {
public var bcoverb:MovieClip;
public function CoverButton_121(){
addFrameScript(0, frame1, 29, frame30, 59, frame60);
}
function frame1(){
stop();
}
function frame60(){
gotoAndStop(1);
}
function frame30(){
stop();
}
}
}//package Kawairun_fla
Section 14
//CreditsPannel_125 (Kawairun_fla.CreditsPannel_125)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class CreditsPannel_125 extends MovieClip {
public var UIButton:Backbutton;
public var xelub:MovieClip;
public var secret:TextField;
public var thepeasantb:MovieClip;
public var waterflameb:MovieClip;
public function CreditsPannel_125(){
addFrameScript(0, frame1);
}
function frame1(){
xelub.buttonMode = (thepeasantb.buttonMode = (waterflameb.buttonMode = true));
}
}
}//package Kawairun_fla
Section 15
//Descriptions_146 (Kawairun_fla.Descriptions_146)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Descriptions_146 extends MovieClip {
public function Descriptions_146(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 16
//DropDowns_124 (Kawairun_fla.DropDowns_124)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class DropDowns_124 extends MovieClip {
public var single:MovieClip;
public var credits:MovieClip;
public var i:int;
public var highscore:MovieClip;
public var multi:MovieClip;
public var mDrop:MovieClip;
public function DropDowns_124(){
addFrameScript(0, frame1, 3, frame4, 49, frame50, 79, frame80, 119, frame120, 154, frame155, 179, frame180, 200, frame201, 201, frame202, 239, frame240, 270, frame271, 271, frame272, 310, frame311, 349, frame350, 350, frame351, 384, frame385, 414, frame415);
}
function frame272(){
multi.addChild(Facade.gameM.playerV1);
multi.addChild(Facade.gameM.playerV2);
Facade.gameM.playerV1.guy.gotoAndPlay("stand");
Facade.gameM.playerV1.x = 105;
Facade.gameM.playerV1.y = -15;
Facade.gameM.playerV2.guy.gotoAndPlay("stand");
Facade.gameM.playerV2.x = -115;
Facade.gameM.playerV2.y = -5;
}
function frame350(){
stop();
}
function frame351(){
if (Facade.gameM.save.data.medals[4] == false){
Facade.gameM.save.data.medals[4] = true;
Facade.stage.addChild(Facade.gameUI.medalS);
Facade.gameUI.medalS.gotoAndPlay(1);
};
i = 0;
while (i < 9) {
if (Facade.gameM.save.data.medals[i]){
mDrop[("fader" + i)].gotoAndStop(2);
};
i = (i + 1);
};
}
function frame155(){
stop();
}
function frame311(){
stop();
}
function frame415(){
stop();
}
function frame50(){
credits.secret.text = Facade.gameM.username;
stop();
}
function frame180(){
Facade.gameUI.showLeaderboard();
stop();
}
function frame240(){
stop();
}
function frame120(){
stop();
}
function frame385(){
stop();
}
function frame1(){
stop();
}
function frame80(){
stop();
}
function frame201(){
stop();
}
function frame4(){
credits.secret.text = Facade.gameM.username;
}
function frame202(){
single.addChild(Facade.gameM.playerV1);
Facade.gameM.playerV1.guy.gotoAndPlay("stand");
Facade.gameM.playerV1.x = -10;
Facade.gameM.playerV1.y = 0;
}
function frame271(){
stop();
}
}
}//package Kawairun_fla
Section 17
//F1O_30 (Kawairun_fla.F1O_30)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class F1O_30 extends MovieClip {
public function F1O_30(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 18
//F3O_38 (Kawairun_fla.F3O_38)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class F3O_38 extends MovieClip {
public function F3O_38(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 19
//G1O_45 (Kawairun_fla.G1O_45)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class G1O_45 extends MovieClip {
public function G1O_45(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 20
//G1OO_53 (Kawairun_fla.G1OO_53)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class G1OO_53 extends MovieClip {
public function G1OO_53(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 21
//G2G_59 (Kawairun_fla.G2G_59)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class G2G_59 extends MovieClip {
public function G2G_59(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 22
//G2O_60 (Kawairun_fla.G2O_60)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class G2O_60 extends MovieClip {
public function G2O_60(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 23
//G3O_57 (Kawairun_fla.G3O_57)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class G3O_57 extends MovieClip {
public function G3O_57(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 24
//G3OO_58 (Kawairun_fla.G3OO_58)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class G3OO_58 extends MovieClip {
public function G3OO_58(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 25
//GameboltzSplash_181 (Kawairun_fla.GameboltzSplash_181)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class GameboltzSplash_181 extends MovieClip {
public var botak:MovieClip;
public function GameboltzSplash_181(){
addFrameScript(194, frame195);
}
function frame195(){
parent.nextFrame();
}
}
}//package Kawairun_fla
Section 26
//HighScoreSign_168 (Kawairun_fla.HighScoreSign_168)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class HighScoreSign_168 extends MovieClip {
public var label:TextField;
public function HighScoreSign_168(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 27
//KawairunLoader_1 (Kawairun_fla.KawairunLoader_1)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class KawairunLoader_1 extends MovieClip {
public var subLoader:MovieClip;
public var boltzb:SimpleButton;
public function KawairunLoader_1(){
addFrameScript(0, frame1, 1, frame2, 19, frame20);
}
public function loaderc(_arg1:Event):void{
gotoAndPlay(3);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, loaderc);
stage.removeEventListener(MouseEvent.CLICK, loaderc);
}
function frame1(){
stop();
boltzb.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.gameboltz.com/home.php?gameref=kawairun"));
});
}
function frame2(){
stage.addEventListener(KeyboardEvent.KEY_DOWN, loaderc);
stage.addEventListener(MouseEvent.CLICK, loaderc);
subLoader.buttonMode = true;
subLoader.mouseChildren = false;
}
function frame20(){
MovieClip(this.parent).gotoAndStop(3);
stop();
}
}
}//package Kawairun_fla
Section 28
//LowerLeg_90 (Kawairun_fla.LowerLeg_90)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class LowerLeg_90 extends MovieClip {
public function LowerLeg_90(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame8(){
stop();
}
function frame9(){
stop();
}
}
}//package Kawairun_fla
Section 29
//MainTimeline (Kawairun_fla.MainTimeline)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import mochi.as3.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class MainTimeline extends MovieClip {
public var my_notice1;
public var my_notice2;
public var my_notice4;
public var my_notice5;
public var my_notice;
public var loader:MovieClip;
public var my_menu:ContextMenu;
public var my_notice6;
public var my_notice7;
public function MainTimeline(){
addFrameScript(0, frame1, 2, frame3);
}
function frame3(){
Facade.initialize(stage);
stop();
}
function frame1(){
stop();
MochiServices.connect("ded71e344dc7c406", root, function (_arg1:String){
trace(("ERROR: " + _arg1));
});
MochiScores.setBoardID("68d2605238b547d3");
MochiBot.track(this, "1498c1c1");
my_menu = new ContextMenu();
my_menu.hideBuiltInItems();
my_notice = new ContextMenuItem("Developed and Art by Xelu");
my_notice1 = new ContextMenuItem("Programmed by The Peasant");
my_notice2 = new ContextMenuItem("Music by : Waterflame");
my_notice4 = new ContextMenuItem("----------------------");
my_notice5 = new ContextMenuItem("Q for Quality");
my_notice6 = new ContextMenuItem("M to Mute Sound");
my_notice7 = new ContextMenuItem("P or ESC to pause the game");
my_menu.customItems.push(my_notice);
my_menu.customItems.push(my_notice1);
my_menu.customItems.push(my_notice2);
my_menu.customItems.push(my_notice4);
my_menu.customItems.push(my_notice5);
my_menu.customItems.push(my_notice6);
my_menu.customItems.push(my_notice7);
contextMenu = my_menu;
}
}
}//package Kawairun_fla
Section 30
//medalfader_144 (Kawairun_fla.medalfader_144)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class medalfader_144 extends MovieClip {
public function medalfader_144(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
mouseChildren = false;
}
function frame2(){
mouseChildren = false;
}
}
}//package Kawairun_fla
Section 31
//MenuInteractive_111 (Kawairun_fla.MenuInteractive_111)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class MenuInteractive_111 extends MovieClip {
public var dropdowns:MovieClip;
public var morebut:MovieClip;
public var boltzb:SimpleButton;
public var bmulti:MovieClip;
public var highbut:MovieClip;
public var bhowto:MovieClip;
public var bsingle:MovieClip;
public var bbh:MovieClip;
public var bmore:MovieClip;
public var howbut:MovieClip;
public var singlebut:MovieClip;
public var medbut:MovieClip;
public var titleplate:MovieClip;
public var multibut:MovieClip;
public var coverbtn:MovieClip;
public var boltzb1:MovieClip;
public var bmedals:MovieClip;
public var credbut:MovieClip;
public var bcredits:MovieClip;
public function MenuInteractive_111(){
addFrameScript(43, frame44, 105, frame106);
}
public function bmti(_arg1:MouseEvent){
bmulti.gotoAndPlay(2);
if (Facade.soundC.mute == false){
new BOver().play();
};
}
public function bcrdd(_arg1:MouseEvent){
coverbtn.gotoAndPlay(2);
dropdowns.gotoAndPlay(2);
if (Facade.soundC.mute == false){
new Credits().play();
};
}
public function bmdl(_arg1:MouseEvent){
bmedals.gotoAndPlay(2);
if (Facade.soundC.mute == false){
new BOver().play();
};
}
public function bhihd(_arg1:MouseEvent){
coverbtn.gotoAndPlay(2);
dropdowns.gotoAndPlay(156);
if (Facade.soundC.mute == false){
new Highscore().play();
};
}
function frame44(){
singlebut.buttonMode = true;
singlebut.addEventListener(MouseEvent.MOUSE_OVER, bsgl);
singlebut.addEventListener(MouseEvent.MOUSE_UP, bsgld);
multibut.buttonMode = true;
multibut.addEventListener(MouseEvent.MOUSE_OVER, bmti);
multibut.addEventListener(MouseEvent.MOUSE_UP, bmtid);
howbut.buttonMode = true;
howbut.addEventListener(MouseEvent.MOUSE_OVER, bhow);
howbut.addEventListener(MouseEvent.MOUSE_UP, bhowd);
medbut.buttonMode = true;
medbut.addEventListener(MouseEvent.MOUSE_OVER, bmdl);
medbut.addEventListener(MouseEvent.MOUSE_UP, bmdld);
highbut.buttonMode = true;
highbut.addEventListener(MouseEvent.MOUSE_OVER, bhih);
highbut.addEventListener(MouseEvent.MOUSE_UP, bhihd);
morebut.buttonMode = true;
morebut.addEventListener(MouseEvent.MOUSE_OVER, bmre);
credbut.buttonMode = true;
credbut.addEventListener(MouseEvent.MOUSE_OVER, bcrd);
credbut.addEventListener(MouseEvent.MOUSE_UP, bcrdd);
}
public function bsgld(_arg1:MouseEvent){
coverbtn.gotoAndPlay(2);
dropdowns.gotoAndPlay(202);
if (Facade.soundC.mute == false){
new Single().play();
};
}
public function bmdld(_arg1:MouseEvent){
coverbtn.gotoAndPlay(2);
dropdowns.gotoAndPlay(351);
if (Facade.soundC.mute == false){
new Medals().play();
};
}
public function bcrd(_arg1:MouseEvent){
bcredits.gotoAndPlay(2);
if (Facade.soundC.mute == false){
new BOver().play();
};
}
public function bhow(_arg1:MouseEvent){
bhowto.gotoAndPlay(2);
if (Facade.soundC.mute == false){
new BOver().play();
};
}
public function bmre(_arg1:MouseEvent){
bmore.gotoAndPlay(2);
if (Facade.soundC.mute == false){
new BOver().play();
};
}
public function bmtid(_arg1:MouseEvent){
coverbtn.gotoAndPlay(2);
dropdowns.gotoAndPlay(272);
if (Facade.soundC.mute == false){
new Multi().play();
};
}
public function bhih(_arg1:MouseEvent){
bbh.gotoAndPlay(2);
if (Facade.soundC.mute == false){
new BOver().play();
};
}
function frame106(){
gotoAndPlay(45);
}
public function bhowd(_arg1:MouseEvent){
coverbtn.gotoAndPlay(2);
dropdowns.gotoAndPlay(81);
if (Facade.soundC.mute == false){
new Tutorial().play();
};
}
public function bsgl(_arg1:MouseEvent){
bsingle.gotoAndPlay(2);
if (Facade.soundC.mute == false){
new BOver().play();
};
}
}
}//package Kawairun_fla
Section 32
//MPlayer_102 (Kawairun_fla.MPlayer_102)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class MPlayer_102 extends MovieClip {
public function MPlayer_102(){
addFrameScript(32, frame33);
}
function frame33(){
gotoAndPlay(2);
}
}
}//package Kawairun_fla
Section 33
//OKButton_178 (Kawairun_fla.OKButton_178)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class OKButton_178 extends MovieClip {
public function OKButton_178(){
addFrameScript(0, frame1, 7, frame8, 15, frame16);
}
function frame16(){
stop();
}
function frame8(){
stop();
}
function frame1(){
stop();
buttonMode = true;
}
}
}//package Kawairun_fla
Section 34
//P_91 (Kawairun_fla.P_91)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class P_91 extends MovieClip {
public function P_91(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame8(){
stop();
}
function frame9(){
stop();
}
}
}//package Kawairun_fla
Section 35
//P_92 (Kawairun_fla.P_92)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class P_92 extends MovieClip {
public var express:MovieClip;
public var head:MovieClip;
public function P_92(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame1(){
head.gotoAndStop(parent.headi);
express.gotoAndStop(parent.expressi);
stop();
}
function frame2(){
head.gotoAndStop(parent.headi);
stop();
}
function frame3(){
head.gotoAndStop(parent.headi);
stop();
}
function frame4(){
head.gotoAndStop(parent.headi);
stop();
}
}
}//package Kawairun_fla
Section 36
//P_93 (Kawairun_fla.P_93)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class P_93 extends MovieClip {
public function P_93(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame8(){
stop();
}
function frame9(){
stop();
}
}
}//package Kawairun_fla
Section 37
//P_94 (Kawairun_fla.P_94)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class P_94 extends MovieClip {
public function P_94(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame8(){
stop();
}
function frame9(){
stop();
}
}
}//package Kawairun_fla
Section 38
//peasant_209 (Kawairun_fla.peasant_209)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class peasant_209 extends MovieClip {
public function peasant_209(){
addFrameScript(204, frame205);
}
function frame205(){
stop();
parent.nextFrame();
}
}
}//package Kawairun_fla
Section 39
//peasant_210 (Kawairun_fla.peasant_210)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class peasant_210 extends MovieClip {
public function peasant_210(){
addFrameScript(51, frame52);
}
function frame52(){
stop();
}
}
}//package Kawairun_fla
Section 40
//peasant_211 (Kawairun_fla.peasant_211)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class peasant_211 extends MovieClip {
public function peasant_211(){
addFrameScript(30, frame31);
}
function frame31(){
stop();
}
}
}//package Kawairun_fla
Section 41
//Player_86 (Kawairun_fla.Player_86)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Player_86 extends MovieClip {
public var bodyi:int;
public var headi:int;
public var armi:int;
public var legi:int;
public var body:MovieClip;
public var legR1:MovieClip;
public var legR2:MovieClip;
public var armL1:MovieClip;
public var armL2:MovieClip;
public var phead:MovieClip;
public var legL1:MovieClip;
public var legL2:MovieClip;
public var expressi:int;
public var armR1:MovieClip;
public var armR2:MovieClip;
public function Player_86(){
addFrameScript(0, frame1, 32, frame33, 33, frame34, 49, frame50, 50, frame51, 54, frame55, 61, frame62, 62, frame63, 98, frame99, 123, frame124, 124, frame125, 131, frame132, 137, frame138, 149, frame150, 150, frame151, 160, frame161, 165, frame166, 214, frame215, 215, frame216, 226, frame227, 249, frame250, 250, frame251, 285, frame286, 286, frame287, 300, frame301, 339, frame340, 340, frame341, 351, frame352, 374, frame375, 375, frame376, 415, frame416);
}
function frame151(){
phead.gotoAndStop(3);
}
function frame352(){
phead.gotoAndStop(4);
}
function frame33(){
gotoAndPlay(2);
}
function frame34(){
phead.gotoAndStop(1);
}
function frame161(){
phead.gotoAndStop(2);
}
function frame286(){
stop();
}
function frame166(){
phead.gotoAndStop(4);
}
function frame124(){
gotoAndPlay(1);
}
function frame125(){
phead.gotoAndStop(2);
}
function frame287(){
phead.gotoAndStop(3);
}
function frame250(){
stop();
}
function frame132(){
phead.gotoAndStop(3);
}
function frame376(){
armR1.gotoAndStop(armi);
armR2.gotoAndStop(armi);
armL1.gotoAndStop(armi);
armL2.gotoAndStop(armi);
body.gotoAndStop(bodyi);
legL1.gotoAndStop(legi);
legL2.gotoAndStop(legi);
legR1.gotoAndStop(legi);
legR2.gotoAndStop(legi);
phead.gotoAndStop(1);
try {
phead.head.gotoAndStop(headi);
phead.express.gotoAndStop(expressi);
} catch(e:Error) {
};
play();
}
function frame50(){
gotoAndPlay(42);
}
function frame138(){
phead.gotoAndStop(2);
}
function frame216(){
phead.gotoAndStop(2);
}
function frame375(){
stop();
}
function frame416(){
gotoAndPlay(376);
}
function frame55(){
Facade.moveC.slideFinal(parent);
}
function frame99(){
phead.gotoAndStop(1);
}
function frame215(){
stop();
}
function frame251(){
phead.gotoAndStop(2);
armR1.gotoAndStop(armi);
armR2.gotoAndStop(armi);
armL1.gotoAndStop(armi);
armL2.gotoAndStop(armi);
body.gotoAndStop(bodyi);
legL1.gotoAndStop(legi);
legL2.gotoAndStop(legi);
legR1.gotoAndStop(legi);
legR2.gotoAndStop(legi);
try {
phead.head.gotoAndStop(phead.headi);
phead.express.gotoAndStop(phead.expressi);
} catch(e:Error) {
};
}
function frame51(){
phead.gotoAndStop(1);
}
function frame340(){
stop();
}
function frame341(){
phead.gotoAndStop(2);
armR1.gotoAndStop(armi);
armR2.gotoAndStop(armi);
armL1.gotoAndStop(armi);
armL2.gotoAndStop(armi);
body.gotoAndStop(bodyi);
legL1.gotoAndStop(legi);
legL2.gotoAndStop(legi);
legR1.gotoAndStop(legi);
legR2.gotoAndStop(legi);
try {
phead.head.gotoAndStop(phead.headi);
phead.express.gotoAndStop(phead.expressi);
} catch(e:Error) {
};
}
function frame1(){
phead.gotoAndStop(1);
armR1.gotoAndStop(armi);
armR2.gotoAndStop(armi);
armL1.gotoAndStop(armi);
armL2.gotoAndStop(armi);
body.gotoAndStop(bodyi);
legL1.gotoAndStop(legi);
legL2.gotoAndStop(legi);
legR1.gotoAndStop(legi);
legR2.gotoAndStop(legi);
try {
phead.head.gotoAndStop(headi);
phead.express.gotoAndStop(expressi);
} catch(e:Error) {
};
}
function frame301(){
phead.gotoAndStop(4);
}
function frame62(){
gotoAndPlay(2);
}
function frame63(){
phead.gotoAndStop(1);
}
function frame227(){
phead.gotoAndStop(4);
}
function frame150(){
phead.gotoAndStop(4);
stop();
}
}
}//package Kawairun_fla
Section 42
//Spawnertext_164 (Kawairun_fla.Spawnertext_164)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Spawnertext_164 extends MovieClip {
public function Spawnertext_164(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Kawairun_fla
Section 43
//STORAGE_10 (Kawairun_fla.STORAGE_10)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class STORAGE_10 extends MovieClip {
public function STORAGE_10(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 44
//SubLoader_2 (Kawairun_fla.SubLoader_2)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class SubLoader_2 extends MovieClip {
public function SubLoader_2(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Kawairun_fla
Section 45
//tutorialpannel_130 (Kawairun_fla.tutorialpannel_130)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class tutorialpannel_130 extends MovieClip {
public var nxtbtnnn:SimpleButton;
public var bkbtnnn:SimpleButton;
public var nxtbtnn:SimpleButton;
public var bkbtnnnn:SimpleButton;
public var nxtbtn:SimpleButton;
public var UIButton:Backbutton;
public var bkbtn:SimpleButton;
public function tutorialpannel_130(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function bkbbb(_arg1:MouseEvent){
gotoAndStop(3);
if (Facade.soundC.mute == false){
new ClickS().play();
};
}
public function bkbb(_arg1:MouseEvent){
gotoAndStop(2);
if (Facade.soundC.mute == false){
new ClickS().play();
};
}
public function nxbb(_arg1:MouseEvent){
gotoAndStop(3);
if (Facade.soundC.mute == false){
new ClickS().play();
};
}
public function nxbbb(_arg1:MouseEvent){
gotoAndStop(4);
if (Facade.soundC.mute == false){
new ClickS().play();
};
}
public function nxb(_arg1:MouseEvent){
gotoAndStop(2);
if (Facade.soundC.mute == false){
new ClickS().play();
};
}
function frame2(){
stop();
nxtbtn.addEventListener(MouseEvent.MOUSE_UP, nxbb);
bkbtn.addEventListener(MouseEvent.MOUSE_UP, bkb);
}
function frame4(){
stop();
bkbtnnnn.addEventListener(MouseEvent.MOUSE_UP, bkbbb);
}
public function bkb(_arg1:MouseEvent){
gotoAndStop(1);
if (Facade.soundC.mute == false){
new ClickS().play();
};
}
function frame1(){
stop();
nxtbtnn.addEventListener(MouseEvent.MOUSE_UP, nxb);
}
function frame3(){
stop();
nxtbtnnn.addEventListener(MouseEvent.MOUSE_UP, nxbbb);
bkbtnnn.addEventListener(MouseEvent.MOUSE_UP, bkbb);
}
}
}//package Kawairun_fla
Section 46
//UpperLeg_89 (Kawairun_fla.UpperLeg_89)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class UpperLeg_89 extends MovieClip {
public function UpperLeg_89(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame8(){
stop();
}
function frame9(){
stop();
}
}
}//package Kawairun_fla
Section 47
//W2O_75 (Kawairun_fla.W2O_75)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class W2O_75 extends MovieClip {
public function W2O_75(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 48
//W3O_81 (Kawairun_fla.W3O_81)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class W3O_81 extends MovieClip {
public function W3O_81(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 49
//xelu_195 (Kawairun_fla.xelu_195)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class xelu_195 extends MovieClip {
public function xelu_195(){
addFrameScript(149, frame150);
}
function frame150(){
parent.nextFrame();
stop();
}
}
}//package Kawairun_fla
Section 50
//xelu_202 (Kawairun_fla.xelu_202)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class xelu_202 extends MovieClip {
public function xelu_202(){
addFrameScript(32, frame33);
}
function frame33(){
gotoAndPlay(2);
}
}
}//package Kawairun_fla
Section 51
//xelu_203 (Kawairun_fla.xelu_203)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class xelu_203 extends MovieClip {
public function xelu_203(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 52
//xelu_204 (Kawairun_fla.xelu_204)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class xelu_204 extends MovieClip {
public function xelu_204(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 53
//xelu_205 (Kawairun_fla.xelu_205)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class xelu_205 extends MovieClip {
public function xelu_205(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 54
//xelu_206 (Kawairun_fla.xelu_206)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class xelu_206 extends MovieClip {
public function xelu_206(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 55
//xelu_207 (Kawairun_fla.xelu_207)
package Kawairun_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class xelu_207 extends MovieClip {
public function xelu_207(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Kawairun_fla
Section 56
//Background (Level.Background)
package Level {
import flash.display.*;
public class Background extends MovieClip {
public var player:MovieClip;
public var obstacles:MovieClip;
public var ground:MovieClip;
public var frame:int;// = 0
public var randomize:int;// = 0
public var over:MovieClip;
public var obView:MovieClip;
public function Background(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Level
Section 57
//MochiCoins (mochi.as3.MochiCoins)
package mochi.as3 {
public class MochiCoins {
public static const STORE_HIDE:String = "StoreHide";
public static const NO_USER:String = "NoUser";
public static const IO_ERROR:String = "IOError";
public static const ITEM_NEW:String = "ItemNew";
public static const ITEM_OWNED:String = "ItemOwned";
public static const STORE_ITEMS:String = "StoreItems";
public static const ERROR:String = "Error";
public static const STORE_SHOW:String = "StoreShow";
public static var _inventory:MochiInventory;
public static function triggerEvent(_arg1:String, _arg2:Object):void{
MochiSocial.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
MochiSocial.removeEventListener(_arg1, _arg2);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
MochiSocial.addEventListener(_arg1, _arg2);
}
public static function getStoreItems():void{
MochiServices.send("coins_getStoreItems");
}
public static function get inventory():MochiInventory{
return (_inventory);
}
public static function showStore(_arg1:Object=null):void{
MochiServices.bringToTop();
MochiServices.send("coins_showStore", {options:_arg1}, null, null);
}
public static function showItem(_arg1:Object=null):void{
if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){
trace("ERROR: showItem call must pass an Object with an item key");
return;
};
MochiServices.bringToTop();
MochiServices.send("coins_showItem", {options:_arg1}, null, null);
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function showVideo(_arg1:Object=null):void{
if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){
trace("ERROR: showVideo call must pass an Object with an item key");
return;
};
MochiServices.bringToTop();
MochiServices.send("coins_showVideo", {options:_arg1}, null, null);
}
MochiSocial.addEventListener(MochiSocial.LOGGED_IN, function (_arg1:Object):void{
_inventory = new MochiInventory();
});
MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, function (_arg1:Object):void{
_inventory = null;
});
}
}//package mochi.as3
Section 58
//MochiDigits (mochi.as3.MochiDigits)
package mochi.as3 {
public final class MochiDigits {
private var Sibling:MochiDigits;
private var Fragment:Number;
private var Encoder:Number;
public function MochiDigits(_arg1:Number=0, _arg2:uint=0):void{
Encoder = 0;
setValue(_arg1, _arg2);
}
public function reencode():void{
var _local1:uint = int((2147483647 * Math.random()));
Fragment = (Fragment ^ (_local1 ^ Encoder));
Encoder = _local1;
}
public function set value(_arg1:Number):void{
setValue(_arg1);
}
public function toString():String{
var _local1:String = String.fromCharCode((Fragment ^ Encoder));
if (Sibling != null){
_local1 = (_local1 + Sibling.toString());
};
return (_local1);
}
public function setValue(_arg1:Number=0, _arg2:uint=0):void{
var _local3:String = _arg1.toString();
var _temp1 = _arg2;
_arg2 = (_arg2 + 1);
Fragment = (_local3.charCodeAt(_temp1) ^ Encoder);
if (_arg2 < _local3.length){
Sibling = new MochiDigits(_arg1, _arg2);
} else {
Sibling = null;
};
reencode();
}
public function get value():Number{
return (Number(this.toString()));
}
public function addValue(_arg1:Number):void{
value = (value + _arg1);
}
}
}//package mochi.as3
Section 59
//MochiEventDispatcher (mochi.as3.MochiEventDispatcher)
package mochi.as3 {
public class MochiEventDispatcher {
private var eventTable:Object;
public function MochiEventDispatcher():void{
eventTable = {};
}
public function triggerEvent(_arg1:String, _arg2:Object):void{
var _local3:Object;
if (eventTable[_arg1] == undefined){
return;
};
for (_local3 in eventTable[_arg1]) {
var _local6 = eventTable[_arg1];
_local6[_local3](_arg2);
};
}
public function removeEventListener(_arg1:String, _arg2:Function):void{
var _local3:Object;
if (eventTable[_arg1] == undefined){
eventTable[_arg1] = [];
return;
};
for (_local3 in eventTable[_arg1]) {
if (eventTable[_arg1][_local3] != _arg2){
} else {
eventTable[_arg1].splice(Number(_local3), 1);
};
};
}
public function addEventListener(_arg1:String, _arg2:Function):void{
removeEventListener(_arg1, _arg2);
eventTable[_arg1].push(_arg2);
}
}
}//package mochi.as3
Section 60
//MochiEvents (mochi.as3.MochiEvents)
package mochi.as3 {
import flash.display.*;
public class MochiEvents {
public static const ALIGN_BOTTOM_LEFT:String = "ALIGN_BL";
public static const FORMAT_LONG:String = "LongForm";
public static const ALIGN_BOTTOM:String = "ALIGN_B";
public static const ACHIEVEMENT_RECEIVED:String = "AchievementReceived";
public static const FORMAT_SHORT:String = "ShortForm";
public static const ALIGN_TOP_RIGHT:String = "ALIGN_TR";
public static const ALIGN_BOTTOM_RIGHT:String = "ALIGN_BR";
public static const ALIGN_TOP:String = "ALIGN_T";
public static const ALIGN_LEFT:String = "ALIGN_L";
public static const ALIGN_RIGHT:String = "ALIGN_R";
public static const ALIGN_TOP_LEFT:String = "ALIGN_TL";
public static const ALIGN_CENTER:String = "ALIGN_C";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
private static var gameStart:Number;
private static var levelStart:Number;
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function startSession(_arg1:String):void{
MochiServices.send("events_beginSession", {achievementID:_arg1}, null, null);
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function setNotifications(_arg1:MovieClip, _arg2:Object):void{
var _local4:Object;
var _local3:Object = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
_local3.clip = _arg1;
MochiServices.send("events_setNotifications", _local3, null, null);
}
public static function endGame():void{
var _local1:Number = (new Date().time - gameStart);
trigger("end_game", {time:_local1});
}
public static function startGame():void{
gameStart = new Date().time;
trigger("start_game");
}
public static function trigger(_arg1:String, _arg2:Object=null):void{
if (_arg2 == null){
_arg2 = {};
} else {
if (_arg2["kind"] != undefined){
trace("WARNING: optional arguments package contains key 'id', it will be overwritten");
_arg2["kind"] = _arg1;
};
};
MochiServices.send("events_triggerEvent", {eventObject:_arg2}, null, null);
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function startLevel():void{
levelStart = new Date().time;
trigger("start_level");
}
public static function endLevel():void{
var _local1:Number = (new Date().time - levelStart);
trigger("end_level", {time:_local1});
}
}
}//package mochi.as3
Section 61
//MochiInventory (mochi.as3.MochiInventory)
package mochi.as3 {
import flash.events.*;
import flash.utils.*;
public dynamic class MochiInventory extends Proxy {
private var _timer:Timer;
private var _names:Array;
private var _syncID:Number;
private var _consumableProperties:Object;
private var _storeSync:Object;
private var _outstandingID:Number;
private var _syncPending:Boolean;
public static const READY:String = "InvReady";
public static const ERROR:String = "Error";
public static const IO_ERROR:String = "IoError";
private static const KEY_SALT:String = " syncMaint";
public static const WRITTEN:String = "InvWritten";
public static const NOT_READY:String = "InvNotReady";
public static const VALUE_ERROR:String = "InvValueError";
private static const CONSUMER_KEY:String = "MochiConsumables";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public function MochiInventory():void{
MochiCoins.addEventListener(MochiCoins.ITEM_OWNED, itemOwned);
MochiCoins.addEventListener(MochiCoins.ITEM_NEW, newItems);
MochiSocial.addEventListener(MochiSocial.LOGGED_IN, loggedIn);
MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, loggedOut);
_storeSync = new Object();
_syncPending = false;
_outstandingID = 0;
_syncID = 0;
_timer = new Timer(1000);
_timer.addEventListener(TimerEvent.TIMER, sync);
_timer.start();
if (MochiSocial.loggedIn){
loggedIn();
} else {
loggedOut();
};
}
private function newItems(_arg1:Object):void{
if (!this[(_arg1.id + KEY_SALT)]){
this[(_arg1.id + KEY_SALT)] = 0;
};
if (!this[_arg1.id]){
this[_arg1.id] = 0;
};
this[(_arg1.id + KEY_SALT)] = (this[(_arg1.id + KEY_SALT)] + _arg1.count);
this[_arg1.id] = (this[_arg1.id] + _arg1.count);
if (_arg1.privateProperties.consumable){
if (!this[_arg1.privateProperties.tag]){
this[_arg1.privateProperties.tag] = 0;
};
this[_arg1.privateProperties.tag] = (this[_arg1.privateProperties.tag] + (_arg1.privateProperties.inc * _arg1.count));
};
}
public function release():void{
MochiCoins.removeEventListener(MochiCoins.ITEM_NEW, newItems);
MochiSocial.removeEventListener(MochiSocial.LOGGED_IN, loggedIn);
MochiSocial.removeEventListener(MochiSocial.LOGGED_OUT, loggedOut);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return (-1);
};
if (_consumableProperties[_arg1]){
return (MochiDigits(_consumableProperties[_arg1]).value);
};
return (undefined);
}
private function loggedIn(_arg1:Object=null):void{
MochiUserData.get(CONSUMER_KEY, getConsumableBag);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function hasProperty(_arg1):Boolean{
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return (false);
};
if (_consumableProperties[_arg1] == undefined){
return (false);
};
return (true);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextNameIndex(_arg1:int):int{
return (((_arg1)>=_names.length) ? 0 : (_arg1 + 1));
}
private function putConsumableBag(_arg1:MochiUserData):void{
_syncPending = false;
if (_arg1.error){
triggerEvent(ERROR, {type:IO_ERROR, error:_arg1.error});
_outstandingID = -1;
};
triggerEvent(WRITTEN, {});
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{
var _local3:MochiDigits;
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return;
};
if (!(_arg2 is Number)){
triggerEvent(ERROR, {type:VALUE_ERROR, error:"Invalid type", arg:_arg2});
return;
};
if (_consumableProperties[_arg1]){
_local3 = MochiDigits(_consumableProperties[_arg1]);
if (_local3.value == _arg2){
return;
};
_local3.value = _arg2;
} else {
_names.push(_arg1);
_consumableProperties[_arg1] = new MochiDigits(_arg2);
};
_syncID++;
}
private function itemOwned(_arg1:Object):void{
_storeSync[_arg1.id] = {properties:_arg1.properties, count:_arg1.count};
}
private function sync(_arg1:Event=null):void{
var _local3:String;
if (((_syncPending) || ((_syncID == _outstandingID)))){
return;
};
_outstandingID = _syncID;
var _local2:Object = {};
for (_local3 in _consumableProperties) {
_local2[_local3] = MochiDigits(_consumableProperties[_local3]).value;
};
MochiUserData.put(CONSUMER_KEY, _local2, putConsumableBag);
_syncPending = true;
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextName(_arg1:int):String{
return (_names[(_arg1 - 1)]);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function deleteProperty(_arg1):Boolean{
if (!_consumableProperties[_arg1]){
return (false);
};
_names.splice(_names.indexOf(_arg1), 1);
delete _consumableProperties[_arg1];
return (true);
}
private function getConsumableBag(_arg1:MochiUserData):void{
var _local2:String;
var _local3:Number;
if (_arg1.error){
triggerEvent(ERROR, {type:IO_ERROR, error:_arg1.error});
return;
};
_consumableProperties = {};
_names = new Array();
if (_arg1.data){
for (_local2 in _arg1.data) {
_names.push(_local2);
_consumableProperties[_local2] = new MochiDigits(_arg1.data[_local2]);
};
};
for (_local2 in _storeSync) {
_local3 = _storeSync[_local2].count;
if (_consumableProperties[(_local2 + KEY_SALT)]){
_local3 = (_local3 - _consumableProperties[_local2]);
};
if (_local3 == 0){
} else {
newItems({id:_local2, count:_local3, properties:_storeSync[_local2].properties});
};
};
triggerEvent(READY, {});
}
private function loggedOut(_arg1:Object=null):void{
_consumableProperties = null;
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
}
}//package mochi.as3
Section 62
//MochiScores (mochi.as3.MochiScores)
package mochi.as3 {
import flash.display.*;
import flash.text.*;
public class MochiScores {
private static var boardID:String;
public static var onErrorHandler:Object;
public static var onCloseHandler:Object;
public static function showLeaderboard(_arg1:Object=null):void{
var n:Number;
var options = _arg1;
if (options != null){
delete options.clip;
MochiServices.setContainer();
MochiServices.bringToTop();
if (options.name != null){
if ((options.name is TextField)){
if (options.name.text.length > 0){
options.name = options.name.text;
};
};
};
if (options.score != null){
if ((options.score is TextField)){
if (options.score.text.length > 0){
options.score = options.score.text;
};
} else {
if ((options.score is MochiDigits)){
options.score = options.score.value;
};
};
n = Number(options.score);
if (isNaN(n)){
trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'"));
} else {
if ((((n == Number.NEGATIVE_INFINITY)) || ((n == Number.POSITIVE_INFINITY)))){
trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite"));
} else {
if (Math.floor(n) != n){
trace((("WARNING: Submitted score '" + options.score) + "' will be truncated"));
};
options.score = n;
};
};
};
if (options.onDisplay != null){
options.onDisplay();
} else {
if (MochiServices.clip != null){
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onDisplay.");
};
};
};
} else {
options = {};
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onDisplay.");
};
};
if (options.onClose != null){
onCloseHandler = options.onClose;
} else {
onCloseHandler = function ():void{
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.play();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onClose.");
};
};
};
if (options.onError != null){
onErrorHandler = options.onError;
} else {
onErrorHandler = null;
};
if (options.boardID == null){
if (MochiScores.boardID != null){
options.boardID = MochiScores.boardID;
};
};
MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose);
}
public static function closeLeaderboard():void{
MochiServices.send("scores_closeLeaderboard");
}
public static function getPlayerInfo(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_getPlayerInfo", null, _arg1, _arg2);
}
public static function requestList(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_requestList", null, _arg1, _arg2);
}
public static function scoresArrayToObjects(_arg1:Object):Object{
var _local3:Number;
var _local4:Number;
var _local5:Object;
var _local6:Object;
var _local7:String;
var _local8:String;
var _local2:Object = {};
for (_local7 in _arg1) {
if (typeof(_arg1[_local7]) == "object"){
if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){
_local2[_local7] = [];
_local5 = _arg1[_local7];
_local4 = 0;
while (_local4 < _local5.rows.length) {
_local6 = {};
_local3 = 0;
while (_local3 < _local5.cols.length) {
_local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3];
_local3++;
};
_local2[_local7].push(_local6);
_local4++;
};
} else {
_local2[_local7] = {};
for (_local8 in _arg1[_local7]) {
_local2[_local7][_local8] = _arg1[_local7][_local8];
};
};
} else {
_local2[_local7] = _arg1[_local7];
};
};
return (_local2);
}
public static function submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{
_arg1 = Number(_arg1);
if (isNaN(_arg1)){
trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is 'Not a Number'"));
} else {
if ((((_arg1 == Number.NEGATIVE_INFINITY)) || ((_arg1 == Number.POSITIVE_INFINITY)))){
trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is an infinite"));
} else {
if (Math.floor(_arg1) != _arg1){
trace((("WARNING: Submitted score '" + String(_arg1)) + "' will be truncated"));
};
_arg1 = Number(_arg1);
};
};
MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4);
}
public static function onClose(_arg1:Object=null):void{
if (((((_arg1) && ((_arg1.error == true)))) && (onErrorHandler))){
if (_arg1.errorCode == null){
_arg1.errorCode = "IOError";
};
onErrorHandler(_arg1.errorCode);
MochiServices.doClose();
return;
};
onCloseHandler();
MochiServices.doClose();
}
public static function setBoardID(_arg1:String):void{
MochiServices.warnID(_arg1, true);
MochiScores.boardID = _arg1;
MochiServices.send("scores_setBoardID", {boardID:_arg1});
}
}
}//package mochi.as3
Section 63
//MochiServices (mochi.as3.MochiServices)
package mochi.as3 {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.geom.*;
public class MochiServices {
private static var _container:Object;
private static var _connected:Boolean = false;
private static var _swfVersion:String;
private static var _preserved:Object;
public static var netupAttempted:Boolean = false;
private static var _sendChannel:LocalConnection;
public static var servicesSync:MochiSync = new MochiSync();
private static var _clip:MovieClip;
private static var _id:String;
private static var _services:String = "services.swf";
private static var _servURL:String = "http://www.mochiads.com/static/lib/services/";
public static var widget:Boolean = false;
private static var _timer:Timer;
private static var _sendChannelName:String;
private static var _loader:Loader;
private static var _connecting:Boolean = false;
private static var _mochiLocalConnection:MovieClip;
private static var _listenChannelName:String = "__ms_";
public static var onError:Object;
public static var netup:Boolean = true;
private static var _mochiLC:String = "MochiLC.swf";
public static function isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function get connected():Boolean{
return (_connected);
}
private static function onReceive(_arg1:Object):void{
var methodName:String;
var pkg = _arg1;
var cb:String = pkg.callbackID;
var cblst:Object = _clip._callbacks[cb];
if (!cblst){
return;
};
var method:* = cblst.callbackMethod;
methodName = "";
var obj:Object = cblst.callbackObject;
if (((obj) && ((typeof(method) == "string")))){
methodName = method;
if (obj[method] != null){
method = obj[method];
} else {
trace((("Error: Method " + method) + " does not exist."));
};
};
if (method != undefined){
try {
method.apply(obj, pkg.args);
} catch(error:Error) {
trace(((("Error invoking callback method '" + methodName) + "': ") + error.toString()));
};
} else {
if (obj != null){
try {
obj(pkg.args);
} catch(error:Error) {
trace(("Error invoking method on object: " + error.toString()));
};
};
};
delete _clip._callbacks[cb];
}
public static function get childClip():Object{
return (_clip);
}
public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{
if (_connected){
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
} else {
if ((((_clip == null)) || (!(_connecting)))){
trace(("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + _arg1));
handleError(_arg2, _arg3, _arg4);
flush(true);
return;
};
_clip._queue.push({methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
};
if (_clip != null){
if (((!((_clip._callbacks == null))) && (!((_clip._nextcallbackID == null))))){
_clip._callbacks[_clip._nextcallbackID] = {callbackObject:_arg3, callbackMethod:_arg4};
_clip._nextcallbackID++;
};
};
}
private static function init(_arg1:String, _arg2:Object):void{
_id = _arg1;
if (_arg2 != null){
_container = _arg2;
loadCommunicator(_arg1, _container);
};
}
private static function clickMovie(_arg1:String, _arg2:Function):MovieClip{
var _local4:int;
var _local14:Loader;
var _local3:Array = [150, 21, 0, 7, 1, 0, 0, 0, 0, 98, 116, 110, 0, 7, 2, 0, 0, 0, 0, 116, 104, 105, 115, 0, 28, 150, 22, 0, 0, 99, 114, 101, 97, 116, 101, 69, 109, 112, 116, 121, 77, 111, 118, 105, 101, 67, 108, 105, 112, 0, 82, 135, 1, 0, 0, 23, 150, 13, 0, 4, 0, 0, 111, 110, 82, 101, 108, 101, 97, 115, 101, 0, 142, 8, 0, 0, 0, 0, 2, 42, 0, 114, 0, 150, 17, 0, 0, 32, 0, 7, 1, 0, 0, 0, 8, 0, 0, 115, 112, 108, 105, 116, 0, 82, 135, 1, 0, 1, 23, 150, 7, 0, 4, 1, 7, 0, 0, 0, 0, 78, 150, 8, 0, 0, 95, 98, 108, 97, 110, 107, 0, 154, 1, 0, 0, 150, 7, 0, 0, 99, 108, 105, 99, 107, 0, 150, 7, 0, 4, 1, 7, 1, 0, 0, 0, 78, 150, 27, 0, 7, 2, 0, 0, 0, 7, 0, 0, 0, 0, 0, 76, 111, 99, 97, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 64, 150, 6, 0, 0, 115, 101, 110, 100, 0, 82, 79, 150, 15, 0, 4, 0, 0, 95, 97, 108, 112, 104, 97, 0, 7, 0, 0, 0, 0, 79, 150, 23, 0, 7, 0xFF, 0, 0xFF, 0, 7, 1, 0, 0, 0, 4, 0, 0, 98, 101, 103, 105, 110, 70, 105, 108, 108, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 109, 111, 118, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 16, 0, 7, 0, 0, 0, 0, 4, 0, 0, 101, 110, 100, 70, 105, 108, 108, 0, 82, 23];
var _local5:Array = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3];
var _local6:Array = [0, 64, 0, 0, 0];
var _local7:MovieClip = new MovieClip();
var _local8:LocalConnection = new LocalConnection();
var _local9:String = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().time));
_local8 = new LocalConnection();
_local7.lc = _local8;
_local7.click = _arg2;
_local8.client = _local7;
_local8.connect(_local9);
var _local10:ByteArray = new ByteArray();
var _local11:ByteArray = new ByteArray();
_local11.endian = Endian.LITTLE_ENDIAN;
_local11.writeShort(1);
_local11.writeUTFBytes(((_arg1 + " ") + _local9));
_local11.writeByte(0);
var _local12:uint = ((_local3.length + _local11.length) + 4);
var _local13:uint = (_local12 + 35);
_local10.endian = Endian.LITTLE_ENDIAN;
_local10.writeUTFBytes("FWS");
_local10.writeByte(8);
_local10.writeUnsignedInt(_local13);
for each (_local4 in _local5) {
_local10.writeByte(_local4);
};
_local10.writeUnsignedInt(_local12);
_local10.writeByte(136);
_local10.writeShort(_local11.length);
_local10.writeBytes(_local11);
for each (_local4 in _local3) {
_local10.writeByte(_local4);
};
for each (_local4 in _local6) {
_local10.writeByte(_local4);
};
_local14 = new Loader();
_local14.loadBytes(_local10);
_local7.addChild(_local14);
return (_local7);
}
public static function stayOnTop():void{
_container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true);
if (_clip != null){
_clip.visible = true;
};
}
public static function addLinkEvent(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{
var avm1Click:DisplayObject;
var x:String;
var req:URLRequest;
var loader:Loader;
var setURL:Function;
var err:Function;
var complete:Function;
var url = _arg1;
var burl = _arg2;
var btn = _arg3;
var onClick = _arg4;
var vars:Object = new Object();
vars["mav"] = getVersion();
vars["swfv"] = "9";
vars["swfurl"] = btn.loaderInfo.loaderURL;
vars["fv"] = Capabilities.version;
vars["os"] = Capabilities.os;
vars["lang"] = Capabilities.language;
vars["scres"] = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY);
var s = "?";
var i:Number = 0;
for (x in vars) {
if (i != 0){
s = (s + "&");
};
i = (i + 1);
s = (((s + x) + "=") + escape(vars[x]));
};
req = new URLRequest("http://x.mochiads.com/linkping.swf");
loader = new Loader();
setURL = function (_arg1:String):void{
if (avm1Click){
btn.removeChild(avm1Click);
};
avm1Click = clickMovie(_arg1, onClick);
var _local2:Rectangle = btn.getBounds(btn);
btn.addChild(avm1Click);
avm1Click.x = _local2.x;
avm1Click.y = _local2.y;
avm1Click.scaleX = (0.01 * _local2.width);
avm1Click.scaleY = (0.01 * _local2.height);
};
err = function (_arg1:Object):void{
netup = false;
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
setURL(burl);
};
complete = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
if (netup){
setURL((url + s));
} else {
setURL(burl);
};
if (!((netupAttempted) || (_connected))){
netupAttempted = true;
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.load(req);
};
}
public static function warnID(_arg1:String, _arg2:Boolean):void{
_arg1 = _arg1.toLowerCase();
if (_arg1.length != 16){
trace((("WARNING: " + (_arg2) ? "board" : "game") + " ID is not the appropriate length"));
return;
} else {
if (_arg1 == "1e113c7239048b3f"){
if (_arg2){
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
};
return;
} else {
if (_arg1 == "84993a1de4031cd8"){
if (_arg2){
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
};
return;
};
};
};
var _local3:Number = 0;
while (_local3 < _arg1.length) {
switch (_arg1.charAt(_local3)){
case "0":
case "1":
case "2":
case "3":
case "4":
case "5":
case "6":
case "7":
case "8":
case "9":
case "a":
case "b":
case "c":
case "d":
case "e":
case "f":
break;
default:
trace(("WARNING: Board ID contains illegal characters: " + _arg1));
return;
};
_local3++;
};
}
public static function disconnect():void{
if (((_connected) || (_connecting))){
if (_clip != null){
if (_clip.parent != null){
if ((_clip.parent is Sprite)){
Sprite(_clip.parent).removeChild(_clip);
_clip = null;
};
};
};
_connecting = (_connected = false);
flush(true);
try {
_mochiLocalConnection.close();
} catch(error:Error) {
};
};
if (_timer != null){
try {
_timer.stop();
} catch(error:Error) {
};
};
}
public static function allowDomains(_arg1:String):String{
var _local2:String;
if (Security.sandboxType != "application"){
Security.allowDomain("*");
Security.allowInsecureDomain("*");
};
if (_arg1.indexOf("http://") != -1){
_local2 = _arg1.split("/")[2].split(":")[0];
if (Security.sandboxType != "application"){
Security.allowDomain(_local2);
Security.allowInsecureDomain(_local2);
};
};
return (_local2);
}
public static function getVersion():String{
return ("3.7 as3");
}
public static function doClose():void{
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
}
private static function flush(_arg1:Boolean):void{
var _local2:Object;
var _local3:Object;
if (((_clip) && (_clip._queue))){
while (_clip._queue.length > 0) {
_local2 = _clip._queue.shift();
_local3 = null;
if (_local2 != null){
if (_local2.callbackID != null){
_local3 = _clip._callbacks[_local2.callbackID];
};
delete _clip._callbacks[_local2.callbackID];
if (((_arg1) && (!((_local3 == null))))){
handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod);
};
};
};
};
}
public static function get id():String{
return (_id);
}
private static function onEvent(_arg1:Object):void{
var _local2:String = _arg1.target;
var _local3:String = _arg1.event;
switch (_local2){
case "events":
MochiEvents.triggerEvent(_arg1.event, _arg1.args);
break;
case "coins":
MochiCoins.triggerEvent(_arg1.event, _arg1.args);
break;
case "sync":
servicesSync.triggerEvent(_arg1.event, _arg1.args);
break;
};
}
private static function urlOptions(_arg1:Object):Object{
var _local3:String;
var _local4:Array;
var _local5:Number;
var _local6:Array;
var _local2:Object = {};
if (_arg1.stage){
_local3 = _arg1.stage.loaderInfo.parameters.mochiad_options;
} else {
_local3 = _arg1.loaderInfo.parameters.mochiad_options;
};
if (_local3){
_local4 = _local3.split("&");
_local5 = 0;
while (_local5 < _local4.length) {
_local6 = _local4[_local5].split("=");
_local2[unescape(_local6[0])] = unescape(_local6[1]);
_local5++;
};
};
return (_local2);
}
public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{
if (_arg1 != null){
if ((_arg1 is Sprite)){
_container = _arg1;
};
};
if (_arg2){
if ((_container is Sprite)){
Sprite(_container).addChild(_clip);
};
};
}
private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{
var args = _arg1;
var callbackObject = _arg2;
var callbackMethod = _arg3;
if (args != null){
if (args.onError != null){
args.onError.apply(null, ["NotConnected"]);
};
if (((!((args.options == null))) && (!((args.options.onError == null))))){
args.options.onError.apply(null, ["NotConnected"]);
};
};
if (callbackMethod != null){
args = {};
args.error = true;
args.errorCode = "NotConnected";
if (((!((callbackObject == null))) && ((callbackMethod is String)))){
try {
var _local5 = callbackObject;
_local5[callbackMethod](args);
} catch(error:Error) {
};
} else {
if (callbackMethod != null){
try {
callbackMethod.apply(args);
} catch(error:Error) {
};
};
};
};
}
private static function loadError(_arg1:Object):void{
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load.");
MochiServices.disconnect();
MochiServices.onError("IOError");
}
private static function initComChannels():void{
if (!_connected){
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"registerGame", preserved:_preserved, id:_id, version:getVersion(), parentURL:_container.loaderInfo.loaderURL});
_clip.onReceive = onReceive;
_clip.onEvent = onEvent;
_clip.onError = function ():void{
MochiServices.onError("IOError");
};
while (_clip._queue.length > 0) {
_mochiLocalConnection.send(_sendChannelName, "onReceive", _clip._queue.shift());
};
};
}
private static function loadLCBridge(_arg1:Object):void{
var loader:Loader;
var clip = _arg1;
loader = new Loader();
var mochiLCURL:String = (_servURL + _mochiLC);
var req:URLRequest = new URLRequest(mochiLCURL);
var complete:Function = function (_arg1:Object):void{
_mochiLocalConnection = MovieClip(loader.content);
listen();
};
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
loader.load(req);
clip.addChild(loader);
}
private static function listen():void{
_mochiLocalConnection.connect(_listenChannelName);
_clip.handshake = function (_arg1:Object):void{
MochiServices.comChannelName = _arg1.newChannel;
};
trace("Waiting for MochiAds services to connect...");
}
public static function get clip():Object{
return (_container);
}
public static function set comChannelName(_arg1:String):void{
if (_arg1 != null){
if (_arg1.length > 3){
_sendChannelName = (_arg1 + "_fromgame");
initComChannels();
};
};
}
private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{
var _local3:String = ("_mochiservices_com_" + _arg1);
if (_clip != null){
return (_clip);
};
if (!MochiServices.isNetworkAvailable()){
return (null);
};
if (urlOptions(_arg2).servURL){
_servURL = urlOptions(_arg2).servURL;
};
var _local4:String = (_servURL + _services);
if (urlOptions(_arg2).servicesURL){
_local4 = urlOptions(_arg2).servicesURL;
};
_listenChannelName = (_listenChannelName + ((Math.floor(new Date().time) + "_") + Math.floor((Math.random() * 99999))));
MochiServices.allowDomains(_local4);
_clip = createEmptyMovieClip(_arg2, _local3, 10336, false);
loadLCBridge(_clip);
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
var _local5:URLRequest = new URLRequest(_local4);
var _local6:URLVariables = new URLVariables();
_local6.listenLC = _listenChannelName;
_local6.mochiad_options = _arg2.loaderInfo.parameters.mochiad_options;
_local6.api_version = getVersion();
if (widget){
_local6.widget = true;
};
_local5.data = _local6;
_loader.load(_local5);
_clip.addChild(_loader);
_clip._mochiservices_com = _loader;
_sendChannel = new LocalConnection();
_clip._queue = [];
_clip._nextcallbackID = 0;
_clip._callbacks = {};
_timer = new Timer(10000, 1);
_timer.addEventListener(TimerEvent.TIMER, connectWait);
_timer.start();
return (_clip);
}
public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{
var id = _arg1;
var clip = _arg2;
var onError = _arg3;
warnID(id, false);
if ((clip is DisplayObject)){
if (clip.stage == null){
trace("MochiServices connect requires the containing clip be attached to the stage");
};
if (((!(_connected)) && ((_clip == null)))){
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
};
} else {
trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage.");
};
if (onError != null){
MochiServices.onError = onError;
} else {
if (MochiServices.onError == null){
MochiServices.onError = function (_arg1:String):void{
trace(_arg1);
};
};
};
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{
var parent = _arg1;
var name = _arg2;
var depth = _arg3;
var doAdd = _arg4;
var mc:MovieClip = new MovieClip();
if (doAdd){
if (((false) && (depth))){
parent.addChildAt(mc, depth);
} else {
parent.addChild(mc);
};
};
try {
parent[name] = mc;
} catch(e:Error) {
throw (new Error("MochiServices requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
mc["_name"] = name;
return (mc);
}
public static function bringToTop(_arg1:Event=null):void{
var e = _arg1;
if (((!((MochiServices.clip == null))) && (!((MochiServices.childClip == null))))){
try {
if (MochiServices.clip.numChildren > 1){
MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1));
};
} catch(errorObject:Error) {
trace("Warning: Depth sort error.");
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
};
};
}
public static function connectWait(_arg1:TimerEvent):void{
if (!_connected){
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load. (timeout)");
MochiServices.disconnect();
MochiServices.onError("IOError");
};
}
}
}//package mochi.as3
Section 64
//MochiSocial (mochi.as3.MochiSocial)
package mochi.as3 {
public class MochiSocial {
public static const LOGGED_IN:String = "LoggedIn";
public static const PROFILE_HIDE:String = "ProfileHide";
public static const NO_USER:String = "NoUser";
public static const PROPERTIES_SIZE:String = "PropertiesSize";
public static const IO_ERROR:String = "IOError";
public static const PROPERTIES_SAVED:String = "PropertySaved";
public static const WIDGET_LOADED:String = "WidgetLoaded";
public static const USER_INFO:String = "UserInfo";
public static const ERROR:String = "Error";
public static const LOGIN_SHOW:String = "LoginShow";
public static const LOGGED_OUT:String = "LoggedOut";
public static const PROFILE_SHOW:String = "ProfileShow";
public static const LOGIN_SHOWN:String = "LoginShown";
public static const LOGIN_HIDE:String = "LoginHide";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public static var _user_info:Object = null;
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function saveUserProperties(_arg1:Object):void{
MochiServices.send("coins_saveUserProperties", _arg1);
}
public static function get loggedIn():Boolean{
return (!((_user_info == null)));
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function getUserInfo():void{
MochiServices.send("coins_getUserInfo");
}
public static function showLoginWidget(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("coins_showLoginWidget", {options:_arg1});
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function requestLogin():void{
MochiServices.send("coins_requestLogin");
}
public static function getAPIURL():String{
if (!_user_info){
return (null);
};
return (_user_info.api_url);
}
public static function hideLoginWidget():void{
MochiServices.send("coins_hideLoginWidget");
}
public static function getAPIToken():String{
if (!_user_info){
return (null);
};
return (_user_info.api_token);
}
MochiSocial.addEventListener(MochiSocial.LOGGED_IN, function (_arg1:Object):void{
_user_info = _arg1;
});
MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, function (_arg1:Object):void{
_user_info = null;
});
}
}//package mochi.as3
Section 65
//MochiSync (mochi.as3.MochiSync)
package mochi.as3 {
import flash.utils.*;
public dynamic class MochiSync extends Proxy {
private var _syncContainer:Object;
public static var SYNC_PROPERTY:String = "UpdateProperty";
public static var SYNC_REQUEST:String = "SyncRequest";
public function MochiSync():void{
_syncContainer = {};
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{
if (_syncContainer[_arg1] == _arg2){
return;
};
var _local3:String = _arg1.toString();
_syncContainer[_local3] = _arg2;
MochiServices.send("sync_propUpdate", {name:_local3, value:_arg2});
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){
return (_syncContainer[_arg1]);
}
public function triggerEvent(_arg1:String, _arg2:Object):void{
switch (_arg1){
case SYNC_REQUEST:
MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY:
_syncContainer[_arg2.name] = _arg2.value;
break;
};
}
}
}//package mochi.as3
Section 66
//MochiUserData (mochi.as3.MochiUserData)
package mochi.as3 {
import flash.events.*;
import flash.utils.*;
import flash.net.*;
public class MochiUserData extends EventDispatcher {
public var callback:Function;// = null
public var operation:String;// = null
public var error:Event;// = null
public var data;// = null
public var _loader:URLLoader;
public var key:String;// = null
public function MochiUserData(_arg1:String="", _arg2:Function=null){
this.key = _arg1;
this.callback = _arg2;
}
public function serialize(_arg1):ByteArray{
var _local2:ByteArray = new ByteArray();
_local2.objectEncoding = ObjectEncoding.AMF3;
_local2.writeObject(_arg1);
_local2.compress();
return (_local2);
}
public function errorHandler(_arg1:IOErrorEvent):void{
data = null;
error = _arg1;
if (callback != null){
performCallback();
} else {
dispatchEvent(_arg1);
};
close();
}
public function putEvent(_arg1):void{
request("put", serialize(_arg1));
}
public function deserialize(_arg1:ByteArray){
_arg1.objectEncoding = ObjectEncoding.AMF3;
_arg1.uncompress();
return (_arg1.readObject());
}
public function securityErrorHandler(_arg1:SecurityErrorEvent):void{
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + _arg1.toString())));
}
public function getEvent():void{
request("get", serialize(null));
}
override public function toString():String{
return ((((((((("[MochiUserData operation=" + operation) + " key=\"") + key) + "\" data=") + data) + " error=\"") + error) + "\"]"));
}
public function performCallback():void{
try {
callback(this);
} catch(e:Error) {
trace(("[MochiUserData] exception during callback: " + e));
};
}
public function request(_arg1:String, _arg2:ByteArray):void{
var _operation = _arg1;
var _data = _arg2;
operation = _operation;
var api_url:String = MochiSocial.getAPIURL();
var api_token:String = MochiSocial.getAPIToken();
if ((((api_url == null)) || ((api_token == null)))){
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, "not logged in"));
return;
};
_loader = new URLLoader();
var args:URLVariables = new URLVariables();
args.op = _operation;
args.key = key;
var req:URLRequest = new URLRequest((((MochiSocial.getAPIURL() + "/") + "MochiUserData?") + args.toString()));
req.method = URLRequestMethod.POST;
req.contentType = "application/x-mochi-userdata";
req.requestHeaders = [new URLRequestHeader("x-mochi-services-version", MochiServices.getVersion()), new URLRequestHeader("x-mochi-api-token", api_token)];
req.data = _data;
_loader.dataFormat = URLLoaderDataFormat.BINARY;
_loader.addEventListener(Event.COMPLETE, completeHandler);
_loader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
_loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
try {
_loader.load(req);
} catch(e:SecurityError) {
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + e.toString())));
};
}
public function completeHandler(_arg1:Event):void{
var event = _arg1;
try {
if (_loader.data.length){
data = deserialize(_loader.data);
} else {
data = null;
};
} catch(e:Error) {
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("deserialize error: " + e.toString())));
return;
};
if (callback != null){
performCallback();
} else {
dispatchEvent(event);
};
close();
}
public function close():void{
if (_loader){
_loader.removeEventListener(Event.COMPLETE, completeHandler);
_loader.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler);
_loader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
_loader.close();
_loader = null;
};
error = null;
callback = null;
}
public static function get(_arg1:String, _arg2:Function):void{
var _local3:MochiUserData = new MochiUserData(_arg1, _arg2);
_local3.getEvent();
}
public static function put(_arg1:String, _arg2, _arg3:Function):void{
var _local4:MochiUserData = new MochiUserData(_arg1, _arg3);
_local4.putEvent(_arg2);
}
}
}//package mochi.as3
Section 67
//GameUI (UI.GameUI)
package UI {
import flash.display.*;
import flash.events.*;
import mochi.as3.*;
import flash.utils.*;
public class GameUI extends Sprite {
public var scoreS:ScoreSign;
public var medalS:MedalSign;
var mShow:Sprite;
public var moreB:MoreButton;
public var respawner:Respawner;
var gameM:GameModel;
public var pauseS:PauseMenu;
public var snowA:SnowAnimated;
var mLoader:MLoader;
public var multiEnd:MultiEnd;
public var ready:ReadyGo;
public var gameV:Sprite;
public var nameS:NameSign;
var drop:Timer;
public var singleEnd:SingleEnd;
var mBack:Backbutton;
public var pause:Boolean;// = false
var mBorder:Bitmap;
public function GameUI(){
ready = new ReadyGo();
respawner = new Respawner();
scoreS = new ScoreSign();
medalS = new MedalSign();
pauseS = new PauseMenu();
nameS = new NameSign();
singleEnd = new SingleEnd();
multiEnd = new MultiEnd();
snowA = new SnowAnimated();
moreB = new MoreButton();
drop = new Timer(1, 50);
mShow = new Sprite();
mBorder = new Bitmap();
mLoader = new MLoader();
mBack = new Backbutton();
super();
}
public function showLeaderboard(_arg1:Boolean=false){
if (MochiServices.connected == false){
return;
};
Facade.stage.addChild(mShow);
Facade.stage.addChild(mBorder);
MochiServices.setContainer(mShow);
if (_arg1){
Facade.stage.addChild(mBack);
mShow.graphics.beginFill(0, 0.7);
mShow.graphics.drawRect(-125, -30, 650, 400);
MochiScores.showLeaderboard({score:int((gameM.distance / 25)), name:gameM.username, hideDoneButton:true, width:400, height:300, onDisplay:doNothing, preloaderDisplay:false, onClose:removeShow});
} else {
mShow.graphics.clear();
MochiScores.showLeaderboard({hideDoneButton:true, width:400, height:300, onDisplay:doNothing, preloaderDisplay:false, onClose:removeShow});
};
}
function doNothing(){
}
public function pauseGame(_arg1:Boolean=false){
if ((((((gameM.gameWon == false)) && (((gameM.playerV1.alive) || (gameM.playerV2.alive))))) || (_arg1))){
pause = !(pause);
if (pause){
Facade.stage.removeEventListener(Event.ENTER_FRAME, Facade.gameC.onTick);
Facade.stage.addChild(pauseS);
gameM.playerV1.guy.stop();
gameM.playerV2.guy.stop();
if (gameM.enemy != null){
gameM.enemy.stop();
};
} else {
Facade.stage.addEventListener(Event.ENTER_FRAME, Facade.gameC.onTick);
Facade.stage.removeChild(pauseS);
gameM.playerV1.guy.play();
gameM.playerV2.guy.play();
if (gameM.enemy != null){
gameM.enemy.stop();
};
Facade.stage.focus = Facade.stage;
};
};
}
public function init(){
gameM = Facade.gameM;
gameV = gameM.gameV;
addChild(gameV);
addChild(scoreS);
mShow.x = 125;
mShow.y = 30;
mShow.addChild(mLoader);
mLoader.x = 200;
mLoader.y = 150;
mBorder.bitmapData = new MBorder(650, 400);
mBack.x = 330;
mBack.y = 370;
mBack.name = "GameButtonHS";
medalS.x = 260;
medalS.y = 200;
respawner.x = 175;
respawner.y = 20;
ready.x = 200;
ready.y = 150;
singleEnd.x = 180;
singleEnd.y = 20;
multiEnd.x = 50;
multiEnd.y = 20;
moreB.x = 80;
moreB.y = 350;
moreB.name = "morebut";
drop.addEventListener(TimerEvent.TIMER, onTick);
}
public function nameBox(){
Facade.soundC.soundLimit = 10;
Facade.stage.addChild(nameS);
}
function onTick(_arg1:TimerEvent){
if (gameM.multi){
multiEnd.y = (multiEnd.y + 6);
} else {
singleEnd.y = (singleEnd.y + 5);
moreB.y = (moreB.y - 2);
};
}
function removeShow(){
Facade.stage.removeChild(mShow);
Facade.stage.removeChild(mBorder);
try {
Facade.stage.removeChild(mBack);
} catch(e:Error) {
};
}
public function nameConfirm(){
gameM.username = nameS.nameT.text;
nameS.parent.removeChild(nameS);
Facade.soundC.soundLimit = 100;
Facade.keyboardC.init();
}
public function dropEnd(){
Facade.enemyC.endGame();
if (gameM.multi){
multiEnd.y = -280;
if (gameM.playerV1.alive){
multiEnd.p1t.text = "WIN";
multiEnd.p2t.text = "LOSE";
multiEnd.et1.text = "P2 WINS";
multiEnd.et2.text = "";
} else {
if (gameM.playerV2.alive){
multiEnd.p1t.text = "LOSE";
multiEnd.p2t.text = "WIN";
multiEnd.et1.text = "P1 WINS";
multiEnd.et2.text = "";
} else {
multiEnd.p1t.text = "FAIL";
multiEnd.p2t.text = "FAIL";
multiEnd.et1.text = "ROUND DRAW";
multiEnd.et2.text = "You both fail";
};
};
multiEnd.playerV1.look = gameM.playerV1.look;
multiEnd.playerV1.guy.gotoAndPlay("stand");
multiEnd.playerV2.look = gameM.playerV2.look;
multiEnd.playerV2.guy.gotoAndPlay("stand");
Facade.stage.addChild(multiEnd);
} else {
singleEnd.y = -230;
moreB.y = 470;
singleEnd.text1.text = (("YOU RAN " + String(int((gameM.distance / 25)))) + " FEET");
if (gameM.newRecord){
singleEnd.text2.text = "NEW RECORD!";
gameM.newRecord = false;
} else {
singleEnd.text2.text = ("YOUR BEST : " + String(int((((gameM.highScore[0] * 1500) + gameM.highScore[1]) / 25))));
};
Facade.stage.addChild(singleEnd);
Facade.stage.addChild(moreB);
};
drop.reset();
drop.start();
}
}
}//package UI
Section 68
//MenuUI (UI.MenuUI)
package UI {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class MenuUI extends MovieClip {
public var finalmenu:MovieClip;
var black:Sprite;
var count:int;// = 100
public function MenuUI(){
black = new Sprite();
super();
}
public function init(){
black.graphics.beginFill(0);
black.graphics.drawRect(0, 0, 650, 400);
fadeIn();
}
public function fadeIn(){
count = 100;
black.transform.colorTransform = new ColorTransform(1, 1, 1, 1);
addEventListener(Event.ENTER_FRAME, blackOut);
stage.addChild(black);
try {
finalmenu.dropdowns.gotoAndStop(1);
finalmenu.coverbtn.gotoAndStop(1);
} catch(e:Error) {
};
Facade.gameM.playerV1.reColour();
Facade.gameM.playerV2.reColour();
Facade.soundC.menuMusic();
}
public function blackOut(_arg1:Event){
count = (count - 4);
black.transform.colorTransform = new ColorTransform(1, 1, 1, (count / 100));
if (count < 0){
removeEventListener(Event.ENTER_FRAME, blackOut);
stage.removeChild(black);
};
}
}
}//package UI
Section 69
//MultiEnd (UI.MultiEnd)
package UI {
import flash.display.*;
import GameObjects.*;
import flash.text.*;
public class MultiEnd extends MovieClip {
public var et1:TextField;
public var et2:TextField;
public var retry:SimpleButton;
public var morebut:SimpleButton;
public var p2t:TextField;
public var p1t:TextField;
public var playerV1:PlayerView;
public var playerV2:PlayerView;
public var menu:SimpleButton;
public function MultiEnd(){
playerV1 = new PlayerView();
playerV2 = new PlayerView();
super();
playerV1.x = 425;
playerV2.x = 88;
playerV1.y = (playerV2.y = 240);
playerV1.guy.gotoAndPlay("stand");
playerV2.guy.gotoAndPlay("stand");
addChild(playerV1);
addChild(playerV2);
}
}
}//package UI
Section 70
//Backbutton (Backbutton)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Backbutton extends MovieClip {
public function Backbutton(){
addFrameScript(0, frame1, 7, frame8, 15, frame16);
}
function frame16(){
stop();
}
function frame8(){
stop();
}
function frame1(){
stop();
buttonMode = true;
}
}
}//package
Section 71
//BOver (BOver)
package {
import flash.media.*;
public dynamic class BOver extends Sound {
}
}//package
Section 72
//CameraS (CameraS)
package {
import flash.media.*;
public dynamic class CameraS extends Sound {
}
}//package
Section 73
//ClickS (ClickS)
package {
import flash.media.*;
public dynamic class ClickS extends Sound {
}
}//package
Section 74
//Credits (Credits)
package {
import flash.media.*;
public dynamic class Credits extends Sound {
}
}//package
Section 75
//EBee (EBee)
package {
import flash.display.*;
public dynamic class EBee extends MovieClip {
public var hit:MovieClip;
}
}//package
Section 76
//EditS (EditS)
package {
import flash.media.*;
public dynamic class EditS extends Sound {
}
}//package
Section 77
//EGhost (EGhost)
package {
import flash.display.*;
public dynamic class EGhost extends MovieClip {
public var hit:MovieClip;
}
}//package
Section 78
//EnemyControl (EnemyControl)
package {
import GameObjects.*;
import flash.geom.*;
public class EnemyControl {
var target:PlayerView;
var eTick:int;
var gameC:GameControl;
var gameM:GameModel;
public function newEnemy(){
if (gameM.enemy == null){
switch (Math.floor(((gameM.background[0].currentFrame - 2) / 3))){
case 0:
gameM.enemy = new EBee();
gameM.gameV.addChild(gameM.enemy);
gameM.enemy.x = 750;
gameM.enemy.y = 250;
eTick = 0;
break;
case 1:
gameM.enemy = new EGhost();
gameM.gameV.addChild(gameM.enemy);
gameM.enemy.x = 50;
gameM.enemy.y = 325;
gameM.enemy.transform.colorTransform = new ColorTransform(1, 1, 1, 0.1);
eTick = 0;
break;
case 2:
gameM.enemy = new ESnowball();
gameM.gameV.addChild(gameM.enemy);
gameM.enemy.x = 2000;
gameM.enemy.y = 325;
break;
};
};
}
public function endGame(){
if (gameM.enemy != null){
gameM.enemy.parent.removeChild(gameM.enemy);
gameM.enemy = null;
};
}
public function init(){
gameM = Facade.gameM;
gameC = Facade.gameC;
}
public function enemyUpdate(){
if (gameM.enemy.constructor == EBee){
if (eTick < 90){
eTick = (eTick + 1);
if (eTick < 25){
gameM.enemy.x = (gameM.enemy.x - (0.3 * (40 - eTick)));
gameM.enemy.y = (gameM.enemy.y - (0.3 * eTick));
} else {
if (eTick < 40){
gameM.enemy.y = (gameM.enemy.y - (0.3 * (40 - eTick)));
gameM.enemy.x = (gameM.enemy.x - (0.2 * (40 - eTick)));
};
};
if (eTick == 30){
if (((gameM.playerV1.alive) && (gameM.playerV2.alive))){
if (Math.random() > 0.5){
target = gameM.playerV1;
} else {
target = gameM.playerV2;
};
} else {
if (gameM.playerV1.alive){
target = gameM.playerV1;
} else {
target = gameM.playerV2;
};
};
};
if (eTick > 30){
if (target.alive == false){
if (gameM.playerV1.alive){
target = gameM.playerV1;
} else {
target = gameM.playerV2;
};
};
gameM.enemy.rotation = (((Math.atan2((((gameM.enemy.y - target.y) - target.back.y) + 60), ((gameM.enemy.x - target.x) - target.back.x)) * 180) / Math.PI) + 90);
};
if (eTick == 89){
gameM.enemy.vX = (30 * Math.cos((((gameM.enemy.rotation + 90) * Math.PI) / 180)));
gameM.enemy.vY = (30 * Math.sin((((gameM.enemy.rotation + 90) * Math.PI) / 180)));
};
} else {
gameM.enemy.x = (gameM.enemy.x + gameM.enemy.vX);
gameM.enemy.y = (gameM.enemy.y + gameM.enemy.vY);
};
if (gameM.enemy.x < 0){
gameM.gameV.removeChild(gameM.enemy);
gameM.enemy = null;
} else {
if (gameM.enemy.y > 360){
gameC.bgObjects[0].push(gameM.enemy);
gameM.enemy.x = (gameM.enemy.x - gameM.background[0].x);
gameM.background[0].addChild(gameM.enemy);
gameM.enemy = null;
} else {
if (((gameM.playerV1.alive) && (gameM.playerV1.hitTestPoint(gameM.enemy.x, gameM.enemy.y, true)))){
gameM.gameV.removeChild(gameM.enemy);
gameM.enemy = null;
gameM.playerV1.guy.gotoAndPlay("bee");
gameC.endGame(gameM.playerV1);
};
if (((gameM.playerV2.alive) && (gameM.playerV2.hitTestPoint(gameM.enemy.x, gameM.enemy.y, true)))){
gameM.gameV.removeChild(gameM.enemy);
gameM.enemy = null;
gameM.playerV2.guy.gotoAndPlay("bee");
gameC.endGame(gameM.playerV2);
};
};
};
} else {
if (gameM.enemy.constructor == ESnowball){
gameM.enemy.x = (gameM.enemy.x - (gameM.minSpeed + 3));
if (gameM.enemy.x < 0){
gameM.gameV.removeChild(gameM.enemy);
gameM.enemy = null;
} else {
if (gameM.playerV1.alive){
gameC.deathCheck(gameM.playerV1, true);
};
if (gameM.playerV2.alive){
gameC.deathCheck(gameM.playerV2, true);
};
};
} else {
if (gameM.enemy.constructor == EGhost){
if (eTick < 50){
eTick = (eTick + 1);
gameM.enemy.transform.colorTransform = new ColorTransform(1, 1, 1, (eTick / 50));
} else {
gameM.enemy.x = (gameM.enemy.x + 3);
if (gameM.enemy.x > 200){
if (eTick < 75){
eTick = (eTick + 1);
gameM.enemy.transform.colorTransform = new ColorTransform(1, 1, 1, ((75 - eTick) / 25));
} else {
gameM.gameV.removeChild(gameM.enemy);
gameM.enemy = null;
};
} else {
if (gameM.playerV1.alive){
gameC.deathCheck(gameM.playerV1, true);
};
if (gameM.playerV2.alive){
gameC.deathCheck(gameM.playerV2, true);
};
};
};
};
};
};
}
}
}//package
Section 79
//ESnowball (ESnowball)
package {
import flash.display.*;
public dynamic class ESnowball extends MovieClip {
public var hit:MovieClip;
}
}//package
Section 80
//Facade (Facade)
package {
import flash.display.*;
import mochi.as3.*;
import UI.*;
public class Facade {
public static var keyboardC:KeyboardControl = new KeyboardControl();
public static var mouseC:MouseControl = new MouseControl();
public static var splash:SplashList = new SplashList();
public static var gameM:GameModel = new GameModel();
public static var gameUI:GameUI = new GameUI();
public static var gameC:GameControl = new GameControl();
public static var moveC:MovementControl = new MovementControl();
public static var menuUI:MenuUI = new MenuUI();
public static var soundC:SoundControl = new SoundControl();
public static var enemyC:EnemyControl = new EnemyControl();
public static var stage:Stage;
public static function initialize(_arg1:Stage){
stage = _arg1;
stage.addChild(splash);
mouseC.init();
gameM.init();
}
public static function initialize2(){
gameC.init();
enemyC.init();
gameUI.init();
moveC.init();
stage.addChild(menuUI);
if ((((gameM.username == null)) || ((gameM.username == "Guest")))){
gameUI.nameBox();
} else {
keyboardC.init();
};
menuUI.init();
}
}
}//package
Section 81
//FakeSounds (FakeSounds)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class FakeSounds extends MovieClip {
public function FakeSounds(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 82
//FallS (FallS)
package {
import flash.media.*;
public dynamic class FallS extends Sound {
}
}//package
Section 83
//GameControl (GameControl)
package {
import flash.display.*;
import flash.events.*;
import GameObjects.*;
import UI.*;
import Level.*;
import flash.geom.*;
public class GameControl {
const maxFrames:int = 6;
const limit:int = 20;
var gameUI:GameUI;
var bgObjects:Array;
var moveC:MovementControl;
var gameM:GameModel;
var soundC:SoundControl;
var frames:int;
public var tapCount:Number;
var enemyC:EnemyControl;
var cFrame:int;
var camA:Number;
var camC:int;
public var tapTest:Boolean;
public var tapCV:Number;
var cStage:int;
var overMask:Sprite;
var camT:PlayerView;
var stage:Stage;
public function GameControl(){
bgObjects = [new Array(), new Array()];
overMask = new Sprite();
super();
}
public function shiftBack(_arg1:Number){
var i:int;
var n = _arg1;
gameM.background[0].x = (gameM.background[0].x + n);
gameM.background[1].x = (gameM.background[0].x + 1500);
if (gameM.multi){
if (gameM.gameOver == 0){
gameM.distance = (gameM.distance - n);
};
} else {
gameM.distance = ((gameM.playerV1.back.frame * 1500) + gameM.playerV1.x);
};
gameUI.scoreS.label.text = String(int((gameM.distance / 25)));
if (gameM.gameOver != 0){
return;
};
if (gameM.multi == false){
if ((((gameM.medals[0] == false)) && ((gameM.distance > 25000)))){
try {
gameM.kongregate.stats.submit("distance", (gameM.distance / 25));
} catch(e:Error) {
};
gameM.medals[0] = true;
stage.addChild(gameUI.medalS);
gameUI.medalS.gotoAndPlay(1);
};
if ((((gameM.medals[1] == false)) && ((gameM.distance > 62500)))){
gameM.medals[1] = true;
stage.addChild(gameUI.medalS);
gameUI.medalS.gotoAndPlay(1);
};
if ((((gameM.medals[2] == false)) && ((gameM.distance > 125000)))){
try {
gameM.kongregate.stats.submit("distance", (gameM.distance / 25));
} catch(e:Error) {
};
gameM.medals[2] = true;
stage.addChild(gameUI.medalS);
gameUI.medalS.gotoAndPlay(1);
};
};
if (gameM.background[1].randomize == 1){
i = Math.ceil((Math.random() * gameM.background[1].obView.totalFrames));
gameM.background[1].obstacles.gotoAndStop(i);
gameM.background[1].obView.gotoAndStop(i);
gameM.background[1].ground.gotoAndStop(i);
if (gameM.background[1].over != null){
gameM.background[1].over.gotoAndStop(i);
};
if (gameM.multi == false){
if (cFrame == gameM.highScore[0]){
bgObjects[1].push(new HSign(gameM.highScore[1], gameM.highScore[0], gameM.background[1].currentFrame));
gameM.background[1].addChildAt(bgObjects[1][(bgObjects[1].length - 1)], (gameM.background[1].getChildIndex(gameM.background[1].obView) - 1));
};
if (gameM.otherMarks.length > 0){
i = 0;
while (i < gameM.otherMarks.length) {
if (cFrame == gameM.otherMarks[i][0]){
bgObjects[1].push(new HSign(gameM.otherMarks[i][1], gameM.otherMarks[i][0], gameM.background[1].currentFrame));
gameM.background[1].addChildAt(bgObjects[1][(bgObjects[1].length - 1)], (gameM.background[1].getChildIndex(gameM.background[1].obView) - 1));
};
i = (i + 1);
};
};
};
gameM.background[1].randomize = 0;
};
if (gameM.background[1].x < 0){
recycleBGO(0);
bgObjects.push(bgObjects.shift());
gameM.background.push(gameM.background.shift());
cFrame = (cFrame + 1);
gameM.background[1].frame = cFrame;
if ((((frames < maxFrames)) && ((gameM.gameWon == false)))){
if ((((frames == 0)) && ((cFrame > 1)))){
soundC.swapMusic(cStage);
};
frames = (frames + 1);
gameM.background[1].gotoAndStop(((Math.ceil((Math.random() * ((gameM.background[0].currentFrame)==(4 + (cStage * 3))) ? 2 : 3)) + (cStage * 3)) + 1));
if (Math.random() < 0.25){
enemyC.newEnemy();
};
} else {
frames = 0;
if (cStage < 2){
cStage = (cStage + 1);
} else {
cStage = 0;
};
gameM.background[1].gotoAndStop((11 + cStage));
};
gameM.background[1].randomize = 1;
};
}
public function init(){
overMask.graphics.beginFill(0);
overMask.graphics.drawRect(0, 0, 700, 400);
gameM = Facade.gameM;
gameUI = Facade.gameUI;
moveC = Facade.moveC;
soundC = Facade.soundC;
enemyC = Facade.enemyC;
stage = Facade.stage;
stage.addEventListener(Event.ENTER_FRAME, onTick);
}
function gameOverCam(){
var i:int;
if (gameM.gameOver == -2){
camC = (camC - 4);
overMask.transform.colorTransform = new ColorTransform(0, 0, 0, (1 - (camC / 100)));
if (camC < 0){
camC = 100;
gameM.gameOver = -1;
gameUI.scoreS.label.text = "0";
if (stage.contains(Facade.menuUI)){
stage.removeChild(Facade.menuUI);
} else {
newGame();
};
};
} else {
if (gameM.gameOver == -1){
camC = (camC - 4);
overMask.transform.colorTransform = new ColorTransform(0, 0, 0, (camC / 100));
if (camC < 0){
overMask.transform.colorTransform = new ColorTransform(0, 0, 0, 1);
stage.removeChild(overMask);
gameM.gameOver = 0;
stage.addChild(gameUI.ready);
gameUI.ready.gotoAndPlay(2);
};
} else {
if (gameM.gameOver == 0){
if (camC > 0){
camC = (camC - 1);
if (camC == 0){
if (gameM.playerV1.alive){
try {
gameM.playerV2.parent.removeChild(gameM.playerV2);
} catch(e:Error) {
};
gameM.playerV2.inGame = false;
} else {
if (gameM.playerV2.alive){
try {
gameM.playerV1.parent.removeChild(gameM.playerV1);
} catch(e:Error) {
};
gameM.playerV1.inGame = false;
};
};
};
};
} else {
if (gameM.gameOver == 1){
if (camC > 8){
camC = (camC - 1);
shiftBack(-(gameM.minSpeed));
} else {
gameM.gameOver = 2;
camC = 20;
};
} else {
if (gameM.gameOver == 2){
gameM.playerV1.inGame = (gameM.playerV2.inGame = false);
if (camC > 0){
camC = (camC - 1);
shiftBack(((-(gameM.minSpeed) * camC) / 20));
} else {
gameM.gameOver = 3;
camC = int(((((stage.stageWidth / 2) - (camT.x + camT.back.x)) / gameM.minSpeed) / 4));
};
} else {
if (gameM.gameOver == 3){
if (camC > 0){
camC = (camC - 1);
shiftBack((gameM.minSpeed * 4));
if (gameM.background[1].x > stage.stageWidth){
if (gameM.background[0].currentFrame < 11){
gameM.background[1].gotoAndStop(gameM.background[0].currentFrame);
} else {
gameM.background[1].gotoAndStop(((gameM.background[0].currentFrame - 10) * 3));
};
gameM.background[1].x = (gameM.background[0].x - 1500);
gameM.background.push(gameM.background.shift());
};
} else {
gameM.gameOver = 4;
camC = 10;
gameUI.dropEnd();
if (gameM.multi == false){
if (gameM.playerV1.back == gameM.background[0]){
i = 0;
} else {
i = 1;
};
bgObjects[i].push(new HSign(gameM.playerV1.x, gameM.background[i].frame, gameM.background[i].currentFrame, true));
gameM.background[i].addChildAt(bgObjects[i][(bgObjects[i].length - 1)], (gameM.background[i].getChildIndex(gameM.background[i].obView) - 1));
};
};
} else {
if (gameM.gameOver == 4){
if (camC > 0){
camC = (camC - 1);
shiftBack(((gameM.minSpeed * camC) / 13.75));
} else {
gameM.gameOver = 5;
};
} else {
if (gameM.gameOver == 6){
camC = (camC + 4);
overMask.transform.colorTransform = new ColorTransform(0, 0, 0, (camC / 100));
if (camC > 100){
gameM.gameOver = 5;
stage.removeChild(gameUI);
stage.addChild(Facade.menuUI);
Facade.menuUI.fadeIn();
Facade.menuUI.finalmenu.gotoAndPlay(1);
stage.focus = stage;
};
};
};
};
};
};
};
};
};
}
public function onTick(_arg1:Event){
if (gameM.playerV1.inGame){
moveC.movement(gameM.playerV1);
};
if (gameM.playerV2.inGame){
moveC.movement(gameM.playerV2);
};
if (gameM.enemy != null){
enemyC.enemyUpdate();
};
soundC.update();
if (tapTest){
tapCount = (tapCount - tapCV);
tapCV = (tapCV + 0.01);
gameUI.respawner.bar.width = (2.4 * tapCount);
if (tapCount < 0){
tapCount = 0;
gameM.gameWon = true;
gameUI.dropEnd();
stage.removeChild(gameUI.respawner);
tapTest = false;
} else {
if (tapCount > 100){
tapCount = 0;
tapCV = 0.5;
if (gameM.playerV1.alive){
respawnPlayer(gameM.playerV2);
} else {
respawnPlayer(gameM.playerV1);
};
tapTest = false;
};
};
};
if ((((gameM.gameOver <= 0)) && ((gameM.gameOver > -2)))){
shiftBack(-(gameM.minSpeed));
if (gameM.playerV1.alive){
borderCheck(gameM.playerV1);
if (gameM.playerV1.invincible == 0){
if (gameM.gameWon == false){
deathCheck(gameM.playerV1);
};
} else {
gameM.playerV1.invincible = (gameM.playerV1.invincible - 1);
if ((gameM.playerV1.invincible % 10) == 1){
gameM.playerV1.guy.alpha = 0;
} else {
if (((((gameM.playerV1.invincible % 5) == 1)) || ((gameM.playerV1.invincible == 0)))){
gameM.playerV1.guy.alpha = 1;
};
};
};
};
if (gameM.playerV2.alive){
borderCheck(gameM.playerV2);
if (gameM.playerV2.invincible == 0){
if ((((gameM.gameWon == false)) && ((gameM.playerV2.invincible == 0)))){
deathCheck(gameM.playerV2);
};
} else {
gameM.playerV2.invincible = (gameM.playerV2.invincible - 1);
if ((gameM.playerV2.invincible % 10) == 1){
gameM.playerV2.guy.alpha = 0;
} else {
if (((((gameM.playerV2.invincible % 5) == 1)) || ((gameM.playerV2.invincible == 0)))){
gameM.playerV2.guy.alpha = 1;
};
};
};
};
gameM.minSpeed = (gameM.minSpeed + 0.001);
};
gameOverCam();
}
public function respawnPlayer(_arg1:PlayerView){
_arg1.reset();
_arg1.tapPush = (_arg1.tapPush - 4);
if ((((gameM.medals[7] == false)) && ((_arg1.tapPush < 5)))){
gameM.medals[7] = true;
stage.addChild(gameUI.medalS);
gameUI.medalS.gotoAndPlay(1);
};
if (_arg1 == gameM.playerV1){
gameM.background[0].player.addChild(_arg1);
} else {
gameM.background[0].player.addChildAt(_arg1, 0);
};
_arg1.back = gameM.background[0];
_arg1.x = (0 - gameM.background[0].x);
_arg1.invincible = 100;
camC = 0;
stage.removeChild(gameUI.respawner);
}
public function newGame(){
if (gameUI.pause){
gameUI.pauseGame(true);
};
if (stage.contains(Facade.menuUI) == false){
if (gameM.gameOver != -1){
stage.addChild(overMask);
camC = 100;
gameM.gameOver = -2;
return;
};
} else {
stage.addChild(overMask);
camC = 100;
gameM.gameOver = -2;
};
recycleBGO(0);
recycleBGO(1);
frames = (cStage = (cFrame = (tapCount = 0)));
tapCV = 0.5;
tapTest = (gameM.gameWon = false);
gameM.newGame();
soundC.startMusic();
moveC.jumpChal = (moveC.moveChal = (moveC.moveChalM = 0));
try {
stage.removeChild(gameUI.singleEnd);
} catch(e:Error) {
};
try {
stage.removeChild(gameUI.multiEnd);
} catch(e:Error) {
};
try {
stage.removeChild(gameUI.moreB);
} catch(e:Error) {
};
try {
gameUI.removeChild(gameUI.snowA);
} catch(e:Error) {
};
stage.addChildAt(gameUI, 1);
stage.focus = stage;
}
public function hitCheck(_arg1:PlayerView, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false):Boolean{
var _local6:int;
var _local7:Object;
if ((_arg5) ? gameM.enemy.hit : _arg1.back.obstacles.hitTestPoint(_arg2, _arg3, true)){
_arg2 = (_arg2 - (_arg1.back.x + _arg1.back.obstacles.x));
if (_arg5){
if (gameM.enemy.constructor == EGhost){
_arg1.guy.gotoAndPlay("ghost");
} else {
gameM.enemy.stop();
_arg1.guy.gotoAndPlay("trip");
};
} else {
_local6 = 0;
while (_local6 < 3) {
_local7 = _arg1.back.obstacles.getChildAt(_local6);
if (((((_local7.x - (_local7.width / 2)) < _arg2)) && (((_local7.x + (_local7.width / 2)) > _arg2)))){
if (_arg4){
_arg1.guy.gotoAndPlay("headHit");
break;
};
switch (_local7.constructor){
case HitHands:
_arg1.guy.gotoAndPlay("zombie");
break;
case HitMud:
_arg1.guy.gotoAndPlay("mud");
break;
default:
_arg1.guy.gotoAndPlay("trip");
break;
};
break;
};
_local6 = (_local6 + 1);
};
};
endGame(_arg1);
return (true);
};
return (false);
}
function recycleBGO(_arg1:int){
while (bgObjects[_arg1].length > 0) {
bgObjects[_arg1][0].parent.removeChild(bgObjects[_arg1][0]);
bgObjects[_arg1].shift();
};
}
public function fadeOut(){
if (gameUI.pause){
gameUI.pauseGame(true);
};
camC = 0;
gameM.gameOver = 6;
stage.addChild(overMask);
}
public function borderCheck(_arg1:PlayerView){
if ((_arg1.x + _arg1.back.x) < limit){
_arg1.x = (limit - _arg1.back.x);
} else {
if ((_arg1.x + _arg1.back.x) > (stage.stageWidth - limit)){
_arg1.x = ((stage.stageWidth - limit) - _arg1.back.x);
};
};
}
public function endGame(_arg1:PlayerView){
var v = _arg1;
v.endGame();
if (gameM.multi == false){
gameM.scoreUpdate();
try {
gameM.kongregate.stats.submit("distance", (gameM.distance / 25));
gameM.kongregate.stats.submit("jumps", moveC.jumpChal);
gameM.kongregate.stats.submit("idle", (moveC.moveChalM / 50));
} catch(e:Error) {
};
};
if (gameM.gameWon == false){
if ((((gameM.playerV1.alive == false)) && ((gameM.playerV2.alive == false)))){
try {
stage.removeChild(gameUI.respawner);
} catch(e:Error) {
};
soundC.stopMusic();
if (soundC.mute == false){
new CameraS().play();
};
enemyC.endGame();
camT = v;
gameM.gameOver = 1;
camC = 50;
tapTest = false;
} else {
camC = 100;
stage.addChild(gameUI.respawner);
if (gameM.playerV1.alive){
gameUI.respawner.text.gotoAndStop(1);
} else {
gameUI.respawner.text.gotoAndStop(2);
};
tapTest = true;
tapCount = 50;
};
};
}
public function deathCheck(_arg1:PlayerView, _arg2:Boolean=false){
if ((_arg1.y - _arg1.height) > stage.stageHeight){
endGame(_arg1);
if (soundC.mute == false){
new FallS().play();
};
} else {
if (hitCheck(_arg1, ((_arg1.x + _arg1.back.x) + _arg1.bRight), (_arg1.y + _arg1.bDown), false, _arg2)){
return;
};
if (hitCheck(_arg1, ((_arg1.x + _arg1.back.x) + _arg1.bLeft), (_arg1.y + _arg1.bUp), true, _arg2)){
return;
};
if (hitCheck(_arg1, ((_arg1.x + _arg1.back.x) + _arg1.bRight), (_arg1.y + _arg1.bUp), true, _arg2)){
return;
};
};
}
}
}//package
Section 84
//GameModel (GameModel)
package {
import flash.display.*;
import flash.events.*;
import GameObjects.*;
import flash.net.*;
import Level.*;
import flash.system.*;
public class GameModel {
public var save:SharedObject;
public var gameWon:Boolean;
public var enemy:MovieClip;
public var newRecord:Boolean;// = false
var loader:Loader;
public var minSpeed:Number;// = 5
public var otherMarks:Array;
public var highScore:Array;
public var kongregate;
public var medals:Array;
public var username:String;
public var gameV:Sprite;
public var gameOver:int;// = 5
public var background:Array;
public var distance:Number;// = 0
public var multi:Boolean;// = false
public var playerV1:PlayerView;
public var playerV2:PlayerView;
public function GameModel(){
background = new Array();
gameV = new Sprite();
otherMarks = new Array();
super();
}
function loadKong(){
var apiPath:String;
try {
apiPath = ((LoaderInfo(Facade.stage.loaderInfo).parameters.kongregate_api_path) || ("http://www.kongregate.com/flash/API_AS3_Local.swf"));
Security.allowDomain(apiPath);
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
loader.load(new URLRequest(apiPath));
Facade.stage.addChild(loader);
} catch(e:Error) {
trace("Kong API not loadable.");
};
}
function loadComplete(_arg1:Event){
kongregate = _arg1.target.content;
Security.allowDomain(kongregate.loaderInfo.url);
kongregate.services.connect();
username = kongregate.services.getUsername();
}
public function newGame(){
save.data.timesPlayed = (save.data.timesPlayed + 1);
if ((((medals[6] == false)) && ((save.data.timesPlayed > 49)))){
medals[6] = true;
Facade.stage.addChild(Facade.gameUI.medalS);
Facade.gameUI.medalS.gotoAndPlay(1);
};
saveLooks();
distance = 0;
minSpeed = 8;
background[0].gotoAndStop(1);
background[1].gotoAndStop(1);
background[0].x = -1499;
background[1].x = 1;
background[1].randomize = 1;
background[0].frame = (background[1].frame = 0);
try {
playerV2.parent.removeChild(playerV2);
} catch(e:Error) {
};
if (multi){
playerV2.reset();
background[1].player.addChild(playerV2);
playerV2.tapPush = (playerV1.tapPush = 20);
};
playerV1.reset();
background[1].player.addChild(playerV1);
}
public function init(){
save = SharedObject.getLocal("save");
if (save.size == 0){
save.data.look = [[1, 1, 1, 1, 1], [2, 2, 2, 2, 2]];
save.data.highScore = [0, 0];
save.data.medals = [false, false, false, false, false, false, false, false, false];
save.data.timesPlayed = 0;
};
highScore = save.data.highScore;
medals = save.data.medals;
playerV1 = new PlayerView(save.data.look[0]);
playerV2 = new PlayerView(save.data.look[1], true);
background = [new Background(), new Background()];
background[0].gotoAndStop(1);
background[1].gotoAndStop(1);
gameV.addChild(background[0]);
gameV.addChild(background[1]);
loadKong();
}
public function saveLooks(){
save.data.look = [[playerV1.guy.headi, playerV1.guy.expressi, playerV1.guy.armi, playerV1.guy.bodyi, playerV1.guy.legi], [playerV2.guy.headi, playerV2.guy.expressi, playerV2.guy.armi, playerV2.guy.bodyi, playerV2.guy.legi]];
}
public function scoreUpdate(){
if ((((Facade.gameC.cFrame > highScore[0])) || ((((Facade.gameC.cFrame == highScore[0])) && ((playerV1.x > highScore[1])))))){
highScore[0] = ((playerV1.back == background[0])) ? (Facade.gameC.cFrame - 1) : Facade.gameC.cFrame;
highScore[1] = playerV1.x;
newRecord = true;
} else {
otherMarks.push([((playerV1.back == background[0])) ? (Facade.gameC.cFrame - 1) : Facade.gameC.cFrame, playerV1.x]);
if (otherMarks.length > 5){
otherMarks.shift();
};
};
}
}
}//package
Section 85
//Highscore (Highscore)
package {
import flash.media.*;
public dynamic class Highscore extends Sound {
}
}//package
Section 86
//HitHands (HitHands)
package {
import flash.display.*;
public dynamic class HitHands extends MovieClip {
}
}//package
Section 87
//HitMud (HitMud)
package {
import flash.display.*;
public dynamic class HitMud extends MovieClip {
}
}//package
Section 88
//HSign (HSign)
package {
import flash.display.*;
public class HSign extends MovieClip {
public var sign:MovieClip;
public function HSign(_arg1:Number=0, _arg2:Number=0, _arg3:int=0, _arg4:Boolean=false){
addFrameScript(25, frame26);
x = _arg1;
y = 320;
mouseChildren = false;
if (_arg3 < 11){
sign.gotoAndStop(Math.ceil(((_arg3 - 1) / 3)));
} else {
sign.gotoAndStop((_arg3 - 10));
};
sign.label.text = String(int(((_arg1 + (1500 * _arg2)) / 25)));
if (_arg4 == false){
gotoAndStop(26);
x = (x + 10);
};
}
function frame26(){
stop();
}
}
}//package
Section 89
//JumpS0 (JumpS0)
package {
import flash.media.*;
public dynamic class JumpS0 extends Sound {
}
}//package
Section 90
//JumpS1 (JumpS1)
package {
import flash.media.*;
public dynamic class JumpS1 extends Sound {
}
}//package
Section 91
//JumpS2 (JumpS2)
package {
import flash.media.*;
public dynamic class JumpS2 extends Sound {
}
}//package
Section 92
//JumpS3 (JumpS3)
package {
import flash.media.*;
public dynamic class JumpS3 extends Sound {
}
}//package
Section 93
//KeyboardControl (KeyboardControl)
package {
import flash.events.*;
import UI.*;
import flash.ui.*;
public class KeyboardControl {
var gameUI:GameUI;
var gameC:GameControl;
var moveC:MovementControl;
var gameM:GameModel;
public function keyDown(_arg1:KeyboardEvent){
if (_arg1.keyCode == Keyboard.SPACE){
if (((((Facade.stage.contains(gameUI.singleEnd)) || (Facade.stage.contains(gameUI.multiEnd)))) || (Facade.stage.contains(gameUI.pauseS)))){
gameC.newGame();
};
} else {
if (_arg1.keyCode == 81){
switch (Facade.stage.quality){
case "LOW":
Facade.stage.quality = "MEDIUM";
break;
case "MEDIUM":
Facade.stage.quality = "BEST";
break;
default:
Facade.stage.quality = "LOW";
break;
};
} else {
if (_arg1.keyCode == 77){
Facade.soundC.toggleMute();
} else {
if ((((_arg1.keyCode == Keyboard.ESCAPE)) || ((_arg1.keyCode == 80)))){
gameUI.pauseGame();
};
};
};
};
if (gameUI.pause == false){
if (gameM.playerV1.alive){
if (_arg1.keyCode == Keyboard.LEFT){
gameM.playerV1.left = true;
} else {
if (_arg1.keyCode == Keyboard.RIGHT){
gameM.playerV1.right = true;
} else {
if (_arg1.keyCode == Keyboard.UP){
if (gameM.playerV1.up == false){
moveC.jump(gameM.playerV1);
};
gameM.playerV1.up = true;
} else {
if (_arg1.keyCode == Keyboard.DOWN){
gameM.playerV1.down = true;
moveC.slide(gameM.playerV1);
};
};
};
};
} else {
if (gameC.tapTest){
if (_arg1.keyCode == Keyboard.UP){
gameC.tapCount = (gameC.tapCount + gameM.playerV1.tapPush);
};
};
};
if (gameM.playerV2.alive){
if (_arg1.keyCode == 65){
gameM.playerV2.left = true;
} else {
if (_arg1.keyCode == 68){
gameM.playerV2.right = true;
} else {
if (_arg1.keyCode == 87){
if (gameM.playerV2.up == false){
moveC.jump(gameM.playerV2);
};
gameM.playerV2.up = true;
} else {
if (_arg1.keyCode == 83){
gameM.playerV2.down = true;
moveC.slide(gameM.playerV2);
};
};
};
};
} else {
if (gameC.tapTest){
if (_arg1.keyCode == 87){
gameC.tapCount = (gameC.tapCount + gameM.playerV2.tapPush);
};
};
};
};
}
public function init(){
gameM = Facade.gameM;
moveC = Facade.moveC;
gameC = Facade.gameC;
gameUI = Facade.gameUI;
Facade.stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDown);
Facade.stage.addEventListener(KeyboardEvent.KEY_UP, keyUp);
}
public function keyUp(_arg1:KeyboardEvent){
if (gameUI.pause == false){
if (gameM.playerV1.alive){
if (_arg1.keyCode == Keyboard.LEFT){
gameM.playerV1.left = false;
} else {
if (_arg1.keyCode == Keyboard.RIGHT){
gameM.playerV1.right = false;
} else {
if (_arg1.keyCode == Keyboard.UP){
gameM.playerV1.up = false;
} else {
if (_arg1.keyCode == Keyboard.DOWN){
gameM.playerV1.down = false;
if (gameM.playerV1.slideT.running == false){
moveC.slideDone(gameM.playerV1);
};
};
};
};
};
};
if (gameM.playerV2.alive){
if (_arg1.keyCode == 65){
gameM.playerV2.left = false;
} else {
if (_arg1.keyCode == 68){
gameM.playerV2.right = false;
} else {
if (_arg1.keyCode == 87){
gameM.playerV2.up = false;
} else {
if (_arg1.keyCode == 83){
gameM.playerV2.down = false;
if (gameM.playerV2.slideT.running == false){
moveC.slideDone(gameM.playerV2);
};
};
};
};
};
};
};
}
}
}//package
Section 94
//LandS (LandS)
package {
import flash.media.*;
public dynamic class LandS extends Sound {
}
}//package
Section 95
//LoaderS (LoaderS)
package {
import flash.media.*;
public dynamic class LoaderS extends Sound {
}
}//package
Section 96
//MBorder (MBorder)
package {
import flash.display.*;
public dynamic class MBorder extends BitmapData {
public function MBorder(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 97
//Medals (Medals)
package {
import flash.media.*;
public dynamic class Medals extends Sound {
}
}//package
Section 98
//MedalSign (MedalSign)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class MedalSign extends MovieClip {
public function MedalSign(){
addFrameScript(0, frame1, 124, frame125);
}
function frame1(){
stop();
}
function frame125(){
stop();
parent.removeChild(this);
}
}
}//package
Section 99
//MLoader (MLoader)
package {
import flash.display.*;
public dynamic class MLoader extends MovieClip {
}
}//package
Section 100
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 101
//MoreButton (MoreButton)
package {
import flash.display.*;
public dynamic class MoreButton extends SimpleButton {
}
}//package
Section 102
//MouseControl (MouseControl)
package {
import flash.events.*;
import mochi.as3.*;
import UI.*;
import flash.net.*;
public class MouseControl {
var gameC:GameControl;
var menuUI:MenuUI;
var soundC:SoundControl;
var gameM:GameModel;
function mouseOut(_arg1:MouseEvent){
if (_arg1.target.name == "UIButton"){
_arg1.target.gotoAndPlay(9);
};
}
function click(_arg1:MouseEvent){
var e = _arg1;
switch (e.target.name){
case "player":
if (gameM.kongregate != null){
try {
if (gameM.kongregate.services.isGuest() == false){
gameM.kongregate.images.submitAvatar(e.target, onAvatarComplete);
};
} catch(e:Error) {
};
};
break;
case "start1P":
gameM.multi = false;
if (soundC.mute == false){
new ClickS().play();
};
gameC.newGame();
break;
case "start2P":
gameM.multi = true;
if (soundC.mute == false){
new ClickS().play();
};
gameC.newGame();
break;
case "GameButtonHS":
MochiScores.closeLeaderboard();
if (soundC.mute == false){
new ClickS().play();
};
break;
case "UIButtonHS":
MochiScores.closeLeaderboard();
case "UIButton":
menuUI.finalmenu.dropdowns.gotoAndPlay((menuUI.finalmenu.dropdowns.currentFrame + 1));
if (soundC.mute == false){
new ClickS().play();
};
menuUI.finalmenu.coverbtn.gotoAndPlay(31);
break;
case "nameOK":
Facade.gameUI.nameConfirm();
if (soundC.mute == false){
new ClickS().play();
};
break;
case "xelub":
navigateToURL(new URLRequest("http://www.xelubest.ro"));
break;
case "thepeasantb":
navigateToURL(new URLRequest("http://thepeasant.newgrounds.com"));
break;
case "waterflameb":
navigateToURL(new URLRequest("http://waterflame.newgrounds.com"));
break;
case "morebut":
if (soundC.mute == false){
new ClickS().play();
};
case "boltzb":
navigateToURL(new URLRequest("http://www.gameboltz.com/home.php?gameref=kawairun"));
break;
case "retry":
gameC.newGame();
if (soundC.mute == false){
new ClickS().play();
};
break;
case "menu":
gameC.fadeOut();
if (soundC.mute == false){
new ClickS().play();
};
gameM.playerV1.endGame();
gameM.playerV2.endGame();
gameM.playerV1.inGame = (gameM.playerV2.inGame = false);
break;
case "submit":
Facade.gameUI.showLeaderboard(true);
if (soundC.mute == false){
new ClickS().play();
};
break;
case "unpause":
Facade.gameUI.pauseGame();
if (soundC.mute == false){
new ClickS().play();
};
break;
case "right01":
gameM.playerV1.guy.expressi = (gameM.playerV1.guy.expressi + 1);
if (soundC.mute == false){
new EditS().play();
};
if (gameM.playerV1.guy.expressi > 10){
gameM.playerV1.guy.expressi = 1;
};
gameM.playerV1.guy.gotoAndPlay("stand");
break;
case "right02":
gameM.playerV1.guy.headi = (gameM.playerV1.guy.headi + 1);
if (soundC.mute == false){
new EditS().play();
};
if (gameM.playerV1.guy.headi > 10){
gameM.playerV1.guy.headi = 1;
};
gameM.playerV1.guy.gotoAndPlay("stand");
break;
case "right03":
gameM.playerV1.guy.bodyi = (gameM.playerV1.guy.bodyi + 1);
if (soundC.mute == false){
new EditS().play();
};
if (gameM.playerV1.guy.bodyi > 10){
gameM.playerV1.guy.bodyi = 1;
};
gameM.playerV1.guy.gotoAndPlay("stand");
break;
case "right04":
gameM.playerV1.guy.armi = (gameM.playerV1.guy.armi + 1);
if (soundC.mute == false){
new EditS().play();
};
if (gameM.playerV1.guy.armi > 10){
gameM.playerV1.guy.armi = 1;
};
gameM.playerV1.guy.gotoAndPlay("stand");
break;
case "right05":
gameM.playerV1.guy.legi = (gameM.playerV1.guy.legi + 1);
if (soundC.mute == false){
new EditS().play();
};
if (gameM.playerV1.guy.legi > 10){
gameM.playerV1.guy.legi = 1;
};
gameM.playerV1.guy.gotoAndPlay("stand");
break;
case "left01":
gameM.playerV1.guy.expressi = (gameM.playerV1.guy.expressi - 1);
if (soundC.mute == false){
new EditS().play();
};
if (gameM.playerV1.guy.expressi < 1){
gameM.playerV1.guy.expressi = 10;
};
gameM.playerV1.guy.gotoAndPlay("stand");
break;
case "left02":
gameM.playerV1.guy.headi = (gameM.playerV1.guy.headi - 1);
if (soundC.mute == false){
new EditS().play();
};
if (gameM.playerV1.guy.headi < 1){
gameM.playerV1.guy.headi = 10;
};
gameM.playerV1.guy.gotoAndPlay("stand");
break;
case "left03":
gameM.playerV1.guy.bodyi = (gameM.playerV1.guy.bodyi - 1);
if (soundC.mute == false){
new EditS().play();
};
if (gameM.playerV1.guy.bodyi < 1){
gameM.playerV1.guy.bodyi = 10;
};
gameM.playerV1.guy.gotoAndPlay("stand");
break;
case "left04":
gameM.playerV1.guy.armi = (gameM.playerV1.guy.armi - 1);
if (soundC.mute == false){
new EditS().play();
};
if (gameM.playerV1.guy.armi < 1){
gameM.playerV1.guy.armi = 10;
};
gameM.playerV1.guy.gotoAndPlay("stand");
break;
case "left05":
gameM.playerV1.guy.legi = (gameM.playerV1.guy.legi - 1);
if (soundC.mute == false){
new EditS().play();
};
if (gameM.playerV1.guy.legi < 1){
gameM.playerV1.guy.legi = 10;
};
gameM.playerV1.guy.gotoAndPlay("stand");
break;
case "right11":
gameM.playerV2.guy.expressi = (gameM.playerV2.guy.expressi + 1);
if (soundC.mute == false){
new EditS().play();
};
if (gameM.playerV2.guy.expressi > 10){
gameM.playerV2.guy.expressi = 1;
};
gameM.playerV2.guy.gotoAndPlay("stand");
break;
case "right12":
gameM.playerV2.guy.headi = (gameM.playerV2.guy.headi + 1);
if (soundC.mute == false){
new EditS().play();
};
if (gameM.playerV2.guy.headi > 10){
gameM.playerV2.guy.headi = 1;
};
gameM.playerV2.guy.gotoAndPlay("stand");
break;
case "right13":
gameM.playerV2.guy.bodyi = (gameM.playerV2.guy.bodyi + 1);
if (soundC.mute == false){
new EditS().play();
};
if (gameM.playerV2.guy.bodyi > 10){
gameM.playerV2.guy.bodyi = 1;
};
gameM.playerV2.guy.gotoAndPlay("stand");
break;
case "right14":
gameM.playerV2.guy.armi = (gameM.playerV2.guy.armi + 1);
if (soundC.mute == false){
new EditS().play();
};
if (gameM.playerV2.guy.armi > 10){
gameM.playerV2.guy.armi = 1;
};
gameM.playerV2.guy.gotoAndPlay("stand");
break;
case "right15":
gameM.playerV2.guy.legi = (gameM.playerV2.guy.legi + 1);
if (soundC.mute == false){
new EditS().play();
};
if (gameM.playerV2.guy.legi > 10){
gameM.playerV2.guy.legi = 1;
};
gameM.playerV2.guy.gotoAndPlay("stand");
break;
case "left11":
gameM.playerV2.guy.expressi = (gameM.playerV2.guy.expressi - 1);
if (soundC.mute == false){
new EditS().play();
};
if (gameM.playerV2.guy.expressi < 1){
gameM.playerV2.guy.expressi = 10;
};
gameM.playerV2.guy.gotoAndPlay("stand");
break;
case "left12":
gameM.playerV2.guy.headi = (gameM.playerV2.guy.headi - 1);
if (soundC.mute == false){
new EditS().play();
};
if (gameM.playerV2.guy.headi < 1){
gameM.playerV2.guy.headi = 10;
};
gameM.playerV2.guy.gotoAndPlay("stand");
break;
case "left13":
gameM.playerV2.guy.bodyi = (gameM.playerV2.guy.bodyi - 1);
if (soundC.mute == false){
new EditS().play();
};
if (gameM.playerV2.guy.bodyi < 1){
gameM.playerV2.guy.bodyi = 10;
};
gameM.playerV2.guy.gotoAndPlay("stand");
break;
case "left14":
gameM.playerV2.guy.armi = (gameM.playerV2.guy.armi - 1);
if (soundC.mute == false){
new EditS().play();
};
if (gameM.playerV2.guy.armi < 1){
gameM.playerV2.guy.armi = 10;
};
gameM.playerV2.guy.gotoAndPlay("stand");
break;
case "left15":
gameM.playerV2.guy.legi = (gameM.playerV2.guy.legi - 1);
if (soundC.mute == false){
new EditS().play();
};
if (gameM.playerV2.guy.legi < 1){
gameM.playerV2.guy.legi = 10;
};
gameM.playerV2.guy.gotoAndPlay("stand");
break;
default:
break;
};
}
public function init(){
soundC = Facade.soundC;
menuUI = Facade.menuUI;
gameC = Facade.gameC;
gameM = Facade.gameM;
Facade.stage.addEventListener(MouseEvent.CLICK, click);
Facade.stage.addEventListener(MouseEvent.MOUSE_OVER, mouseOver);
Facade.stage.addEventListener(MouseEvent.MOUSE_OUT, mouseOut);
}
function onAvatarComplete(_arg1:Boolean){
}
function mouseOver(_arg1:MouseEvent){
switch (_arg1.target.name){
case "UIButton":
_arg1.target.gotoAndPlay(2);
if (soundC.mute == false){
new BOver().play();
};
break;
case "start1P":
case "start 2P":
case "morebut":
case "nameOK":
case "retry":
case "submit":
case "menu":
case "GameButtonHS":
case "unpause":
if (soundC.mute == false){
new BOver().play();
};
break;
case "fader0":
_arg1.target.parent.text.gotoAndStop(1);
break;
case "fader1":
_arg1.target.parent.text.gotoAndStop(2);
break;
case "fader2":
_arg1.target.parent.text.gotoAndStop(3);
break;
case "fader3":
_arg1.target.parent.text.gotoAndStop(4);
break;
case "fader4":
_arg1.target.parent.text.gotoAndStop(5);
break;
case "fader5":
_arg1.target.parent.text.gotoAndStop(6);
break;
case "fader6":
_arg1.target.parent.text.gotoAndStop(7);
break;
case "fader7":
_arg1.target.parent.text.gotoAndStop(8);
break;
case "fader8":
_arg1.target.parent.text.gotoAndStop(9);
break;
default:
break;
};
}
}
}//package
Section 103
//MovementControl (MovementControl)
package {
import flash.events.*;
import GameObjects.*;
import UI.*;
import flash.geom.*;
public class MovementControl {
const magA:Number = 1.5;
const gravity:Number = 1.2;
const miu:Number = 0.6;
const jumpH:Number = 20;
const topSpeed:Number = 8;
public var moveChal:int;
var gameUI:GameUI;
var soundC:SoundControl;
var gameM:GameModel;
public var jumpChal:int;
public var slideChal:int;
var cCheck:int;// = 0
public var moveChalM:int;
var jumpS:Array;
public function MovementControl(){
jumpS = [new JumpS0(), new JumpS1(), new JumpS2(), new JumpS3()];
super();
}
public function slideFinal(_arg1){
_arg1.slide = false;
if (_arg1.up){
jump(_arg1);
};
}
public function init(){
gameM = Facade.gameM;
gameUI = Facade.gameUI;
soundC = Facade.soundC;
gameM.playerV1.slideT.addEventListener(TimerEvent.TIMER_COMPLETE, slideDone1);
gameM.playerV2.slideT.addEventListener(TimerEvent.TIMER_COMPLETE, slideDone2);
}
public function slideDone(_arg1:PlayerView){
_arg1.slideT.stop();
if ((((_arg1.down == false)) && ((_arg1.airborne == false)))){
_arg1.guy.gotoAndPlay("slideDone");
_arg1.bUp = -100;
};
}
public function jump(_arg1:PlayerView){
if (_arg1.down == false){
if (_arg1.airborne == false){
_arg1.slideT.stop();
_arg1.slide = false;
_arg1.bUp = -100;
_arg1.airborne = true;
_arg1.vY = (_arg1.vY - jumpH);
_arg1.guy.gotoAndPlay("jump");
if (soundC.mute == false){
jumpS[Math.floor((Math.random() * 4))].play();
};
jumpChal = (jumpChal + 1);
if ((((gameM.multi == false)) && ((gameM.medals[5] == false)))){
if (jumpChal > 120){
gameM.medals[5] = true;
Facade.stage.addChild(gameUI.medalS);
gameUI.medalS.gotoAndPlay(1);
};
};
};
};
}
public function movement(_arg1){
var aMult:Number;
var Friction:Number;
var t:Number;
var v = _arg1;
if ((((((gameM.multi == false)) && ((gameM.medals[3] == false)))) && (v.slide))){
slideChal = (slideChal + 1);
if (slideChal > 250){
gameM.medals[3] = true;
Facade.stage.addChild(gameUI.medalS);
gameUI.medalS.gotoAndPlay(1);
};
};
if (v.alive){
if (Math.abs(v.vX) >= topSpeed){
aMult = 0;
} else {
if (((v.left) && ((v.right == false)))){
aMult = (v.slide) ? -0.5 : -1;
moveChal = 0;
} else {
if (((v.right) && ((v.left == false)))){
aMult = (v.slide) ? 0.5 : 1;
moveChal = 0;
} else {
aMult = 0;
moveChal = (moveChal + 1);
if (moveChal > moveChalM){
moveChalM = moveChal;
};
if ((((gameM.multi == false)) && ((gameM.medals[8] == false)))){
if (moveChal > 1500){
gameM.medals[8] = true;
Facade.stage.addChild(gameUI.medalS);
gameUI.medalS.gotoAndPlay(1);
};
};
};
};
};
v.x = (v.x + gameM.minSpeed);
} else {
aMult = 0;
};
if (v.vX != 0){
Friction = (((v.vX)>0) ? (miu * gravity) : (0 - (miu * gravity)) * (v.slide) ? 0.3 : 1);
} else {
Friction = 0;
};
v.vX = (v.vX + ((magA * aMult) - Friction));
if (Math.abs(v.vX) < ((aMult == 0)) ? 1 : aMult){
v.vX = 0;
};
v.x = (v.x + v.vX);
if (v.alive){
if (v.x > 1500){
applyBack(v, 1);
} else {
if (v.x < 0){
applyBack(v, 0);
};
};
};
v.y = (v.y + v.vY);
v.vY = (v.vY + gravity);
if (v.back.ground.hitTestPoint((v.x + v.back.x), (v.y + v.back.y), true)){
do {
v.y = (v.y - 1);
} while (v.back.ground.hitTestPoint((v.x + v.back.x), (v.y + v.back.y), true));
if (v.airborne){
v.airborne = false;
if (soundC.mute == false){
new LandS().play();
};
if (v.down){
slide(v);
};
};
v.vY = 0;
};
if (v.back.currentFrame == 4){
if (cCheck > 0){
cCheck = (cCheck - 1);
} else {
cCheck = 6;
if (v.x < 400){
t = 0;
} else {
if ((((v.x > 400)) && ((v.x < 800)))){
t = ((v.x - 400) / 500);
} else {
if (v.x > 1100){
t = ((1500 - v.x) / 500);
} else {
t = (4 / 5);
};
};
};
v.reColour((-(t) * 200));
};
} else {
if (v.back.currentFrame == 11){
if (v.x > 1000){
gameUI.snowA.transform.colorTransform = new ColorTransform(1, 1, 1, ((1500 - v.x) / 500));
};
if (v.x > 1400){
try {
gameUI.removeChild(gameUI.snowA);
} catch(e:Error) {
};
};
} else {
if (v.back.currentFrame == 12){
if (v.x > 500){
t = ((v.x - 500) / 20);
} else {
t = 0;
};
v.reColour(t);
} else {
if (v.back.currentFrame == 13){
if (v.x < 500){
t = ((500 - v.x) / 20);
gameUI.snowA.transform.colorTransform = new ColorTransform(1, 1, 1, (v.x / 500));
} else {
t = 0;
};
v.reColour(t);
};
};
};
};
}
public function slide(_arg1:PlayerView){
if ((((_arg1.airborne == false)) && ((_arg1.slide == false)))){
_arg1.guy.gotoAndPlay("slide");
_arg1.bUp = -40;
_arg1.slide = true;
_arg1.slideT.reset();
_arg1.slideT.start();
slideChal = 0;
if (soundC.mute == false){
new SlideS().play();
};
};
}
function applyBack(_arg1, _arg2:int){
_arg1.x = (_arg1.x + _arg1.back.x);
_arg1.back = gameM.background[_arg2];
_arg1.x = (_arg1.x - _arg1.back.x);
if (_arg1.player2){
_arg1.back.player.addChildAt(_arg1, 0);
} else {
_arg1.back.player.addChild(_arg1);
};
gameM.gameV.setChildIndex(_arg1.back, 1);
switch (_arg1.back.currentFrame){
case 5:
case 6:
case 7:
_arg1.reColour(50);
break;
case 13:
gameUI.addChild(gameUI.snowA);
_arg1.reColour();
break;
case 11:
break;
default:
_arg1.reColour();
break;
};
}
public function slideDone1(_arg1:TimerEvent){
slideDone(gameM.playerV1);
}
public function slideDone2(_arg1:TimerEvent){
slideDone(gameM.playerV2);
}
}
}//package
Section 104
//Multi (Multi)
package {
import flash.media.*;
public dynamic class Multi extends Sound {
}
}//package
Section 105
//Music0 (Music0)
package {
import flash.media.*;
public dynamic class Music0 extends Sound {
}
}//package
Section 106
//Music1 (Music1)
package {
import flash.media.*;
public dynamic class Music1 extends Sound {
}
}//package
Section 107
//Music2 (Music2)
package {
import flash.media.*;
public dynamic class Music2 extends Sound {
}
}//package
Section 108
//Music3 (Music3)
package {
import flash.media.*;
public dynamic class Music3 extends Sound {
}
}//package
Section 109
//NameSign (NameSign)
package {
import flash.display.*;
import flash.text.*;
public dynamic class NameSign extends MovieClip {
public var nameT:TextField;
public var nameOK:MovieClip;
}
}//package
Section 110
//PauseMenu (PauseMenu)
package {
import flash.display.*;
public dynamic class PauseMenu extends MovieClip {
public var retry:SimpleButton;
public var unpause:SimpleButton;
public var menu:SimpleButton;
}
}//package
Section 111
//ReadyGo (ReadyGo)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class ReadyGo extends MovieClip {
public function ReadyGo(){
addFrameScript(0, frame1, 143, frame144);
}
function frame144(){
stop();
parent.removeChild(this);
}
function frame1(){
stop();
}
}
}//package
Section 112
//Respawner (Respawner)
package {
import flash.display.*;
public dynamic class Respawner extends MovieClip {
public var bar:MovieClip;
public var text:MovieClip;
}
}//package
Section 113
//ScoreSign (ScoreSign)
package {
import flash.display.*;
import flash.text.*;
public dynamic class ScoreSign extends MovieClip {
public var label:TextField;
}
}//package
Section 114
//Single (Single)
package {
import flash.media.*;
public dynamic class Single extends Sound {
}
}//package
Section 115
//SingleEnd (SingleEnd)
package {
import flash.display.*;
import flash.text.*;
public dynamic class SingleEnd extends MovieClip {
public var text1:TextField;
public var text2:TextField;
public var menu:SimpleButton;
public var submit:SimpleButton;
public var retry:SimpleButton;
}
}//package
Section 116
//SlideS (SlideS)
package {
import flash.media.*;
public dynamic class SlideS extends Sound {
}
}//package
Section 117
//SnowAnimated (SnowAnimated)
package {
import flash.display.*;
public dynamic class SnowAnimated extends MovieClip {
}
}//package
Section 118
//SoundControl (SoundControl)
package {
import flash.media.*;
public class SoundControl {
var fadeIn:int;
var music:Array;
var fadeC:int;// = 0
public var soundLimit:int;// = 100
var playing:int;
public var mute:Boolean;// = false
var musicC:Array;
public function SoundControl(){
music = [new Music0(), new Music1(), new Music2(), new Music3()];
musicC = new Array(4);
super();
}
public function menuMusic(){
if (mute == false){
soundClear();
musicC[3] = music[3].play(0, 99, new SoundTransform(0));
playing = (fadeIn = 3);
fadeC = 1;
};
}
public function update(){
if (fadeC < 0){
if (fadeC > -100){
fadeC = (fadeC - 2);
try {
musicC[playing].soundTransform = new SoundTransform(((100 + fadeC) / 100));
} catch(e:Error) {
};
if (fadeC < -100){
fadeC = 0;
soundClear();
};
};
} else {
if (fadeC > 0){
if (mute == false){
if (fadeC < 100){
if (fadeC < soundLimit){
fadeC = (fadeC + 1);
if (playing != fadeIn){
if (playing == 3){
musicC[playing].soundTransform = new SoundTransform(((fadeC > 30)) ? 0 : ((30 - fadeC) / 33));
} else {
musicC[playing].soundTransform = new SoundTransform(((100 - fadeC) / 100));
};
};
musicC[fadeIn].soundTransform = new SoundTransform((fadeC / 100));
};
} else {
if ((((playing == 3)) && (!((fadeIn == 3))))){
musicC[3].stop();
musicC[3] = null;
musicC[fadeIn].soundTransform = new SoundTransform(0.9);
} else {
musicC[playing].soundTransform = new SoundTransform(0);
musicC[fadeIn].soundTransform = new SoundTransform(1);
};
playing = fadeIn;
fadeC = 0;
};
};
};
};
}
public function toggleMute(){
mute = !(mute);
if (mute){
fadeC = -1;
} else {
if (Facade.stage.contains(Facade.menuUI)){
menuMusic();
} else {
startMusic(fadeIn);
};
};
}
public function stopMusic(){
fadeC = -1;
}
public function swapMusic(_arg1:int){
fadeIn = _arg1;
if (mute == false){
fadeC = 1;
};
}
public function soundClear(){
var i:int;
while (i < 4) {
if (musicC[i] != null){
try {
musicC[i].stop();
musicC[i] = null;
} catch(e:Error) {
};
};
i = (i + 1);
};
if (fadeIn == 3){
fadeIn = 0;
};
}
public function startMusic(_arg1=0){
if (mute == false){
if (musicC[3] == null){
soundClear();
playing = _arg1;
};
musicC[0] = music[0].play(0, 99, new SoundTransform(0));
musicC[1] = music[1].play(0, 99, new SoundTransform(0));
musicC[2] = music[2].play(0, 99, new SoundTransform(0));
fadeIn = _arg1;
fadeC = 1;
};
}
}
}//package
Section 119
//SplashList (SplashList)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class SplashList extends MovieClip {
public var thepeasantb:MovieClip;
public var xelub:MovieClip;
public var boltzb:MovieClip;
public function SplashList(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame1(){
boltzb.buttonMode = true;
stop();
}
function frame2(){
xelub.buttonMode = true;
stop();
}
function frame4(){
stop();
Facade.initialize2();
parent.removeChild(this);
}
function frame3(){
stop();
thepeasantb.buttonMode = true;
}
}
}//package
Section 120
//Tutorial (Tutorial)
package {
import flash.media.*;
public dynamic class Tutorial extends Sound {
}
}//package