Section 1
//Effects (com.gq.effects.Effects)
package com.gq.effects {
import flash.display.*;
import flash.events.*;
import com.gq.system.*;
public class Effects extends MovieClip {
public function Effects():void{
GameTools.pushArr(GameData.actionArr, this);
addEventListener(Event.ENTER_FRAME, updataEvent);
}
public function removeMe():void{
GameTools.unPushArr(GameData.actionArr, this);
removeEventListener(Event.ENTER_FRAME, updataEvent);
parent.removeChild(this);
}
protected function myAction():void{
}
public function resumeMe():void{
play();
}
public function updataEvent(_arg1:Event=null):void{
if (currentFrame == totalFrames){
myAction();
};
}
public function pauseMe():void{
stop();
}
}
}//package com.gq.effects
Section 2
//Heart (com.gq.effects.Heart)
package com.gq.effects {
public class Heart extends Effects {
override protected function myAction():void{
removeMe();
}
}
}//package com.gq.effects
Section 3
//Major (com.gq.moveobject.Major)
package com.gq.moveobject {
import com.gq.system.*;
import com.gq.effects.*;
public class Major extends MoveObject {
public function Major():void{
GameData.major = this;
}
override public function changeStates(_arg1:String):void{
states = _arg1;
changeFrameAction(_this.mc, _arg1);
}
public function shame():void{
changeStates("shame");
}
override public function updataEvent():void{
switchStates();
}
override protected function initMyData():void{
changeStates("stand");
}
public function release():void{
shoot_count = 0;
if (states != "shame"){
if (states == "stand"){
} else {
states = "release";
_this.mc.gotoAndPlay("release");
};
};
}
override protected function release_Func():void{
if (_this.mc.currentLabel == "over"){
changeStates("stand");
};
}
override protected function kiss_Func():void{
var _local1:Heart;
if (_this.mc.currentLabel == "release"){
if (GameData.mouseDown){
_this.mc.gotoAndPlay("loop");
};
} else {
if (_this.mc.currentLabel == "loop"){
GameData.loveValue = (GameData.loveValue + 0.1);
if (++shoot_count >= 100){
if ((shoot_count % 50) == 0){
_local1 = new Heart();
GameData.topObjectContainer.addChild(_local1);
_local1.x = ((Math.random() * 400) + 150);
_local1.y = ((Math.random() * 100) + 200);
};
};
if ((shoot_count % 30) == 0){
SoundClass.addMusic("sound1", "kiss");
};
};
};
}
override public function resumeMe():void{
}
public function kiss():void{
if (states != "shame"){
shoot_count = 0;
states = "kiss";
_this.mc.gotoAndPlay("kiss");
};
}
}
}//package com.gq.moveobject
Section 4
//Major1 (com.gq.moveobject.Major1)
package com.gq.moveobject {
import com.gq.system.*;
public class Major1 extends Major {
private var inPosition:Boolean;
public function Major1():void{
}
override protected function move_Func():void{
if (_this.mc.currentLabel == "stand"){
inPosition = true;
states = "stand";
_this.mc.gotoAndStop("stand");
};
}
override protected function initMyData():void{
states = "move";
_this.mc.play();
}
override public function release():void{
if (states != "move"){
super.release();
};
}
override public function pauseMe():void{
if (states != "move"){
super.resumeMe();
};
}
override public function kiss():void{
super.kiss();
}
}
}//package com.gq.moveobject
Section 5
//Major2 (com.gq.moveobject.Major2)
package com.gq.moveobject {
public class Major2 extends Major {
public function Major2():void{
}
}
}//package com.gq.moveobject
Section 6
//Major3 (com.gq.moveobject.Major3)
package com.gq.moveobject {
public class Major3 extends Major {
public function Major3():void{
}
}
}//package com.gq.moveobject
Section 7
//Major4 (com.gq.moveobject.Major4)
package com.gq.moveobject {
public class Major4 extends Major {
public function Major4():void{
}
}
}//package com.gq.moveobject
Section 8
//Major5 (com.gq.moveobject.Major5)
package com.gq.moveobject {
public class Major5 extends Major {
public function Major5():void{
}
}
}//package com.gq.moveobject
Section 9
//MoveObject (com.gq.moveobject.MoveObject)
package com.gq.moveobject {
import flash.display.*;
import com.gq.system.*;
public class MoveObject {
public var states:String;
public var finalSpeedX:Number;// = 0
public var finalSpeedY:Number;// = 0
public var finalSpeedZ:Number;// = 0
protected var flashing:Boolean;
public var myMcName:String;
public var invincible:Boolean;
public var myX:Number;
public var myY:Number;
public var myZ:Number;
public var myXRect:uint;
protected var whichFrameReady:int;
public var myCamp:String;// = ""
public var restoreSpeed:Number;// = 0.2
public var nowCollisionObj:MovieClip;
public var totalLife:Number;// = 1
protected var dead:Boolean;
protected var kiss_FI:Array;
public var g:Number;// = 1
public var nowLandHeight:String;
public var damageArr:Array;
protected var myFrameSound:Array;
public var upThingsArr:Array;
protected var whichFrameReturn:int;
public var myCurrentPositionX:int;
protected var cannon_height:Number;
public var deleteMe:Boolean;
public var pushSpeedX:Number;// = 0
public var pushSpeedY:Number;// = 0
public var pushSpeedZ:Number;// = 0
public var invinciTime:uint;// = 70
public var restoreLife:Number;
public var invinciCount:uint;
protected var jumpSpeed:Number;// = -15
public var myCurrentPositionY:int;
public var myHandObj:MoveObject;
protected var nowMoveSpeed:Number;// = 7
public var can_beat:Boolean;
public var myLife:Number;// = 500
public var notAdd:Boolean;
protected var myOldX:Number;
protected var myOldY:Number;
protected var current_cd:uint;
protected var injureRate:Number;// = 1
public var shoot_count:uint;
public var can_shoot:Boolean;
public var speedX:Number;// = 0
public var speedY:Number;// = 0
public var myCanHandObj:MoveObject;
protected var deadCount:uint;
public var speedZ:Number;// = 0
public var myMaster:MoveObject;
public var myHiter:Array;
public var createId:uint;
public var type:String;// = ""
protected var myCurrentFrame:int;
public var myDir:int;// = 1
public var myRotation:Number;
public var myReady:Boolean;// = true
protected var bulletType:uint;
public var distX:Number;
public var distY:Number;
public var myParent:Sprite;
public var _this:MovieClip;
public var hiter:MoveObject;
protected var can_collision:Boolean;
public var can_action:Boolean;// = true
public var action_index:uint;
protected var walkPath:Array;
public var myActionFinished:Boolean;// = true
protected var shame_FI:Array;
public var myYRect:uint;
public var distPostionZ:Number;// = 0
public var bloodBar:MovieClip;
public var collisionObjArr:Array;
public var myClipName:String;// = ""
public var noSpeedMode:Boolean;
protected var stand_FI:Array;
public var myID:uint;
public var speedAll:Number;
public var land:Boolean;
public var blockedX:Boolean;
public var blockedY:Boolean;
protected var myShootEffectName:String;// = ""
protected var whichFrameFinished:int;
protected var move_FI:Array;
protected var myFrameEvent:Array;
protected var cd_time:uint;
public var data_index:uint;
public function MoveObject():void{
myHiter = new Array();
damageArr = [10, 1, 1];
upThingsArr = new Array();
collisionObjArr = new Array();
super();
stand_FI = [1, 1, 30, [1], null];
kiss_FI = [1, 1, 30, [1], null];
move_FI = [1, 1, 30, [1], null];
initData();
}
protected function hitTestObj():void{
}
public function addMc():void{
if (((!((_this == null))) && (!((myParent == null))))){
myParent.addChild(_this);
notAdd = false;
};
}
protected function release_Func():void{
}
public function HurtMe(_arg1:int, _arg2:uint, _arg3:Number):void{
myLife = (myLife - _arg1);
}
protected function hitTestZ():void{
}
protected function kiss_over():void{
}
public function pauseMe():void{
if (_this.mc != null){
_this.mc.stop();
};
}
protected function hitTestX():void{
}
protected function kiss_Func():void{
}
public function changeFrameAction(_arg1:MovieClip, _arg2:String):void{
myCurrentFrame = 1;
GameTools.gotoFrame(_arg1, _arg2);
whichFrameReady = this[(_arg2 + "_FI")][0];
whichFrameFinished = this[(_arg2 + "_FI")][1];
whichFrameReturn = this[(_arg2 + "_FI")][2];
myFrameEvent = this[(_arg2 + "_FI")][3];
myFrameSound = this[(_arg2 + "_FI")][4];
if ((whichFrameReady + whichFrameFinished) > 2){
myReady = false;
myActionFinished = false;
};
}
protected function getFloor():void{
}
protected function hitTestMap():void{
getFloor();
hitTestX();
hitTestZ();
}
protected function switchStates():void{
try {
var _local2 = this;
_local2[(states + "_Func")]();
} catch(e) {
};
}
protected function move_Func():void{
}
protected function restoreState():void{
if (myFrameEvent != null){
if (myCurrentFrame == Number(myFrameEvent[0])){
try {
var _local2 = this;
_local2[(states + "_over")]();
} catch(e) {
};
};
};
if (myCurrentFrame == whichFrameReady){
myReady = true;
};
if (myCurrentFrame >= whichFrameFinished){
myActionFinished = true;
};
if (myCurrentFrame >= whichFrameReturn){
myCurrentFrame = 0;
};
myCurrentFrame++;
}
public function resumeMe():void{
if (_this.mc != null){
_this.mc.play();
};
}
protected function initMyData():void{
myLife = totalLife;
controlMc();
nowLandHeight = ((myZ)==0) ? "Up" : "Down";
}
protected function judgeMyPostion():Boolean{
var _value:Boolean;
try {
_value = GameData[("mapArr" + nowLandHeight)][myXRect][myYRect];
} catch(e) {
trace("地图出错");
_value = false;
};
return (_value);
}
protected function hitTestWho(_arg1:String):void{
var _local3:MovieClip;
var _local2:uint;
while (_local2 < GameData[_arg1].numChildren) {
_local3 = (GameData[_arg1].getChildAt(_local2) as MovieClip);
_local2++;
};
}
public function initData():void{
states = "stand";
}
protected function stayInSky():void{
if (type != "fly"){
speedZ = (speedZ + g);
};
if (speedZ > 20){
speedZ = 20;
};
}
public function updataEvent():void{
}
protected function judgeLimit():void{
}
protected function shame_over():void{
}
protected function shame_Func():void{
}
protected function getMyPosition(_arg1:Number, _arg2:Number):void{
myCurrentPositionX = Math.floor((_arg1 / GameData.rectWidth));
myCurrentPositionY = Math.floor((_arg2 / GameData.rectHeight));
}
public function init(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:String=""):void{
myX = _arg1;
myY = _arg2;
myZ = _arg3;
}
public function initSpeed(_arg1:Boolean=false):void{
speedX = 0;
speedY = 0;
if (_arg1){
speedZ = 0;
};
}
protected function back_Func():void{
}
public function removeMc():void{
if (_this != null){
myParent = (_this.parent as Sprite);
myParent.removeChild(_this);
notAdd = true;
};
}
public function removeMe():void{
if (bloodBar != null){
bloodBar.removeMe();
};
GameTools.unPushArr(GameData.actionArr, this);
GameTools.unPushArr(GameData.objectArr, this);
GameTools.unPushArr(GameData.objInScreenArr, this);
if (((!((_this == null))) && (!((_this.parent == null))))){
_this.parent.removeChild(_this);
_this = null;
};
defaultData();
}
protected function addHitEffect(_arg1:uint, _arg2:MoveObject):void{
}
protected function testWhere(_arg1:Array, _arg2:MoveObject, _arg3:MovieClip, _arg4:Array, _arg5:uint=1):Boolean{
var _local6:Boolean;
var _local8:MoveObject;
var _local7:uint;
while (_local7 < _arg1.length) {
_local8 = (_arg1[_local7] as MoveObject);
if ((((((GameTools.getDistance(_local8.myX, _local8.myZ, _arg2.myX, _arg2.myZ) < 200)) && ((Math.abs((_local8.myY - _arg2.myY)) < 20)))) && ((_local8.myLife > 0)))){
if (GameTools.hitTest(_local8._this, _arg3, _arg5)){
_local8.HurtMe(damageArr[0], damageArr[1], damageArr[2]);
trace("打中");
};
};
_local7++;
};
return (_local6);
}
protected function changeData():void{
myX = (myX + speedX);
myY = (myY + speedY);
}
protected function defaultData():void{
myCanHandObj = null;
hiter = null;
myMaster = null;
}
protected function Fall():void{
}
protected function stand_over():void{
}
protected function flashMe():void{
if (_this != null){
_this.alpha = (deadCount % 2);
};
if (++deadCount == 30){
deleteMe = true;
};
}
protected function stand_Func():void{
}
public function createMe(_arg1:Sprite, _arg2:String, _arg3:int, _arg4:String, _arg5:Array):void{
myMcName = _arg2;
var _local6:Class = GameTools.getMeBySwf(_arg4, _arg2);
var _local7:MovieClip = new (_local6);
_arg1.addChildAt(_local7, _arg3);
_this = _local7;
_this["myHost"] = this;
data_index = (uint(_arg2.substring((_arg2.indexOf("_") + 1), _arg2.length)) - 1);
distX = (_this.width / 2);
distY = _this.height;
walkPath = _arg5;
initMyData();
}
protected function getBlocked():void{
}
protected function addMyPart(_arg1:uint, _arg2:String):void{
var _local3:uint;
while (_local3 < _arg1) {
GameSys.addEffects(GameData.personContainer, "ClipEffect", _arg2, myX, myY, myZ);
_local3++;
};
}
protected function check_Func():void{
}
public function changeStates(_arg1:String):void{
states = _arg1;
changeFrameAction(_this, _arg1);
}
public function controlMc():void{
if (_this != null){
_this.x = myX;
_this.y = (myY + myZ);
_this.scaleX = myDir;
};
}
protected function controlMe():void{
}
protected function otherFunc():void{
}
}
}//package com.gq.moveobject
Section 10
//NPC (com.gq.moveobject.NPC)
package com.gq.moveobject {
import com.gq.system.*;
import com.gq.ui.*;
public class NPC extends MoveObject {
protected var checkCount:uint;
protected var totalCount:uint;
protected var stayCount:uint;
public function NPC():void{
GameData.npc = this;
}
override protected function move_Func():void{
checkCount++;
if (_this.mc.currentLabel == "check"){
if (checkCount >= totalCount){
states = "check";
_this.mc.gotoAndPlay("check");
checkCount = 0;
stayCount = uint(((Math.random() * 50) + 30));
if (data_index == 3){
SoundClass.addMusic("sound2", "click");
stayCount = uint(((Math.random() * 50) + 100));
} else {
if (data_index == 1){
stayCount = 30;
};
};
} else {
_this.mc.gotoAndPlay("move");
};
};
}
override protected function check_Func():void{
if ((((_this.mc.currentLabel == "looking")) && (!(GameData.wow)))){
_this.mc.stop();
if (GameData.mouseDown){
GameData.wow = true;
addWarning();
GameData.major.shame();
} else {
if (++checkCount >= stayCount){
states = "back";
_this.mc.gotoAndPlay("back");
};
};
};
}
override public function resumeMe():void{
super.resumeMe();
if ((((data_index == 0)) && (!((_this.mc.board == null))))){
_this.mc.board.play();
};
}
override protected function initMyData():void{
myParent = GameData[(GameDesignClass.npcArr[data_index][0] + "Container")];
myParent.addChild(_this);
changeStates("move");
totalCount = uint(((Math.random() * 300) + 100));
}
public function addWarning():void{
GameData.heartValue--;
GameData.gameUI.Life();
var _local1:Warning = new Warning();
_local1.init(warnOver);
GameData.topSprite.addChild(_local1);
}
private function moveAction0():void{
}
private function moveAction1():void{
if (states == "move"){
speedX = (2 * _this.scaleX);
if (_this.x < 50){
_this.scaleX = 1;
} else {
if (_this.x > 650){
_this.scaleX = -1;
};
};
} else {
speedX = 0;
};
_this.x = (_this.x + speedX);
}
private function moveAction2():void{
}
private function moveAction3():void{
}
private function moveAction4():void{
}
override public function pauseMe():void{
super.pauseMe();
if ((((data_index == 0)) && (!((_this.mc.board == null))))){
_this.mc.board.stop();
};
}
override public function updataEvent():void{
var _local1 = this;
_local1[("moveAction" + String(data_index))]();
switchStates();
if (GameData.game_level == 3){
_this.mc.mc.gotoAndStop(GameData.major._this.mc.currentFrame);
};
}
override public function changeStates(_arg1:String):void{
states = _arg1;
changeFrameAction(_this.mc, _arg1);
}
protected function warnOver():void{
if (GameData.heartValue > 0){
GameData.wow = false;
states = "back";
_this.mc.gotoAndPlay("back");
GameData.major.changeStates("stand");
} else {
GameSys.missionComplete("lose");
};
}
override protected function back_Func():void{
if (_this.mc.currentLabel == "over"){
states = "move";
_this.mc.gotoAndPlay("move");
checkCount = 0;
totalCount = uint(((Math.random() * 300) + 100));
};
}
}
}//package com.gq.moveobject
Section 11
//NPC1 (com.gq.moveobject.NPC1)
package com.gq.moveobject {
public class NPC1 extends NPC {
public function NPC1():void{
}
}
}//package com.gq.moveobject
Section 12
//NPC2 (com.gq.moveobject.NPC2)
package com.gq.moveobject {
public class NPC2 extends NPC {
public function NPC2():void{
}
}
}//package com.gq.moveobject
Section 13
//NPC3 (com.gq.moveobject.NPC3)
package com.gq.moveobject {
import com.gq.system.*;
public class NPC3 extends NPC {
public function NPC3():void{
}
override protected function warnOver():void{
if (GameData.heartValue > 0){
_this.mc.mc.play();
GameData.wow = false;
states = "back";
if (_this.mc.currentLabel == "looking1"){
_this.mc.gotoAndPlay("back1");
} else {
if (_this.mc.currentLabel == "looking2"){
_this.mc.gotoAndPlay("back2");
} else {
if (_this.mc.currentLabel == "looking3"){
_this.mc.gotoAndPlay("back3");
} else {
if (_this.mc.currentLabel == "looking4"){
_this.mc.gotoAndPlay("back4");
} else {
if (_this.mc.currentLabel == "looking5"){
_this.mc.gotoAndPlay("back5");
} else {
if (_this.mc.currentLabel == "looking6"){
_this.mc.gotoAndPlay("back6");
} else {
if (_this.mc.currentLabel == "looking7"){
_this.mc.gotoAndPlay("back7");
} else {
if (_this.mc.currentLabel == "looking8"){
_this.mc.gotoAndPlay("back8");
};
};
};
};
};
};
};
};
GameData.major.changeStates("stand");
} else {
GameSys.missionComplete("lose");
};
}
override protected function move_Func():void{
checkCount++;
if (_this.mc.currentLabel == "check"){
_this.mc.gotoAndPlay("move");
};
if (checkCount >= totalCount){
if (_this.mc.currentLabel == "s_1"){
states = "check";
_this.mc.gotoAndPlay("check1");
checkCount = 0;
stayCount = 40;
} else {
if (_this.mc.currentLabel == "s_2"){
states = "check";
_this.mc.gotoAndPlay("check2");
checkCount = 0;
stayCount = 40;
} else {
if (_this.mc.currentLabel == "s_3"){
states = "check";
_this.mc.gotoAndPlay("check3");
checkCount = 0;
stayCount = 40;
} else {
if (_this.mc.currentLabel == "s_4"){
states = "check";
_this.mc.gotoAndPlay("check4");
checkCount = 0;
stayCount = 40;
} else {
if (_this.mc.currentLabel == "s_5"){
states = "check";
_this.mc.gotoAndPlay("check5");
checkCount = 0;
stayCount = 40;
} else {
if (_this.mc.currentLabel == "s_6"){
states = "check";
_this.mc.gotoAndPlay("check6");
checkCount = 0;
stayCount = 40;
} else {
if (_this.mc.currentLabel == "s_7"){
states = "check";
_this.mc.gotoAndPlay("check7");
checkCount = 0;
stayCount = 40;
} else {
if (_this.mc.currentLabel == "s_8"){
states = "check";
_this.mc.gotoAndPlay("check8");
checkCount = 0;
stayCount = 40;
};
};
};
};
};
};
};
};
};
}
override protected function back_Func():void{
if (_this.mc.currentLabel == "over1"){
states = "move";
_this.mc.gotoAndPlay("s_1");
checkCount = 0;
totalCount = uint(((Math.random() * 200) + 50));
} else {
if (_this.mc.currentLabel == "over2"){
states = "move";
_this.mc.gotoAndPlay("s_2");
checkCount = 0;
totalCount = uint(((Math.random() * 200) + 50));
} else {
if (_this.mc.currentLabel == "over3"){
states = "move";
_this.mc.gotoAndPlay("s_3");
checkCount = 0;
totalCount = uint(((Math.random() * 200) + 50));
} else {
if (_this.mc.currentLabel == "over4"){
states = "move";
_this.mc.gotoAndPlay("s_4");
checkCount = 0;
totalCount = uint(((Math.random() * 200) + 50));
} else {
if (_this.mc.currentLabel == "over5"){
states = "move";
_this.mc.gotoAndPlay("s_5");
checkCount = 0;
totalCount = uint(((Math.random() * 200) + 50));
} else {
if (_this.mc.currentLabel == "over6"){
states = "move";
_this.mc.gotoAndPlay("s_6");
checkCount = 0;
totalCount = uint(((Math.random() * 200) + 50));
} else {
if (_this.mc.currentLabel == "over7"){
states = "move";
_this.mc.gotoAndPlay("s_7");
checkCount = 0;
totalCount = uint(((Math.random() * 200) + 50));
} else {
if (_this.mc.currentLabel == "over8"){
states = "move";
_this.mc.gotoAndPlay("s_8");
checkCount = 0;
totalCount = uint(((Math.random() * 200) + 50));
};
};
};
};
};
};
};
};
}
override protected function check_Func():void{
if ((((_this.mc.currentLabel.substring(0, 4) == "look")) && (!(GameData.wow)))){
_this.mc.stop();
if (GameData.mouseDown){
_this.mc.mc.stop();
GameData.wow = true;
addWarning();
GameData.major.shame();
} else {
if (++checkCount >= stayCount){
states = "back";
if (_this.mc.currentLabel == "looking1"){
_this.mc.gotoAndPlay("back1");
} else {
if (_this.mc.currentLabel == "looking2"){
_this.mc.gotoAndPlay("back2");
} else {
if (_this.mc.currentLabel == "looking3"){
_this.mc.gotoAndPlay("back3");
} else {
if (_this.mc.currentLabel == "looking4"){
_this.mc.gotoAndPlay("back4");
} else {
if (_this.mc.currentLabel == "looking5"){
_this.mc.gotoAndPlay("back5");
} else {
if (_this.mc.currentLabel == "looking6"){
_this.mc.gotoAndPlay("back6");
} else {
if (_this.mc.currentLabel == "looking7"){
_this.mc.gotoAndPlay("back7");
} else {
if (_this.mc.currentLabel == "looking8"){
_this.mc.gotoAndPlay("back8");
};
};
};
};
};
};
};
};
};
};
};
}
}
}//package com.gq.moveobject
Section 14
//NPC4 (com.gq.moveobject.NPC4)
package com.gq.moveobject {
public class NPC4 extends NPC {
public function NPC4():void{
}
}
}//package com.gq.moveobject
Section 15
//NPC5 (com.gq.moveobject.NPC5)
package com.gq.moveobject {
public class NPC5 extends NPC {
public function NPC5():void{
}
}
}//package com.gq.moveobject
Section 16
//Ctrl (com.gq.system.Ctrl)
package com.gq.system {
import flash.display.*;
import flash.events.*;
public class Ctrl {
public var impossible:Boolean;
private var ESC:uint;// = 27
private static var Scen:DisplayObjectContainer;
public function Ctrl(_arg1:DisplayObjectContainer):void{
Scen = _arg1;
Scen.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHd);
Scen.stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHd);
}
public function loseFocus(_arg1:Event=null):void{
GameData.controlWho.leftPress = false;
GameData.controlWho.downPress = false;
GameData.controlWho.rightPress = false;
GameData.controlWho.upPress = false;
GameData.controlWho.attackPress = false;
GameData.controlWho.jumpPress = false;
}
private function mouseDownHd(_arg1:MouseEvent):void{
if (!GameData.isPausing){
GameData.mouseDown = true;
GameData.major.kiss();
};
}
public function removeMe():void{
Scen.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHd);
Scen.stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHd);
GameData.controlClass = null;
}
private function KeyUpHD(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case GameData.A:
GameData.controlWho.leftPress = false;
GameData.controlWho.leftDone = false;
break;
case GameData.S:
GameData.controlWho.downPress = false;
GameData.controlWho.downDone = false;
break;
case GameData.D:
GameData.controlWho.rightPress = false;
GameData.controlWho.rightDone = false;
break;
case GameData.W:
GameData.controlWho.upPress = false;
GameData.controlWho.upDone = false;
break;
case GameData.J:
GameData.controlWho.attackPress = false;
GameData.controlWho.attackDone = false;
break;
case GameData.K:
GameData.controlWho.jumpPress = false;
GameData.controlWho.jumpDone = false;
break;
case GameData.L:
GameData.controlWho.specialPress = false;
GameData.controlWho.specilaDone = false;
break;
};
}
private function mouseUpHd(_arg1:MouseEvent):void{
if (!GameData.isPausing){
GameData.mouseDown = false;
GameData.major.release();
};
}
private function KeyDownHD(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case GameData.A:
GameData.controlWho.leftPress = true;
break;
case GameData.S:
GameData.controlWho.downPress = true;
break;
case GameData.D:
GameData.controlWho.rightPress = true;
break;
case GameData.W:
GameData.controlWho.upPress = true;
break;
case GameData.J:
GameData.controlWho.attackPress = true;
break;
case GameData.K:
GameData.controlWho.jumpPress = true;
break;
case GameData.L:
GameData.controlWho.specialPress = true;
break;
case ESC:
if (!impossible){
GameTools.Pause();
};
break;
case 80:
if (!impossible){
GameTools.Pause();
};
break;
case 33:
GameData.Scen.stage.frameRate++;
break;
case 34:
GameData.Scen.stage.frameRate--;
break;
case 81:
break;
case 32:
if (GameData.hitTestSprite.parent == null){
GameData.bgContainer.addChild(GameData.hitTestSprite);
} else {
GameData.bgContainer.removeChild(GameData.hitTestSprite);
};
break;
};
}
}
}//package com.gq.system
Section 17
//FPSShow (com.gq.system.FPSShow)
package com.gq.system {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
public class FPSShow extends Sprite {
private var txt:TextField;
private var count:int;// = 0
public function FPSShow(){
init();
}
private function timerHandler(_arg1:TimerEvent):void{
txt.text = "FPS:";
txt.text = ("FPS:" + count);
count = 0;
}
private function init():void{
txt = new TextField();
txt.textColor = 0xFF0000;
txt.background = true;
txt.backgroundColor = 11259375;
txt.autoSize = TextFieldAutoSize.CENTER;
txt.selectable = false;
txt.x = 20;
addChild(txt);
var _local1:Timer = new Timer(1000);
_local1.addEventListener("timer", timerHandler);
this.addEventListener("enterFrame", countHandler);
_local1.start();
}
private function countHandler(_arg1:Event):void{
count++;
}
}
}//package com.gq.system
Section 18
//GameData (com.gq.system.GameData)
package com.gq.system {
import flash.display.*;
import flash.geom.*;
import com.gq.moveobject.*;
import flash.media.*;
import flash.text.*;
import com.gq.ui.*;
import flash.net.*;
import flash.filters.*;
public class GameData {
public static const DIFFICULTY_EASY:uint = 1;
public static const GAME_MODULUS = 0.65;
public static const BIAS_VALUE:int = 14;
public static const DIFFICULTY_HARD:uint = 3;
public static const VERSON:String = "1.143";
public static const LINE_VALUE:int = 10;
public static const DIFFICULTY_NORMAL:uint = 2;
public static var current_life:uint = (GAME_TESTING) ? 5000 : 500;
;
public static var gameUI:GameUI;
public static var current_goal:Number = 0;
public static var controlClass:Ctrl;
public static var music:Sound = new Sound();
public static var GAME_DIFFICULTY:uint = 2;
public static var nowTraceX:Number;
public static var nowTraceY:Number;
public static var rectHeight:uint = 20;
public static var redFilters:Array = [new GlowFilter()];
public static var time_left:int;
public static var KString:String = "K";
public static var A:uint = 65;
public static var D:uint = 68;
public static var rectWidth:uint = 20;
public static var J:uint = 74;
public static var actionArr:Array;
public static var widthLength:uint = 35;
public static var clickObj:Array;
public static var S:uint = 83;
public static var level_index:uint = 1;
public static var resourceWidth:int;
public static var K:uint = 75;
public static var SString:String = "S";
public static var bottomObjectContainer:Sprite;
public static var Loader2:Loader = new Loader();
public static var Loader3:Loader = new Loader();
public static var Loader4:Loader = new Loader();
public static var Loader6:Loader = new Loader();
public static var L:uint = 76;
public static var W:uint = 87;
public static var Loader5:Loader = new Loader();
public static var rightCount:uint;
public static var Loader8:Loader = new Loader();
public static var gameHitBg:Sprite;
public static var blueTrans:ColorTransform = new ColorTransform(0.6, 0.6, 0.6, 1, 0, 0, 100, 0);
public static var Loader7:Loader = new Loader();
public static var hitTestBmd:BitmapData;
public static var Loader1:Loader = new Loader();
public static var idIndex:uint;
public static var topSprite:Sprite;
public static var sound2Channel:SoundChannel = new SoundChannel();
public static var current_score:Number = 0;
public static var resourceBmd:BitmapData;
public static var redTrans:ColorTransform = new ColorTransform(1, 0.85, 0.85, 1, 0, 0, 0, 0);
public static var objectArr:Array;
public static var GAME_TESTING:Boolean = false;
public static var isPausing:Boolean;
public static var personContainer:Sprite;
public static var gameContainer:Sprite;
public static var myShareObject:SharedObject;
public static var screenHeight:int = 500;
public static var wow:Boolean;
public static var currentPushTower:uint = 1;
public static var screenWidth:int = 700;
public static var FPS:FPSShow;
public static var heartValue:Number = 3;
public static var resourceHeight:int;
public static var soundTrans:SoundTransform = new SoundTransform();
public static var sndLoader:Loader = null;
public static var currentIndex:uint;
public static var leftMapLimit:Number = 0;
public static var mouseDown:Boolean;
public static var lifeNum:uint = 10;
public static var heightLength:uint = 25;
public static var total_time:uint = 150;
public static var soundChannel:SoundChannel = new SoundChannel();
public static var game_level:uint = 1;
public static var npc:NPC;
public static var creater:MonsterCreater;
public static var sound1:Sound = new Sound();
public static var sound2:Sound = new Sound();
public static var sound3:Sound = new Sound();
public static var greyTrans:ColorTransform = new ColorTransform(0.4, 0.4, 0.4, 1, 0, 0, 0, 0);
public static var JString:String = "J";
public static var total_level_num:uint;
public static var currentClickObj;
public static var effectArr:Array;
public static var Scen:DisplayObjectContainer;
public static var sound:Sound = new Sound();
public static var loveValue:Number = 1;
public static var can_pass:Boolean;
public static var controlWho;
public static var currentMap:Map;
public static var musicChannel:SoundChannel = new SoundChannel();
public static var nowUseClass:Class;
public static var bitmap:Bitmap;
public static var nowDifficulty:Number;
public static var pause_page:MovieClip;
public static var objInScreenArr:Array;
public static var removeArr:Array;
public static var okHeightArr:Array = ["000", "010", "040", "050", "080", "101", "110", "120", "130", "165", "180", "200", "220", "235", "250", "280", "300", "350", "500"];
public static var can_clickArr:Array;
public static var WString:String = "W";
public static var leftCount:uint;
public static var map:Map;
public static var sound3Channel:SoundChannel = new SoundChannel();
public static var mapArr:Array = new Array(widthLength);
public static var screenBmd:BitmapData;
public static var mapSpeedY:Number;
public static var mapSpeedX:Number;
public static var LString:String = "L";
public static var isPlay:Boolean;
public static var initTrans:ColorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
public static var channelNum:uint = 3;
public static var DString:String = "D";
public static var nowLoading:int;
public static var musicTrans:SoundTransform = new SoundTransform();
public static var _loadPercentTxt:TextField;
public static var whiteFilters:Array = [new GlowFilter(0xFFFFFF, 1, 10, 10)];
public static var sound1Channel:SoundChannel = new SoundChannel();
public static var shakeCount:uint;
public static var babyArr:Array;
public static var enemyTimeArr:Array = new Array(30);
public static var AString:String = "A";
public static var tableArr:Array;
public static var mapInforArr:Array;
public static var bgContainer:Sprite;
public static var major:Major;
public static var bgRect:Rectangle;
public static var gameBg:Sprite;
public static var total_score:Number = 0;
public static var hitTestSprite:Sprite;
public static var topObjectContainer:Sprite;
public static var effectContainer:Sprite;
public static var moveObjectContainer:Sprite;
public static var rightMapLimit:Number = 0;
public static var whiteTrans:ColorTransform = new ColorTransform(0, 0, 0, 1, 0xFF, 0xFF, 0xFF, 0);
public static function initData():void{
actionArr = [];
effectArr = [];
objectArr = [];
babyArr = [];
objInScreenArr = [];
can_clickArr = [];
removeArr = [];
tableArr = [];
clickObj = [];
isPausing = false;
can_pass = false;
mouseDown = false;
wow = false;
creater = null;
currentMap = null;
gameContainer = null;
bgContainer = null;
effectContainer = null;
moveObjectContainer = null;
bottomObjectContainer = null;
personContainer = null;
topObjectContainer = null;
pause_page = null;
gameUI = null;
controlClass = null;
map = null;
currentClickObj = null;
major = null;
npc = null;
time_left = total_time;
loveValue = 1;
}
public static function SuperInit():void{
total_level_num = 0;
current_life = 500;
level_index = 1;
controlWho = null;
}
}
}//package com.gq.system
Section 19
//GameDesignClass (com.gq.system.GameDesignClass)
package com.gq.system {
import flash.display.*;
public class GameDesignClass {
public var Scen:DisplayObjectContainer;
public static const npcArr:Object = [["topObject"], ["bottomObject"], ["topObject"], ["bottomObject"], ["bottomObject"]];
public static const keyArr:Array = [[32, "SPACE"], [17, "CTRL"], [16, "SHIFT"], [20, "CAPS"], [27, "ESC"], [8, "BACK"], [112, "F1"], [113, "F2"], [114, "F3"], [115, "F4"], [116, "F5"], [117, "F6"], [118, "F7"], [119, "F8"], [120, "F9"], [121, "F10"], [122, "F11"], [123, "F12"], [19, "SCRLK"], [45, "INSERT"], [36, "HOME"], [33, "PAGEUP"], [34, "PAGEDN"], [46, "DEL"], [35, "END"], [38, "↑"], [40, "↓"], [37, "←"], [39, "→"], [13, "ENTER"], [144, "NUMLOCK"]];
public static const waitPositionArr:Array = [[320, 80], [360, 80], [400, 80]];
public static const tablePositionArr:Array = [[100, 160], [300, 160], [500, 160], [100, 280], [300, 280], [500, 280], [100, 400], [300, 400], [500, 400]];
public static const goalArr:Array = [150, 170, 190, 210, 250, 300, 350, 400, 450, 500, 600, 700, 800, 900, 1000, 1200, 1500, 1800, 2100, 2500];
public static const washerPosition:Array = [560, 160];
public static const workerWaitPositionArr:Array = [[350, 80], [390, 80], [430, 80], [500, 80]];
public static const guestComeSpeed:Array = [450, 400, 400, 350, 350, 350, 300, 300, 300, 250, 250, 200, 200, 150, 150, 100, 100, 80, 80, 60];
public static const levelTimeArr:Array = [3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000];
public static const waiterPositionArr:Array = [[600, 200], [600, 280], [600, 360], [600, 440]];
public static const wantArr:Array = [["car", "bed", "dori_1", "desk", "bottle"], ["car", "bed", "ball", "dori_1", "dori_2", "desk", "bottle"], ["car", "plane", "bed", "ball", "dori_1", "dori_2", "desk", "bottle"], ["car", "plane", "bed", "ball", "dori_1", "dori_2", "glove", "desk", "bottle"], ["car", "plane", "shower", "bed", "ball", "dori_1", "dori_2", "glove", "desk", "bottle"]];
public static const totalLevelNumArr:Array = [5, 5, 5, 6];
public static var mapArray:Array = [0, 0, 0, 0];
public static var addScore:Number = 50;
public static var landHeight:int = 280;
public function GameDesignClass(_arg1:DisplayObjectContainer):void{
Scen = _arg1;
GameData.Scen = Scen;
GameTools.shareObject();
GameData.initData();
GameSys.createGame();
GameTools.addMask();
}
}
}//package com.gq.system
Section 20
//GameSys (com.gq.system.GameSys)
package com.gq.system {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.gq.moveobject.*;
import flash.media.*;
import com.gq.ui.*;
import com.gq.effects.*;
public class GameSys {
public static var counter:uint;
public static function addEffects(_arg1:Sprite, _arg2:String, _arg3:String, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:int=1, _arg8:Number=0):void{
var _local9:Class = GameTools.createClass(("com.macrojoy.effects." + _arg2));
var _local10:* = new (_local9);
GameTools.pushArr(GameData.actionArr, _local10);
if (_arg1 == GameData.personContainer){
GameTools.pushArr(GameData.objectArr, _local10);
GameData.idIndex++;
_local10.myID = GameData.idIndex;
};
_local10.createEffect(_arg1, _arg3, _arg4, _arg5, _arg6);
_local10._this.scaleX = _arg7;
_local10._this.rotation = _arg8;
}
private static function enterframe(_arg1:Event):void{
if (!GameData.isPausing){
updataEvent();
};
}
public static function createNPC():void{
GameData.creater.createObj("person", ("NPC" + String(GameData.game_level)), ("NPC_" + String(GameData.game_level)), 0, 0, 0, []);
}
public static function Build():void{
GameTools.giveSaveData();
GameData.initData();
buildStage();
InitialGame();
GameTools.addBlack();
GameTools.addMask();
}
public static function adjustMe(_arg1:Number, _arg2:Number):void{
if (((!((GameData.bitmap.x == -(_arg1)))) || (!((GameData.bitmap.y == -(_arg2)))))){
GameData.bgRect.x = (GameData.bgRect.x - (GameData.bitmap.x + _arg1));
GameData.bgRect.y = (GameData.bgRect.y - (GameData.bitmap.y + _arg2));
GameData.bitmap.x = -(_arg1);
GameData.bitmap.y = -(_arg2);
copyBg();
};
}
private static function creatObject(_arg1:String, _arg2:String):void{
GameData[_arg2] = new Sprite();
GameData[_arg2].mouseEnabled = false;
GameData[_arg1].addChild(GameData[_arg2]);
}
private static function removeAction(_arg1:Array):void{
var _local2:int = (_arg1.length - 1);
while (_local2 >= 0) {
_arg1[_local2].removeMe();
GameTools.unPushArr(_arg1, _arg1[_local2]);
_local2--;
};
_arg1 = [];
}
public static function missionComplete(_arg1:String="win"):void{
GameData.isPausing = true;
GameTools.gamePause(true);
if (_arg1 == "win"){
if (GameData.game_level < 5){
GameTools.createPage(Win, false);
} else {
GameTools.createPage(Congratulation, false);
};
} else {
GameTools.createPage(Lose, false);
};
}
private static function updataEvent():void{
moveAction(GameData.actionArr);
moveAction(GameData.effectArr);
removeAction(GameData.removeArr);
}
public static function createGame():void{
GameTools.createPage(Page1);
}
public static function buildStage():void{
creatObject("Scen", "topSprite");
creatObject("topSprite", "gameContainer");
creatObject("gameContainer", "bgContainer");
creatObject("gameContainer", "effectContainer");
creatObject("gameContainer", "moveObjectContainer");
creatObject("moveObjectContainer", "bottomObjectContainer");
creatObject("moveObjectContainer", "personContainer");
creatObject("moveObjectContainer", "topObjectContainer");
}
private static function mapAction():void{
adjustMe(GameData.gameContainer.x, GameData.gameContainer.y);
}
public static function removeStage():void{
SoundMixer.stopAll();
GameData.isPlay = false;
GameData.Scen.stage.removeEventListener(Event.ENTER_FRAME, enterframe);
GameData.Scen.mask = null;
if (GameData.controlClass){
GameData.controlClass.removeMe();
};
if (GameData.gameUI != null){
GameData.gameUI.removeMe();
};
GameTools.removeWho(GameData.topSprite);
GameData.initData();
}
private static function moveAction(_arg1:Array):void{
var _local2:uint;
while (_local2 < _arg1.length) {
_arg1[_local2].updataEvent();
_local2++;
};
}
public static function createGameMap(_arg1:uint):void{
GameData.currentMap = new Map();
GameData.bgContainer.addChild(GameData.currentMap);
}
private static function InitialGame():void{
createGameMap(GameData.game_level);
GameData.creater = new MonsterCreater();
createNPC();
createMajor();
GameStart();
GameTools.createPage(GameUI, false);
new Counter();
if (GameData.game_level == 3){
SoundClass.addMusic("music", "tome", 9999);
} else {
SoundClass.addMusic("music", "title", 999);
};
}
private static function GameStart():void{
GameData.isPlay = true;
GameData.Scen.stage.addEventListener(Event.ENTER_FRAME, enterframe);
GameData.Scen.stage.focus = null;
}
public static function copyBg():void{
GameData.screenBmd.copyPixels(GameData.resourceBmd, GameData.bgRect, new Point(0, 0));
}
public static function createMajor():void{
GameData.creater.createObj("person", ("Major" + String(GameData.game_level)), ("Major_" + String(GameData.game_level)), 0, 0, 0, []);
}
private static function judgeIfAddInScreen(_arg1:Number):void{
var _local3:*;
GameData.objInScreenArr = [];
var _local2:int = (GameData.objectArr.length - 1);
while (_local2 >= 0) {
_local3 = GameData.objectArr[_local2];
if (GameTools.ifOutScreen(_local3.myX, (_local3.myY + _local3.myZ), _arg1)){
if (!_local3.notAdd){
_local3.removeMc();
GameTools.unPushArr(GameData.actionArr, _local3);
};
} else {
GameTools.pushArr(GameData.objInScreenArr, _local3);
if (_local3.notAdd){
_local3.addMc();
GameTools.pushArr(GameData.actionArr, _local3);
};
};
_local2--;
};
}
private static function judgeIfCreate(_arg1:Array, _arg2:Function):void{
var _local3:Array;
var _local4:uint;
var _local5:Array;
if (_arg1.length > 0){
_local3 = _arg1.concat();
_local4 = 0;
while (_local4 < _local3.length) {
_local5 = _local3[_local4];
if (GameTools.judgeInScreen(_local5[3], _local5[4], 0.5)){
if (_local5[1] == "Enemy"){
if ((((_local5[9] == 0)) || ((_local5[9] == GameData.currentIndex)))){
_arg2(_local5[0], _local5[1], _local5[2], _local5[3], _local5[4], _local5[5], _local5[6], _local5[7], _local5[8], _local5[9], _local5[10]);
GameTools.unPushArr(_arg1, _local5);
};
} else {
_arg2(_local5[0], _local5[1], _local5[2], _local5[3], _local5[4], _local5[5], _local5[6], _local5[7], _local5[8], _local5[9]);
GameTools.unPushArr(_arg1, _local5);
};
};
_local4++;
};
};
}
}
}//package com.gq.system
Section 21
//GameTools (com.gq.system.GameTools)
package com.gq.system {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.gq.moveobject.*;
import flash.media.*;
import flash.text.*;
import com.gq.ui.*;
import flash.net.*;
import com.gq.effects.*;
import flash.utils.*;
public class GameTools {
public static function adjustFrame(_arg1:uint):void{
GameData.Scen.stage.frameRate = _arg1;
}
public static function judgeInSceen(_arg1:MovieClip):Boolean{
var _local2:Point = GameData.personContainer.localToGlobal(new Point(_arg1.x, _arg1.y));
if ((((((((_local2.x >= 0)) && ((_local2.x <= GameData.screenWidth)))) && ((_local2.y >= 0)))) && ((_local2.y <= GameData.screenHeight)))){
return (true);
};
return (false);
}
public static function addMusic(_arg1:String, _arg2:String, _arg3:uint=999, _arg4:Number=0):void{
var _local5:Class = (GameData.sndLoader.contentLoaderInfo.applicationDomain.getDefinition(_arg2) as Class);
var _local6:Sound = new (_local5);
GameData[_arg1] = _local6;
GameData[(_arg1 + "Channel")].stop();
GameData[(_arg1 + "Channel")] = _local6.play(_arg4, _arg3);
adjustVolume(_arg1);
}
public static function cleanupMemory():void{
try {
new LocalConnection().connect("foo");
} catch(e:Error) {
};
}
public static function getTureAngle(_arg1:Number):Number{
if (_arg1 < 0){
return ((_arg1 + 360));
};
if (_arg1 > 360){
return ((_arg1 - 360));
};
return (_arg1);
}
public static function hideZero(_arg1:MovieClip):void{
var _local2:int = (_arg1.numChildren - 1);
while (_local2 >= 0) {
if ((_arg1.getChildAt(_local2) as MovieClip).currentFrame == 1){
_arg1.getChildAt(_local2).visible = false;
} else {
break;
};
_local2--;
};
}
public static function drawRectangle(_arg1:Sprite, _arg2:uint, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number){
_arg1.graphics.lineStyle(1);
_arg1.graphics.beginFill(_arg2);
_arg1.graphics.drawRect(_arg3, _arg4, _arg5, _arg6);
}
public static function ifOutScreen(_arg1:Number, _arg2:Number, _arg3:Number=50):Boolean{
var _local4:Point = GameData.personContainer.localToGlobal(new Point(_arg1, _arg2));
if ((((((((_local4.x < -(_arg3))) || ((_local4.x > (GameData.screenWidth + _arg3))))) || ((_local4.y < -(_arg3))))) || ((_local4.y > (GameData.screenHeight + _arg3))))){
return (true);
};
return (false);
}
public static function unPushArr(_arg1:Array, _arg2):void{
if (_arg1.indexOf(_arg2) != -1){
_arg1.splice(_arg1.indexOf(_arg2), 1);
};
}
public static function calcuCurve(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Array{
var _local6:int = _arg5;
var _local7:Point = new Point(_arg1, _arg2);
var _local8:Point = new Point(_arg3, _arg4);
var _local9:Point = new Point(0, Math.round((Math.min(_local7.y, _local8.y) + _local6)));
var _local10:Number = (((Math.sqrt(((_local7.y - _local9.y) / (_local8.y - _local9.y))) * _local8.x) + _local7.x) / (1 + Math.sqrt(((_local7.y - _local9.y) / (_local8.y - _local9.y)))));
var _local11:Number = ((_local7.y - _local9.y) / ((_local7.x - _local10) * (_local7.x - _local10)));
var _local12:Number = _local9.y;
return ([_local11, _local10, _local12]);
}
public static function getNum(_arg1:int, _arg2:int, _arg3:MovieClip=null):Array{
var _local4:Array = new Array();
var _local5:int = _arg1;
var _local6:uint;
while (_local6 < _arg2) {
_local4.push((_local5 % 10));
_local5 = int((_local5 / 10));
if (_arg3 != null){
(_arg3.getChildAt(_local6) as MovieClip).gotoAndStop((_local4[_local6] + 1));
};
_local6++;
};
return (_local4);
}
public static function gotoFrame(_arg1:MovieClip, _arg2:String):void{
if (_arg1 != null){
if (_arg1.currentLabel != _arg2){
_arg1.gotoAndStop(_arg2);
};
};
}
public static function addEffect(_arg1:DisplayObjectContainer, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String):void{
var _local6:Class = createClass(_arg5);
var _local7:MovieClip = new (_local6);
_local7.x = _arg2;
_local7.y = _arg3;
_local7.scaleX = _arg4;
_arg1.addChild(_local7);
}
public static function hitTest(_arg1:MovieClip, _arg2:MovieClip, _arg3:uint):Boolean{
var _local4:Point;
if (_arg3 == 1){
return (_arg1.hitTestObject(_arg2));
};
_local4 = _arg2.parent.localToGlobal(new Point(_arg2.x, _arg2.y));
return (_arg1.hitTestPoint(_local4.x, _local4.y, true));
}
public static function Pause():void{
if (!GameData.isPausing){
GameData.isPausing = true;
gamePause(true);
} else {
GameData.isPausing = false;
gamePause(false);
};
}
public static function myHitTestPoint(_arg1:BitmapData, _arg2:Number, _arg3:Number):String{
GameData.hitTestSprite["picture"] = new BitmapData(2, 2, true, 0);
var _local4:Matrix = new Matrix();
_local4.tx = -(_arg2);
_local4.ty = -(_arg3);
GameData.hitTestSprite["picture"].draw(GameData.hitTestSprite, _local4);
var _local5:String = GameData.hitTestSprite["picture"].getPixel32(1, 1).toString(16);
return (_local5);
}
public static function adjustVolume(_arg1:String):void{
if (_arg1 == "music"){
GameData[(_arg1 + "Channel")].soundTransform = GameData.musicTrans;
} else {
GameData[(_arg1 + "Channel")].soundTransform = GameData.soundTrans;
};
}
public static function removeWho(_arg1:DisplayObjectContainer):void{
var _local2:int = (_arg1.numChildren - 1);
while (_local2 >= 0) {
_arg1.removeChild(_arg1.getChildAt(_local2));
_local2--;
};
}
public static function createClass(_arg1:String):Class{
return ((getDefinitionByName(_arg1) as Class));
}
public static function getShadow(_arg1:Sprite, _arg2:MovieClip, _arg3:Number, _arg4:Number):void{
var _local5:MovieClip = new ShadowEffect(_arg2);
_arg1.addChildAt(_local5, 0);
_local5.x = _arg3;
_local5.y = _arg4;
_local5.scaleX = _arg2.parent.scaleX;
}
public static function calcuRotation(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number = (_arg4 - _arg2);
var _local6:Number = (_arg3 - _arg1);
return ((Math.atan2(_local5, _local6) / 0.01745));
}
public static function getTab(_arg1:Number, _arg2:Boolean=false):Number{
if (_arg1 != 0){
return ((_arg1 / Math.abs(_arg1)));
};
if (_arg2){
return (0);
};
return (1);
}
public static function addFilters(_arg1, _arg2:Array):void{
_arg1.filters = [];
_arg1.filters = _arg2;
}
public static function gamePause(_arg1:Boolean):void{
var i:int;
var ctrlMc:*;
var _pause = _arg1;
i = (GameData.actionArr.length - 1);
while (i >= 0) {
try {
ctrlMc = GameData.actionArr[i].myHost;
} catch(e) {
ctrlMc = GameData.actionArr[i];
};
if (_pause){
ctrlMc.pauseMe();
} else {
ctrlMc.resumeMe();
};
i = (i - 1);
};
var k:int = (GameData.effectArr.length - 1);
while (k >= 0) {
ctrlMc = GameData.effectArr[k];
if (_pause){
ctrlMc.pauseMe();
} else {
ctrlMc.resumeMe();
};
k = (k - 1);
};
}
public static function addBlack():void{
var _local1:Black = new Black();
GameData.Scen.addChild(_local1);
}
public static function myLoader(_arg1:int, _arg2:Boolean):void{
var loadNext:Boolean;
var progressHandler:Function;
var completeHandler:Function;
var lv = _arg1;
var ifContinue = _arg2;
var loadAssetAction:Function = function (_arg1:int):void{
var _local2:Loader;
var _local3:String;
if (loadNext){
GameData.nowLoading = _arg1;
_local2 = (GameData[("Loader" + _arg1)] as Loader);
if (_local2.contentLoaderInfo.bytesLoaded == 0){
trace(_arg1, "未加载过");
_local3 = (("assets/bg" + String(_arg1)) + ".swf");
addText();
_local2.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler);
_local2.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
_local2.load(new URLRequest(_local3));
} else {
if (_local2.contentLoaderInfo.bytesLoaded < _local2.contentLoaderInfo.bytesTotal){
GameData.nowLoading--;
} else {
if (!GameData.isPlay){
GameSys.Build();
if (GameData.nowLoading < 4){
loadAssetAction(++GameData.nowLoading);
};
};
};
};
};
};
progressHandler = function (_arg1:ProgressEvent):void{
var _local2:LoaderInfo = (_arg1.target as LoaderInfo);
var _local3:Number = (Math.floor(((_local2.bytesLoaded / _local2.bytesTotal) * 10000)) / 100);
GameData._loadPercentTxt.text = (_local3.toString() + "% Loaded");
if (!GameData.isPlay){
GameData._loadPercentTxt.visible = true;
} else {
GameData._loadPercentTxt.visible = false;
};
};
completeHandler = function (_arg1:Event):void{
GameDesignClass.mapArray[(GameData.nowLoading - 1)] = 1;
if (!GameData.isPlay){
GameSys.Build();
};
removeText();
if (++GameData.nowLoading < (GameData.game_level + 2)){
if (GameData.nowLoading < 5){
loadAssetAction(GameData.nowLoading);
};
} else {
GameData.nowLoading = 0;
_arg1.target.removeEventListener(ProgressEvent.PROGRESS, progressHandler);
_arg1.target.removeEventListener(Event.COMPLETE, completeHandler);
};
};
var addText:Function = function ():void{
GameData._loadPercentTxt = new TextField();
GameData.Scen.addChild(GameData._loadPercentTxt);
var _local2 = GameData._loadPercentTxt;
with (_local2) {
x = 350;
y = 250;
textColor = 0xFF9900;
};
};
var removeText:Function = function ():void{
GameData.Scen.removeChild(GameData._loadPercentTxt);
GameData._loadPercentTxt = null;
};
loadNext = true;
loadAssetAction(lv);
}
public static function pushArr(_arg1:Array, _arg2):void{
if (_arg1.indexOf(_arg2) == -1){
_arg1.push(_arg2);
};
}
public static function judgeInScreen(_arg1:Number, _arg2:Number, _arg3:Number=0.5):Boolean{
var _local4:Point = GameData.moveObjectContainer.localToGlobal(new Point(_arg1, _arg2));
if ((((((((_local4.x > ((0 - _arg3) * GameData.screenWidth))) && ((_local4.x < ((_arg3 + 1) * GameData.screenWidth))))) && ((_local4.y > ((0 - _arg3) * GameData.screenHeight))))) && ((_local4.y < ((_arg3 + 1) * GameData.screenHeight))))){
return (true);
};
return (false);
}
public static function createPage(_arg1:Class, _arg2:Boolean=true):void{
var _local3:Sprite = new (_arg1);
GameData.Scen.addChild(_local3);
if (_arg2){
addBlack();
};
}
public static function addShake():void{
var _local1:ShakeClass = new ShakeClass(GameData.Scen, 2, 10, GameData.Scen);
}
public static function adjustRotation(_arg1:Number, _arg2:Point, _arg3:MovieClip):int{
var _local4:int;
var _local5:int;
var _local6:uint;
while (_arg3.hitTestPoint((_arg2.x + (Math.sin((((_arg1 + _local4) + 1) * 0.01745)) * 5)), (_arg2.y - (Math.cos((((_arg1 + _local4) + 1) * 0.01745)) * 5)), true)) {
_local4++;
++_local6;
if (_local6 == 90){
break;
};
};
_local6 = 0;
while (_arg3.hitTestPoint((_arg2.x + (Math.sin((((_arg1 - _local5) - 1) * 0.01745)) * 5)), (_arg2.y - (Math.cos((((_arg1 - _local5) - 1) * 0.01745)) * 5)), true)) {
_local5++;
++_local6;
if (_local6 == 90){
break;
};
};
if (_local4 <= _local5){
return (_local4);
};
return (-(_local5));
}
public static function changeXY(_arg1, _arg2:Sprite, _arg3:Point, _arg4:Boolean=true):Point{
_arg3 = _arg1.parent.localToGlobal(_arg3);
if (_arg4){
return (_arg3);
};
return (_arg2.globalToLocal(_arg3));
}
public static function getDistance(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number = (Math.pow((_arg1 - _arg3), 2) + Math.pow((_arg2 - _arg4), 2));
return (Math.sqrt(_local5));
}
public static function addMask():void{
var _local1:Sprite = new Sprite();
_local1.graphics.lineStyle(1);
_local1.graphics.beginFill(0);
_local1.graphics.drawRect(0, 0, GameData.screenWidth, GameData.screenHeight);
GameData.Scen.mask = _local1;
GameData.Scen.addChild(_local1);
}
public static function compareFunc(_arg1, _arg2:int, _arg3:Array):Boolean{
return ((_arg1 == _arg3[0]));
}
public static function addColors(_arg1:Sprite, _arg2:ColorTransform):void{
_arg1.transform.colorTransform = _arg2;
}
public static function adjudgeRotation(_arg1:Number, _arg2:Number):int{
if (_arg1 > 180){
_arg1 = (_arg1 - 360);
} else {
if (_arg1 < -180){
_arg1 = (_arg1 + 360);
};
};
if (((((((_arg1 - _arg2) > 180)) && (((_arg1 - _arg2) < 360)))) || (((((_arg1 - _arg2) > -180)) && (((_arg1 - _arg2) < 0)))))){
return (1);
};
if (((((((_arg1 - _arg2) < 180)) && (((_arg1 - _arg2) > 0)))) || (((((_arg1 - _arg2) < -180)) && (((_arg1 - _arg2) > -360)))))){
return (-1);
};
return (1);
}
public static function getMeBySwf(_arg1:String, _arg2:String):Class{
return ((getDefinitionByName(_arg2) as Class));
}
public static function shareObject():void{
GameData.myShareObject = SharedObject.getLocal(("JALUDO_GUQING_GAME_1" + GameData.VERSON));
var _local1:String;
_local1 = GameData.myShareObject.flush(10000);
}
public static function giveSaveData(_arg1:Boolean=true):void{
if (_arg1){
if (1){
};
};
}
getQualifiedClassName(Major);
getQualifiedClassName(NPC1);
getQualifiedClassName(NPC2);
getQualifiedClassName(NPC3);
getQualifiedClassName(NPC4);
getQualifiedClassName(NPC5);
getQualifiedClassName(Major1);
getQualifiedClassName(Major2);
getQualifiedClassName(Major3);
getQualifiedClassName(Major4);
getQualifiedClassName(Major5);
getQualifiedClassName(Heart);
}
}//package com.gq.system
Section 22
//Map (com.gq.system.Map)
package com.gq.system {
import flash.display.*;
public class Map extends MovieClip {
public var clickTarget;
public function Map():void{
GameData.map = this;
gotoAndStop(GameData.game_level);
}
}
}//package com.gq.system
Section 23
//MonsterCreater (com.gq.system.MonsterCreater)
package com.gq.system {
import com.gq.moveobject.*;
public class MonsterCreater {
private var createCount:uint;
private var createNum:uint;
private var createCD:uint;// = 50
public function MonsterCreater():void{
createCD = 20;
createCount = createCD;
}
public function updataEvent():void{
if ((((++createCount >= createCD)) && (!(GameData.can_pass)))){
createCount = 0;
createMonster();
};
}
public function createObj(_arg1:String, _arg2:String, _arg3:String, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Array, _arg8:uint=0):MoveObject{
var _local9:Class = GameTools.createClass(("com.gq.moveobject." + _arg2));
var _local10:MoveObject = new (_local9);
_local10.init(_arg4, _arg5, _arg6, "stand1");
GameTools.pushArr(GameData.actionArr, _local10);
GameTools.pushArr(GameData.objectArr, _local10);
_local10.createMe(GameData[(_arg1 + "Container")], _arg3, 0, "objects", _arg7);
return (_local10);
}
private function createMonster():void{
}
}
}//package com.gq.system
Section 24
//SoundClass (com.gq.system.SoundClass)
package com.gq.system {
import flash.media.*;
import flash.utils.*;
public class SoundClass {
public static var sound2Channel:SoundChannel = new SoundChannel();
public static var sound1:Sound = new Sound();
public static var sound2:Sound = new Sound();
public static var sound4:Sound = new Sound();
public static var sound3:Sound = new Sound();
public static var time:uint;
public static var sound:Sound = new Sound();
public static var sound4Channel:SoundChannel = new SoundChannel();
public static var sound3Channel:SoundChannel = new SoundChannel();
public static var sound1Channel:SoundChannel = new SoundChannel();
public static var music:Sound = new Sound();
public static var musicChannel:SoundChannel = new SoundChannel();
public static var channelName:String;
public static var currentSoundTransform:SoundTransform = new SoundTransform();
public static var soundName:String;
public static var soundChannel:SoundChannel = new SoundChannel();
public function SoundClass():void{
}
public static function init():void{
playMusic();
}
public static function addMusic(_arg1:String, _arg2:String, _arg3:uint=1):void{
channelName = _arg1;
if (_arg1 == "music"){
SoundClass.currentSoundTransform = GameData.musicTrans;
} else {
SoundClass.currentSoundTransform = GameData.soundTrans;
};
soundName = _arg2;
time = _arg3;
init();
}
public static function playMusic(_arg1:Number=0):void{
var _local2:Class = (getDefinitionByName(soundName) as Class);
var _local3:Sound = new (_local2);
SoundClass[channelName] = _local3;
SoundClass[(channelName + "Channel")].stop();
SoundClass[(channelName + "Channel")] = _local3.play(_arg1, time);
adjustVolume(channelName);
}
public static function playSound():void{
try {
musicChannel = music.play(1, 9999);
currentSoundTransform = GameData.musicTrans;
adjustVolume("music");
} catch(e) {
};
try {
sound4Channel = sound4.play(1, 9999);
currentSoundTransform = GameData.soundTrans;
adjustVolume("sound");
} catch(e) {
};
}
public static function setVolume(_arg1:Number):void{
var _local2:SoundTransform = new SoundTransform();
_local2.volume = _arg1;
GameData.soundTrans.volume = _arg1;
GameData.musicTrans.volume = _arg1;
SoundClass.musicChannel.soundTransform = GameData.musicTrans;
SoundClass.soundChannel.soundTransform = GameData.soundTrans;
SoundClass.sound1Channel.soundTransform = GameData.soundTrans;
SoundClass.sound2Channel.soundTransform = GameData.soundTrans;
SoundClass.sound3Channel.soundTransform = GameData.soundTrans;
SoundClass.sound4Channel.soundTransform = GameData.soundTrans;
}
public static function stopSound():void{
try {
musicChannel.stop();
} catch(e) {
};
try {
soundChannel.stop();
} catch(e) {
};
try {
sound1Channel.stop();
} catch(e) {
};
try {
sound2Channel.stop();
} catch(e) {
};
try {
sound3Channel.stop();
} catch(e) {
};
try {
sound4Channel.stop();
} catch(e) {
};
}
public static function adjustVolume(_arg1:String):void{
SoundClass[(_arg1 + "Channel")].soundTransform = currentSoundTransform;
}
}
}//package com.gq.system
Section 25
//Black (com.gq.ui.Black)
package com.gq.ui {
import flash.display.*;
import flash.events.*;
import com.gq.system.*;
public class Black extends Sprite {
public function Black():void{
init();
}
private function init():void{
drawMySelf();
addEventListener(Event.ENTER_FRAME, updataEvent);
}
private function drawMySelf():void{
graphics.lineStyle(1);
graphics.beginFill(0);
graphics.drawRect(0, 0, GameData.screenWidth, GameData.screenHeight);
}
private function updataEvent(_arg1:Event):void{
alpha = (alpha - 0.05);
if (alpha <= 0){
removeMe();
};
}
private function removeMe():void{
removeEventListener(Event.ENTER_FRAME, updataEvent);
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.gq.ui
Section 26
//Congratulation (com.gq.ui.Congratulation)
package com.gq.ui {
import flash.display.*;
import com.gq.system.*;
public class Congratulation extends Pages {
public var __id3_:MovieClip;
public function Congratulation():void{
super();
try {
getScore();
} catch(e) {
};
__setProp___id3__Congratulation_();
}
public function backFunc():void{
removeMe();
GameSys.removeStage();
GameTools.createPage(Page1);
}
public function againFunc():void{
removeMe();
GameSys.removeStage();
GameData.heartValue = 3;
GameData.game_level = 1;
GameSys.Build();
}
function __setProp___id3__Congratulation_(){
try {
__id3_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id3_.Type = "logo-donepage";
__id3_.Goto = 1;
try {
__id3_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package com.gq.ui
Section 27
//Counter (com.gq.ui.Counter)
package com.gq.ui {
import flash.display.*;
import flash.events.*;
import com.gq.system.*;
public class Counter extends MovieClip {
public function Counter():void{
GameData.isPausing = true;
GameTools.gamePause(true);
addEventListener(Event.ENTER_FRAME, updataEvent);
GameData.Scen.addChild(this);
}
private function removeMe():void{
removeEventListener(Event.ENTER_FRAME, updataEvent);
parent.removeChild(this);
GameData.controlClass = new Ctrl(GameData.topSprite);
GameData.isPausing = false;
GameTools.gamePause(false);
GameData.major._this.mc.stop();
}
public function updataEvent(_arg1:Event):void{
if (currentFrame == totalFrames){
removeMe();
};
}
}
}//package com.gq.ui
Section 28
//GameUI (com.gq.ui.GameUI)
package com.gq.ui {
import flash.display.*;
import flash.events.*;
import com.gq.system.*;
public class GameUI extends Pages {
private var done:Boolean;
private var timeCount:uint;
public var level:MovieClip;
public var time:MovieClip;
public var score:MovieClip;
public var currentCount:uint;
public var __id0_:MovieClip;
public var totalCount:uint;
public var kissBar:MovieClip;
public var life:MovieClip;
public function GameUI():void{
GameData.gameUI = this;
__setProp___id0__GameUI_();
}
public function menuFunc():void{
removeMe();
GameSys.removeStage();
GameTools.createPage(Page1);
}
override protected function init():void{
super.init();
addEventListener(Event.ENTER_FRAME, enterframeHD);
level.gotoAndStop((GameData.game_level + 1));
GameTools.getNum(GameData.time_left, time.numChildren, time);
GameTools.getNum(GameData.total_score, score.numChildren, score);
Heart();
Life();
myBtns.pause.gotoAndStop(1);
myBtns.pause.buttonMode = true;
myBtns.sound.buttonMode = true;
if (GameData.soundTrans.volume == 1){
myBtns.sound.gotoAndStop(1);
} else {
myBtns.sound.gotoAndStop(2);
};
}
private function enterframeHD(_arg1:Event):void{
if (!GameData.isPausing){
updataEvent();
};
}
private function updataEvent():void{
if (currentFrame == totalFrames){
stop();
Heart();
Time();
};
}
public function pauseFunc():void{
if (!GameData.isPausing){
GameData.isPausing = true;
GameTools.gamePause(true);
myBtns.pause.gotoAndStop(2);
} else {
GameData.mouseDown = false;
GameData.major.release();
GameData.isPausing = false;
GameTools.gamePause(false);
myBtns.pause.gotoAndStop(1);
};
}
public function Life():void{
life.gotoAndStop((GameData.heartValue + 1));
}
override public function removeMe():void{
GameData.gameUI = null;
removeEventListener(Event.ENTER_FRAME, enterframeHD);
parent.removeChild(this);
}
function __setProp___id0__GameUI_(){
try {
__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id0_.Type = "logo-ingame";
__id0_.Goto = 1;
try {
__id0_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
private function Heart():void{
kissBar.kissBar.gotoAndStop(uint(GameData.loveValue));
if (GameData.loveValue >= 200){
GameSys.missionComplete();
};
}
private function Time():void{
if ((++timeCount % 30) == 0){
GameData.time_left--;
GameTools.getNum(GameData.time_left, time.numChildren, time);
if (GameData.time_left == 0){
if (GameData.loveValue >= 200){
GameSys.missionComplete();
} else {
GameSys.missionComplete("lose");
};
};
};
}
private function Score():void{
}
public function soundFunc():void{
if (myBtns.sound.currentFrame == 1){
myBtns.sound.gotoAndStop(2);
SoundClass.setVolume(0);
} else {
myBtns.sound.gotoAndStop(1);
SoundClass.setVolume(1);
};
}
}
}//package com.gq.ui
Section 29
//HelpPage (com.gq.ui.HelpPage)
package com.gq.ui {
import flash.events.*;
import com.gq.system.*;
public class HelpPage extends Pages {
public function HelpPage():void{
}
override protected function init():void{
myBtns.addEventListener(MouseEvent.CLICK, clickHD);
}
public function backFunc():void{
GameTools.createPage(Page1);
removeMe();
}
}
}//package com.gq.ui
Section 30
//Lose (com.gq.ui.Lose)
package com.gq.ui {
import flash.display.*;
import com.gq.system.*;
public class Lose extends Pages {
public var score:MovieClip;
public var __id2_:MovieClip;
public function Lose():void{
super();
try {
GameData.total_score = (GameData.total_score + (((((GameData.time_left * (GameData.loveValue / 200)) * 10000) * 0.2) + ((GameData.heartValue * 10000) * 0.4)) + ((GameData.game_level * 0.4) * 10000)));
GameTools.getNum(GameData.total_score, score.numChildren, score);
} catch(e) {
};
__setProp___id2__Lose_();
}
public function backFunc():void{
removeMe();
GameSys.removeStage();
GameTools.createPage(Page1);
}
public function againFunc():void{
removeMe();
GameSys.removeStage();
GameData.heartValue = 3;
GameData.game_level = 1;
GameData.total_score = 0;
GameSys.Build();
}
function __setProp___id2__Lose_(){
try {
__id2_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id2_.Type = "logo-donepage";
__id2_.Goto = 1;
try {
__id2_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package com.gq.ui
Section 31
//Page1 (com.gq.ui.Page1)
package com.gq.ui {
import flash.display.*;
import flash.events.*;
import com.gq.system.*;
import flash.text.*;
public class Page1 extends Pages {
public var __id1_:MovieClip;
public function Page1():void{
__setProp___id1__Page1_();
}
override protected function init():void{
mySound = "title";
myUrl = "moregames-menu";
super.init();
GameData.heartValue = 3;
GameData.game_level = 1;
GameData.total_score = 0;
}
private function showTestButton():void{
var mc:SimpleButton;
var mcClick:Function;
mcClick = function (_arg1:MouseEvent):void{
mc.enabled = false;
GameData.GAME_TESTING = true;
mc.removeEventListener(MouseEvent.CLICK, mcClick);
};
mc = new SimpleButton();
addChild(mc);
mc.x = 630;
mc.y = 30;
var whiteRect:Sprite = new Sprite();
var redRect:Sprite = new Sprite();
GameTools.drawRectangle(whiteRect, 0xFFFFFF, 0, 0, 50, 20);
GameTools.drawRectangle(redRect, 0xFF0000, 0, 0, 50, 20);
mc.upState = whiteRect;
mc.downState = (mc.overState = (mc.hitTestState = redRect));
var _text:TextField = new TextField();
redRect.addChild(_text);
_text.text = "Test";
_text = new TextField();
_text.text = "Test";
whiteRect.addChild(_text);
mc.addEventListener(MouseEvent.CLICK, mcClick);
}
public function helpFunc():void{
removeMe();
GameTools.createPage(HelpPage);
}
public function startFunc():void{
GameSys.Build();
removeMe();
}
function __setProp___id1__Page1_(){
try {
__id1_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id1_.Type = "logo-menu";
__id1_.Goto = 1;
try {
__id1_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
private function showVerson():void{
var _local1:TextField = new TextField();
GameData.Scen.addChild(_local1);
_local1.x = 600;
_local1.height = 20;
_local1.text = ("Verson:" + GameData.VERSON);
}
}
}//package com.gq.ui
Section 32
//Pages (com.gq.ui.Pages)
package com.gq.ui {
import flash.display.*;
import flash.events.*;
import com.gq.system.*;
public class Pages extends MovieClip {
public var myBtns:MovieClip;
protected var mySound:String;// = ""
protected var myCount:uint;
protected var myUrl:String;// = "moregames-donepage"
public function Pages():void{
init();
}
protected function clickHD(_arg1:MouseEvent):void{
var _local2 = this;
_local2[(_arg1.target.name + "Func")]();
SoundClass.addMusic("sound", "press");
}
protected function calcuWho(_arg1:MovieClip, _arg2:Number, _arg3:uint):void{
var _local4:Array = GameTools.getNum((_arg2 * _arg3), _arg1.numChildren);
var _local5:uint;
while (_local5 < _arg1.numChildren) {
(_arg1.getChildAt(_local5) as MovieClip).gotoAndStop((_local4[_local5] + 1));
_local5++;
};
}
protected function myBtnsFunc():void{
}
protected function getScore():void{
myBtns.score.mouseChildren = false;
myBtns.score.mouseEnabled = false;
GameData.total_score = (GameData.total_score + (((((GameData.time_left * (GameData.loveValue / 200)) * 10000) * 0.2) + ((GameData.heartValue * 10000) * 0.4)) + ((GameData.game_level * 0.4) * 10000)));
GameTools.getNum(GameData.total_score, myBtns.score.numChildren, myBtns.score);
}
protected function init():void{
if (mySound != ""){
SoundClass.addMusic("music", mySound, 999);
};
myBtns.addEventListener(MouseEvent.CLICK, clickHD);
}
protected function showScore():void{
}
public function moreFunc():void{
MovieClip(root).LogoMoreGame(myUrl);
}
public function removeMe():void{
parent.removeChild(this);
}
}
}//package com.gq.ui
Section 33
//ShadowEffect (com.gq.ui.ShadowEffect)
package com.gq.ui {
import flash.display.*;
import flash.geom.*;
import com.gq.system.*;
public class ShadowEffect extends MovieClip {
private var shadowBitmapData:BitmapData;
private var blueColor:ColorTransform;
private var shadowBitmap:Bitmap;
public function ShadowEffect(_arg1):void{
blueColor = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
super();
GameTools.pushArr(GameData.effectArr, this);
shadowBitmapData = new BitmapData(_arg1.width, _arg1.height, true, 0);
shadowBitmap = new Bitmap(shadowBitmapData);
addChild(shadowBitmap);
var _local2:Matrix = new Matrix();
_local2.tx = -(_arg1.getBounds(_arg1).x);
_local2.ty = -(_arg1.getBounds(_arg1).y);
shadowBitmap.x = -(_local2.tx);
shadowBitmap.y = -(_local2.ty);
shadowBitmapData.draw(_arg1, _local2);
}
public function resumeMe():void{
}
public function updataEvent():void{
shadowBitmap.alpha = (shadowBitmap.alpha - 0.1);
if (shadowBitmap.alpha <= 0.1){
removeMe();
};
}
public function removeMe():void{
GameTools.cleanupMemory();
GameTools.unPushArr(GameData.effectArr, this);
parent.removeChild(this);
}
public function pauseMe():void{
}
}
}//package com.gq.ui
Section 34
//ShakeClass (com.gq.ui.ShakeClass)
package com.gq.ui {
import flash.display.*;
import flash.events.*;
public class ShakeClass extends Sprite {
private var count:uint;
private var oldX:Number;
private var oldY:Number;
private var controlMc:DisplayObjectContainer;
private var shakeTime:uint;
private var shakePower:uint;
public function ShakeClass(_arg1:DisplayObjectContainer, _arg2:uint, _arg3:uint, _arg4:DisplayObjectContainer){
controlMc = _arg1;
shakePower = _arg2;
shakeTime = _arg3;
init();
_arg4.addChild(this);
}
private function init():void{
oldX = controlMc.x;
oldY = controlMc.y;
addEventListener(Event.ENTER_FRAME, updataEvent);
}
private function updataEvent(_arg1:Event):void{
controlMc.x = (oldX + (((Math.round(Math.random()) * 2) - 1) * shakePower));
controlMc.y = (oldY + (((Math.round(Math.random()) * 2) - 1) * shakePower));
if (++count == shakeTime){
controlMc.x = oldX;
controlMc.y = oldY;
removeMe();
};
}
private function removeMe():void{
removeEventListener(Event.ENTER_FRAME, updataEvent);
parent.removeChild(this);
}
}
}//package com.gq.ui
Section 35
//Warning (com.gq.ui.Warning)
package com.gq.ui {
import flash.display.*;
import com.gq.system.*;
public class Warning extends MovieClip {
private var callBackFunc:Function;
public function Warning():void{
addFrameScript(79, frame80);
SoundClass.addMusic("sound", "warning");
GameTools.pushArr(GameData.actionArr, this);
}
public function init(_arg1:Function):void{
callBackFunc = _arg1;
}
function frame80(){
stop();
}
public function updataEvent():void{
if (currentFrame == totalFrames){
removeMe();
callBackFunc();
};
}
private function removeMe():void{
GameTools.unPushArr(GameData.actionArr, this);
parent.removeChild(this);
}
public function resumeMe():void{
}
public function pauseMe():void{
}
}
}//package com.gq.ui
Section 36
//Win (com.gq.ui.Win)
package com.gq.ui {
import flash.events.*;
import com.gq.system.*;
public class Win extends Pages {
public function Win():void{
}
override protected function init():void{
getScore();
addEventListener(Event.ENTER_FRAME, updataEvent);
}
override protected function clickHD(_arg1:MouseEvent):void{
var evt = _arg1;
try {
var _local3 = this;
_local3[(evt.target.name + "Func")]();
} catch(e) {
};
}
private function updataEvent(_arg1:Event):void{
if (currentFrame == totalFrames){
stop();
myBtns.addEventListener(MouseEvent.CLICK, clickHD);
removeEventListener(Event.ENTER_FRAME, updataEvent);
};
}
public function nextFunc():void{
GameData.game_level++;
removeMe();
GameSys.removeStage();
GameSys.Build();
}
public function backFunc():void{
removeMe();
GameSys.removeStage();
GameTools.createPage(Page1, false);
}
override public function removeMe():void{
myBtns.removeEventListener(MouseEvent.CLICK, clickHD);
parent.removeChild(this);
}
}
}//package com.gq.ui
Section 37
//LOGOTitter_213 (Main_fla.LOGOTitter_213)
package Main_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class LOGOTitter_213 extends MovieClip {
public var Goto:Number;
public var Type:String;
public var Logo:MovieClip;
public function LOGOTitter_213(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
Logo.buttonMode = true;
Logo.mouseChildren = false;
Logo.addEventListener(MouseEvent.CLICK, NewLogo);
Logo.addEventListener(MouseEvent.MOUSE_OVER, Over);
Logo.addEventListener(MouseEvent.MOUSE_OUT, Out);
}
public function NewLogo(_arg1){
if ((MovieClip(root).LogoMoreGame as Function)){
MovieClip(root).LogoMoreGame(Type);
} else {
trace(Type);
trace("loading...Error!");
};
gotoAndStop(3);
}
public function Over(_arg1){
gotoAndStop(2);
}
public function Out(_arg1){
gotoAndStop(1);
}
}
}//package Main_fla
Section 38
//LOGOTitter_214 (Main_fla.LOGOTitter_214)
package Main_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class LOGOTitter_214 extends MovieClip {
public var LogoColor:MovieClip;
public var Logo:MovieClip;
public function LOGOTitter_214(){
addFrameScript(1, frame2);
}
function frame2(){
LogoColor.gotoAndStop(MovieClip(parent).Goto);
gotoAndStop(MovieClip(root).Goto);
}
}
}//package Main_fla
Section 39
//MainTimeline (Main_fla.MainTimeline)
package Main_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.gq.system.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var IntroOK:Boolean;
public var Goto:String;
public var domain:String;
public var ServerFps;
public var TitterIntro:MovieClip;
public var portal:String;
public var Url:String;
public var loader:URLLoader;
public var MochiBotKey:String;
public var utm_content:String;
public var url:String;
public var kissBar:MovieClip;
public var continueButton:Number;
public var branding:String;
public var sender:LocalConnection;
public var GameName:String;
public function MainTimeline(){
addFrameScript(0, frame1, 4, frame5);
}
public function com(_arg1){
var _local2:String;
_local2 = _arg1.target.data.toLowerCase();
trace(_local2);
CuntryType(_local2);
TitterIntro.titterBtn.Logo.gotoAndStop(Goto);
TitterIntro.Loading.gotoAndStop(Goto);
NewLoadingReady();
}
public function BGUrl(_arg1){
if (IntroOK){
LogoMoreGame("intro");
} else {
LogoMoreGame("preloader");
};
}
public function preloader(_arg1){
utm_content = "preloader";
MoreGameURL(true);
}
public function ingameOK(_arg1){
utm_content = "ingame";
MoreGameURL(true);
}
public function gameover(_arg1){
utm_content = "gameover";
MoreGameURL(true);
}
public function CuntryType(_arg1:String){
var _local2:String;
switch (_arg1){
case "mary.com":
_local2 = "MaryCOM";
break;
case "titter.com":
_local2 = "TitterCOM";
break;
case "titter.fr":
_local2 = "TitterFR";
break;
case "titter.es":
_local2 = "TitterES";
break;
case "titter.pt":
_local2 = "TitterPT";
break;
case "titter.nl":
_local2 = "TitterNL";
break;
case "titter.it":
_local2 = "TitterIT";
break;
case "warda.com":
_local2 = "WardaCOM";
break;
case "titter.com.cn":
_local2 = "TitterCOMCN";
break;
case "titter.co.id":
_local2 = "TitterCOID";
break;
case "tessaspiele.de":
_local2 = "TessaspieleDE";
break;
case "tessagames.co.uk":
_local2 = "TessagamesCOUK";
break;
case "titter.pl":
_local2 = "TitterPL";
break;
case "titter.no":
_local2 = "TitterNO";
break;
case "titter.se":
_local2 = "TitterSE";
break;
case "titter.dk":
_local2 = "TitterDK";
break;
case "titter.hu":
_local2 = "TitterHU";
break;
case "titter.gr":
_local2 = "TitterGR";
break;
case "titter.tw":
_local2 = "TitterTW";
break;
case "titter.fi":
_local2 = "TitterFI";
break;
case "irgytessy.ru":
_local2 = "IrgytessyRU";
break;
case "kikirti.com":
_local2 = "KikirtiCOM";
break;
};
Url = ("http://www." + _arg1);
Goto = _local2;
}
public function LogoMoreGame(_arg1:String){
utm_content = _arg1;
MoreGameURL(true);
}
public function GameUrl(){
var _local1:String = ((((((("?utm_campaign=" + GameName) + "&utm_content=") + utm_content) + "&utm_medium=") + branding) + "&utm_source=") + url);
var _local2:String = ("http://www.mary.com/tessa-s-wedding.html" + _local1);
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3);
}
public function youwin(_arg1){
utm_content = "youwin";
MoreGameURL(true);
}
public function menu(_arg1){
utm_content = "menu";
MoreGameURL(true);
}
function frame5(){
new GameDesignClass(this);
}
function frame1(){
MochiBotKey = "29fb4f33";
GameName = "Valentine Kissing";
branding = "original";
continueButton = 1;
ServerFps = stage.frameRate;
stage.frameRate = 30;
stop();
MochiBot.track(this, MochiBotKey);
sender = new LocalConnection();
url = root.loaderInfo.url;
domain = sender.domain;
utm_content = "intro";
TitterIntro.GameURL.addEventListener(MouseEvent.CLICK, BGUrl);
Url = "http://www.mary.com";
Goto = "MaryCOM";
if (domain != "localhost"){
loader = new URLLoader(new URLRequest("http://api.jaludo.com/geoip/index.php?return=domain&type=gameshell&portal=mary"));
loader.addEventListener(Event.COMPLETE, com);
} else {
NewLoadingReady();
};
}
public function NewLoadingReady(){
var onEnterFramee:Function;
onEnterFramee = function (_arg1:Event){
var _local2:Number;
var _local3:Number;
if (framesLoaded == totalFrames){
trace("Loading.......(100%)");
TitterIntro.gotoAndStop(2);
TitterIntro.removeEventListener(Event.ENTER_FRAME, onEnterFramee);
} else {
_local2 = (root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal);
_local3 = Math.round((_local2 * 100));
TitterIntro.LoadingPic.gotoAndStop(_local3);
TitterIntro.loadTxt.text = (_local3 + "%");
};
};
TitterIntro.addEventListener(Event.ENTER_FRAME, onEnterFramee);
}
public function LoadGamePlay(){
SoundMixer.stopAll();
stage.frameRate = ServerFps;
gotoAndStop(5);
trace("动画播放完毕,您的游戏跳到第5帧!");
}
public function intro(_arg1){
utm_content = "intro";
MoreGameURL(true);
}
public function MoreGameURL(_arg1){
var _local2:String = ((((((("?utm_campaign=" + GameName) + "&utm_content=") + utm_content) + "&utm_medium=") + branding) + "&utm_source=") + url);
var _local3:String = (Url + _local2);
var _local4:URLRequest = new URLRequest(_local3);
navigateToURL(_local4);
}
}
}//package Main_fla
Section 40
//Timeline_336 (Main_fla.Timeline_336)
package Main_fla {
import flash.display.*;
public dynamic class Timeline_336 extends MovieClip {
public function Timeline_336(){
addFrameScript(115, frame116);
}
function frame116(){
stop();
}
}
}//package Main_fla
Section 41
//Timeline_348 (Main_fla.Timeline_348)
package Main_fla {
import flash.display.*;
public dynamic class Timeline_348 extends MovieClip {
public function Timeline_348(){
addFrameScript(32, frame33);
}
function frame33(){
stop();
}
}
}//package Main_fla
Section 42
//Timeline_349 (Main_fla.Timeline_349)
package Main_fla {
import flash.display.*;
public dynamic class Timeline_349 extends MovieClip {
public function Timeline_349(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package Main_fla
Section 43
//YDK_1 (Main_fla.YDK_1)
package Main_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class YDK_1 extends MovieClip {
public var Loading:MovieClip;
public var Gif:MovieClip;
public var Loaded:MovieClip;
public var Continue:MovieClip;
public var loadTxt:TextField;
public var LoadingPic:MovieClip;
public var titterBtn:MovieClip;
public var GameURL:SimpleButton;
public function YDK_1(){
addFrameScript(0, frame1, 1, frame2, 150, frame151);
}
function frame151(){
MovieClip(root).LoadGamePlay();
stop();
}
public function run(_arg1){
var _local2:* = root;
var _local3:* = parent;
if (MovieClip(_local2).LoadingGif){
MovieClip(_local2).LoadGamePlay();
} else {
MovieClip(_local2).IntroOK = true;
SoundMixer.stopAll();
play();
};
}
function frame2(){
stop();
Continue.Continue.mouseChildren = false;
Continue.Continue.buttonMode = true;
Continue.Continue.addEventListener(MouseEvent.MOUSE_OVER, run);
}
function frame1(){
stop();
}
}
}//package Main_fla
Section 44
//YDK_11 (Main_fla.YDK_11)
package Main_fla {
import flash.display.*;
public dynamic class YDK_11 extends MovieClip {
public function YDK_11(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Main_fla
Section 45
//YDK_2 (Main_fla.YDK_2)
package Main_fla {
import flash.display.*;
import flash.events.*;
public dynamic class YDK_2 extends MovieClip {
public var role2_mc:MovieClip;
public var Frame:Number;
public function YDK_2(){
addFrameScript(0, frame1, 15, frame16, 24, frame25, 32, frame33, 40, frame41, 127, frame128);
}
function frame1(){
Frame = 20;
}
function frame128(){
stop();
}
public function run(_arg1){
Loading(Frame);
}
function frame33(){
Frame = 60;
addEventListener(Event.ENTER_FRAME, run);
}
function frame25(){
Frame = 40;
addEventListener(Event.ENTER_FRAME, run);
}
function frame41(){
Frame = 80;
addEventListener(Event.ENTER_FRAME, run);
}
function frame16(){
Frame = 20;
addEventListener(Event.ENTER_FRAME, run);
}
public function Loading(_arg1){
var _local2:Number = (root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal);
var _local3:Number = Math.round((_local2 * 100));
if (_local3 < _arg1){
stop();
} else {
removeEventListener(Event.ENTER_FRAME, run);
play();
};
}
}
}//package Main_fla
Section 46
//YDK_21 (Main_fla.YDK_21)
package Main_fla {
import flash.display.*;
public dynamic class YDK_21 extends MovieClip {
public var glowMc:MovieClip;
public var Logo:MovieClip;
public function YDK_21(){
addFrameScript(0, frame1, 5, frame6, 9, frame10);
}
function frame1(){
stop();
}
function frame6(){
stop();
}
function frame10(){
gotoAndPlay(1);
}
}
}//package Main_fla
Section 47
//YDK_22 (Main_fla.YDK_22)
package Main_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class YDK_22 extends MovieClip {
public function YDK_22(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(root).Goto);
stop();
}
}
}//package Main_fla
Section 48
//YDK_8 (Main_fla.YDK_8)
package Main_fla {
import flash.display.*;
public dynamic class YDK_8 extends MovieClip {
public function YDK_8(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Main_fla
Section 49
//YDK_90 (Main_fla.YDK_90)
package Main_fla {
import flash.display.*;
public dynamic class YDK_90 extends MovieClip {
public function YDK_90(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package Main_fla
Section 50
//YDK_94 (Main_fla.YDK_94)
package Main_fla {
import flash.display.*;
public dynamic class YDK_94 extends MovieClip {
public function YDK_94(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Main_fla
Section 51
//YDK_95 (Main_fla.YDK_95)
package Main_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class YDK_95 extends MovieClip {
public function YDK_95(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(root).Goto);
stop();
}
}
}//package Main_fla
Section 52
//YDK_98 (Main_fla.YDK_98)
package Main_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class YDK_98 extends MovieClip {
public function YDK_98(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(root).Goto);
}
}
}//package Main_fla
Section 53
//click (click)
package {
import flash.media.*;
public dynamic class click extends Sound {
}
}//package
Section 54
//kiss (kiss)
package {
import flash.media.*;
public dynamic class kiss extends Sound {
}
}//package
Section 55
//Major_1 (Major_1)
package {
import flash.display.*;
public dynamic class Major_1 extends MovieClip {
public var mc:MovieClip;
}
}//package
Section 56
//Major_2 (Major_2)
package {
import flash.display.*;
public dynamic class Major_2 extends MovieClip {
public var mc:MovieClip;
}
}//package
Section 57
//Major_3 (Major_3)
package {
import flash.display.*;
public dynamic class Major_3 extends MovieClip {
public var mc:MovieClip;
}
}//package
Section 58
//Major_4 (Major_4)
package {
import flash.display.*;
public dynamic class Major_4 extends MovieClip {
public var mc:MovieClip;
}
}//package
Section 59
//Major_5 (Major_5)
package {
import flash.display.*;
public dynamic class Major_5 extends MovieClip {
public var mc:MovieClip;
}
}//package
Section 60
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 61
//Music2 (Music2)
package {
import flash.media.*;
public dynamic class Music2 extends Sound {
}
}//package
Section 62
//NPC_1 (NPC_1)
package {
import flash.display.*;
public dynamic class NPC_1 extends MovieClip {
public var mc:MovieClip;
}
}//package
Section 63
//NPC_2 (NPC_2)
package {
import flash.display.*;
public dynamic class NPC_2 extends MovieClip {
public var mc:MovieClip;
}
}//package
Section 64
//NPC_3 (NPC_3)
package {
import flash.display.*;
public dynamic class NPC_3 extends MovieClip {
public var mc:MovieClip;
}
}//package
Section 65
//NPC_4 (NPC_4)
package {
import flash.display.*;
public dynamic class NPC_4 extends MovieClip {
public var mc:MovieClip;
}
}//package
Section 66
//NPC_5 (NPC_5)
package {
import flash.display.*;
public dynamic class NPC_5 extends MovieClip {
public var mc:MovieClip;
}
}//package
Section 67
//photo (photo)
package {
import flash.media.*;
public dynamic class photo extends Sound {
}
}//package
Section 68
//press (press)
package {
import flash.media.*;
public dynamic class press extends Sound {
}
}//package
Section 69
//title (title)
package {
import flash.media.*;
public dynamic class title extends Sound {
}
}//package
Section 70
//tome (tome)
package {
import flash.media.*;
public dynamic class tome extends Sound {
}
}//package
Section 71
//warning (warning)
package {
import flash.media.*;
public dynamic class warning extends Sound {
}
}//package