Section 1
//AllMc_12 (BlackboardSquash_fla.AllMc_12)
package BlackboardSquash_fla {
import flash.display.*;
public dynamic class AllMc_12 extends MovieClip {
public function AllMc_12(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package BlackboardSquash_fla
Section 2
//loading_10 (BlackboardSquash_fla.loading_10)
package BlackboardSquash_fla {
import flash.display.*;
public dynamic class loading_10 extends MovieClip {
public function loading_10(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
(root as MovieClip).play();
}
}
}//package BlackboardSquash_fla
Section 3
//loading_3 (BlackboardSquash_fla.loading_3)
package BlackboardSquash_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.utils.*;
import loading.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class loading_3 extends MovieClip {
public var txt:LoadingTxt;
public var loading_text_mc:MovieClip;
public function loading_3(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 38, frame39);
}
function frame3(){
this.visible = true;
}
function frame1(){
}
function frame2(){
(parent as MovieClip).checkGoNext();
}
function frame39(){
stop();
txt.onLoadComplete = (parent as MovieClip).goNext;
loading_text_mc.txt.text = "Loading...";
}
}
}//package BlackboardSquash_fla
Section 4
//loading_8 (BlackboardSquash_fla.loading_8)
package BlackboardSquash_fla {
import flash.display.*;
import ui.*;
public dynamic class loading_8 extends MovieClip {
public var txt:Txt;
}
}//package BlackboardSquash_fla
Section 5
//MainTimeline (BlackboardSquash_fla.MainTimeline)
package BlackboardSquash_fla {
import flash.display.*;
import main.*;
import flash.utils.*;
import loading.*;
public dynamic class MainTimeline extends MovieClip {
public var prevLoader:PrevLoader;
public var __setPropDict:Dictionary;
public var m:Main;
public function MainTimeline(){
__setPropDict = new Dictionary(true);
super();
addFrameScript(0, frame1, 2, frame3);
}
function frame3(){
m = Main.getInstance();
addChild(m);
stop();
}
function frame1(){
if ((((__setPropDict[prevLoader] == undefined)) || (!((int(__setPropDict[prevLoader]) == 1))))){
__setPropDict[prevLoader] = currentFrame;
__setProp_prevLoader__1();
};
MochiAd.showPreGameAd({clip:this, ad_finished:PrevLoader.goNext2, id:"4e1763d843d54e18", res:"480x515", background:6845841, color:788068, outline:12695210, no_bg:false});
}
function __setProp_prevLoader__1(){
try {
prevLoader["componentInspectorSetting"] = true;
} catch(e:Error) {
};
prevLoader.protection = false;
prevLoader.skip = false;
try {
prevLoader["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package BlackboardSquash_fla
Section 6
//Ok_55 (BlackboardSquash_fla.Ok_55)
package BlackboardSquash_fla {
import flash.display.*;
public dynamic class Ok_55 extends MovieClip {
public var view:SimpleButton;
}
}//package BlackboardSquash_fla
Section 7
//submitMc_57 (BlackboardSquash_fla.submitMc_57)
package BlackboardSquash_fla {
import flash.display.*;
public dynamic class submitMc_57 extends MovieClip {
public var submit:SimpleButton;
}
}//package BlackboardSquash_fla
Section 8
//submitscore_49 (BlackboardSquash_fla.submitscore_49)
package BlackboardSquash_fla {
import flash.display.*;
public dynamic class submitscore_49 extends MovieClip {
public var submit:SimpleButton;
}
}//package BlackboardSquash_fla
Section 9
//Timeline_100 (BlackboardSquash_fla.Timeline_100)
package BlackboardSquash_fla {
import flash.display.*;
public dynamic class Timeline_100 extends MovieClip {
public function Timeline_100(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package BlackboardSquash_fla
Section 10
//Timeline_77 (BlackboardSquash_fla.Timeline_77)
package BlackboardSquash_fla {
import flash.display.*;
public dynamic class Timeline_77 extends MovieClip {
public function Timeline_77(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package BlackboardSquash_fla
Section 11
//Timeline_79 (BlackboardSquash_fla.Timeline_79)
package BlackboardSquash_fla {
import flash.display.*;
public dynamic class Timeline_79 extends MovieClip {
public function Timeline_79(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package BlackboardSquash_fla
Section 12
//Timeline_97 (BlackboardSquash_fla.Timeline_97)
package BlackboardSquash_fla {
import flash.display.*;
public dynamic class Timeline_97 extends MovieClip {
public function Timeline_97(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package BlackboardSquash_fla
Section 13
//Timeline_98 (BlackboardSquash_fla.Timeline_98)
package BlackboardSquash_fla {
import flash.display.*;
public dynamic class Timeline_98 extends MovieClip {
public function Timeline_98(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package BlackboardSquash_fla
Section 14
//Timeline_99 (BlackboardSquash_fla.Timeline_99)
package BlackboardSquash_fla {
import flash.display.*;
public dynamic class Timeline_99 extends MovieClip {
public function Timeline_99(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package BlackboardSquash_fla
Section 15
//Version_29 (BlackboardSquash_fla.Version_29)
package BlackboardSquash_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Version_29 extends MovieClip {
public var version:TextField;
}
}//package BlackboardSquash_fla
Section 16
//CreditFrame (btn.CreditFrame)
package btn {
import flash.display.*;
import flash.events.*;
import main.*;
public class CreditFrame extends MovieClip {
public var menu:SimpleButton;
private var imS:SimpleButton;
public function CreditFrame(){
this.addEventListener(Event.ADDED, added);
}
private function added(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.menu.addEventListener(MouseEvent.CLICK, menuEvent);
};
}
private function menuEvent(_arg1:MouseEvent):void{
Main.getInstance().hideCredit();
Main.getInstance().showFirstPage();
}
}
}//package btn
Section 17
//End (btn.End)
package btn {
import flash.display.*;
import flash.events.*;
import main.*;
import flash.text.*;
import flash.net.*;
public class End extends MovieClip {
public var submit:MovieClip;
public var downloadGames:SimpleButton;
public var submitFrame:SubmitFrame;
public var menu:SimpleButton;
public var moreGames:SimpleButton;
public var score:TextField;
public var retry:SimpleButton;
public var view:SimpleButton;
private var imS:SimpleButton;
public function End(){
this.submitFrame.visible = false;
this.addEventListener(Event.ADDED, added);
}
private function added(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.score.text = ("SCORE: " + Main.getInstance().getGameWorld().getScore().toString());
this.retry.addEventListener(MouseEvent.CLICK, retryEvent);
this.menu.addEventListener(MouseEvent.CLICK, menuEvent);
this.submit.addEventListener(MouseEvent.CLICK, submitEvent);
this.view.addEventListener(MouseEvent.CLICK, viewEvent);
this.downloadGames.addEventListener(MouseEvent.CLICK, downloadEvent);
this.moreGames.addEventListener(MouseEvent.CLICK, moreOnlineEvent);
this.submitFrame.addEventListener(SubmitFrame.SENDFINISH, hideSubmit);
};
}
public function hideSubmit(_arg1:Event):void{
this.submit.visible = false;
}
private function viewEvent(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.freeworldgroup.com/score/index.asp");
_local2.data = ("game=" + Main.GAMENAME);
navigateToURL(_local2, "_blank");
}
private function submitEvent(_arg1:MouseEvent):void{
this.submitFrame.visible = true;
}
private function menuEvent(_arg1:MouseEvent):void{
Main.getInstance().getGameWorld().hideEndFrame();
Main.getInstance().delGame();
Main.getInstance().showFirstPage();
}
private function moreOnlineEvent(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.freeworldgroup.com");
navigateToURL(_local2, "_blank");
}
private function retryEvent(_arg1:MouseEvent):void{
Main.getInstance().getGameWorld().hideEndFrame();
Main.getInstance().delGame();
Main.getInstance().playGame();
}
private function downloadEvent(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.ifungames.com");
navigateToURL(_local2, "_blank");
}
}
}//package btn
Section 18
//FirstPage (btn.FirstPage)
package btn {
import flash.display.*;
import flash.events.*;
import main.*;
import flash.net.*;
public class FirstPage extends MovieClip {
public var version:MovieClip;
public var downloadGames:SimpleButton;
public var addGame:SimpleButton;
public var playGame:SimpleButton;
public var moreOnlineGames:SimpleButton;
public var credits:SimpleButton;
public var instruction:SimpleButton;
private var imS:SimpleButton;
public var copyright:SimpleButton;
public var viewHighScores:SimpleButton;
public function FirstPage(){
this.version.version.selectable = false;
this.version.version.text = Main.VERSION;
this.addEventListener(Event.ADDED, added);
}
private function added(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.playGame.addEventListener(MouseEvent.CLICK, playGameEvent);
this.instruction.addEventListener(MouseEvent.CLICK, instructionEvent);
this.downloadGames.addEventListener(MouseEvent.CLICK, downloadEvent);
this.moreOnlineGames.addEventListener(MouseEvent.CLICK, moreOnlineEvent);
this.addGame.addEventListener(MouseEvent.CLICK, addGameEvent);
this.viewHighScores.addEventListener(MouseEvent.CLICK, viewEvent);
this.copyright.addEventListener(MouseEvent.CLICK, copyrightEvent);
this.credits.addEventListener(MouseEvent.CLICK, creditsEvent);
this.addEventListener(Event.REMOVED, removed);
};
}
private function viewEvent(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.freeworldgroup.com/score/index.asp");
_local2.data = ("game=" + Main.GAMENAME);
navigateToURL(_local2, "_blank");
}
private function copyrightEvent(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.freeworldgroup.com/");
navigateToURL(_local2, "_blank");
}
private function playGameEvent(_arg1:MouseEvent):void{
Main.getInstance().hideFirstPage();
if (Main.getInstance().getFirstPlay() == false){
Main.getInstance().playGame();
} else {
Main.getInstance().showInstruction();
};
}
private function addGameEvent(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.freeworldgroup.com/koalafiles.htm");
navigateToURL(_local2, "_blank");
}
private function creditsEvent(_arg1:MouseEvent):void{
Main.getInstance().hideFirstPage();
Main.getInstance().showCredit();
}
private function moreOnlineEvent(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.freeworldgroup.com/games8/gameindex/popboard.htm");
navigateToURL(_local2, "_blank");
}
private function removed(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.removeEventListener(Event.REMOVED, removed);
trace("FirstPage实例被删除.");
};
}
private function instructionEvent(_arg1:MouseEvent):void{
Main.getInstance().hideFirstPage();
Main.getInstance().showInstruction();
}
private function downloadEvent(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.ifungames.com");
navigateToURL(_local2, "_blank");
}
}
}//package btn
Section 19
//InstructionFrame (btn.InstructionFrame)
package btn {
import flash.display.*;
import flash.events.*;
import main.*;
import flash.text.*;
public class InstructionFrame extends MovieClip {
public var next:SimpleButton;
public var menu:SimpleButton;
public var skip:SimpleButton;
public var playText:TextField;
private var imS:SimpleButton;
public var backText:MovieClip;
public var nextText:MovieClip;
public var back:SimpleButton;
public function InstructionFrame(){
addFrameScript(0, frame1, 1, frame2);
super();
this.addEventListener(Event.ADDED, added);
this.hideBack();
this.playText.text = "SKIP";
this.playText.selectable = false;
}
private function added(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.menu.addEventListener(MouseEvent.CLICK, menuEvent);
this.back.addEventListener(MouseEvent.CLICK, backEvent);
this.next.addEventListener(MouseEvent.CLICK, nextEvent);
this.skip.addEventListener(MouseEvent.CLICK, skipEvent);
};
}
private function backEvent(_arg1:MouseEvent):void{
if (this.currentFrame > 1){
this.prevFrame();
this.showNext();
this.playText.text = "SKIP";
if (this.currentFrame == 1){
this.hideBack();
};
};
}
private function hideBack():void{
this.back.visible = false;
this.backText.visible = false;
}
private function skipEvent(_arg1:MouseEvent):void{
Main.getInstance().hideInstruction();
Main.getInstance().playGame();
}
function frame1(){
stop();
}
private function nextEvent(_arg1:MouseEvent):void{
if (this.currentFrame < this.totalFrames){
this.nextFrame();
this.showBack();
if (this.currentFrame == this.totalFrames){
this.playText.text = "PLAY";
this.hideNext();
};
};
}
private function menuEvent(_arg1:MouseEvent):void{
Main.getInstance().hideInstruction();
Main.getInstance().showFirstPage();
}
private function showBack():void{
this.back.visible = true;
this.backText.visible = true;
}
private function showNext():void{
this.next.visible = true;
this.nextText.visible = true;
}
private function hideNext():void{
this.next.visible = false;
this.nextText.visible = false;
}
function frame2(){
stop();
}
}
}//package btn
Section 20
//Logo (btn.Logo)
package btn {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class Logo extends SimpleButton {
public function Logo(_arg1:DisplayObject=null, _arg2:DisplayObject=null, _arg3:DisplayObject=null, _arg4:DisplayObject=null){
super(_arg1, _arg2, _arg3, _arg4);
this.addEventListener(Event.ADDED, added);
}
private function added(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.addEventListener(MouseEvent.CLICK, logoEvent);
};
}
private function logoEvent(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.freeworldgroup.com/");
navigateToURL(_local2, "_blank");
}
}
}//package btn
Section 21
//PQSMM (btn.PQSMM)
package btn {
import flash.display.*;
import flash.events.*;
import sound.*;
import main.*;
public class PQSMM extends MovieClip {
public var menuBox:ReturnFirstPageBox;
public var sound:SimpleButton;
public var soundX:XMc;
public var music:SimpleButton;
public var qualityBox:QualityBox;
public var menu:SimpleButton;
private var imS:SimpleButton;
public var musicX:XMc;
public var pause:SimpleButton;
public var quality:SimpleButton;
public function PQSMM(){
this.menuBox.visible = false;
this.qualityBox.visible = false;
this.soundX.visible = false;
this.musicX.visible = false;
this.addEventListener(Event.ADDED, added);
}
private function added(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.setMusic();
this.setSound();
this.setPause();
this.pause.addEventListener(MouseEvent.CLICK, pauseEvent);
this.quality.addEventListener(MouseEvent.CLICK, qualityEvent);
this.sound.addEventListener(MouseEvent.CLICK, soundEvent);
this.music.addEventListener(MouseEvent.CLICK, musicEvent);
this.menu.addEventListener(MouseEvent.CLICK, menuEvent);
this.addEventListener(Event.REMOVED, removed);
};
}
private function setMusic():void{
if (MusicManager.getInstance().getState() == MusicManager.MUTE){
this.musicX.visible = true;
} else {
this.musicX.visible = false;
};
}
private function pauseEvent(_arg1:MouseEvent):void{
Pause.getInstance().pauseControl();
this.setPause();
}
private function musicEvent(_arg1:MouseEvent):void{
MusicManager.getInstance().muteControl();
this.setMusic();
}
private function menuEvent(_arg1:MouseEvent):void{
if (Pause.getInstance().getState() == Pause.RUN){
Pause.getInstance().pauseControl();
};
if (this.menuBox.visible == false){
this.menuBox.visible = true;
} else {
if (this.menuBox.visible == true){
this.menuBox.visible = false;
};
};
}
private function removed(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.removeEventListener(Event.REMOVED, removed);
trace("PQSMM实例被删除.");
};
}
private function setPause():void{
}
private function setSound():void{
if (SoundManager.getInstance().getMute() == true){
this.soundX.visible = true;
} else {
this.soundX.visible = false;
};
}
private function soundEvent(_arg1:MouseEvent):void{
SoundManager.getInstance().muteControl();
this.setSound();
}
public function hidePause():void{
this.pause.visible = false;
}
private function qualityEvent(_arg1:MouseEvent):void{
if (Pause.getInstance().getState() == Pause.RUN){
Pause.getInstance().pauseControl();
};
if (this.qualityBox.visible == true){
this.qualityBox.visible = false;
} else {
if (this.qualityBox.visible == false){
this.qualityBox.visible = true;
};
};
}
public function showPause():void{
this.pause.visible = true;
}
}
}//package btn
Section 22
//QualityBox (btn.QualityBox)
package btn {
import flash.display.*;
import flash.events.*;
import main.*;
public class QualityBox extends MovieClip {
public var best:SimpleButton;
public var low:SimpleButton;
public var medium:SimpleButton;
public var flag:MovieClip;
public var high:SimpleButton;
private var imS:SimpleButton;
public function QualityBox(){
this.visible = false;
this.addEventListener(Event.ADDED, added);
this.addEventListener(Event.ADDED_TO_STAGE, addedToStage);
}
private function added(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.low.addEventListener(MouseEvent.CLICK, qualityEvent);
this.medium.addEventListener(MouseEvent.CLICK, qualityEvent);
this.high.addEventListener(MouseEvent.CLICK, qualityEvent);
this.best.addEventListener(MouseEvent.CLICK, qualityEvent);
};
}
private function choose():void{
var _local1:String;
_local1 = this.stage.quality.toLowerCase();
this.flag.x = this[_local1].x;
this.flag.y = this[_local1].y;
}
private function addedToStage(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.choose();
};
}
private function qualityEvent(_arg1:MouseEvent):void{
if (Pause.getInstance().getState() == Pause.PAUSE){
Pause.getInstance().pauseControl();
};
if (_arg1.target == this.low){
this.stage.quality = "LOW";
} else {
if (_arg1.target == this.medium){
this.stage.quality = "MEDIUM";
} else {
if (_arg1.target == this.high){
this.stage.quality = "HIGH";
} else {
if (_arg1.target == this.best){
this.stage.quality = "BEST";
};
};
};
};
this.visible = false;
this.choose();
}
}
}//package btn
Section 23
//ReturnFirstPageBox (btn.ReturnFirstPageBox)
package btn {
import flash.display.*;
import flash.events.*;
import main.*;
public class ReturnFirstPageBox extends MovieClip {
public var no:SimpleButton;
public var yes:SimpleButton;
public function ReturnFirstPageBox(){
this.addEventListener(Event.ADDED, added);
}
private function added(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.yes.addEventListener(MouseEvent.CLICK, chooseEvent);
this.no.addEventListener(MouseEvent.CLICK, chooseEvent);
};
}
public function hide():void{
this.visible = false;
}
private function chooseEvent(_arg1:MouseEvent):void{
if (_arg1.target == yes){
this.visible = false;
Main.getInstance().delGame();
Main.getInstance().showFirstPage();
} else {
if (_arg1.target == no){
this.visible = false;
if (Pause.getInstance().getState() == Pause.PAUSE){
Pause.getInstance().pauseControl();
};
};
};
}
public function show():void{
this.visible = true;
}
}
}//package btn
Section 24
//SubmitFrame (btn.SubmitFrame)
package btn {
import flash.display.*;
import flash.events.*;
import main.*;
import flash.text.*;
import flash.net.*;
public class SubmitFrame extends MovieClip {
public var submit:MovieClip;
public var enterName:MovieClip;
private var send:URLLoader;
public var score:TextField;
public var view:MovieClip;
private var imS:SimpleButton;
private var imT:TextField;
public var userName:TextField;
public var close:SimpleButton;
public static const SENDFINISH:String = "sendFinish";
public function SubmitFrame(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
super();
this.view.visible = false;
this.enterName.visible = false;
this.addEventListener(Event.ADDED, added);
}
private function added(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.score.text = Main.getInstance().getGameWorld().getScore().toString();
this.submit.addEventListener(MouseEvent.CLICK, submitEvent);
this.close.addEventListener(MouseEvent.CLICK, closeEvent);
this.view.addEventListener(MouseEvent.CLICK, viewEvent);
};
}
private function viewEvent(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.freeworldgroup.com/score/index.asp");
_local2.data = ("game=" + Main.GAMENAME);
navigateToURL(_local2, "_blank");
this.visible = false;
}
function frame3(){
stop();
}
private function submitEvent(_arg1:MouseEvent):void{
var _local2:URLRequest;
var _local3:URLVariables;
if (this.userName.text != ""){
_local2 = new URLRequest("http://www.freeworldgroup.com/score/score.asp");
_local3 = new URLVariables();
_local2.method = URLRequestMethod.POST;
_local3.game = Main.GAMENAME;
_local3.score = this.score.text;
_local3.name = this.userName.text;
_local2.data = _local3;
this.send = new URLLoader();
this.send.load(_local2);
this.send.addEventListener(Event.COMPLETE, sendEvent);
this.gotoAndStop(2);
this.score.visible = false;
this.userName.visible = false;
} else {
this.enterName.visible = true;
};
}
function frame1(){
stop();
}
function frame2(){
stop();
}
private function closeEvent(_arg1:MouseEvent):void{
this.visible = false;
}
private function sendEvent(_arg1:Event):void{
this.gotoAndStop(3);
this.view.visible = true;
this.submit.visible = false;
this.dispatchEvent(new Event(SENDFINISH));
}
}
}//package btn
Section 25
//Logo (framework.Logo)
package framework {
import flash.display.*;
public dynamic class Logo extends MovieClip {
}
}//package framework
Section 26
//ColorFrame (game.role.ColorFrame)
package game.role {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class ColorFrame extends Sprite {
private var colorNum:int;
private var currentColor:ColorTransform;
private var colors:Array;
public var person:MovieClip;
public var playGame:SimpleButton;
private var boxes:Array;
public static const COLORCHANAGE:String = "colorchange";
public function ColorFrame(){
this.init();
}
private function init():void{
this.boxes = new Array();
this.colors = new Array();
this.colors[0] = 0xFF0000;
this.colors[1] = 0xFF00;
this.colors[2] = 6711039;
this.colors[3] = 0xFFFF00;
this.colors[4] = 0xFF00FF;
this.colors[5] = 0xFFFF;
this.colors[6] = 0xFFFFFF;
this.colorNum = this.colors.length;
this.currentColor = new ColorTransform();
this.currentColor.color = this.colors[6];
this.playGame.addEventListener(MouseEvent.CLICK, playEvent);
this.createFrame();
}
public function setX(_arg1:Number):void{
this.x = _arg1;
}
private function changeBig(_arg1:MouseEvent):void{
_arg1.target.scaleX = (_arg1.target.scaleX * 2);
_arg1.target.scaleY = (_arg1.target.scaleY * 2);
}
private function changeSmall(_arg1:MouseEvent):void{
_arg1.target.scaleX = (_arg1.target.scaleX / 2);
_arg1.target.scaleY = (_arg1.target.scaleY / 2);
}
public function getColor():ColorTransform{
return (this.currentColor);
}
public function setY(_arg1:Number):void{
this.y = _arg1;
}
public function getX():Number{
return (this.x);
}
public function getY():Number{
return (this.y);
}
private function chooseColor(_arg1:MouseEvent):void{
this.currentColor = _arg1.target.transform.colorTransform;
this.person.transform.colorTransform = this.currentColor;
}
private function playEvent(_arg1:MouseEvent):void{
this.visible = false;
this.dispatchEvent(new Event(ColorFrame.COLORCHANAGE));
}
private function createFrame():void{
var _local1:int;
var _local2:ColorBoxMc;
var _local3:ColorTransform;
_local1 = 0;
while (_local1 < this.colorNum) {
_local2 = new ColorBoxMc();
_local3 = new ColorTransform();
_local3.color = this.colors[_local1];
_local2.color.transform.colorTransform = _local3;
_local2.buttonMode = true;
_local2.addEventListener(MouseEvent.CLICK, chooseColor);
_local2.x = ((45 * _local1) + 97);
_local2.y = 270;
_local2.name = ("color" + _local1);
this.addChild(_local2);
this.boxes[_local1] = _local2;
_local1++;
};
}
}
}//package game.role
Section 27
//Person (game.role.Person)
package game.role {
import flash.display.*;
import flash.events.*;
import game.*;
import main.*;
import flash.geom.*;
import flash.utils.*;
import flash.ui.*;
public class Person {
private var posX:Number;
private var posY:Number;
private var dir:int;
private var state:String;
private var mc:Sprite;
private var hideTimer:Timer;
private var scale:Number;
private var a:Number;
private var lifeNum:int;
private var hideDir:int;
private var keyChange:Boolean;
private var speedX:Number;
private var showMc:PersonMc;
private var baseDir:int;
private var stage:Stage;
public static const USUAL:String = "usual";
public static const HIDE:String = "hide";
public static const X:Number = 40;
public static const STRIKE:String = "strike";
public static const DEATH:String = "death";
public function Person(){
this.init();
}
private function added(_arg1:Event):void{
var _local2:int;
var _local3:int;
if (_arg1.target == _arg1.currentTarget){
_local2 = this.showMc.numChildren;
_local3 = (_local2 - 1);
while (_local3 >= 0) {
this.showMc.removeChildAt(_local3);
_local3--;
};
this.setState(Person.USUAL);
this.stage = Main.getInstance().getStage();
this.stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownEvent);
this.stage.addEventListener(KeyboardEvent.KEY_UP, keyUpEvent);
this.mc.addEventListener(Event.ENTER_FRAME, move);
this.mc.addEventListener(Event.REMOVED_FROM_STAGE, removed);
};
}
public function playMc(_arg1:String):void{
if (this.showMc.numChildren > 0){
this.showMc.removeChildAt(0);
};
this.showMc.addChild(this.showMc[(_arg1 + "Mc")]);
}
public function getChildIndex():int{
return (this.mc.parent.getChildIndex(this.mc));
}
private function init():void{
this.mc = new Sprite();
this.showMc = new PersonMc();
this.addChild(this.showMc);
this.speedX = 15;
this.a = 1;
this.dir = 0;
this.scale = 1;
this.baseDir = 1;
this.keyChange = false;
this.lifeNum = 5;
this.hideTimer = new Timer(50, 60);
this.hideDir = -1;
this.mc.addEventListener(Event.ADDED, added);
this.hideTimer.addEventListener(TimerEvent.TIMER_COMPLETE, hideEvent);
this.hideTimer.addEventListener(TimerEvent.TIMER, hidePerson);
}
public function setKeyChanage(_arg1:Boolean):void{
this.keyChange = _arg1;
}
public function clearDir():void{
this.dir = 0;
}
public function getScale():Number{
return (this.scale);
}
public function getHeight():Number{
return (this.showMc.height);
}
public function getWidth():Number{
return (this.showMc.width);
}
public function setScale(_arg1:Number):void{
this.scale = _arg1;
this.mc.scaleX = this.scale;
this.mc.scaleY = this.scale;
}
public function setColor(_arg1:ColorTransform):void{
this.mc.transform.colorTransform = _arg1;
}
public function lifeSub():void{
this.lifeNum--;
this.setState(Person.STRIKE);
this.playMc("sit");
this.showMc.sitMc.gotoAndPlay(1);
}
public function addToMc(_arg1:DisplayObjectContainer):void{
_arg1.addChild(this.mc);
}
public function getHitPoint():Point{
var _local1:Point;
_local1 = this.mc.localToGlobal(new Point(this.showMc.area.x, this.showMc.area.y));
return (_local1);
}
public function getLifeNum():int{
return (this.lifeNum);
}
public function setX(_arg1:Number):void{
if (_arg1 > ((Map.X - Person.X) - (this.getWidth() / 2))){
_arg1 = ((Map.X - Person.X) - (this.getWidth() / 2));
} else {
if (_arg1 < ((-(Map.X) + (this.getWidth() / 2)) + Person.X)){
_arg1 = ((-(Map.X) + (this.getWidth() / 2)) + Person.X);
};
};
this.posX = _arg1;
this.mc.x = this.posX;
}
public function setY(_arg1:Number):void{
this.posY = _arg1;
this.mc.y = this.posY;
}
public function setBaseDir(_arg1:int):void{
this.baseDir = _arg1;
}
private function hidePerson(_arg1:TimerEvent):void{
if ((((Pause.getInstance().getState() == Pause.RUN)) && ((Main.getInstance().getGameWorld().getState() == GameWorld.PLAYING)))){
if (Main.getInstance().getGameWorld().getTimeCount().getState() == TimeCount.RUN){
if (this.getState() == Person.STRIKE){
if (this.showMc.sitMc.currentFrame == this.showMc.sitMc.totalFrames){
this.state = Person.HIDE;
};
};
if (this.mc.alpha <= 0.3){
this.hideDir = 1;
} else {
if (this.mc.alpha >= 1){
this.hideDir = -1;
};
};
this.mc.alpha = (this.mc.alpha + (0.1 * this.hideDir));
};
};
}
public function getY():Number{
return (this.posY);
}
public function getX():Number{
return (this.posX);
}
public function setState(_arg1:String):void{
this.state = _arg1;
if (this.state == Person.HIDE){
this.hideTimer.reset();
this.hideTimer.start();
} else {
if (this.state == Person.USUAL){
this.playMc("stand");
};
};
}
private function move(_arg1:Event):void{
if ((((Pause.getInstance().getState() == Pause.RUN)) && ((Main.getInstance().getGameWorld().getState() == GameWorld.PLAYING)))){
if (Main.getInstance().getGameWorld().getTimeCount().getState() == TimeCount.RUN){
if (this.getState() != Person.STRIKE){
this.setX((this.getX() + (this.speedX * this.dir)));
};
};
};
}
public function hide():void{
this.setState("hide");
}
public function getState():String{
return (this.state);
}
private function removed(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownEvent);
this.stage.removeEventListener(KeyboardEvent.KEY_UP, keyUpEvent);
this.mc.removeEventListener(Event.ENTER_FRAME, move);
this.mc.removeEventListener(Event.REMOVED_FROM_STAGE, removed);
this.hideTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, hideEvent);
};
}
private function keyUpEvent(_arg1:KeyboardEvent):void{
if ((((Pause.getInstance().getState() == Pause.RUN)) && ((Main.getInstance().getGameWorld().getState() == GameWorld.PLAYING)))){
if (Main.getInstance().getGameWorld().getTimeCount().getState() == TimeCount.RUN){
if (this.getState() != Person.STRIKE){
this.dir = 0;
this.playMc("stand");
};
};
};
}
public function getRight():Number{
return (((Map.X - Person.X) - (this.getWidth() / 2)));
}
public function death():void{
trace("person death");
this.setState(Person.DEATH);
Main.getInstance().getGameWorld().endGame();
this.playMc("death");
this.showMc.deathMc.gotoAndPlay(1);
}
private function keyDownEvent(_arg1:KeyboardEvent):void{
if ((((Pause.getInstance().getState() == Pause.RUN)) && ((Main.getInstance().getGameWorld().getState() == GameWorld.PLAYING)))){
if (Main.getInstance().getGameWorld().getTimeCount().getState() == TimeCount.RUN){
if (this.getState() != Person.STRIKE){
if (this.keyChange == false){
if (_arg1.keyCode == Keyboard.LEFT){
this.dir = -(this.baseDir);
if (Main.getInstance().getGameWorld().getMap().getRotation() == 0){
this.playMc("runLeft");
} else {
if ((((Main.getInstance().getGameWorld().getMap().getRotation() == 180)) || ((Main.getInstance().getGameWorld().getMap().getRotation() == -180)))){
this.playMc("runRight");
};
};
} else {
if (_arg1.keyCode == Keyboard.RIGHT){
this.dir = this.baseDir;
if (Main.getInstance().getGameWorld().getMap().getRotation() == 0){
this.playMc("runRight");
} else {
if ((((Main.getInstance().getGameWorld().getMap().getRotation() == 180)) || ((Main.getInstance().getGameWorld().getMap().getRotation() == -180)))){
this.playMc("runLeft");
};
};
};
};
} else {
if (this.keyChange == true){
if (_arg1.keyCode == Keyboard.UP){
this.dir = -(this.baseDir);
if (Main.getInstance().getGameWorld().getMap().getRotation() == 90){
this.playMc("runLeft");
} else {
if (Main.getInstance().getGameWorld().getMap().getRotation() == -90){
this.playMc("runRight");
};
};
} else {
if (_arg1.keyCode == Keyboard.DOWN){
this.dir = this.baseDir;
if (Main.getInstance().getGameWorld().getMap().getRotation() == 90){
this.playMc("runRight");
} else {
if (Main.getInstance().getGameWorld().getMap().getRotation() == -90){
this.playMc("runLeft");
};
};
};
};
};
};
} else {
if (this.getState() == Person.STRIKE){
this.dir = 0;
};
};
return;
};
};
}
public function addChild(_arg1:DisplayObject):void{
this.mc.addChild(_arg1);
}
public function getLeft():Number{
return (((-(Map.X) + (this.getWidth() / 2)) + Person.X));
}
private function hideEvent(_arg1:TimerEvent):void{
this.setState(Person.USUAL);
this.mc.alpha = 1;
}
}
}//package game.role
Section 28
//Block (game.Block)
package game {
import flash.display.*;
import flash.events.*;
import main.*;
import flash.geom.*;
public class Block {
private var posX:Number;
private var posY:Number;
private var num:int;
private var showMc:Sprite;
private var dir:int;
private var brushDispatcher:EventDispatcher;
private var maskMcs:Array;
private var mc:Sprite;
private var chalkMc:ChalkMc;
private var maskMc:Sprite;
private var baseW:Number;
private var countRotation:Number;
private var holes:Array;
private var aw:Number;
private var speed:Number;
private var blacks:Array;
private var hitPersonFlag:Boolean;
private var baseSpeed:Number;
private var w:Number;
private var maxW:Number;
private var rotation:Number;
public static const X:Number = 30;
public static const BRUSH:String = "brush";
private static var scale:Number = 1;
public function Block(){
this.init();
}
private function added(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.chalkMc.y = this.maskMc.y;
this.addChild(this.chalkMc);
this.mc.addEventListener(Event.ENTER_FRAME, brushWall);
this.mc.addEventListener(Event.REMOVED_FROM_STAGE, removed);
};
}
public function hitMc(_arg1:Point):Boolean{
var _local2:Point;
var _local3:int;
_local2 = _arg1;
if (this.showMc.hitTestPoint(_local2.x, _local2.y, true)){
_local3 = 0;
while (_local3 < this.holes.length) {
if (this.holes[_local3].getMc().hitTestPoint(_local2.x, _local2.y, true)){
return (false);
};
_local3++;
};
return (true);
};
return (false);
}
public function getPosX():Number{
return (this.posX);
}
public function getPosY():Number{
return (this.posY);
}
public function addToMcAt(_arg1:DisplayObjectContainer, _arg2:int):void{
_arg1.addChildAt(this.mc, _arg2);
}
public function setPosX(_arg1:Number):void{
this.posX = _arg1;
this.mc.x = this.posX;
}
private function init():void{
this.mc = new Sprite();
this.blacks = new Array();
this.showMc = new Sprite();
this.maskMc = new MaskMc();
this.maskMcs = new Array();
this.maskMc.height = 0;
this.maskMc.y = -400;
this.addChild(this.showMc);
this.addChild(this.maskMc);
this.showMc.mask = this.maskMc;
this.holes = new Array();
this.setRotation(0);
this.countRotation = 0;
this.w = 3;
this.baseW = 3;
this.hitPersonFlag = false;
this.speed = 20;
this.baseSpeed = 20;
this.brushDispatcher = new EventDispatcher();
this.chalkMc = new ChalkMc();
this.mc.addEventListener(Event.ADDED, added);
}
public function addHole(_arg1:Hole):void{
this.holes.push(_arg1);
this.showMc.addChild(_arg1.getMc());
_arg1.getMc().alpha = 0;
}
public function getMc():Sprite{
return (this.mc);
}
public function addChild(_arg1:DisplayObject):void{
this.mc.addChild(_arg1);
}
public function setPosY(_arg1:Number):void{
this.posY = _arg1;
this.mc.y = this.posY;
}
public function setScale(_arg1:Number):void{
this.showMc.scaleX = _arg1;
this.showMc.scaleY = _arg1;
}
public function setColor(_arg1:ColorTransform):void{
this.chalkMc.chalk.transform.colorTransform = _arg1;
}
public function getCountRotation():Number{
return (this.countRotation);
}
public function brushWall(_arg1:Event):void{
if ((((Pause.getInstance().getState() == Pause.RUN)) && ((Main.getInstance().getGameWorld().getState() == GameWorld.PLAYING)))){
if (Main.getInstance().getGameWorld().getTimeCount().getState() == TimeCount.RUN){
this.maskMc.height = (this.maskMc.height + this.speed);
this.chalkMc.y = (this.maskMc.y + this.maskMc.height);
if (this.maskMc.height > 400){
this.removeChild(this.chalkMc);
this.brushDispatcher.dispatchEvent(new Event(Block.BRUSH));
};
};
};
}
public function addToMc(_arg1:DisplayObjectContainer):void{
_arg1.addChild(this.mc);
}
public function setW(_arg1:Number):void{
if (_arg1 > 30){
_arg1 = 30;
};
this.maxW = _arg1;
this.speed = ((this.maxW * this.baseSpeed) / this.baseW);
}
public function setAw(_arg1:Number):void{
this.aw = _arg1;
}
public function setRotation(_arg1:Number):void{
this.rotation = _arg1;
this.mc.rotation = this.rotation;
}
public function getSpeed():Number{
return (this.speed);
}
public function removeEventListener(_arg1:String, _arg2){
this.brushDispatcher.removeEventListener(_arg1, _arg2);
}
public function setDir(_arg1:Number):void{
this.dir = _arg1;
}
public function addEventListener(_arg1:String, _arg2){
this.brushDispatcher.addEventListener(_arg1, _arg2);
}
public function move():void{
this.w = (this.w + this.aw);
if (this.w > this.maxW){
this.w = this.maxW;
};
this.setRotation((this.rotation + (this.w * this.dir)));
this.countRotation = (this.countRotation + this.w);
}
public function setNum(_arg1:int):void{
if (_arg1 > 4){
_arg1 = 4;
};
this.num = _arg1;
}
public function gc():void{
this.mc.removeEventListener(Event.ENTER_FRAME, brushWall);
this.mc.parent.removeChild(this.mc);
}
private function removed(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.mc.removeEventListener(Event.ENTER_FRAME, brushWall);
};
}
public function addBlock(_arg1:Sprite):void{
this.blacks.push(_arg1);
this.showMc.addChild(_arg1);
}
public function getRotation():Number{
return (this.rotation);
}
public function removeChild(_arg1:DisplayObject):void{
if (this.mc.contains(_arg1)){
this.mc.removeChild(_arg1);
};
}
public function getHoles():Array{
return (this.holes);
}
public static function getScale():Number{
return (Block.scale);
}
public static function setScale(_arg1:Number):void{
Block.scale = _arg1;
}
}
}//package game
Section 29
//BlockManager (game.BlockManager)
package game {
import flash.display.*;
import game.role.*;
import main.*;
import flash.geom.*;
import mypkg.*;
public class BlockManager {
private var level:int;
private var upD:Number;
private var baseD:Number;
private var upW:Number;
private var posAr:Array;
private var baseW:Number;
private var baseAw:Number;
private var upNum:int;
private var upScale:Number;
private var upAw:Number;
private var upSpeed:Number;
private var baseNum:int;
private var baseSpeed:Number;
private var baseScale:Number;
private var count:int;
public function BlockManager(){
this.init();
}
public function scaleUp():void{
this.baseNum = (this.baseNum + this.upNum);
}
public function levelUp():void{
this.baseW = (this.baseW + this.upW);
this.baseAw = (this.baseAw + this.upAw);
this.baseD = (this.baseD - this.upD);
if (this.baseD < 40){
this.baseD = 40;
};
}
private function init():void{
this.level = 1;
this.baseScale = 1;
Block.setScale(1);
this.baseW = 2;
this.baseAw = 0.2;
this.baseD = 150;
this.baseNum = 1;
this.upScale = 0.5;
this.upW = 0.5;
this.upAw = 0.1;
this.upD = 10;
this.upNum = 1;
this.upSpeed = 10;
this.baseSpeed = this.baseD;
this.posAr = [[(Block.X - Map.X), (Map.Y + 10), 1], [(Map.X - Block.X), (Map.Y + 10), -1]];
this.count = 0;
}
public function getCount():int{
return (this.count);
}
public function scaleDown():void{
if ((this.baseNum - this.upNum) >= 1){
this.baseNum = (this.baseNum - this.upNum);
};
}
public function makeBlock():Block{
var _local1:Block;
var _local2:int;
var _local3:Number;
var _local4:Number;
var _local5:int;
var _local6:Sprite;
var _local7:ColorTransform;
var _local8:int;
var _local9:Hole;
_local1 = new Block();
_local1.setNum(this.baseNum);
_local1.setScale(this.baseScale);
_local1.setW(this.baseW);
_local1.setAw(this.baseAw);
_local2 = Math.floor((Math.random() * this.posAr.length));
_local1.setPosX(this.posAr[_local2][0]);
_local1.setPosY(this.posAr[_local2][1]);
_local1.setDir(this.posAr[_local2][2]);
_local1.setScale(Block.getScale());
this.count = (this.count + 1);
_local3 = 200;
_local4 = (-(Person.X) - (Math.random() * ((GameWorld.GAMEHEIGHT - (Person.X * 2)) - this.baseD)));
_local5 = 0;
while (_local5 < this.baseNum) {
_local9 = new Hole();
_local9.setHeight(this.baseD);
_local9.setY((_local4 - ((this.baseD + _local3) * _local5)));
_local1.addHole(_local9);
_local5++;
};
_local6 = new BlockMc();
_local7 = new ColorRandom().makeColor();
_local6.transform.colorTransform = _local7;
_local6.height = Math.abs(_local4);
_local1.setColor(_local7);
_local1.addBlock(_local6);
_local8 = 0;
while (_local8 < (this.baseNum - 1)) {
_local6 = new BlockMc();
_local6.height = Person.X;
_local6.y = ((_local4 - (this.baseD * (_local8 + 1))) - (_local3 * _local8));
_local6.transform.colorTransform = _local7;
_local6.height = Math.abs(_local3);
_local1.addBlock(_local6);
_local8++;
};
_local6 = new BlockMc();
_local6.y = ((_local4 - (this.baseD * this.baseNum)) - (_local3 * (this.baseNum - 1)));
_local6.transform.colorTransform = _local7;
_local1.addBlock(_local6);
return (_local1);
}
}
}//package game
Section 30
//Box (game.Box)
package game {
import flash.display.*;
import flash.events.*;
import game.role.*;
import main.*;
import flash.geom.*;
public class Box {
private var posX:Number;
private var posY:Number;
private var dispatcherFlag:Boolean;
private var speed:Number;
private var mc:Sprite;
private var dispatcher:EventDispatcher;
private var showMc:Sprite;
public static const FINISH:String = "finish";
public static const WIDTH:Number = 60;
public function Box(){
this.init();
}
private function added(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.mc.addEventListener(Event.ENTER_FRAME, move);
this.mc.addEventListener(Event.REMOVED_FROM_STAGE, removed);
};
}
public function getX():Number{
return (this.posX);
}
public function getY():Number{
return (this.posY);
}
public function setSpeed(_arg1:Number):void{
this.speed = _arg1;
}
public function addEventListener(_arg1:String, _arg2:Function):void{
this.dispatcher.addEventListener(_arg1, _arg2);
}
private function init():void{
this.mc = new Sprite();
this.showMc = new BoxMc();
this.speed = 15;
this.dispatcherFlag = false;
this.dispatcher = new EventDispatcher();
this.mc.addEventListener(Event.ADDED, added);
}
public function move(_arg1:Event):void{
if ((((Pause.getInstance().getState() == Pause.RUN)) && ((Main.getInstance().getGameWorld().getState() == GameWorld.PLAYING)))){
if (Main.getInstance().getGameWorld().getTimeCount().getState() == TimeCount.RUN){
this.setY((this.getY() + this.speed));
this.hitPerson();
if (this.getY() > ((GameWorld.GAMEHEIGHT + GameWorld.GAMEY) - Map.Y)){
this.mc.removeEventListener(Event.ENTER_FRAME, move);
this.mc.parent.removeChild(this.mc);
if (this.dispatcherFlag == true){
this.dispatcher.dispatchEvent(new Event(Box.FINISH));
this.dispatcherFlag = false;
};
};
};
};
}
public function getMc():DisplayObject{
return (this.mc);
}
public function hitPerson():void{
var _local1:Person;
var _local2:Point;
_local1 = Main.getInstance().getGameWorld().getMap().getPerson();
_local2 = _local1.getHitPoint();
if (_local1.getState() == Person.USUAL){
if (this.mc.hitTestPoint(_local2.x, _local2.y, true)){
Main.getInstance().getGameWorld().getMap().personLife();
};
};
}
public function removeEventListener(_arg1:String, _arg2:Function):void{
this.dispatcher.removeEventListener(_arg1, _arg2);
}
public function removed(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.mc.removeEventListener(Event.ENTER_FRAME, move);
};
}
public function addToMc(_arg1:DisplayObjectContainer):void{
_arg1.addChild(this.mc);
}
public function setShowMc(_arg1:Sprite):void{
this.showMc = _arg1;
this.mc.addChild(this.showMc);
}
public function setX(_arg1:Number):void{
this.posX = _arg1;
this.mc.x = this.posX;
}
public function setY(_arg1:Number):void{
this.posY = _arg1;
this.mc.y = this.posY;
}
public function setDispatcherFlag(_arg1:Boolean):void{
this.dispatcherFlag = _arg1;
}
}
}//package game
Section 31
//BoxManager (game.BoxManager)
package game {
import flash.events.*;
import game.role.*;
import main.*;
import flash.utils.*;
import mypkg.*;
public class BoxManager {
private var num:int;
private var count:int;
private var makeTimer:Timer;
private var boxes:Array;
private var map:Map;
public function BoxManager(){
this.init();
}
public function getCount():int{
return (this.count);
}
public function gc():void{
this.makeTimer.removeEventListener(TimerEvent.TIMER, makeBox);
}
private function init():void{
this.count = 0;
this.num = 40;
this.boxes = new Array();
this.makeTimer = new Timer(300);
this.makeTimer.addEventListener(TimerEvent.TIMER, makeBox);
}
public function finish(_arg1:Event):void{
this.map.makeBlock();
_arg1.target.removeEventListener(Box.FINISH, finish);
}
public function startMakeBox():void{
this.map = Main.getInstance().getGameWorld().getMap();
this.count = 0;
this.makeTimer.reset();
this.makeTimer.start();
}
public function makeBox(_arg1:TimerEvent):void{
var _local2:Number;
var _local3:Box;
var _local4:ColorRandom;
var _local5:BoxMc;
var _local6:KnifeMc;
var _local7:RocketMc;
if ((((Pause.getInstance().getState() == Pause.RUN)) && ((Main.getInstance().getGameWorld().getState() == GameWorld.PLAYING)))){
if (Main.getInstance().getGameWorld().getTimeCount().getState() == TimeCount.RUN){
_local2 = (((GameWorld.GAMEX + Person.X) + (Math.random() * (GameWorld.GAMEWIDTH - (2 * Person.X)))) - Map.X);
_local3 = new Box();
_local3.setX(_local2);
_local3.setY(-(Map.Y));
_local4 = new ColorRandom();
if (this.map.getRotation() == 0){
_local5 = new BoxMc();
_local5.transform.colorTransform = _local4.makeColor();
_local5.gotoAndStop(Math.round((Math.random() + 1)));
_local3.setShowMc(_local5);
} else {
if ((((this.map.getRotation() == 90)) || ((this.map.getRotation() == -90)))){
_local6 = new KnifeMc();
_local6.transform.colorTransform = _local4.makeColor();
_local6.gotoAndStop(Math.round((Math.random() + 1)));
_local3.setShowMc(_local6);
} else {
if ((((this.map.getRotation() == 180)) || ((this.map.getRotation() == -180)))){
_local7 = new RocketMc();
_local7.transform.colorTransform = _local4.makeColor();
_local7.gotoAndStop(Math.round((Math.random() + 1)));
_local3.setShowMc(_local7);
};
};
};
this.map.addChild(_local3.getMc());
this.boxes[this.count] = _local3;
this.count++;
if (this.num == this.count){
this.boxes[(this.count - 1)].setDispatcherFlag(true);
this.boxes[(this.count - 1)].addEventListener(Box.FINISH, finish);
this.makeTimer.stop();
};
};
};
}
public function getNum():int{
return (this.num);
}
}
}//package game
Section 32
//Hole (game.Hole)
package game {
import flash.display.*;
public class Hole {
private var shadow:Sprite;
private var posX:Number;
private var posY:Number;
private var showMc:Sprite;
private var height:Number;
public function Hole(){
this.init();
}
public function getX():Number{
return (this.posX);
}
public function getY():Number{
return (this.posY);
}
public function setHeight(_arg1:Number):void{
this.height = _arg1;
this.showMc.height = this.height;
}
public function getHeight():Number{
this.height = this.showMc.height;
return (this.height);
}
private function init():void{
this.showMc = new HoleMc();
this.shadow = new ShadowMc();
this.setX(0);
this.setY(0);
this.setHeight(this.showMc.height);
}
public function getRotation():Number{
return (((this.getMc().rotation * Math.PI) / 180));
}
public function setY(_arg1:Number):void{
this.posY = _arg1;
this.showMc.y = this.posY;
}
public function getMc():Sprite{
return (this.showMc);
}
public function getShadow():Sprite{
return (this.shadow);
}
public function setX(_arg1:Number):void{
this.posX = _arg1;
this.showMc.x = this.posX;
}
public function getWidth():Number{
return (this.showMc.width);
}
}
}//package game
Section 33
//LevelManager (game.LevelManager)
package game {
public class LevelManager {
private var levelNum:int;
private var rotationNum:int;
private var rotationNum2:int;
private var boxNum:int;
private var scaleNum:int;
public function LevelManager(){
this.init();
}
public function getRotationNum2():int{
return (this.rotationNum2);
}
public function getBoxNum():int{
return (this.boxNum);
}
public function getRotationNum():int{
return (this.rotationNum);
}
private function init():void{
this.levelNum = 18;
this.rotationNum2 = 15;
this.scaleNum = 12;
this.rotationNum = 8;
this.boxNum = 5;
}
public function getScaleNum():int{
return (this.scaleNum);
}
public function getLevelNum():int{
return (this.levelNum);
}
}
}//package game
Section 34
//LevelUpMc (game.LevelUpMc)
package game {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class LevelUpMc extends Sprite {
private var playCount:int;
private var gMc:MovieClip;
private var levelNum:int;
private var tenMc:MovieClip;
public function LevelUpMc(){
this.init();
}
private function getNumMc(_arg1:int):MovieClip{
if (_arg1 == 0){
return (new Num0());
};
if (_arg1 == 1){
return (new Num1());
};
if (_arg1 == 2){
return (new Num2());
};
if (_arg1 == 3){
return (new Num3());
};
if (_arg1 == 4){
return (new Num4());
};
if (_arg1 == 5){
return (new Num5());
};
if (_arg1 == 6){
return (new Num6());
};
if (_arg1 == 7){
return (new Num7());
};
if (_arg1 == 8){
return (new Num8());
};
if (_arg1 == 9){
return (new Num9());
};
return (new Num0());
}
private function init():void{
this.alpha = 0.1;
this.playCount = 0;
this.setLevelNum(1);
}
private function addNum(_arg1:int):void{
var _local2:int;
var _local3:int;
if (this.tenMc != null){
this.removeChild(this.tenMc);
this.tenMc = null;
};
if (this.gMc != null){
this.removeChild(this.gMc);
this.gMc = null;
};
_local2 = int((_arg1 / 10));
_local3 = (_arg1 - (_local2 * 10));
if (_local2 > 0){
this.tenMc = this.getNumMc(_local2);
this.tenMc.x = this.width;
this.addChild(this.tenMc);
};
this.gMc = this.getNumMc(_local3);
this.gMc.x = this.width;
this.addChild(this.gMc);
}
public function setColor(_arg1:ColorTransform):void{
this.transform.colorTransform = _arg1;
}
private function playEvent(_arg1:Event):void{
this.playCount++;
if ((this.playCount % 2) == 0){
this.alpha = 0.5;
} else {
this.alpha = 0.1;
};
if (this.playCount == 24){
this.alpha = 0.1;
this.removeEventListener(Event.ENTER_FRAME, playEvent);
};
}
public function setLevelNum(_arg1:int):void{
this.levelNum = _arg1;
this.addNum(this.levelNum);
}
public function playMc():void{
this.playCount = 0;
this.addEventListener(Event.ENTER_FRAME, playEvent);
}
}
}//package game
Section 35
//Map (game.Map)
package game {
import flash.display.*;
import flash.events.*;
import sound.*;
import game.role.*;
import main.*;
import flash.utils.*;
public class Map {
private var posX:Number;
private var posY:Number;
private var levelManager:LevelManager;
private var dir:int;
private var showBlock:Block;
private var mc:Sprite;
private var lifeMcs:Array;
private var scaleTimer:Timer;
private var lNum:int;
private var addRotation:Number;
private var turnTimer:Timer;
private var scale:Number;
private var person:Person;
private var nowBlock:Block;
private var blockManager:BlockManager;
private var boxManager:BoxManager;
private var levelNum:int;
private var pauseTimer:Timer;
private var finishNum:int;
private var w:Number;
private var makeFlag:Boolean;
private var rotation:Number;
public static const X:Number = 225;
public static const Y:Number = 225;
public static const CHANGESCALE:Number = 0.9;
public function Map(){
this.init();
}
private function added(_arg1:Event):void{
var _local2:int;
var _local3:Sprite;
if (_arg1.target == _arg1.currentTarget){
this.mc.addChild(Main.getInstance().getLogo());
Main.getInstance().getLogo().x = (Map.X - Main.getInstance().getLogo().width);
Main.getInstance().getLogo().y = -(Map.Y);
this.person = Main.getInstance().getGameWorld().getPerson();
_local2 = 0;
while (_local2 < this.person.getLifeNum()) {
_local3 = new LifeMc();
_local3.x = (-(Map.X) + (35 * _local2));
_local3.y = -(Map.Y);
this.addChild(_local3);
this.lifeMcs[_local2] = _local3;
_local2++;
};
this.levelNum = ((Main.getInstance().getGameWorld().getLevelNum() - 1) * this.levelManager.getLevelNum());
this.person.addToMc(this.mc);
this.person.setX(0);
this.person.setY(Map.Y);
this.makeBlock();
this.turnTimer = new Timer(30);
this.turnTimer.addEventListener(TimerEvent.TIMER, turnRotation);
this.mc.addEventListener(Event.REMOVED_FROM_STAGE, removed);
};
}
public function getRotation():Number{
return (this.mc.rotation);
}
private function finishScaleChange(_arg1:TimerEvent):void{
Main.getInstance().getGameWorld().getTimeCount().setState(TimeCount.RUN);
}
private function moveStart(_arg1:Event):void{
if ((((this.nowBlock == this.showBlock)) && ((this.makeFlag == true)))){
this.showBlock.removeEventListener(Block.BRUSH, moveStart);
this.showBlock = this.blockManager.makeBlock();
if (this.mc.hasEventListener(Event.ENTER_FRAME) == false){
this.mc.addEventListener(Event.ENTER_FRAME, moveEvent);
};
if (this.blockManager.getCount() == (this.levelManager.getBoxNum() + this.levelNum)){
this.makeFlag = false;
};
this.showBlock.addToMcAt(this.mc, this.person.getChildIndex());
this.showBlock.addEventListener(Block.BRUSH, moveStart);
};
}
public function addChild(_arg1:DisplayObject):void{
this.mc.addChild(_arg1);
}
private function init():void{
this.mc = new Sprite();
this.blockManager = new BlockManager();
this.boxManager = new BoxManager();
this.levelManager = new LevelManager();
this.posX = this.mc.x;
this.posY = this.mc.y;
this.lifeMcs = new Array();
this.rotation = this.mc.rotation;
this.w = 5;
this.dir = 1;
this.lNum = 5;
this.finishNum = 0;
this.makeFlag = true;
this.nowBlock = null;
this.pauseTimer = new Timer(2000, 1);
this.turnTimer = new Timer(30, 1);
this.addRotation = 0;
this.scaleTimer = new Timer(100, 6);
this.scale = Map.CHANGESCALE;
this.turnTimer.addEventListener(TimerEvent.TIMER, turnRotation);
this.turnTimer.addEventListener(TimerEvent.TIMER_COMPLETE, turnComplete);
this.mc.addEventListener(Event.ADDED, added);
this.pauseTimer.addEventListener(TimerEvent.TIMER, pauseEvent);
this.scaleTimer.addEventListener(TimerEvent.TIMER, changeScale);
this.scaleTimer.addEventListener(TimerEvent.TIMER_COMPLETE, finishScaleChange);
}
private function turnRotation(_arg1:TimerEvent):void{
if ((((Pause.getInstance().getState() == Pause.RUN)) && ((Main.getInstance().getGameWorld().getState() == GameWorld.PLAYING)))){
this.mc.rotation = (this.mc.rotation + (this.dir * this.w));
this.addRotation = (this.addRotation + this.w);
if (this.addRotation == this.rotation){
this.turnTimer.stop();
this.turnComplete(null);
};
};
}
private function changeScale(_arg1:TimerEvent):void{
Block.setScale((Block.getScale() * this.scale));
this.nowBlock.setScale(Block.getScale());
this.person.setScale((this.person.getScale() * this.scale));
}
public function addToMc(_arg1:DisplayObjectContainer):void{
_arg1.addChild(this.mc);
}
public function lifeMcSub():void{
var _local1:Sprite;
_local1 = this.lifeMcs.pop();
this.removeChild(_local1);
}
public function setY(_arg1:Number):void{
this.posY = _arg1;
this.mc.y = this.posY;
}
private function resetScale():void{
this.blockManager.scaleDown();
Main.getInstance().getGameWorld().getTimeCount().setState(TimeCount.PAUSE);
this.person.clearDir();
this.scaleTimer.reset();
this.scale = (1 / Map.CHANGESCALE);
this.scaleTimer.start();
}
public function setX(_arg1:Number):void{
this.posX = _arg1;
this.mc.x = this.posX;
}
public function getX():Number{
return (this.posX);
}
public function getY():Number{
return (this.posY);
}
public function makeBlock():void{
this.makeFlag = true;
this.showBlock = this.blockManager.makeBlock();
this.showBlock.addEventListener(Block.BRUSH, moveStart);
this.nowBlock = this.showBlock;
this.showBlock.addToMcAt(this.mc, this.person.getChildIndex());
}
private function moveEvent(_arg1:Event):void{
if ((((Pause.getInstance().getState() == Pause.RUN)) && ((Main.getInstance().getGameWorld().getState() == GameWorld.PLAYING)))){
if (Main.getInstance().getGameWorld().getTimeCount().getState() == TimeCount.RUN){
if (this.nowBlock != null){
if (this.nowBlock.getCountRotation() < 90){
this.nowBlock.move();
if (this.person.getState() == Person.USUAL){
if (this.nowBlock.hitMc(this.person.getHitPoint())){
this.personLife();
this.person.clearDir();
};
};
} else {
this.nowBlock.setRotation(90);
this.nowBlock.gc();
this.finishNum++;
this.nowBlock = this.showBlock;
if ((((this.makeFlag == false)) && ((this.finishNum == this.blockManager.getCount())))){
this.mc.removeEventListener(Event.ENTER_FRAME, moveEvent);
this.boxManager.startMakeBox();
this.showBlock.removeEventListener(Block.BRUSH, moveStart);
this.nowBlock = null;
this.showBlock = null;
};
if ((((this.blockManager.getCount() == (this.levelManager.getRotationNum() + this.levelNum))) || ((this.blockManager.getCount() == (this.levelManager.getRotationNum2() + this.levelNum))))){
this.turn();
} else {
if (this.blockManager.getCount() == (this.levelManager.getScaleNum() + this.levelNum)){
this.moveScale();
} else {
if (this.blockManager.getCount() == (this.levelManager.getLevelNum() + this.levelNum)){
this.resetScale();
this.levelUp();
};
};
};
};
};
};
};
}
private function levelUp():void{
this.blockManager.levelUp();
Main.getInstance().getGameWorld().leveUp();
this.levelNum = ((Main.getInstance().getGameWorld().getLevelNum() - 1) * this.levelManager.getLevelNum());
}
public function getPerson():Person{
return (this.person);
}
private function pauseEvent(_arg1:TimerEvent):void{
Main.getInstance().getGameWorld().getTimeCount().setState(TimeCount.RUN);
if (this.mc.rotation == 0){
Main.getInstance().getGameWorld().hideKey("leftAndRight");
} else {
if (this.mc.rotation == 90){
Main.getInstance().getGameWorld().hideKey("upAndDown");
} else {
if ((((this.mc.rotation == 180)) || ((this.mc.rotation == -180)))){
Main.getInstance().getGameWorld().hideKey("leftAndRight");
} else {
if (this.mc.rotation == -90){
Main.getInstance().getGameWorld().hideKey("upAndDown");
};
};
};
};
}
private function turnComplete(_arg1:TimerEvent):void{
if (this.mc.rotation == 0){
this.person.setBaseDir(1);
this.person.setKeyChanage(false);
Main.getInstance().getGameWorld().showKey("leftAndRight");
} else {
if (this.mc.rotation == 90){
this.person.setBaseDir(1);
this.person.setKeyChanage(true);
Main.getInstance().getGameWorld().showKey("upAndDown");
} else {
if ((((this.mc.rotation == 180)) || ((this.mc.rotation == -180)))){
this.person.setBaseDir(-1);
this.person.setKeyChanage(false);
Main.getInstance().getGameWorld().showKey("leftAndRight");
} else {
if (this.mc.rotation == -90){
this.person.setBaseDir(-1);
this.person.setKeyChanage(true);
Main.getInstance().getGameWorld().showKey("upAndDown");
};
};
};
};
this.pauseTimer.reset();
this.pauseTimer.start();
}
private function removed(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.boxManager.gc();
this.mc.removeEventListener(Event.ENTER_FRAME, moveEvent);
this.pauseTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, pauseEvent);
this.turnTimer.removeEventListener(TimerEvent.TIMER, turnRotation);
this.turnTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, turnComplete);
this.scaleTimer.removeEventListener(TimerEvent.TIMER, changeScale);
};
}
public function personLife():void{
SoundManager.getInstance().play(SoundManager.STRIKE);
SoundManager.getInstance().play(SoundManager.DEATH);
if (this.person.getLifeNum() > 0){
this.person.hide();
this.person.lifeSub();
this.lifeMcSub();
} else {
this.person.death();
};
}
public function removeChild(_arg1:DisplayObject):void{
this.mc.removeChild(_arg1);
}
private function moveScale():void{
this.blockManager.scaleUp();
Main.getInstance().getGameWorld().getTimeCount().setState(TimeCount.PAUSE);
this.person.clearDir();
this.scaleTimer.reset();
this.scale = Map.CHANGESCALE;
this.scaleTimer.start();
}
public function turn():void{
var _local1:int;
Main.getInstance().getGameWorld().getTimeCount().setState(TimeCount.PAUSE);
_local1 = int((Math.random() * 3));
if (_local1 == 0){
this.rotation = 90;
this.dir = 1;
} else {
if (_local1 == 1){
this.rotation = 180;
this.dir = 1;
} else {
if (_local1 == 2){
this.rotation = 90;
this.dir = -1;
};
};
};
this.addRotation = 0;
this.turnTimer.reset();
this.turnTimer.start();
this.person.playMc("stand");
this.person.clearDir();
}
}
}//package game
Section 36
//LoadingTxt (loading.LoadingTxt)
package loading {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class LoadingTxt extends Sprite {
private var txt;
public var onLoadComplete:Function;
public function LoadingTxt(){
onLoadComplete = function ():void{
};
super();
txt = this.getChildAt(0);
txt.autoSize = "center";
this.addEventListener(Event.ENTER_FRAME, run);
this.addEventListener(Event.ADDED_TO_STAGE, added);
}
private function added(_arg1:Event):void{
this.removeEventListener(Event.ADDED_TO_STAGE, added);
this.addEventListener(Event.REMOVED_FROM_STAGE, removed);
}
private function removed(_arg1:Event):void{
this.removeEventListener(Event.REMOVED_FROM_STAGE, removed);
onLoadComplete = null;
}
private function run(_arg1:Event):void{
var _local2:int;
_local2 = ((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 100);
txt.text = (_local2 + "%");
if (_local2 == 100){
this.removeEventListener(Event.ENTER_FRAME, run);
onLoadComplete();
};
}
}
}//package loading
Section 37
//PrevLoader (loading.PrevLoader)
package loading {
import flash.display.*;
import ui.*;
public class PrevLoader extends MovieClip {
public var protection:Boolean;// = true
public var maskRect:MaskRect;
public static var prevLoader:PrevLoader;
public function PrevLoader(){
protection = true;
super();
prevLoader = this;
stage.showDefaultContextMenu = false;
stop();
(root as MovieClip).stop();
MaskRect.setPos(maskRect, setPos);
__setProp_maskRect_loading_1();
}
public function set skip(_arg1:Boolean):void{
if (_arg1){
Common.stopAll(this);
(root as MovieClip).play();
trace("skip");
this.visible = false;
};
}
private function isInUrlFront(_arg1:String):Boolean{
var _local2:String;
_local2 = this.loaderInfo.url;
_local2.toLowerCase();
_arg1.toLowerCase();
return ((_local2.indexOf(_arg1) == 0));
}
public function checkGoNext():void{
if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal){
goNext();
};
}
public function goNext():void{
if (((root as MovieClip)._mochiad is MovieClip)){
} else {
goNext2();
};
}
public function goNext2():void{
if (protection){
if (((isIn("freeworldgroup.com")) || (isIn("ifungames.com")))){
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
};
} else {
this.gotoAndStop(3);
};
prevLoader = null;
}
private function setPos(_arg1:int, _arg2:int):void{
this.x = (_arg1 / 2);
this.y = (_arg2 / 2);
}
function __setProp_maskRect_loading_1(){
try {
maskRect["componentInspectorSetting"] = true;
} catch(e:Error) {
};
maskRect.align = "center-middle";
try {
maskRect["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
private function isIn(_arg1:String):Boolean{
return (((((((isInUrlFront(_arg1)) || (isInUrlFront(("http://" + _arg1))))) || (isInUrlFront(("http://www." + _arg1))))) || (isInUrlFront(("www." + _arg1)))));
}
public static function goNext():void{
if (prevLoader){
prevLoader.goNext();
};
}
public static function goNext2():void{
prevLoader.goNext2();
}
}
}//package loading
Section 38
//GameWorld (main.GameWorld)
package main {
import flash.display.*;
import flash.events.*;
import game.*;
import game.role.*;
import btn.*;
import flash.utils.*;
public class GameWorld {
private var level:int;
private var state:String;
private var score:Number;
private var mc:Sprite;
private var upAndDownMc:Sprite;
private var levelUpMc:LevelUpMc;
private var pqsmm:PQSMM;
private var timeCount:TimeCount;
private var scoreMc:ScoreMc;
private var colorFrame:ColorFrame;
private var endTimer:Timer;
private var person:Person;
private var backTimerMc:MovieClip;
private var map:Map;
private var leftAndRightMc:Sprite;
private var readyTimer:Timer;
private var end:End;
public static const READY:String = "ready";
public static const GAMEX:Number = 15;
public static const GAMEY:Number = 15;
public static const PLAYING:String = "playing";
public static const GAMEWIDTH:Number = 450;
public static const GAMEHEIGHT:Number = 450;
public static const OVER:String = "over";
public function GameWorld(){
this.init();
}
private function added(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
if (Pause.getInstance().getState() == Pause.RUN){
Pause.getInstance().pauseControl();
};
this.addChild(this.colorFrame);
this.colorFrame.setX(GameWorld.GAMEX);
this.colorFrame.setY(GameWorld.GAMEY);
this.colorFrame.addEventListener(ColorFrame.COLORCHANAGE, changePersonColor);
this.person.setColor(this.colorFrame.getColor());
this.readyTimer.addEventListener(TimerEvent.TIMER_COMPLETE, goPlay);
this.readyTimer.addEventListener(TimerEvent.TIMER, backTimerEvent);
};
}
public function getTimeCount():TimeCount{
return (this.timeCount);
}
public function removeFromMc():void{
this.mc.parent.removeChild(this.mc);
}
private function init():void{
this.score = 0;
this.scoreMc = new ScoreMc();
this.scoreMc.score.text = ("SCORE: " + this.score);
this.pqsmm = new PQSMM();
this.map = new Map();
this.person = new Person();
this.colorFrame = new ColorFrame();
this.mc = new Sprite();
this.level = 1;
this.levelUpMc = new LevelUpMc();
this.timeCount = new TimeCount();
this.endTimer = new Timer(3000, 1);
this.state = GameWorld.READY;
this.readyTimer = new Timer(1000, 4);
this.upAndDownMc = new UpAndDownMc();
this.upAndDownMc.x = (GameWorld.GAMEX + (GameWorld.GAMEWIDTH / 2));
this.upAndDownMc.y = (GameWorld.GAMEY + (GameWorld.GAMEHEIGHT / 2));
this.leftAndRightMc = new LeftAndRightMc();
this.leftAndRightMc.x = (GameWorld.GAMEX + (GameWorld.GAMEWIDTH / 2));
this.leftAndRightMc.y = (GameWorld.GAMEY + (GameWorld.GAMEHEIGHT / 2));
this.mc.addEventListener(Event.ADDED, added);
}
public function getMc():Sprite{
return (this.mc);
}
private function backTimerEvent(_arg1:TimerEvent):void{
this.backTimerMc.nextFrame();
}
public function hidePqsmm():void{
this.pqsmm.visible = false;
}
public function leveUp():void{
this.level++;
this.levelUpMc.setLevelNum(this.level);
this.levelUpMc.playMc();
}
public function getMap():Map{
return (this.map);
}
public function showKey(_arg1:String):void{
if (_arg1 == "upAndDown"){
this.addChild(this.upAndDownMc);
} else {
if (_arg1 == "leftAndRight"){
this.addChild(this.leftAndRightMc);
};
};
}
private function layout():void{
Main.getInstance().addChildToDepth(this.pqsmm, 3);
Main.getInstance().addChildToDepth(this.scoreMc, 3);
this.addChild(this.levelUpMc);
this.levelUpMc.x = (Map.X - (this.levelUpMc.width / 2));
this.levelUpMc.y = (Map.Y + GameWorld.GAMEY);
this.levelUpMc.setLevelNum(this.level);
this.map.addToMc(this.mc);
this.map.setX((GameWorld.GAMEX + Map.X));
this.map.setY((GameWorld.GAMEY + Map.Y));
this.timeCount.addToStage(this.mc);
this.timeCount.setTime(0, 0);
this.timeCount.startCountTime();
this.mc.addEventListener(Event.REMOVED_FROM_STAGE, removed);
this.endTimer.addEventListener(TimerEvent.TIMER_COMPLETE, toEnd);
this.backTimerMc = new BackTimer();
this.addChild(this.backTimerMc);
this.backTimerMc.x = Map.X;
this.backTimerMc.y = Map.Y;
}
public function addToMc(_arg1:DisplayObjectContainer):void{
_arg1.addChild(this.mc);
}
public function hideEndFrame():void{
this.end.parent.removeChild(this.end);
}
private function goPlay(_arg1:TimerEvent):void{
this.setState(GameWorld.PLAYING);
this.person.setState(Person.HIDE);
this.removeChild(this.backTimerMc);
}
public function hideKey(_arg1:String):void{
if (_arg1 == "upAndDown"){
this.removeChild(this.upAndDownMc);
} else {
if (_arg1 == "leftAndRight"){
this.removeChild(this.leftAndRightMc);
};
};
}
private function changePersonColor(_arg1:Event):void{
this.person.setColor(this.colorFrame.getColor());
if (Pause.getInstance().getState() == Pause.PAUSE){
Pause.getInstance().pauseControl();
};
this.layout();
this.readyTimer.start();
}
public function hide():void{
this.mc.visible = false;
}
public function getPerson():Person{
return (this.person);
}
public function setState(_arg1:String):void{
this.state = _arg1;
}
public function setScore(_arg1:Number):void{
this.score = (_arg1 * 10);
this.scoreMc.score.text = ("SCORE: " + this.score);
}
public function getLevelNum():int{
return (this.level);
}
private function removed(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.pqsmm.parent.removeChild(this.pqsmm);
this.scoreMc.parent.removeChild(this.scoreMc);
this.colorFrame.removeEventListener(ColorFrame.COLORCHANAGE, changePersonColor);
};
}
public function getScore():Number{
return (this.score);
}
public function toEnd(_arg1:TimerEvent):void{
this.end = new End();
Main.getInstance().addChildToDepth(this.end, 3);
this.end.x = GameWorld.GAMEX;
this.end.y = GameWorld.GAMEY;
}
public function endGame():void{
this.hidePqsmm();
this.setState(GameWorld.OVER);
this.endTimer.start();
}
public function getPersonLife():int{
return (this.person.getLifeNum());
}
public function removeChild(_arg1:DisplayObject):void{
this.mc.removeChild(_arg1);
}
public function addChild(_arg1:DisplayObject):void{
this.mc.addChild(_arg1);
}
public function getState():String{
return (this.state);
}
}
}//package main
Section 39
//Main (main.Main)
package main {
import flash.display.*;
import flash.events.*;
import sound.*;
import btn.*;
public class Main extends Sprite {
private var firstPlay:Boolean;
private var firstPage:FirstPage;
private var firstMc:MovieClip;
private var instruction:InstructionFrame;
private var mc:Sprite;
private var maskMc:Sprite;
private var soundManager:SoundManager;
private var logo:Logo;
private var bgMc:Sprite;
private var gameWorld:GameWorld;
private var musicManager:MusicManager;
private var credit:CreditFrame;
public static const STAGEHEIGHT:Number = 510;
public static const STAGEWIDTH:Number = 480;
public static const VERSION:String = "v 1.0";
public static const GAMENAME:String = "blackboard";
private static var single:Boolean = true;
private static var game:Main;
public function Main(){
if (Main.single == true){
throw (new Error("Main不能用构造函数实例化。"));
};
Main.single = true;
this.init();
this.addEventListener(Event.ADDED, added);
}
private function added(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.addChild(this.firstMc);
this.firstMc.x = (Main.STAGEWIDTH / 2);
this.firstMc.y = (Main.STAGEHEIGHT / 2);
trace(this.firstMc.x, this.firstMc.y);
this.firstMc.addEventListener(Event.ENTER_FRAME, playMc);
this.firstMc.gotoAndPlay(1);
};
}
public function hideInstruction():void{
this.mc.removeChild(this.instruction);
}
private function init():void{
this.firstMc = new FirstPageMc();
this.bgMc = new Sprite();
this.mc = new Sprite();
this.maskMc = new Sprite();
this.musicManager = MusicManager.getInstance();
this.soundManager = SoundManager.getInstance();
this.firstPage = new FirstPage();
this.firstPlay = true;
this.logo = new Logo();
this.credit = new CreditFrame();
this.instruction = new InstructionFrame();
}
public function getGameWorld():GameWorld{
return (this.gameWorld);
}
private function layout():void{
var _local1:Bg;
var _local2:GameMask;
this.musicManager.play();
this.addChild(this.bgMc);
this.addChild(this.mc);
this.addChild(this.maskMc);
_local1 = new Bg();
_local1.x = 240;
_local1.y = 245;
this.bgMc.addChild(_local1);
_local2 = new GameMask();
_local2.x = 15;
_local2.y = 14;
this.maskMc.addChild(_local2);
this.showFirstPage();
}
public function getLogo():Logo{
return (this.logo);
}
public function getStage():Stage{
return (this.stage);
}
public function hideFirstPage():void{
this.maskMc.removeChild(this.firstPage);
}
public function showInstruction():void{
this.instruction = new InstructionFrame();
this.instruction.x = GameWorld.GAMEX;
this.instruction.y = GameWorld.GAMEY;
this.mc.addChild(this.instruction);
}
public function showCredit():void{
this.mc.addChild(this.credit);
}
public function getFirstPlay():Boolean{
return (this.firstPlay);
}
public function playGame():void{
this.gameWorld = new GameWorld();
this.gameWorld.addToMc(this.mc);
this.firstPlay = false;
}
public function delGame():void{
this.gameWorld.removeFromMc();
this.gameWorld = null;
}
public function addChildToDepth(_arg1:DisplayObject, _arg2:int):void{
if (_arg2 == 1){
this.bgMc.addChild(_arg1);
} else {
if (_arg2 == 2){
this.mc.addChild(_arg1);
} else {
if (_arg2 == 3){
this.maskMc.addChild(_arg1);
};
};
};
}
public function setFirstPlay(_arg1:Boolean):void{
this.firstPlay = _arg1;
}
public function hideCredit():void{
this.mc.removeChild(this.credit);
}
public function showFirstPage():void{
this.maskMc.addChild(this.firstPage);
}
private function playMc(_arg1:Event):void{
if (this.firstMc.currentFrame == this.firstMc.totalFrames){
this.firstMc.removeEventListener(Event.ENTER_FRAME, playMc);
this.removeChild(this.firstMc);
this.layout();
};
}
public static function getInstance():Main{
if (Main.game == null){
Main.single = false;
Main.game = new (Main);
};
return (Main.game);
}
}
}//package main
Section 40
//Pause (main.Pause)
package main {
import flash.display.*;
public class Pause extends SimpleButton {
private var state:String;
public static const RUN:String = "RUN";
public static const PAUSE:String = "PAUSE";
private static var singleFlag:Boolean = true;
private static var pause:Pause;
public function Pause(){
if (Pause.singleFlag == true){
throw (new Error("Pause不能用构造函数实例化。"));
};
this.init();
Pause.singleFlag = true;
}
public function init():void{
this.state = Pause.RUN;
}
public function getState():String{
return (this.state);
}
public function pauseControl():void{
if (this.state == Pause.PAUSE){
this.state = Pause.RUN;
} else {
if (this.state == Pause.RUN){
this.state = Pause.PAUSE;
};
};
}
public static function getInstance():Pause{
if (Pause.pause == null){
Pause.singleFlag = false;
Pause.pause = new (Pause);
};
return (Pause.pause);
}
}
}//package main
Section 41
//TimeCount (main.TimeCount)
package main {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class TimeCount {
private var timer:Timer;
private var state:String;
private var minute:int;
private var up:int;
private var second:int;
private var timeCountMc:TimeCountMc;
public static const RUN:String = "run";
public static const PAUSE:String = "pause";
public function TimeCount(){
trace("TimerCount");
this.init();
}
public function getTime():int{
return (((this.minute * 60) + this.second));
}
public function init():void{
this.timer = new Timer(1000);
this.timeCountMc = new TimeCountMc();
this.minute = 0;
this.second = 0;
this.up = 1;
this.state = TimeCount.PAUSE;
this.timer.addEventListener(TimerEvent.TIMER, countTimeEvent);
}
public function setTime(_arg1:int=0, _arg2:int=0){
this.minute = _arg1;
this.second = _arg2;
if (this.minute < 10){
this.timeCountMc.minute.text = ("0" + this.minute);
} else {
this.timeCountMc.minute.text = ("" + this.minute);
};
if (this.second < 10){
this.timeCountMc.second.text = ("0" + this.second);
} else {
this.timeCountMc.second.text = ("" + this.second);
};
}
public function gc():void{
}
public function setUp(_arg1:int):void{
this.up = _arg1;
}
public function setState(_arg1:String):void{
this.state = _arg1;
}
private function removed(_arg1:Event):void{
if (_arg1.target == _arg1.currentTarget){
this.timer.stop();
this.timer.removeEventListener(TimerEvent.TIMER, this.countTimeEvent);
};
}
public function pauseCountTime():void{
this.setState(TimeCount.PAUSE);
}
public function addToStage(_arg1:Sprite):void{
_arg1.addChild(this.timeCountMc);
this.timeCountMc.x = 0;
this.timeCountMc.y = (Main.STAGEHEIGHT - this.timeCountMc.height);
this.timeCountMc.addEventListener(Event.REMOVED_FROM_STAGE, removed);
}
public function getState():String{
return (this.state);
}
public function startCountTime():void{
this.setState(TimeCount.RUN);
this.timer.start();
}
private function countTimeEvent(_arg1:TimerEvent):void{
var _local2:GameWorld;
_local2 = Main.getInstance().getGameWorld();
if ((((Pause.getInstance().getState() == Pause.RUN)) && ((_local2.getState() == GameWorld.PLAYING)))){
if (TimeCount.RUN == this.getState()){
this.second = (this.second + up);
if (this.second <= 0){
this.second = 0;
this.minute = (this.minute - 1);
if (this.minute < 0){
this.minute = 0;
} else {
this.second = 60;
};
} else {
if (this.second >= 60){
this.second = 0;
this.minute = (this.minute + 1);
};
};
this.setTime(this.minute, this.second);
Main.getInstance().getGameWorld().setScore(this.getTime());
};
};
}
}
}//package main
Section 42
//ColorRandom (mypkg.ColorRandom)
package mypkg {
import flash.geom.*;
public class ColorRandom {
private var colors:Array;
public function ColorRandom(){
this.init();
}
public function makeColor():ColorTransform{
var _local1:int;
var _local2:ColorTransform;
_local1 = Math.floor((Math.random() * this.colors.length));
_local2 = new ColorTransform();
_local2.color = this.colors[_local1];
return (_local2);
}
private function init():void{
this.colors = new Array();
this.colors[0] = 0xFF0000;
this.colors[1] = 0xFF00;
this.colors[2] = 6711039;
this.colors[3] = 0xFFFF00;
this.colors[4] = 0xFF00FF;
this.colors[5] = 0xFFFF;
this.colors[6] = 0xFFFFFF;
}
}
}//package mypkg
Section 43
//MusicManager (sound.MusicManager)
package sound {
import flash.events.*;
import flash.media.*;
public class MusicManager {
private var music:Sound;
private var state:int;
private var soundChannel:SoundChannel;
private var soundTransform:SoundTransform;
public static const PLAY:int = 0;
public static const MUTE:int = 1;
private static var singleFlag:Boolean = true;
private static var musicManager:MusicManager;
public function MusicManager(){
if (MusicManager.singleFlag == true){
throw (new Error("MusicManager不能用构造函数实例化。"));
};
this.music = new Music();
this.state = MusicManager.PLAY;
this.soundTransform = new SoundTransform(1);
MusicManager.singleFlag = true;
}
public function returnPlay(_arg1:Event):void{
this.play();
}
public function muteControl():void{
if (this.state == MusicManager.MUTE){
this.state = MusicManager.PLAY;
this.soundTransform = new SoundTransform(1);
} else {
if (this.state == MusicManager.PLAY){
this.state = MusicManager.MUTE;
this.soundTransform = new SoundTransform(0);
};
};
this.soundChannel.soundTransform = this.soundTransform;
}
public function play():void{
this.soundChannel = this.music.play();
this.soundChannel.soundTransform = this.soundTransform;
this.soundChannel.addEventListener(Event.SOUND_COMPLETE, returnPlay);
}
public function getState():int{
return (this.state);
}
public static function getInstance():MusicManager{
if (MusicManager.musicManager == null){
MusicManager.singleFlag = false;
MusicManager.musicManager = new (MusicManager);
};
return (MusicManager.musicManager);
}
}
}//package sound
Section 44
//SoundManager (sound.SoundManager)
package sound {
import flash.media.*;
public class SoundManager {
private var muteState:Boolean;
public static const STRIKE:String = "strike";
public static const DEATH:String = "death";
private static var singleFlag:Boolean = true;
private static var soundManager:SoundManager;
public function SoundManager(){
if (SoundManager.singleFlag == true){
throw (new Error("SoundManager不能用构造函数实例化。"));
};
init();
SoundManager.singleFlag = true;
}
private function init():void{
this.muteState = false;
}
public function play(_arg1:String):void{
var _local2:Sound;
var _local3:SoundTransform;
_local3 = new SoundTransform(0.5);
if (this.muteState == false){
if (_arg1 == STRIKE){
_local2 = new Strike();
_local2.play(0);
} else {
if (_arg1 == SoundManager.DEATH){
_local2 = new Death();
_local2.play(0);
};
};
};
}
public function getMute():Boolean{
return (this.muteState);
}
public function muteControl():void{
if (this.muteState == false){
this.muteState = true;
} else {
if (this.muteState == true){
this.muteState = false;
};
};
}
public static function getInstance():SoundManager{
if (soundManager == null){
SoundManager.singleFlag = false;
soundManager = new (SoundManager);
};
return (soundManager);
}
}
}//package sound
Section 45
//MaskRect (ui.MaskRect)
package ui {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.utils.*;
public class MaskRect extends Sprite {
public var onSetWH:Function;
private var __align:String;// = "left-top"
public static var wid:int = 0;
public static var hei0:int;
public static var hei:int = 0;
public static var wid0:int;
public function MaskRect(){
onSetWH = function ():void{
};
__align = "left-top";
super();
if ((((wid > 0)) && ((hei > 0)))){
setWH();
} else {
this.addEventListener(Event.ADDED_TO_STAGE, added);
};
}
private function added(_arg1:Event):void{
var event = _arg1;
this.removeEventListener(Event.ADDED_TO_STAGE, added);
this.addEventListener(Event.REMOVED_FROM_STAGE, removed);
try {
getStageWH();
} catch(e:Error) {
this.loaderInfo.addEventListener(Event.INIT, loadInit);
};
}
private function getStageWH():void{
var _local1:*;
_local1 = this.getChildAt(0);
wid0 = _local1.width;
hei0 = _local1.height;
wid = this.loaderInfo.width;
hei = this.loaderInfo.height;
setWH();
}
public function set align(_arg1:String):void{
var _local2:*;
var _local3:Rectangle;
__align = _arg1;
if ((((wid > 0)) && ((hei > 0)))){
_local2 = this.getChildAt(0);
_local3 = _local2.getBounds(this);
switch (__align.charAt(0).toLowerCase()){
case "c":
case "m":
_local2.x = (_local2.x + (((wid0 - wid) / 2) - _local3.x));
_local2.y = (_local2.y + (((hei0 - hei) / 2) - _local3.y));
break;
case "r":
case "b":
_local2.x = (_local2.x + ((wid0 - wid) - _local3.x));
_local2.y = (_local2.y + ((hei0 - hei) - _local3.y));
break;
default:
_local2.x = (_local2.x + -(_local3.x));
_local2.y = (_local2.y + -(_local3.y));
break;
};
};
}
private function loadInit(_arg1:Event):void{
this.loaderInfo.removeEventListener(Event.INIT, loadInit);
getStageWH();
}
private function removed(_arg1:Event):void{
this.removeEventListener(Event.REMOVED_FROM_STAGE, removed);
onSetWH = null;
}
private function setWH():void{
var _local1:*;
_local1 = this.getChildAt(0);
_local1.width = wid;
_local1.height = hei;
onSetWH(wid, hei);
if (__align){
align = __align;
};
}
public static function setPos(_arg1:MaskRect, _arg2:Function):void{
if ((((wid > 0)) && ((hei > 0)))){
_arg2(wid, hei);
} else {
_arg1.onSetWH = _arg2;
};
}
}
}//package ui
Section 46
//Txt (ui.Txt)
package ui {
import flash.display.*;
import flash.text.*;
public class Txt extends Sprite {
private var __text:String;
public var txt:TextField;
public function Txt(){
__text = "";
autoSize = "left";
}
public function get text(){
if (txt.selectable){
__text = txt.text;
};
return (__text);
}
public function get type():String{
return (txt.type);
}
public function get autoSize():String{
return (txt.autoSize);
}
public function get selectable():Boolean{
return (txt.selectable);
}
public function set text(_arg1):void{
txt.text = (__text = _arg1);
}
public function set type(_arg1:String):void{
txt.type = _arg1;
}
public function set autoSize(_arg1:String):void{
txt.autoSize = _arg1;
}
public function set selectable(_arg1:Boolean):void{
txt.selectable = _arg1;
}
public function set maxChars(_arg1:int):void{
txt.maxChars = _arg1;
}
public function get maxChars():int{
return (txt.maxChars);
}
}
}//package ui
Section 47
//BackTimer (BackTimer)
package {
import flash.display.*;
public dynamic class BackTimer extends MovieClip {
public function BackTimer(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 48
//Bg (Bg)
package {
import flash.display.*;
public dynamic class Bg extends MovieClip {
}
}//package
Section 49
//BlockMc (BlockMc)
package {
import flash.display.*;
public dynamic class BlockMc extends MovieClip {
}
}//package
Section 50
//BoxMc (BoxMc)
package {
import flash.display.*;
public dynamic class BoxMc extends MovieClip {
public function BoxMc(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 51
//ChalkMc (ChalkMc)
package {
import flash.display.*;
public dynamic class ChalkMc extends MovieClip {
public var chalk:MovieClip;
}
}//package
Section 52
//ColorBoxMc (ColorBoxMc)
package {
import flash.display.*;
public dynamic class ColorBoxMc extends MovieClip {
public var color:SimpleButton;
}
}//package
Section 53
//Common (Common)
package {
import flash.display.*;
import flash.utils.*;
public final class Common {
public static function deepCopy(_arg1:Object){
var _local2:ByteArray;
_local2 = new ByteArray();
_local2.writeObject(_arg1);
_local2.position = 0;
return (_local2.readObject());
}
public static function removeChildren(_arg1:DisplayObjectContainer):void{
while (_arg1.numChildren > 0) {
_arg1.removeChildAt(0);
};
}
public static function playAll(_arg1:DisplayObject, _arg2:Boolean=true){
var _local3:DisplayObjectContainer;
var _local4:int;
if ((_arg1 is DisplayObjectContainer)){
_local3 = (_arg1 as DisplayObjectContainer);
_local4 = _local3.numChildren;
while (--_local4 >= 0) {
playAll(_local3.getChildAt(_local4), true);
};
if (((_arg2) && ((_arg1 is MovieClip)))){
(_arg1 as MovieClip).play();
};
};
}
public static function stopAll(_arg1:DisplayObject, _arg2:Boolean=true){
var _local3:DisplayObjectContainer;
var _local4:int;
if ((_arg1 is DisplayObjectContainer)){
_local3 = (_arg1 as DisplayObjectContainer);
_local4 = _local3.numChildren;
while (--_local4 >= 0) {
stopAll(_local3.getChildAt(_local4), true);
};
if (((_arg2) && ((_arg1 is MovieClip)))){
(_arg1 as MovieClip).stop();
};
};
}
}
}//package
Section 54
//Death (Death)
package {
import flash.media.*;
public dynamic class Death extends Sound {
}
}//package
Section 55
//FirstPageMc (FirstPageMc)
package {
import flash.display.*;
public dynamic class FirstPageMc extends MovieClip {
public function FirstPageMc(){
addFrameScript(244, frame245);
}
function frame245(){
stop();
}
}
}//package
Section 56
//GameMask (GameMask)
package {
import flash.display.*;
public dynamic class GameMask extends MovieClip {
}
}//package
Section 57
//HoleMc (HoleMc)
package {
import flash.display.*;
public dynamic class HoleMc extends MovieClip {
}
}//package
Section 58
//KnifeMc (KnifeMc)
package {
import flash.display.*;
public dynamic class KnifeMc extends MovieClip {
public function KnifeMc(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 59
//LeftAndRightMc (LeftAndRightMc)
package {
import flash.display.*;
public dynamic class LeftAndRightMc extends MovieClip {
}
}//package
Section 60
//LifeMc (LifeMc)
package {
import flash.display.*;
public dynamic class LifeMc extends MovieClip {
}
}//package
Section 61
//MaskMc (MaskMc)
package {
import flash.display.*;
public dynamic class MaskMc extends MovieClip {
}
}//package
Section 62
//MochiAd (MochiAd)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class MochiAd {
public static function getVersion():String{
return ("2.7");
}
public static function showClickAwayAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_timeout:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var sendHostProgress:Boolean;
var options = _arg1;
DEFAULTS = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
}, ad_finished:function ():void{
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
sendHostProgress = false;
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
return;
};
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
_local3 = true;
chk.started = getTimer();
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (this.root == null){
_local3 = true;
};
if (_local3){
delete this.onEnterFrame;
};
};
doOnEnterFrame(chk);
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function _allowDomains(_arg1:String):String{
var _local2:String;
_local2 = _arg1.split("/")[2].split(":")[0];
Security.allowDomain("*");
Security.allowDomain(_local2);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(_local2);
return (_local2);
}
public static function unload(_arg1:Object):Boolean{
if (((_arg1.clip) && (_arg1.clip._mochiad))){
_arg1 = _arg1.clip;
};
if (_arg1.origFrameRate != undefined){
_arg1.stage.frameRate = _arg1.origFrameRate;
};
if (!_arg1._mochiad){
return (false);
};
if (_arg1._mochiad._containerLCName != undefined){
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"});
};
if (_arg1._mochiad.onUnload){
_arg1._mochiad.onUnload();
};
delete _arg1._mochiad_loaded;
delete _arg1._mochiad;
return (true);
}
public static function showInterLevelAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = (_arg1 - 250);
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (_local2 > chk.ad_msec){
_local3 = true;
};
if (_local3){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function _parseOptions(_arg1:Object, _arg2:Object):Object{
var _local3:Object;
var _local4:String;
var _local5:Array;
var _local6:Number;
var _local7:Array;
_local3 = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
if (_arg1){
for (_local4 in _arg1) {
_local3[_local4] = _arg1[_local4];
};
};
if (_local3.clip == undefined){
throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite."));
};
_arg1 = _local3.clip.loaderInfo.parameters.mochiad_options;
if (_arg1){
_local5 = _arg1.split("&");
_local6 = 0;
while (_local6 < _local5.length) {
_local7 = _local5[_local6].split("=");
_local3[unescape(_local7[0])] = unescape(_local7[1]);
_local6++;
};
};
if (_local3.id == "test"){
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
};
return (_local3);
}
public static function _cleanup(_arg1:Object):void{
var idx:Number;
var k:String;
var lc:LocalConnection;
var f:Function;
var mc = _arg1;
if (("lc" in mc)){
lc = mc.lc;
f = function ():void{
try {
lc.client = null;
lc.close();
} catch(e:Error) {
};
};
setTimeout(f, 0);
};
idx = DisplayObjectContainer(mc).numChildren;
while (idx > 0) {
idx = (idx - 1);
DisplayObjectContainer(mc).removeChildAt(idx);
};
for (k in mc) {
delete mc[k];
};
}
public static function load(_arg1:Object):MovieClip{
var DEFAULTS:Object;
var clip:Object;
var depth:Number;
var mc:MovieClip;
var wh:Array;
var lv:URLVariables;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var g:Function;
var req:URLRequest;
var v:Object;
var options = _arg1;
DEFAULTS = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = MochiAd.getVersion();
clip = options.clip;
if (!MochiAd._isNetworkAvailable()){
return (null);
};
try {
if (clip._mochiad_loaded){
return (null);
};
} catch(e:Error) {
throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
depth = options.depth;
delete options.depth;
mc = createEmptyMovieClip(clip, "_mochiad", depth);
wh = MochiAd._getRes(options, clip);
options.res = ((wh[0] + "x") + wh[1]);
options.server = (options.server + options.id);
delete options.id;
clip._mochiad_loaded = true;
if (clip.loaderInfo.loaderURL.indexOf("http") == 0){
options.as3_swf = clip.loaderInfo.loaderURL;
};
lv = new URLVariables();
for (k in options) {
v = options[k];
if (!(v is Function)){
lv[k] = v;
};
};
server = lv.server;
delete lv.server;
hostname = _allowDomains(server);
lc = new LocalConnection();
lc.client = mc;
name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
lc.allowDomain("*", "localhost");
lc.allowInsecureDomain("*", "localhost");
lc.connect(name);
mc.lc = lc;
mc.lcName = name;
lv.lc = name;
lv.st = getTimer();
loader = new Loader();
g = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
MochiAd.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime()));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.load(req);
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{
var _local4:Array;
var _local5:Number;
_local4 = _arg2.split(".");
_local5 = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
if (typeof(_arg1[_local4[_local5]]) == "function"){
return (_arg1[_local4[_local5]].apply(_arg1, _arg3));
};
return (undefined);
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{
var _local4:MovieClip;
_local4 = new MovieClip();
if (((false) && (_arg3))){
_arg1.addChildAt(_local4, _arg3);
} else {
_arg1.addChild(_local4);
};
_arg1[_arg2] = _local4;
_local4["_name"] = _arg2;
return (_local4);
}
public static function _getRes(_arg1:Object, _arg2:Object):Array{
var _local3:Object;
var _local4:Number;
var _local5:Number;
var _local6:Array;
_local3 = _arg2.getBounds(_arg2.root);
_local4 = 0;
_local5 = 0;
if (typeof(_arg1.res) != "undefined"){
_local6 = _arg1.res.split("x");
_local4 = parseFloat(_local6[0]);
_local5 = parseFloat(_local6[1]);
} else {
_local4 = (_local3.xMax - _local3.xMin);
_local5 = (_local3.yMax - _local3.yMin);
};
if ((((_local4 == 0)) || ((_local5 == 0)))){
_local4 = _arg2.stage.stageWidth;
_local5 = _arg2.stage.stageHeight;
};
return ([_local4, _local5]);
}
public static function adShowing(_arg1:Object):void{
_arg1.origFrameRate = _arg1.stage.frameRate;
_arg1.stage.frameRate = 30;
}
public static function getValue(_arg1:Object, _arg2:String):Object{
var _local3:Array;
var _local4:Number;
_local3 = _arg2.split(".");
_local4 = 0;
while (_local4 < (_local3.length - 1)) {
if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local3[_local4]];
_local4++;
};
return (_arg1[_local3[_local4]]);
}
public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{
var _local4:Object;
var _local5:Object;
switch (_arg3.id){
case "setValue":
MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value);
break;
case "getValue":
_local4 = MochiAd.getValue(_arg1, _arg3.objectName);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4);
break;
case "runMethod":
_local5 = MochiAd.runMethod(_arg1, _arg3.method, _arg3.args);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5);
break;
default:
trace(("[mochiads rpc] unknown rpc id: " + _arg3.id));
};
}
public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Array;
var _local5:Number;
_local4 = _arg2.split(".");
_local5 = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return;
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
_arg1[_local4[_local5]] = _arg3;
}
public static function showPreGameAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var bar:MovieClip;
var bar_color:Number;
var bar_background:Number;
var bar_outline:Number;
var backing_mc:MovieClip;
var backing:Object;
var inside_mc:MovieClip;
var inside:Object;
var outline_mc:MovieClip;
var outline:Object;
var complete:Boolean;
var unloaded:Boolean;
var f:Function;
var sendHostProgress:Boolean;
var fn:Function;
var r:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}, ad_progress:function (_arg1:Number):void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
return;
};
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
var fn:Function;
MochiAd._cleanup(mc);
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.x = (w * -0.5);
chk.y = (h * -0.5);
bar = createEmptyMovieClip(chk, "_mochiad_bar", 4);
if (options.no_progress_bar){
bar.visible = false;
delete options.no_progress_bar;
} else {
bar.x = 10;
bar.y = (h - 20);
};
bar_color = options.color;
delete options.color;
bar_background = options.background;
delete options.background;
bar_outline = options.outline;
delete options.outline;
backing_mc = createEmptyMovieClip(bar, "_outline", 1);
backing = backing_mc.graphics;
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo((w - 20), 0);
backing.lineTo((w - 20), 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
inside_mc = createEmptyMovieClip(bar, "_inside", 2);
inside = inside_mc.graphics;
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo((w - 20), 0);
inside.lineTo((w - 20), 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside_mc.scaleX = 0;
outline_mc = createEmptyMovieClip(bar, "_outline", 3);
outline = outline_mc.graphics;
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo((w - 20), 0);
outline.lineTo((w - 20), 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number;
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
f = function (_arg1:Event):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
complete = true;
if (unloaded){
MochiAd.unload(clip);
};
};
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
MochiAd.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = _arg1;
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
mc.rpcTestFn = function (_arg1:String):Object{
trace(("[MOCHIAD rpcTestFn] " + _arg1));
return (_arg1);
};
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (_arg1:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Object;
var _local3:Number;
var _local4:Boolean;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Object;
var _local10:Number;
var _local11:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
_local1 = this.parent.parent.root;
_local2 = this.parent._mochiad_ctr;
_local3 = (getTimer() - this.started);
_local4 = false;
_local5 = _local1.loaderInfo.bytesTotal;
_local6 = _local1.loaderInfo.bytesLoaded;
if (complete){
_local6 = Math.max(1, _local6);
_local5 = _local6;
};
_local7 = ((100 * _local6) / _local5);
_local8 = ((100 * _local3) / chk.ad_msec);
_local9 = this._mochiad_bar._inside;
_local10 = Math.min(100, Math.min(((_local7) || (0)), _local8));
_local10 = Math.max(this.last_pcnt, _local10);
this.last_pcnt = _local10;
_local9.scaleX = (_local10 * 0.01);
options.ad_progress(_local10);
if (sendHostProgress){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7});
if (_local7 == 100){
sendHostProgress = false;
};
};
if (!chk.showing){
_local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local11 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if ((((_local3 > chk.ad_timeout)) && ((_local7 == 100)))){
options.ad_failed();
_local4 = true;
};
};
};
if (_local3 > chk.ad_msec){
_local4 = true;
};
if (((complete) && (_local4))){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function showPreloaderAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(_arg1);
}
public static function showTimedAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(_arg1);
}
public static function doOnEnterFrame(_arg1:MovieClip):void{
var f:Function;
var mc = _arg1;
f = function (_arg1:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
}
}//package
Section 63
//Music (Music)
package {
import flash.media.*;
public dynamic class Music extends Sound {
}
}//package
Section 64
//Num0 (Num0)
package {
import flash.display.*;
public dynamic class Num0 extends MovieClip {
}
}//package
Section 65
//Num1 (Num1)
package {
import flash.display.*;
public dynamic class Num1 extends MovieClip {
}
}//package
Section 66
//Num2 (Num2)
package {
import flash.display.*;
public dynamic class Num2 extends MovieClip {
}
}//package
Section 67
//Num3 (Num3)
package {
import flash.display.*;
public dynamic class Num3 extends MovieClip {
}
}//package
Section 68
//Num4 (Num4)
package {
import flash.display.*;
public dynamic class Num4 extends MovieClip {
}
}//package
Section 69
//Num5 (Num5)
package {
import flash.display.*;
public dynamic class Num5 extends MovieClip {
}
}//package
Section 70
//Num6 (Num6)
package {
import flash.display.*;
public dynamic class Num6 extends MovieClip {
}
}//package
Section 71
//Num7 (Num7)
package {
import flash.display.*;
public dynamic class Num7 extends MovieClip {
}
}//package
Section 72
//Num8 (Num8)
package {
import flash.display.*;
public dynamic class Num8 extends MovieClip {
}
}//package
Section 73
//Num9 (Num9)
package {
import flash.display.*;
public dynamic class Num9 extends MovieClip {
}
}//package
Section 74
//PersonMc (PersonMc)
package {
import flash.display.*;
public dynamic class PersonMc extends MovieClip {
public var standMc:MovieClip;
public var sitMc:MovieClip;
public var deathMc:MovieClip;
public var runLeftMc:MovieClip;
public var area:MovieClip;
public var runRightMc:MovieClip;
}
}//package
Section 75
//RocketMc (RocketMc)
package {
import flash.display.*;
public dynamic class RocketMc extends MovieClip {
}
}//package
Section 76
//ScoreMc (ScoreMc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class ScoreMc extends MovieClip {
public var score:TextField;
}
}//package
Section 77
//ShadowMc (ShadowMc)
package {
import flash.display.*;
public dynamic class ShadowMc extends MovieClip {
}
}//package
Section 78
//ShutBg (ShutBg)
package {
import flash.display.*;
public dynamic class ShutBg extends MovieClip {
}
}//package
Section 79
//Strike (Strike)
package {
import flash.media.*;
public dynamic class Strike extends Sound {
}
}//package
Section 80
//TimeCountMc (TimeCountMc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class TimeCountMc extends MovieClip {
public var minute:TextField;
public var second:TextField;
}
}//package
Section 81
//UpAndDownMc (UpAndDownMc)
package {
import flash.display.*;
public dynamic class UpAndDownMc extends MovieClip {
}
}//package
Section 82
//XMc (XMc)
package {
import flash.display.*;
public dynamic class XMc extends MovieClip {
}
}//package