Section 1
//ColorMatrix (color.ColorMatrix)
package color {
public class ColorMatrix {
public var matrix:Array;
private static var IDENTITY_MATRIX:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
private static var LENGTH:Number = IDENTITY_MATRIX.length;
private static var DELTA_INDEX:Array = [0, 0.01, 0.02, 0.04, 0.05, 0.06, 0.07, 0.08, 0.1, 0.11, 0.12, 0.14, 0.15, 0.16, 0.17, 0.18, 0.2, 0.21, 0.22, 0.24, 0.25, 0.27, 0.28, 0.3, 0.32, 0.34, 0.36, 0.38, 0.4, 0.42, 0.44, 0.46, 0.48, 0.5, 0.53, 0.56, 0.59, 0.62, 0.65, 0.68, 0.71, 0.74, 0.77, 0.8, 0.83, 0.86, 0.89, 0.92, 0.95, 0.98, 1, 1.06, 1.12, 1.18, 1.24, 1.3, 1.36, 1.42, 1.48, 1.54, 1.6, 1.66, 1.72, 1.78, 1.84, 1.9, 1.96, 2, 2.12, 2.25, 2.37, 2.5, 2.62, 2.75, 2.87, 3, 3.2, 3.4, 3.6, 3.8, 4, 4.3, 4.7, 4.9, 5, 5.5, 6, 6.5, 6.8, 7, 7.3, 7.5, 7.8, 8, 8.4, 8.7, 9, 9.4, 9.6, 9.8, 10];
public function ColorMatrix(){
matrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
}
public function adjustBrightness(_arg1:Number):void{
_arg1 = cleanValue(_arg1, 100);
if ((((_arg1 == 0)) || (isNaN(_arg1)))){
return;
};
multiplyMatrix([1, 0, 0, 0, _arg1, 0, 1, 0, 0, _arg1, 0, 0, 1, 0, _arg1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
}
private function multiplyMatrix(_arg1:Array):void{
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local2:Array = new Array();
var _local3:Number = 0;
while (_local3 < 5) {
_local4 = 0;
while (_local4 < 5) {
_local2[_local4] = matrix[(_local4 + (_local3 * 5))];
_local4++;
};
_local5 = 0;
while (_local5 < 5) {
_local6 = 0;
_local7 = 0;
while (_local7 < 5) {
_local6 = (_local6 + (_arg1[(_local5 + (_local7 * 5))] * _local2[_local7]));
_local7++;
};
matrix[(_local5 + (_local3 * 5))] = _local6;
_local5++;
};
_local3++;
};
}
public function adjustSaturation(_arg1:Number):void{
_arg1 = cleanValue(_arg1, 100);
if ((((_arg1 == 0)) || (isNaN(_arg1)))){
return;
};
var _local2:Number = (1 + ((_arg1)>0) ? ((3 * _arg1) / 100) : (_arg1 / 100));
var _local3:Number = 0.3086;
var _local4:Number = 0.6094;
var _local5:Number = 0.082;
multiplyMatrix([((_local3 * (1 - _local2)) + _local2), (_local4 * (1 - _local2)), (_local5 * (1 - _local2)), 0, 0, (_local3 * (1 - _local2)), ((_local4 * (1 - _local2)) + _local2), (_local5 * (1 - _local2)), 0, 0, (_local3 * (1 - _local2)), (_local4 * (1 - _local2)), ((_local5 * (1 - _local2)) + _local2), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
}
public function adjustHue(_arg1:Number):void{
_arg1 = ((cleanValue(_arg1, 180) / 180) * Math.PI);
if ((((_arg1 == 0)) || (isNaN(_arg1)))){
return;
};
var _local2:Number = Math.cos(_arg1);
var _local3:Number = Math.sin(_arg1);
var _local4:Number = 0.213;
var _local5:Number = 0.715;
var _local6:Number = 0.072;
multiplyMatrix([((_local4 + (_local2 * (1 - _local4))) + (_local3 * -(_local4))), ((_local5 + (_local2 * -(_local5))) + (_local3 * -(_local5))), ((_local6 + (_local2 * -(_local6))) + (_local3 * (1 - _local6))), 0, 0, ((_local4 + (_local2 * -(_local4))) + (_local3 * 0.143)), ((_local5 + (_local2 * (1 - _local5))) + (_local3 * 0.14)), ((_local6 + (_local2 * -(_local6))) + (_local3 * -0.283)), 0, 0, ((_local4 + (_local2 * -(_local4))) + (_local3 * -((1 - _local4)))), ((_local5 + (_local2 * -(_local5))) + (_local3 * _local5)), ((_local6 + (_local2 * (1 - _local6))) + (_local3 * _local6)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
}
public function toString():String{
return ((("ColorMatrix [ " + matrix.join(" , ")) + " ]"));
}
private function fixMatrix(_arg1:Array):Array{
if ((_arg1 is ColorMatrix)){
_arg1 = _arg1.slice(0);
};
if (_arg1.length < LENGTH){
_arg1 = _arg1.slice(0, _arg1.length).concat(IDENTITY_MATRIX.slice(_arg1.length, LENGTH));
} else {
if (_arg1.length > LENGTH){
_arg1 = _arg1.slice(0, LENGTH);
};
};
return (_arg1);
}
private function cleanValue(_arg1:Number, _arg2:Number):Number{
return (Math.min(_arg2, Math.max(-(_arg2), _arg1)));
}
public function adjustContrast(_arg1:Number):void{
var _local2:Number;
_arg1 = cleanValue(_arg1, 100);
if ((((_arg1 == 0)) || (isNaN(_arg1)))){
return;
};
if (_arg1 < 0){
_local2 = (127 + ((_arg1 / 100) * 127));
} else {
_local2 = (_arg1 % 1);
if (_local2 == 0){
_local2 = DELTA_INDEX[_arg1];
} else {
_local2 = ((DELTA_INDEX[(_arg1 << 0)] * (1 - _local2)) + (DELTA_INDEX[((_arg1 << 0) + 1)] * _local2));
};
_local2 = ((_local2 * 127) + 127);
};
multiplyMatrix([(_local2 / 127), 0, 0, 0, (0.5 * (127 - _local2)), 0, (_local2 / 127), 0, 0, (0.5 * (127 - _local2)), 0, 0, (_local2 / 127), 0, (0.5 * (127 - _local2)), 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
}
public function adjustColor(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{
adjustHue(_arg4);
adjustContrast(_arg2);
adjustBrightness(_arg1);
adjustSaturation(_arg3);
}
private function copyMatrix(_arg1:Array):void{
var _local2:Number = LENGTH;
var _local3:Number = 0;
while (_local3 < _local2) {
matrix[_local3] = _arg1[_local3];
_local3++;
};
}
public function concat(_arg1:Array):void{
_arg1 = fixMatrix(_arg1);
if (_arg1.length != LENGTH){
return;
};
multiplyMatrix(_arg1);
}
public function clone():ColorMatrix{
return (new ColorMatrix());
}
public function toArray():Array{
return (matrix.slice(0, 20));
}
}
}//package color
Section 2
//ArrowButton (com.control.ArrowButton)
package com.control {
import common.control.*;
public dynamic class ArrowButton extends GameButton {
}
}//package com.control
Section 3
//TweenLite (com.gs.TweenLite)
package com.gs {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
public class TweenLite {
public var started:Boolean;
public var delay:Number;
protected var _hasUpdate:Boolean;
protected var _subTweens:Array;
public var initted:Boolean;
public var active:Boolean;
public var startTime:Number;
public var target:Object;
public var duration:Number;
protected var _hst:Boolean;
public var gc:Boolean;
protected var _isDisplayObject:Boolean;
public var tweens:Array;
public var vars:Object;
public var ease:Function;
protected var _specialVars:Object;
public var initTime:Number;
public var combinedTimeScale:Number;
private static var _timer:Timer = new Timer(2000);
private static var _classInitted:Boolean;
public static var defaultEase:Function = TweenLite.easeOut;
public static var version:Number = 9.29;
public static var masterList:Dictionary = new Dictionary(false);
public static var currentTime:uint;
public static var overwriteManager:Object;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public static var timingSprite:Sprite = new Sprite();
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
if (_arg1 == null){
return;
};
if (!_classInitted){
currentTime = getTimer();
timingSprite.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
_timer.addEventListener("timer", killGarbage, false, 0, true);
_timer.start();
_classInitted = true;
};
this.vars = _arg3;
this.duration = ((_arg2) || (0.001));
this.delay = ((_arg3.delay) || (0));
this.combinedTimeScale = ((_arg3.timeScale) || (1));
this.active = Boolean((((_arg2 == 0)) && ((this.delay == 0))));
this.target = _arg1;
_isDisplayObject = Boolean((_arg1 is DisplayObject));
if (!(this.vars.ease is Function)){
this.vars.ease = defaultEase;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
this.ease = this.vars.ease;
if (!isNaN(Number(this.vars.autoAlpha))){
this.vars.alpha = Number(this.vars.autoAlpha);
this.vars.visible = Boolean((this.vars.alpha > 0));
};
_specialVars = ((this.vars.isTV)==true) ? this.vars.exposedProps : this.vars;
this.tweens = [];
_subTweens = [];
_hst = (this.initted = false);
this.initTime = currentTime;
this.startTime = (this.initTime + (this.delay * 1000));
var _local4:int = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
if ((((masterList[_arg1] == undefined)) || (((!((_arg1 == null))) && ((_local4 == 1)))))){
masterList[_arg1] = [];
};
masterList[_arg1].push(this);
if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (this.active))){
initTweenVals();
if (this.active){
render((this.startTime + 1));
} else {
render(this.startTime);
};
if (((((!((_specialVars.visible == null))) && ((this.vars.runBackwards == true)))) && (_isDisplayObject))){
this.target.visible = _specialVars.visible;
};
};
}
public function get enabled():Boolean{
return ((this.gc) ? false : true);
}
public function render(_arg1:uint):void{
var _local3:Number;
var _local4:Object;
var _local5:int;
var _local2:Number = ((_arg1 - this.startTime) * 0.001);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4[0][_local4[1]] = (_local4[2] + (_local3 * _local4[3]));
_local5--;
};
if (_hst){
_local5 = (_subTweens.length - 1);
while (_local5 > -1) {
_subTweens[_local5].proxy(_subTweens[_local5], _local2);
_local5--;
};
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
public function set enabled(_arg1:Boolean):void{
var _local2:Array;
var _local3:Boolean;
var _local4:int;
if (_arg1){
if (masterList[this.target] == undefined){
masterList[this.target] = [this];
} else {
_local2 = masterList[this.target];
_local4 = (_local2.length - 1);
while (_local4 > -1) {
if (_local2[_local4] == this){
_local3 = true;
break;
};
_local4--;
};
if (!_local3){
masterList[this.target].push(this);
};
};
};
this.gc = (_arg1) ? false : true;
if (this.gc){
this.active = false;
} else {
this.active = this.started;
};
}
public function activate():void{
this.started = (this.active = true);
if (!this.initted){
initTweenVals();
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
}
public function clear():void{
this.tweens = [];
_subTweens = [];
this.vars = {};
_hst = (_hasUpdate = false);
}
protected function addSubTween(_arg1:String, _arg2:Function, _arg3:Object, _arg4:Object, _arg5:Object=null):void{
var _local6:String;
_subTweens[_subTweens.length] = {name:_arg1, proxy:_arg2, target:_arg3, info:_arg5};
for (_local6 in _arg4) {
if (typeof(_arg4[_local6]) == "number"){
this.tweens[this.tweens.length] = [_arg3, _local6, _arg3[_local6], (_arg4[_local6] - _arg3[_local6]), _arg1];
} else {
this.tweens[this.tweens.length] = [_arg3, _local6, _arg3[_local6], Number(_arg4[_local6]), _arg1];
};
};
_hst = true;
}
public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{
var _local3:String;
var _local4:int;
var _local5:Array;
var _local6:ColorTransform;
var _local7:ColorTransform;
var _local8:Object;
if (((!(_arg1)) && (overwriteManager.enabled))){
overwriteManager.manageOverwrites(this, masterList[this.target]);
};
if ((this.target is Array)){
_local5 = ((this.vars.endArray) || ([]));
_local4 = 0;
while (_local4 < _local5.length) {
if (((!((this.target[_local4] == _local5[_local4]))) && (!((this.target[_local4] == undefined))))){
this.tweens[this.tweens.length] = [this.target, _local4.toString(), this.target[_local4], (_local5[_local4] - this.target[_local4]), _local4.toString()];
};
_local4++;
};
} else {
if (((((!((typeof(_specialVars.tint) == "undefined"))) || ((this.vars.removeTint == true)))) && (_isDisplayObject))){
_local6 = this.target.transform.colorTransform;
_local7 = new ColorTransform();
if (_specialVars.alpha != undefined){
_local7.alphaMultiplier = _specialVars.alpha;
delete _specialVars.alpha;
} else {
_local7.alphaMultiplier = this.target.alpha;
};
if (((!((this.vars.removeTint == true))) && (((((!((_specialVars.tint == null))) && (!((_specialVars.tint == ""))))) || ((_specialVars.tint == 0)))))){
_local7.color = _specialVars.tint;
};
addSubTween("tint", tintProxy, {progress:0}, {progress:1}, {target:this.target, color:_local6, endColor:_local7});
};
if (((!((_specialVars.frame == null))) && (_isDisplayObject))){
addSubTween("frame", frameProxy, {frame:this.target.currentFrame}, {frame:_specialVars.frame}, {target:this.target});
};
if (((!(isNaN(this.vars.volume))) && (this.target.hasOwnProperty("soundTransform")))){
addSubTween("volume", volumeProxy, this.target.soundTransform, {volume:this.vars.volume}, {target:this.target});
};
if (((!((_specialVars.visible == null))) && (_isDisplayObject))){
addSubTween("visible", visibleProxy, {}, {}, {tween:this});
};
for (_local3 in _specialVars) {
if ((((((((((((((((((((((((((((((((((((((_local3 == "ease")) || ((_local3 == "delay")))) || ((_local3 == "overwrite")))) || ((_local3 == "onComplete")))) || ((_local3 == "onCompleteParams")))) || ((_local3 == "runBackwards")))) || ((_local3 == "visible")))) || ((_local3 == "autoOverwrite")))) || ((_local3 == "persist")))) || ((_local3 == "onUpdate")))) || ((_local3 == "onUpdateParams")))) || ((_local3 == "autoAlpha")))) || ((((_local3 == "timeScale")) && (!((this.target is _slot1))))))) || ((_local3 == "onStart")))) || ((_local3 == "onStartParams")))) || ((_local3 == "renderOnStart")))) || ((_local3 == "proxiedEase")))) || ((_local3 == "easeParams")))) || (((_arg1) && (!((_arg2.indexOf(((" " + _local3) + " ")) == -1))))))){
} else {
if (((!(((_isDisplayObject) && ((((((_local3 == "tint")) || ((_local3 == "removeTint")))) || ((_local3 == "frame"))))))) && (!((((_local3 == "volume")) && (this.target.hasOwnProperty("soundTransform"))))))){
if (typeof(_specialVars[_local3]) == "number"){
this.tweens[this.tweens.length] = [this.target, _local3, this.target[_local3], (_specialVars[_local3] - this.target[_local3]), _local3];
} else {
this.tweens[this.tweens.length] = [this.target, _local3, this.target[_local3], Number(_specialVars[_local3]), _local3];
};
};
};
};
};
if (this.vars.runBackwards == true){
_local4 = (this.tweens.length - 1);
while (_local4 > -1) {
_local8 = this.tweens[_local4];
_local8[2] = (_local8[2] + _local8[3]);
_local8[3] = (_local8[3] * -1);
_local4--;
};
};
if (this.vars.onUpdate != null){
_hasUpdate = true;
};
this.initted = true;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function killVars(_arg1:Object):void{
if (overwriteManager.enabled){
overwriteManager.killVars(_arg1, this.vars, this.tweens, _subTweens, []);
};
}
public function complete(_arg1:Boolean=false):void{
if (!_arg1){
if (!this.initted){
initTweenVals();
};
this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale));
render(currentTime);
return;
};
if (this.vars.persist != true){
this.enabled = false;
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
}
public static function frameProxy(_arg1:Object, _arg2:Number=0):void{
_arg1.info.target.gotoAndStop(Math.round(_arg1.target.frame));
}
public static function removeTween(_arg1:TweenLite, _arg2:Boolean=true):void{
if (_arg1 != null){
if (_arg2){
_arg1.clear();
};
_arg1.enabled = false;
};
}
public static function visibleProxy(_arg1:Object, _arg2:Number):void{
var _local3:TweenLite = _arg1.info.tween;
if (_local3.duration == _arg2){
if (((!((_local3.vars.runBackwards == true))) && ((_local3.ease == _local3.vars.ease)))){
_local3.target.visible = _local3.vars.visible;
};
} else {
if (_local3.target.visible != true){
_local3.target.visible = true;
};
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
if (((!((_arg1 == null))) && (!((masterList[_arg1] == undefined))))){
_local3 = masterList[_arg1];
_local4 = (_local3.length - 1);
while (_local4 > -1) {
_local5 = _local3[_local4];
if (((_arg2) && (!(_local5.gc)))){
_local5.complete(false);
};
_local5.clear();
_local4--;
};
delete masterList[_arg1];
};
}
public static function updateAll(_arg1:Event=null):void{
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
var _local2:uint = (currentTime = getTimer());
var _local3:Dictionary = masterList;
for each (_local4 in _local3) {
_local5 = (_local4.length - 1);
while (_local5 > -1) {
_local6 = _local4[_local5];
if (_local6 == null){
} else {
if (_local6.active){
_local6.render(_local2);
} else {
if (_local6.gc){
_local4.splice(_local5, 1);
} else {
if (_local2 >= _local6.startTime){
_local6.activate();
_local6.render(_local2);
};
};
};
};
_local5--;
};
};
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0}));
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function tintProxy(_arg1:Object, _arg2:Number=0):void{
var _local3:Number = _arg1.target.progress;
var _local4:Number = (1 - _local3);
var _local5:Object = _arg1.info.color;
var _local6:Object = _arg1.info.endColor;
_arg1.info.target.transform.colorTransform = new ColorTransform(((_local5.redMultiplier * _local4) + (_local6.redMultiplier * _local3)), ((_local5.greenMultiplier * _local4) + (_local6.greenMultiplier * _local3)), ((_local5.blueMultiplier * _local4) + (_local6.blueMultiplier * _local3)), ((_local5.alphaMultiplier * _local4) + (_local6.alphaMultiplier * _local3)), ((_local5.redOffset * _local4) + (_local6.redOffset * _local3)), ((_local5.greenOffset * _local4) + (_local6.greenOffset * _local3)), ((_local5.blueOffset * _local4) + (_local6.blueOffset * _local3)), ((_local5.alphaOffset * _local4) + (_local6.alphaOffset * _local3)));
}
public static function volumeProxy(_arg1:Object, _arg2:Number=0):void{
_arg1.info.target.soundTransform = _arg1.target;
}
protected static function killGarbage(_arg1:TimerEvent):void{
var _local3:Object;
var _local4:Array;
var _local2:Dictionary = masterList;
for (_local3 in _local2) {
if (_local2[_local3].length == 0){
delete _local2[_local3];
};
};
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package com.gs
Section 4
//FountainC (com.ning.bnt.FountainC)
package com.ning.bnt {
import common.control.*;
public dynamic class FountainC extends GameButton {
}
}//package com.ning.bnt
Section 5
//BoxBG (com.ning.box.BoxBG)
package com.ning.box {
import flash.display.*;
public dynamic class BoxBG extends MovieClip {
}
}//package com.ning.box
Section 6
//NOButton (com.ning.box.NOButton)
package com.ning.box {
import common.control.*;
public dynamic class NOButton extends GameButton {
}
}//package com.ning.box
Section 7
//YESButton (com.ning.box.YESButton)
package com.ning.box {
import flash.display.*;
public dynamic class YESButton extends SimpleButton {
}
}//package com.ning.box
Section 8
//BackButton (com.ning.btn.BackButton)
package com.ning.btn {
import common.control.*;
public dynamic class BackButton extends GameButton {
}
}//package com.ning.btn
Section 9
//CabinetA (com.ning.btn.CabinetA)
package com.ning.btn {
import common.control.*;
public dynamic class CabinetA extends GameButton {
}
}//package com.ning.btn
Section 10
//CabinetB (com.ning.btn.CabinetB)
package com.ning.btn {
import common.control.*;
public dynamic class CabinetB extends GameButton {
}
}//package com.ning.btn
Section 11
//CabinetC (com.ning.btn.CabinetC)
package com.ning.btn {
import common.control.*;
public dynamic class CabinetC extends GameButton {
}
}//package com.ning.btn
Section 12
//CabinetD (com.ning.btn.CabinetD)
package com.ning.btn {
import common.control.*;
public dynamic class CabinetD extends GameButton {
}
}//package com.ning.btn
Section 13
//CabinetE (com.ning.btn.CabinetE)
package com.ning.btn {
import common.control.*;
public dynamic class CabinetE extends GameButton {
}
}//package com.ning.btn
Section 14
//CarpetA (com.ning.btn.CarpetA)
package com.ning.btn {
import common.control.*;
public dynamic class CarpetA extends GameButton {
}
}//package com.ning.btn
Section 15
//CarpetB (com.ning.btn.CarpetB)
package com.ning.btn {
import common.control.*;
public dynamic class CarpetB extends GameButton {
}
}//package com.ning.btn
Section 16
//CarpetC (com.ning.btn.CarpetC)
package com.ning.btn {
import common.control.*;
public dynamic class CarpetC extends GameButton {
}
}//package com.ning.btn
Section 17
//CarpetD (com.ning.btn.CarpetD)
package com.ning.btn {
import common.control.*;
public dynamic class CarpetD extends GameButton {
}
}//package com.ning.btn
Section 18
//CarpetE (com.ning.btn.CarpetE)
package com.ning.btn {
import common.control.*;
public dynamic class CarpetE extends GameButton {
}
}//package com.ning.btn
Section 19
//CeilingA (com.ning.btn.CeilingA)
package com.ning.btn {
import common.control.*;
public dynamic class CeilingA extends GameButton {
}
}//package com.ning.btn
Section 20
//CeilingB (com.ning.btn.CeilingB)
package com.ning.btn {
import common.control.*;
public dynamic class CeilingB extends GameButton {
}
}//package com.ning.btn
Section 21
//CeilingC (com.ning.btn.CeilingC)
package com.ning.btn {
import common.control.*;
public dynamic class CeilingC extends GameButton {
}
}//package com.ning.btn
Section 22
//CeilingD (com.ning.btn.CeilingD)
package com.ning.btn {
import common.control.*;
public dynamic class CeilingD extends GameButton {
}
}//package com.ning.btn
Section 23
//CliffA (com.ning.btn.CliffA)
package com.ning.btn {
import common.control.*;
public dynamic class CliffA extends GameButton {
}
}//package com.ning.btn
Section 24
//CliffB (com.ning.btn.CliffB)
package com.ning.btn {
import common.control.*;
public dynamic class CliffB extends GameButton {
}
}//package com.ning.btn
Section 25
//CliffC (com.ning.btn.CliffC)
package com.ning.btn {
import common.control.*;
public dynamic class CliffC extends GameButton {
}
}//package com.ning.btn
Section 26
//CliffD (com.ning.btn.CliffD)
package com.ning.btn {
import common.control.*;
public dynamic class CliffD extends GameButton {
}
}//package com.ning.btn
Section 27
//CliffE (com.ning.btn.CliffE)
package com.ning.btn {
import common.control.*;
public dynamic class CliffE extends GameButton {
}
}//package com.ning.btn
Section 28
//FenceA (com.ning.btn.FenceA)
package com.ning.btn {
import common.control.*;
public dynamic class FenceA extends GameButton {
}
}//package com.ning.btn
Section 29
//FenceB (com.ning.btn.FenceB)
package com.ning.btn {
import common.control.*;
public dynamic class FenceB extends GameButton {
}
}//package com.ning.btn
Section 30
//FenceC (com.ning.btn.FenceC)
package com.ning.btn {
import common.control.*;
public dynamic class FenceC extends GameButton {
}
}//package com.ning.btn
Section 31
//FenceD (com.ning.btn.FenceD)
package com.ning.btn {
import common.control.*;
public dynamic class FenceD extends GameButton {
}
}//package com.ning.btn
Section 32
//FenceE (com.ning.btn.FenceE)
package com.ning.btn {
import common.control.*;
public dynamic class FenceE extends GameButton {
}
}//package com.ning.btn
Section 33
//FloorA (com.ning.btn.FloorA)
package com.ning.btn {
import common.control.*;
public dynamic class FloorA extends GameButton {
}
}//package com.ning.btn
Section 34
//FloorB (com.ning.btn.FloorB)
package com.ning.btn {
import common.control.*;
public dynamic class FloorB extends GameButton {
}
}//package com.ning.btn
Section 35
//FloorC (com.ning.btn.FloorC)
package com.ning.btn {
import common.control.*;
public dynamic class FloorC extends GameButton {
}
}//package com.ning.btn
Section 36
//FloorD (com.ning.btn.FloorD)
package com.ning.btn {
import common.control.*;
public dynamic class FloorD extends GameButton {
}
}//package com.ning.btn
Section 37
//FountainA (com.ning.btn.FountainA)
package com.ning.btn {
import common.control.*;
public dynamic class FountainA extends GameButton {
}
}//package com.ning.btn
Section 38
//FountainB (com.ning.btn.FountainB)
package com.ning.btn {
import common.control.*;
public dynamic class FountainB extends GameButton {
}
}//package com.ning.btn
Section 39
//FountainD (com.ning.btn.FountainD)
package com.ning.btn {
import common.control.*;
public dynamic class FountainD extends GameButton {
}
}//package com.ning.btn
Section 40
//FountainE (com.ning.btn.FountainE)
package com.ning.btn {
import common.control.*;
public dynamic class FountainE extends GameButton {
}
}//package com.ning.btn
Section 41
//GRobeA (com.ning.btn.GRobeA)
package com.ning.btn {
import common.control.*;
public dynamic class GRobeA extends GameButton {
}
}//package com.ning.btn
Section 42
//GRobeB (com.ning.btn.GRobeB)
package com.ning.btn {
import common.control.*;
public dynamic class GRobeB extends GameButton {
}
}//package com.ning.btn
Section 43
//GRobeC (com.ning.btn.GRobeC)
package com.ning.btn {
import common.control.*;
public dynamic class GRobeC extends GameButton {
}
}//package com.ning.btn
Section 44
//GRobeD (com.ning.btn.GRobeD)
package com.ning.btn {
import common.control.*;
public dynamic class GRobeD extends GameButton {
}
}//package com.ning.btn
Section 45
//GRobeE (com.ning.btn.GRobeE)
package com.ning.btn {
import common.control.*;
public dynamic class GRobeE extends GameButton {
}
}//package com.ning.btn
Section 46
//GRobeF (com.ning.btn.GRobeF)
package com.ning.btn {
import common.control.*;
public dynamic class GRobeF extends GameButton {
}
}//package com.ning.btn
Section 47
//GRobeG (com.ning.btn.GRobeG)
package com.ning.btn {
import common.control.*;
public dynamic class GRobeG extends GameButton {
}
}//package com.ning.btn
Section 48
//GRobeH (com.ning.btn.GRobeH)
package com.ning.btn {
import common.control.*;
public dynamic class GRobeH extends GameButton {
}
}//package com.ning.btn
Section 49
//LightA (com.ning.btn.LightA)
package com.ning.btn {
import common.control.*;
public dynamic class LightA extends GameButton {
}
}//package com.ning.btn
Section 50
//LightB (com.ning.btn.LightB)
package com.ning.btn {
import common.control.*;
public dynamic class LightB extends GameButton {
}
}//package com.ning.btn
Section 51
//LightC (com.ning.btn.LightC)
package com.ning.btn {
import common.control.*;
public dynamic class LightC extends GameButton {
}
}//package com.ning.btn
Section 52
//LightD (com.ning.btn.LightD)
package com.ning.btn {
import common.control.*;
public dynamic class LightD extends GameButton {
}
}//package com.ning.btn
Section 53
//LightE (com.ning.btn.LightE)
package com.ning.btn {
import common.control.*;
public dynamic class LightE extends GameButton {
}
}//package com.ning.btn
Section 54
//PlantA (com.ning.btn.PlantA)
package com.ning.btn {
import common.control.*;
public dynamic class PlantA extends GameButton {
}
}//package com.ning.btn
Section 55
//PlantB (com.ning.btn.PlantB)
package com.ning.btn {
import common.control.*;
public dynamic class PlantB extends GameButton {
}
}//package com.ning.btn
Section 56
//PlantC (com.ning.btn.PlantC)
package com.ning.btn {
import common.control.*;
public dynamic class PlantC extends GameButton {
}
}//package com.ning.btn
Section 57
//PlantD (com.ning.btn.PlantD)
package com.ning.btn {
import common.control.*;
public dynamic class PlantD extends GameButton {
}
}//package com.ning.btn
Section 58
//PlantE (com.ning.btn.PlantE)
package com.ning.btn {
import common.control.*;
public dynamic class PlantE extends GameButton {
}
}//package com.ning.btn
Section 59
//RobeA (com.ning.btn.RobeA)
package com.ning.btn {
import common.control.*;
public dynamic class RobeA extends GameButton {
}
}//package com.ning.btn
Section 60
//RobeB (com.ning.btn.RobeB)
package com.ning.btn {
import common.control.*;
public dynamic class RobeB extends GameButton {
}
}//package com.ning.btn
Section 61
//RobeC (com.ning.btn.RobeC)
package com.ning.btn {
import common.control.*;
public dynamic class RobeC extends GameButton {
}
}//package com.ning.btn
Section 62
//RobeD (com.ning.btn.RobeD)
package com.ning.btn {
import common.control.*;
public dynamic class RobeD extends GameButton {
}
}//package com.ning.btn
Section 63
//RobeE (com.ning.btn.RobeE)
package com.ning.btn {
import common.control.*;
public dynamic class RobeE extends GameButton {
}
}//package com.ning.btn
Section 64
//RobeF (com.ning.btn.RobeF)
package com.ning.btn {
import common.control.*;
public dynamic class RobeF extends GameButton {
}
}//package com.ning.btn
Section 65
//RobeG (com.ning.btn.RobeG)
package com.ning.btn {
import common.control.*;
public dynamic class RobeG extends GameButton {
}
}//package com.ning.btn
Section 66
//RobeH (com.ning.btn.RobeH)
package com.ning.btn {
import common.control.*;
public dynamic class RobeH extends GameButton {
}
}//package com.ning.btn
Section 67
//SculpA (com.ning.btn.SculpA)
package com.ning.btn {
import common.control.*;
public dynamic class SculpA extends GameButton {
}
}//package com.ning.btn
Section 68
//SculpB (com.ning.btn.SculpB)
package com.ning.btn {
import common.control.*;
public dynamic class SculpB extends GameButton {
}
}//package com.ning.btn
Section 69
//SculpC (com.ning.btn.SculpC)
package com.ning.btn {
import common.control.*;
public dynamic class SculpC extends GameButton {
}
}//package com.ning.btn
Section 70
//SculpD (com.ning.btn.SculpD)
package com.ning.btn {
import common.control.*;
public dynamic class SculpD extends GameButton {
}
}//package com.ning.btn
Section 71
//SculpE (com.ning.btn.SculpE)
package com.ning.btn {
import common.control.*;
public dynamic class SculpE extends GameButton {
}
}//package com.ning.btn
Section 72
//ShowArrow (com.ning.btn.ShowArrow)
package com.ning.btn {
import common.control.*;
public dynamic class ShowArrow extends GameButton {
}
}//package com.ning.btn
Section 73
//SkyA (com.ning.btn.SkyA)
package com.ning.btn {
import common.control.*;
public dynamic class SkyA extends GameButton {
}
}//package com.ning.btn
Section 74
//SkyB (com.ning.btn.SkyB)
package com.ning.btn {
import common.control.*;
public dynamic class SkyB extends GameButton {
}
}//package com.ning.btn
Section 75
//SkyC (com.ning.btn.SkyC)
package com.ning.btn {
import common.control.*;
public dynamic class SkyC extends GameButton {
}
}//package com.ning.btn
Section 76
//SkyD (com.ning.btn.SkyD)
package com.ning.btn {
import common.control.*;
public dynamic class SkyD extends GameButton {
}
}//package com.ning.btn
Section 77
//SkyE (com.ning.btn.SkyE)
package com.ning.btn {
import common.control.*;
public dynamic class SkyE extends GameButton {
}
}//package com.ning.btn
Section 78
//SofaA (com.ning.btn.SofaA)
package com.ning.btn {
import common.control.*;
public dynamic class SofaA extends GameButton {
}
}//package com.ning.btn
Section 79
//SofaB (com.ning.btn.SofaB)
package com.ning.btn {
import common.control.*;
public dynamic class SofaB extends GameButton {
}
}//package com.ning.btn
Section 80
//SofaC (com.ning.btn.SofaC)
package com.ning.btn {
import common.control.*;
public dynamic class SofaC extends GameButton {
}
}//package com.ning.btn
Section 81
//SofaD (com.ning.btn.SofaD)
package com.ning.btn {
import common.control.*;
public dynamic class SofaD extends GameButton {
}
}//package com.ning.btn
Section 82
//SofaE (com.ning.btn.SofaE)
package com.ning.btn {
import common.control.*;
public dynamic class SofaE extends GameButton {
}
}//package com.ning.btn
Section 83
//TableA (com.ning.btn.TableA)
package com.ning.btn {
import common.control.*;
public dynamic class TableA extends GameButton {
}
}//package com.ning.btn
Section 84
//TableB (com.ning.btn.TableB)
package com.ning.btn {
import common.control.*;
public dynamic class TableB extends GameButton {
}
}//package com.ning.btn
Section 85
//TableC (com.ning.btn.TableC)
package com.ning.btn {
import common.control.*;
public dynamic class TableC extends GameButton {
}
}//package com.ning.btn
Section 86
//TableD (com.ning.btn.TableD)
package com.ning.btn {
import common.control.*;
public dynamic class TableD extends GameButton {
}
}//package com.ning.btn
Section 87
//TableE (com.ning.btn.TableE)
package com.ning.btn {
import common.control.*;
public dynamic class TableE extends GameButton {
}
}//package com.ning.btn
Section 88
//WallA (com.ning.btn.WallA)
package com.ning.btn {
import common.control.*;
public dynamic class WallA extends GameButton {
}
}//package com.ning.btn
Section 89
//WallB (com.ning.btn.WallB)
package com.ning.btn {
import common.control.*;
public dynamic class WallB extends GameButton {
}
}//package com.ning.btn
Section 90
//WallC (com.ning.btn.WallC)
package com.ning.btn {
import common.control.*;
public dynamic class WallC extends GameButton {
}
}//package com.ning.btn
Section 91
//WallD (com.ning.btn.WallD)
package com.ning.btn {
import common.control.*;
public dynamic class WallD extends GameButton {
}
}//package com.ning.btn
Section 92
//WindowA (com.ning.btn.WindowA)
package com.ning.btn {
import common.control.*;
public dynamic class WindowA extends GameButton {
}
}//package com.ning.btn
Section 93
//WindowB (com.ning.btn.WindowB)
package com.ning.btn {
import common.control.*;
public dynamic class WindowB extends GameButton {
}
}//package com.ning.btn
Section 94
//WindowC (com.ning.btn.WindowC)
package com.ning.btn {
import common.control.*;
public dynamic class WindowC extends GameButton {
}
}//package com.ning.btn
Section 95
//WindowD (com.ning.btn.WindowD)
package com.ning.btn {
import common.control.*;
public dynamic class WindowD extends GameButton {
}
}//package com.ning.btn
Section 96
//WindowE (com.ning.btn.WindowE)
package com.ning.btn {
import common.control.*;
public dynamic class WindowE extends GameButton {
}
}//package com.ning.btn
Section 97
//GameBox (com.ning.components.GameBox)
package com.ning.components {
import flash.events.*;
import event.*;
import common.control.*;
import view.room.*;
import view.garden.*;
import flash.display.*;
import com.ning.box.*;
public class GameBox extends Sprite {
protected var goods:GameGoods;
protected var btns:Array;
protected var $garden:GardenView;
public var noBtn:NOButton;
public var slider:GameHSlider;
public var yesBtn:YESButton;
protected var $room:RoomView;
public function GameBox(){
addChild(new BoxBG());
yesBtn = new YESButton();
yesBtn.x = -52;
yesBtn.y = -4;
yesBtn.doubleClickEnabled = false;
addChild(yesBtn);
noBtn = new NOButton();
noBtn.doubleClickEnabled = false;
noBtn.x = -52;
noBtn.y = -4;
addChild(noBtn);
yesBtn.addEventListener(MouseEvent.CLICK, yesClick);
noBtn.addEventListener(MouseEvent.CLICK, noClick);
slider = new GameHSlider();
slider.x = 7;
slider.y = 171;
slider.addEventListener(GameEvent.HSLIDER_CHANGE, sliderChange);
addChild(slider);
addEventListener(GameEvent.GAME_DOUBLE_CLICK, doubleClick);
yesBtn.mouseEnabled = false;
yesBtn.scaleX = 0.5;
yesBtn.scaleY = 0.5;
}
public function remove():void{
noClick();
if (parent != null){
parent.removeChild(this);
};
}
public function noClick(_arg1:MouseEvent=null):void{
goods.no();
visible = false;
}
protected function btnClick(_arg1:MouseEvent):void{
var _local2:GameButton = (_arg1.currentTarget as GameButton);
if (!_local2.selected){
clear();
_local2.selected = true;
setFrame(_local2);
slider.num = 0;
yesBtn.visible = true;
yesBtn.x = _local2.x;
yesBtn.y = _local2.y;
addChildAt(yesBtn, (numChildren - 1));
};
yesClick();
}
protected function clear():void{
if (btns == null){
return;
};
var _local1:int;
while (_local1 < btns.length) {
btns[_local1].selected = false;
_local1++;
};
yesBtn.visible = false;
}
protected function getInitFrame():int{
return ((goods.currentFrame - 1));
}
protected function init():void{
clear();
var _local1:GameButton = (btns[(goods.currentFrame - 1)] as GameButton);
if (_local1){
_local1.selected = true;
yesBtn.x = _local1.x;
yesBtn.y = _local1.y;
yesBtn.visible = true;
addChildAt(yesBtn, (numChildren - 1));
};
slider.setGoods(goods, goods.num);
trace(goods.num);
}
public function set gameGood(_arg1:Object):void{
goods = (_arg1 as GameGoods);
init();
}
protected function initButton():void{
var _local1:int;
var _local2:GameButton;
while (_local1 < btns.length) {
_local2 = (btns[_local1] as GameButton);
_local2.addEventListener(MouseEvent.CLICK, btnClick);
_local1++;
};
}
protected function yesClick(_arg1:MouseEvent=null):void{
goods.yes();
}
protected function setFrame(_arg1:GameButton):void{
var _local2:int;
var _local3:int;
while (_local3 < btns.length) {
if (_arg1 == btns[_local3]){
_local2 = _local3;
};
_local3++;
};
goods.gotoAndStop((_local2 + 1));
}
protected function getInitGoods():GameGoods{
return (goods);
}
protected function sliderChange(_arg1:GameEvent):void{
yesClick();
}
protected function doubleClick(_arg1:GameEvent):void{
goods.init();
clear();
slider.num = 0;
}
public function set garden(_arg1:GardenView):void{
$garden = _arg1;
}
public function set room(_arg1:RoomView):void{
$room = _arg1;
}
}
}//package com.ning.components
Section 98
//GameGoods (com.ning.components.GameGoods)
package com.ning.components {
import common.view.*;
public class GameGoods extends GameMovieClip {
private var $num:int;
private var frame:Object;
private var tnum:int;
private var temp:Array;
private var $arr:Array;
public function GameGoods(){
init();
}
override public function gotoAndStop(_arg1:Object, _arg2:String=null):void{
super.gotoAndStop(_arg1, _arg2);
}
public function get num():int{
return ($num);
}
public function yes():void{
filters = $arr;
temp = $arr;
tnum = $num;
frame = currentFrame;
}
public function set num(_arg1:int):void{
$num = _arg1;
}
public function init():void{
this.gotoAndStop("null");
frame = "null";
tnum = 0;
$num = 0;
}
override public function set filters(_arg1:Array):void{
super.filters = _arg1;
$arr = _arg1;
}
public function no():void{
filters = temp;
$num = tnum;
gotoAndStop(frame);
}
}
}//package com.ning.components
Section 99
//GameHSlider (com.ning.components.GameHSlider)
package com.ning.components {
import flash.events.*;
import event.*;
import flash.filters.*;
import com.gs.*;
import color.*;
import flash.display.*;
import com.ning.*;
import flash.geom.*;
import common.rule.*;
public class GameHSlider extends Sprite {
protected var $goods:GameGoods;
public var bar:HSliderBar;
public var thumb:HSliderThumb;
public function GameHSlider(){
bar = new HSliderBar();
bar.y = 8;
addChild(bar);
thumb = new HSliderThumb();
addChild(thumb);
bar.addEventListener(MouseEvent.CLICK, barClick);
thumb.addEventListener(MouseEvent.MOUSE_DOWN, thumbDown);
thumb.addEventListener(MouseEvent.MOUSE_UP, stop);
}
private function stop(_arg1:MouseEvent=null):void{
thumb.stopDrag();
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
}
public function setGoods(_arg1:GameGoods, _arg2:int=0):void{
goods = _arg1;
thumb.x = _arg2;
onEnterFrame();
}
public function set goods(_arg1:GameGoods):void{
$goods = _arg1;
}
private function getNumber(_arg1:Number, _arg2:Boolean=false):Number{
if (_arg2){
if (_arg1 < 103){
return (((_arg1 / 103) * 180));
};
return ((((_arg1 - 206) / 103) * 180));
//unresolved jump
};
return (((_arg1 / 206) * 200));
}
private function onEnterFrame(_arg1:Event=null):void{
if (GameRule.isDown == false){
stop();
};
if ($goods == null){
return;
};
var _local2:ColorMatrix = new ColorMatrix();
_local2.adjustColor(0, 0, 0, getNumber(thumb.x, true));
$goods.filters = new Array(new ColorMatrixFilter(_local2.matrix));
$goods.num = thumb.x;
dispatchEvent(new GameEvent(GameEvent.HSLIDER_CHANGE, new Array(new ColorMatrixFilter(_local2.matrix))));
}
private function barClick(_arg1:MouseEvent):void{
var _local2:int = (mouseX - 30);
if (_local2 < 0){
_local2 = 0;
} else {
if (_local2 > 206){
_local2 = 206;
};
};
TweenLite.to(thumb, 0.3, {x:_local2, onComplete:onComplete});
}
private function onComplete():void{
onEnterFrame();
}
public function set num(_arg1:int):void{
thumb.x = _arg1;
onEnterFrame();
}
private function thumbDown(_arg1:MouseEvent):void{
thumb.startDrag(false, new Rectangle(0, 0, 206, 0));
addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
}
}//package com.ning.components
Section 100
//OKButton (com.ning.control.OKButton)
package com.ning.control {
import common.control.*;
public dynamic class OKButton extends GameButton {
}
}//package com.ning.control
Section 101
//StartButton (com.ning.control.StartButton)
package com.ning.control {
import common.control.*;
public dynamic class StartButton extends GameButton {
}
}//package com.ning.control
Section 102
//BarBG (com.ning.BarBG)
package com.ning {
import flash.display.*;
public dynamic class BarBG extends MovieClip {
}
}//package com.ning
Section 103
//BarMask (com.ning.BarMask)
package com.ning {
import flash.display.*;
public dynamic class BarMask extends MovieClip {
}
}//package com.ning
Section 104
//Cabinet (com.ning.Cabinet)
package com.ning {
import com.ning.components.*;
public dynamic class Cabinet extends GameGoods {
}
}//package com.ning
Section 105
//CabinetButton (com.ning.CabinetButton)
package com.ning {
import common.control.*;
public dynamic class CabinetButton extends GameButton {
}
}//package com.ning
Section 106
//CancelButton (com.ning.CancelButton)
package com.ning {
import common.control.*;
public dynamic class CancelButton extends GameButton {
}
}//package com.ning
Section 107
//Carpet (com.ning.Carpet)
package com.ning {
import com.ning.components.*;
public dynamic class Carpet extends GameGoods {
}
}//package com.ning
Section 108
//CarpetButton (com.ning.CarpetButton)
package com.ning {
import common.control.*;
public dynamic class CarpetButton extends GameButton {
}
}//package com.ning
Section 109
//Ceiling (com.ning.Ceiling)
package com.ning {
import com.ning.components.*;
public dynamic class Ceiling extends GameGoods {
}
}//package com.ning
Section 110
//Cliff (com.ning.Cliff)
package com.ning {
import com.ning.components.*;
public dynamic class Cliff extends GameGoods {
}
}//package com.ning
Section 111
//CliffB (com.ning.CliffB)
package com.ning {
import com.ning.components.*;
public dynamic class CliffB extends GameGoods {
}
}//package com.ning
Section 112
//CliffButton (com.ning.CliffButton)
package com.ning {
import common.control.*;
public dynamic class CliffButton extends GameButton {
}
}//package com.ning
Section 113
//DialogueBG (com.ning.DialogueBG)
package com.ning {
import flash.display.*;
public dynamic class DialogueBG extends MovieClip {
}
}//package com.ning
Section 114
//Fence (com.ning.Fence)
package com.ning {
import com.ning.components.*;
public dynamic class Fence extends GameGoods {
}
}//package com.ning
Section 115
//FenceButton (com.ning.FenceButton)
package com.ning {
import common.control.*;
public dynamic class FenceButton extends GameButton {
}
}//package com.ning
Section 116
//Floor (com.ning.Floor)
package com.ning {
import com.ning.components.*;
public dynamic class Floor extends GameGoods {
}
}//package com.ning
Section 117
//Fountain (com.ning.Fountain)
package com.ning {
import com.ning.components.*;
public dynamic class Fountain extends GameGoods {
}
}//package com.ning
Section 118
//FountainButton (com.ning.FountainButton)
package com.ning {
import common.control.*;
public dynamic class FountainButton extends GameButton {
}
}//package com.ning
Section 119
//GardenButton (com.ning.GardenButton)
package com.ning {
import common.control.*;
public dynamic class GardenButton extends GameButton {
}
}//package com.ning
Section 120
//GargenBG (com.ning.GargenBG)
package com.ning {
import flash.display.*;
public dynamic class GargenBG extends MovieClip {
}
}//package com.ning
Section 121
//GargenMen (com.ning.GargenMen)
package com.ning {
import flash.display.*;
public dynamic class GargenMen extends MovieClip {
}
}//package com.ning
Section 122
//GRobe (com.ning.GRobe)
package com.ning {
import com.ning.components.*;
public dynamic class GRobe extends GameGoods {
}
}//package com.ning
Section 123
//GRobeA (com.ning.GRobeA)
package com.ning {
import com.ning.components.*;
public dynamic class GRobeA extends GameGoods {
}
}//package com.ning
Section 124
//GRobeB (com.ning.GRobeB)
package com.ning {
import com.ning.components.*;
public dynamic class GRobeB extends GameGoods {
}
}//package com.ning
Section 125
//GRobeButton (com.ning.GRobeButton)
package com.ning {
import common.control.*;
public dynamic class GRobeButton extends GameButton {
}
}//package com.ning
Section 126
//HSliderBar (com.ning.HSliderBar)
package com.ning {
import flash.display.*;
public dynamic class HSliderBar extends MovieClip {
}
}//package com.ning
Section 127
//HSliderThumb (com.ning.HSliderThumb)
package com.ning {
import flash.display.*;
public dynamic class HSliderThumb extends MovieClip {
}
}//package com.ning
Section 128
//Light (com.ning.Light)
package com.ning {
import com.ning.components.*;
public dynamic class Light extends GameGoods {
}
}//package com.ning
Section 129
//LightButton (com.ning.LightButton)
package com.ning {
import common.control.*;
public dynamic class LightButton extends GameButton {
}
}//package com.ning
Section 130
//Lighting (com.ning.Lighting)
package com.ning {
import com.ning.components.*;
public dynamic class Lighting extends GameGoods {
}
}//package com.ning
Section 131
//LightingButton (com.ning.LightingButton)
package com.ning {
import common.control.*;
public dynamic class LightingButton extends GameButton {
}
}//package com.ning
Section 132
//Logo (com.ning.Logo)
package com.ning {
import flash.events.*;
import common.sound.*;
import flash.display.*;
import flash.net.*;
public dynamic class Logo extends MovieClip {
public var fButton:MovieClip;
public var snd:SoundMannager;
public function Logo(){
addFrameScript(0, frame1);
}
public function fButtonClicked(_arg1:MouseEvent){
var urlRequest:URLRequest;
var e = _arg1;
try {
urlRequest = new URLRequest("http://www.didigames.com/");
navigateToURL(urlRequest, "_blank");
} catch(e:Error) {
};
}
public function over(_arg1:MouseEvent):void{
snd.playBtnSnd();
}
function frame1(){
snd = SoundMannager.getInstance();
fButton.addEventListener(MouseEvent.CLICK, fButtonClicked);
fButton.addEventListener(MouseEvent.MOUSE_OVER, over);
}
}
}//package com.ning
Section 133
//MusicButton (com.ning.MusicButton)
package com.ning {
import flash.display.*;
public dynamic class MusicButton extends MovieClip {
}
}//package com.ning
Section 134
//Plant (com.ning.Plant)
package com.ning {
import com.ning.components.*;
public dynamic class Plant extends GameGoods {
}
}//package com.ning
Section 135
//PlantB (com.ning.PlantB)
package com.ning {
import com.ning.components.*;
public dynamic class PlantB extends GameGoods {
}
}//package com.ning
Section 136
//PlantButton (com.ning.PlantButton)
package com.ning {
import common.control.*;
public dynamic class PlantButton extends GameButton {
}
}//package com.ning
Section 137
//PlantC (com.ning.PlantC)
package com.ning {
import com.ning.components.*;
public dynamic class PlantC extends GameGoods {
}
}//package com.ning
Section 138
//Robe (com.ning.Robe)
package com.ning {
import com.ning.components.*;
public dynamic class Robe extends GameGoods {
}
}//package com.ning
Section 139
//RobeButton (com.ning.RobeButton)
package com.ning {
import common.control.*;
public dynamic class RobeButton extends GameButton {
}
}//package com.ning
Section 140
//RoomButton (com.ning.RoomButton)
package com.ning {
import common.control.*;
public dynamic class RoomButton extends GameButton {
}
}//package com.ning
Section 141
//RoomMen (com.ning.RoomMen)
package com.ning {
import flash.display.*;
public dynamic class RoomMen extends MovieClip {
}
}//package com.ning
Section 142
//Sculp (com.ning.Sculp)
package com.ning {
import com.ning.components.*;
public dynamic class Sculp extends GameGoods {
}
}//package com.ning
Section 143
//SculpButton (com.ning.SculpButton)
package com.ning {
import common.control.*;
public dynamic class SculpButton extends GameButton {
}
}//package com.ning
Section 144
//ShowButton (com.ning.ShowButton)
package com.ning {
import common.control.*;
public dynamic class ShowButton extends GameButton {
}
}//package com.ning
Section 145
//Sky (com.ning.Sky)
package com.ning {
import com.ning.components.*;
public dynamic class Sky extends GameGoods {
}
}//package com.ning
Section 146
//SkyButton (com.ning.SkyButton)
package com.ning {
import common.control.*;
public dynamic class SkyButton extends GameButton {
}
}//package com.ning
Section 147
//Sofa (com.ning.Sofa)
package com.ning {
import com.ning.components.*;
public dynamic class Sofa extends GameGoods {
}
}//package com.ning
Section 148
//SofaButton (com.ning.SofaButton)
package com.ning {
import common.control.*;
public dynamic class SofaButton extends GameButton {
}
}//package com.ning
Section 149
//StartBG (com.ning.StartBG)
package com.ning {
import flash.display.*;
public dynamic class StartBG extends MovieClip {
}
}//package com.ning
Section 150
//Table (com.ning.Table)
package com.ning {
import com.ning.components.*;
public dynamic class Table extends GameGoods {
}
}//package com.ning
Section 151
//TableButton (com.ning.TableButton)
package com.ning {
import common.control.*;
public dynamic class TableButton extends GameButton {
}
}//package com.ning
Section 152
//Wall (com.ning.Wall)
package com.ning {
import com.ning.components.*;
public dynamic class Wall extends GameGoods {
}
}//package com.ning
Section 153
//WallButton (com.ning.WallButton)
package com.ning {
import common.control.*;
public dynamic class WallButton extends GameButton {
}
}//package com.ning
Section 154
//WallText (com.ning.WallText)
package com.ning {
import flash.display.*;
public dynamic class WallText extends MovieClip {
}
}//package com.ning
Section 155
//Window (com.ning.Window)
package com.ning {
import com.ning.components.*;
public dynamic class Window extends GameGoods {
}
}//package com.ning
Section 156
//WindowButton (com.ning.WindowButton)
package com.ning {
import common.control.*;
public dynamic class WindowButton extends GameButton {
}
}//package com.ning
Section 157
//ControlBar (common.control.ControlBar)
package common.control {
import flash.events.*;
import com.ning.components.*;
import common.view.*;
import view.*;
import com.ning.*;
import com.control.*;
public class ControlBar extends GameSprite {
public var roomBtn:RoomButton;
public var left:ArrowButton;
public var cancelBtn:CancelButton;
public var box:GameBox;
public var btnBox:GameSprite;
public var right:ArrowButton;
public var showBtn:ShowButton;
protected var tox:int;// = -36
public var gardenBtn:GardenButton;
protected var max:int;// = 490
protected var main:Main;
public function ControlBar(){
addChild(new BarBG());
btnBox = new GameSprite();
addChild(btnBox);
addEventListener(Event.ADDED_TO_STAGE, addStage);
creat();
}
protected function rightClick(_arg1:MouseEvent):void{
}
private function creat():void{
left = new ArrowButton();
left.x = (271 - 53);
left.y = 17;
addChild(left);
right = new ArrowButton();
right.x = (778 - 54);
right.rotation = 180;
right.y = 48;
addChild(right);
roomBtn = new RoomButton();
roomBtn.x = 18;
roomBtn.y = 0;
addChild(roomBtn);
gardenBtn = new GardenButton();
gardenBtn.x = 83;
gardenBtn.y = 0;
addChild(gardenBtn);
cancelBtn = new CancelButton();
cancelBtn.x = 147;
cancelBtn.y = 6;
addChild(cancelBtn);
showBtn = new ShowButton();
showBtn.x = 737;
showBtn.y = 10;
addChild(showBtn);
var _local1:BarMask = new BarMask();
_local1.x = (295 - 51);
addChild(_local1);
btnBox.mask = _local1;
left.addEventListener(MouseEvent.CLICK, leftClick);
right.addEventListener(MouseEvent.CLICK, rightClick);
roomBtn.addEventListener(MouseEvent.CLICK, roomClick);
gardenBtn.addEventListener(MouseEvent.CLICK, gardenClick);
cancelBtn.addEventListener(MouseEvent.CLICK, cancelClick);
showBtn.addEventListener(MouseEvent.CLICK, showClick);
}
protected function showClick(_arg1:MouseEvent):void{
main.show();
}
protected function gardenClick(_arg1:MouseEvent):void{
main.gardenShow();
}
public function init():void{
}
protected function leftClick(_arg1:MouseEvent):void{
}
private function addStage(_arg1:Event):void{
main = (parent.parent.parent as Main);
}
protected function roomClick(_arg1:MouseEvent):void{
main.roomShow();
}
protected function cancelClick(_arg1:MouseEvent):void{
main.cancel();
}
}
}//package common.control
Section 158
//GameButton (common.control.GameButton)
package common.control {
import flash.events.*;
import event.*;
import common.sound.*;
import flash.filters.*;
import flash.display.*;
public class GameButton extends SimpleButton {
private var snd:SoundMannager;
private var $selected:Boolean;
public function GameButton(){
snd = SoundMannager.getInstance();
super();
this.addEventListener(MouseEvent.ROLL_OVER, over);
doubleClickEnabled = true;
addEventListener(MouseEvent.DOUBLE_CLICK, doubleClick);
}
private function over(_arg1:MouseEvent):void{
snd.playBtnSnd();
}
public function set selected(_arg1:Boolean):void{
$selected = _arg1;
if (_arg1){
this.filters = [getGlowFilter()];
} else {
this.filters = null;
};
}
private function doubleClick(_arg1:MouseEvent):void{
this.dispatchEvent(new GameEvent(GameEvent.GAME_DOUBLE_CLICK, null, true));
}
private function getGlowFilter():GlowFilter{
var _local1:GlowFilter = new GlowFilter();
_local1.alpha = 1;
_local1.blurX = 6;
_local1.blurY = 6;
_local1.color = 43263;
_local1.inner = false;
_local1.knockout = false;
_local1.quality = 1;
_local1.strength = 2;
return (_local1);
}
public function get selected():Boolean{
return ($selected);
}
}
}//package common.control
Section 159
//GameRule (common.rule.GameRule)
package common.rule {
import flash.display.*;
public class GameRule {
public static var isDown:Boolean;
public static function GameBoxMove(_arg1:DisplayObject, _arg2:int, _arg3:int, _arg4:int=50, _arg5:int=9):void{
_arg1.x = (_arg2 - _arg4);
_arg1.y = (_arg3 - _arg5);
}
}
}//package common.rule
Section 160
//SoundMannager (common.sound.SoundMannager)
package common.sound {
import flash.events.*;
import flash.media.*;
public class SoundMannager {
public var start:Class;
private var _isSound:Boolean;// = true
public var bg1:Class;
public var bg2:Class;
private var type:int;
public var btn:Class;
private static var instance:SoundMannager;
public function SoundMannager(_arg1:Private){
start = SoundMannager_start;
bg1 = SoundMannager_bg1;
bg2 = SoundMannager_bg2;
btn = SoundMannager_btn;
super();
}
public function get isSound():Boolean{
return (_isSound);
}
public function playBg1():void{
type = 1;
SoundMixer.stopAll();
if (!_isSound){
return;
};
var _local1:Sound = (new bg1() as Sound);
_local1.play(0, 1000);
}
public function playBtnSnd(_arg1:MouseEvent=null):void{
if (!_isSound){
return;
};
var _local2:Sound = (new btn() as Sound);
_local2.play(0, 1);
}
public function set isSound(_arg1:Boolean):void{
_isSound = _arg1;
if (!_arg1){
SoundMixer.stopAll();
} else {
switch (type){
case 0:
playBSnd();
break;
case 1:
playBg1();
break;
case 2:
playBg2();
break;
};
};
}
public function playBg2():void{
type = 2;
SoundMixer.stopAll();
if (!_isSound){
return;
};
var _local1:Sound = (new bg2() as Sound);
_local1.play(0, 1000);
}
public function playBSnd():void{
type = 0;
if (!_isSound){
return;
};
var _local1:Sound = (new start() as Sound);
_local1.play(0, 1000);
}
public static function getInstance():SoundMannager{
if (instance == null){
instance = new SoundMannager(new Private());
};
return (instance);
}
}
}//package common.sound
class Private {
private function Private(){
}
}
Section 161
//SoundMannager_bg1 (common.sound.SoundMannager_bg1)
package common.sound {
import mx.core.*;
public class SoundMannager_bg1 extends SoundAsset {
}
}//package common.sound
Section 162
//SoundMannager_bg2 (common.sound.SoundMannager_bg2)
package common.sound {
import mx.core.*;
public class SoundMannager_bg2 extends SoundAsset {
}
}//package common.sound
Section 163
//SoundMannager_btn (common.sound.SoundMannager_btn)
package common.sound {
import mx.core.*;
public class SoundMannager_btn extends SoundAsset {
}
}//package common.sound
Section 164
//SoundMannager_start (common.sound.SoundMannager_start)
package common.sound {
import mx.core.*;
public class SoundMannager_start extends SoundAsset {
}
}//package common.sound
Section 165
//GameMovieClip (common.view.GameMovieClip)
package common.view {
import flash.display.*;
public class GameMovieClip extends MovieClip {
public function removeAllChild():void{
while (numChildren) {
removeChildAt(0);
};
}
}
}//package common.view
Section 166
//GameSprite (common.view.GameSprite)
package common.view {
import flash.display.*;
public class GameSprite extends Sprite {
public function removeAllChild():void{
while (numChildren) {
removeChildAt(0);
};
}
}
}//package common.view
Section 167
//GameEvent (event.GameEvent)
package event {
import flash.events.*;
public class GameEvent extends Event {
public var data:Object;
public static var GAME_START:String = "gameStart";
public static var HSLIDER_CHANGE:String = "hsliderChange";
public static var GAME_DOUBLE_CLICK:String = "GAME_DOUBLE_CLICK";
public function GameEvent(_arg1:String, _arg2:Object=null, _arg3:Boolean=false){
this.data = _arg2;
super(_arg1, _arg3);
}
}
}//package event
Section 168
//GameLoading (game.GameLoading)
package game {
import flash.events.*;
import view.*;
public dynamic class GameLoading extends Loading {
public var a:int;
public function GameLoading(){
addFrameScript(0, frame1, 88, frame89, 90, frame91, 264, frame265);
}
function frame1(){
stop();
}
function frame89(){
a = 1;
trace(a);
}
function frame91(){
a = 1;
}
function frame265(){
stop();
this.dispatchEvent(new Event("gameNext"));
trace("gameNext");
}
}
}//package game
Section 169
//didi_source_backfds_4 (Lloadingy_fla.didi_source_backfds_4)
package Lloadingy_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class didi_source_backfds_4 extends MovieClip {
public var fButton:SimpleButton;
public function didi_source_backfds_4(){
addFrameScript(0, frame1);
}
public function fButtonClicked(_arg1:MouseEvent){
var urlRequest:URLRequest;
var e = _arg1;
try {
urlRequest = new URLRequest("http://www.didigames.com/");
navigateToURL(urlRequest, "_blank");
} catch(e:Error) {
};
}
function frame1(){
fButton.addEventListener(MouseEvent.CLICK, fButtonClicked);
}
}
}//package Lloadingy_fla
Section 170
//Timeline_19 (Lloadingy_fla.Timeline_19)
package Lloadingy_fla {
import flash.display.*;
public dynamic class Timeline_19 extends MovieClip {
public function Timeline_19(){
addFrameScript(0, frame1);
}
function frame1(){
mouseEnabled = false;
}
}
}//package Lloadingy_fla
Section 171
//Timeline_6 (Lloadingy_fla.Timeline_6)
package Lloadingy_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_6 extends MovieClip {
public var fButton:SimpleButton;
public function Timeline_6(){
addFrameScript(0, frame1, 59, frame60);
}
public function fButtonClicked(_arg1:MouseEvent){
var urlRequest:URLRequest;
var e = _arg1;
try {
urlRequest = new URLRequest("http://www.didigames.com/");
navigateToURL(urlRequest, "_blank");
} catch(e:Error) {
};
}
function frame1(){
if ((parent as MovieClip).a == 1){
play();
} else {
stop();
};
fButton.addEventListener(MouseEvent.CLICK, fButtonClicked);
}
function frame60(){
stop();
}
}
}//package Lloadingy_fla
Section 172
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 173
//mx_internal (mx.core.mx_internal)
package mx.core {
public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal";
}//package mx.core
Section 174
//SoundAsset (mx.core.SoundAsset)
package mx.core {
import flash.media.*;
public class SoundAsset extends Sound implements IFlexAsset {
mx_internal static const VERSION:String = "4.0.0.14159";
}
}//package mx.core
Section 175
//FenceBox (view.garden.control.FenceBox)
package view.garden.control {
import com.ning.components.*;
import com.ning.btn.*;
import common.rule.*;
public class FenceBox extends GameBox {
public var fence1:FenceA;
public var fence2:FenceB;
public var fence3:FenceC;
public var fence4:FenceD;
public var fence5:FenceE;
public function FenceBox(){
creat();
}
private function creat():void{
fence1 = new FenceA();
GameRule.GameBoxMove(fence1, 60, 23);
addChild(fence1);
fence2 = new FenceB();
GameRule.GameBoxMove(fence2, 208, 30);
addChild(fence2);
fence3 = new FenceC();
GameRule.GameBoxMove(fence3, 64, 76);
addChild(fence3);
fence4 = new FenceD();
GameRule.GameBoxMove(fence4, 203, 84);
addChild(fence4);
fence5 = new FenceE();
GameRule.GameBoxMove(fence5, 64, 129);
addChild(fence5);
btns = [fence1, fence2, fence3, fence4, fence5];
initButton();
}
}
}//package view.garden.control
Section 176
//FountainBox (view.garden.control.FountainBox)
package view.garden.control {
import com.ning.components.*;
import com.ning.btn.*;
import com.ning.bnt.*;
import common.rule.*;
public class FountainBox extends GameBox {
public var fountain4:FountainD;
public var fountain5:FountainE;
public var fountain1:FountainA;
public var fountain2:FountainB;
public var fountain3:FountainC;
public function FountainBox(){
creat();
}
private function creat():void{
fountain1 = new FountainA();
GameRule.GameBoxMove(fountain1, 58, 31);
addChild(fountain1);
fountain2 = new FountainB();
GameRule.GameBoxMove(fountain2, 156, (21 + 10));
addChild(fountain2);
fountain3 = new FountainC();
GameRule.GameBoxMove(fountain3, 245, 24);
addChild(fountain3);
fountain4 = new FountainD();
GameRule.GameBoxMove(fountain4, 84, 106);
addChild(fountain4);
fountain5 = new FountainE();
GameRule.GameBoxMove(fountain5, 149, (113 + 18));
addChild(fountain5);
btns = [fountain1, fountain2, fountain3, fountain4, fountain5];
initButton();
}
}
}//package view.garden.control
Section 177
//GardenBar (view.garden.control.GardenBar)
package view.garden.control {
import flash.events.*;
import common.control.*;
import view.garden.*;
import com.ning.*;
public class GardenBar extends ControlBar {
public var robe:GRobeButton;
public var fountainBtn:FountainButton;
public var fenceBtn:FenceButton;
public var plantBtn:PlantButton;
public var sculpBtn:SculpButton;
public var skyBtn:SkyButton;
public function GardenBar(){
creat();
}
private function plantClick(_arg1:MouseEvent):void{
if (box){
box.remove();
};
if (main.isShow){
main.cancel();
};
box = new PlantBox();
box.y = (-(box.height) + 5);
box.x = ((_arg1.currentTarget as GameButton).x + btnBox.x);
if (box.x > max){
box.x = max;
};
box.garden = (parent as GardenView);
addChild(box);
}
private function creat():void{
fenceBtn = new FenceButton();
fenceBtn.x = (291 + tox);
fenceBtn.y = 12;
btnBox.addChild(fenceBtn);
fenceBtn.addEventListener(MouseEvent.CLICK, fenceClick);
skyBtn = new SkyButton();
skyBtn.x = (378 + tox);
skyBtn.y = 8;
btnBox.addChild(skyBtn);
skyBtn.addEventListener(MouseEvent.CLICK, skyClick);
fountainBtn = new FountainButton();
fountainBtn.x = (443 + tox);
fountainBtn.y = 31;
btnBox.addChild(fountainBtn);
fountainBtn.addEventListener(MouseEvent.CLICK, fountainClick);
sculpBtn = new SculpButton();
sculpBtn.x = (508 + tox);
sculpBtn.y = 10;
btnBox.addChild(sculpBtn);
sculpBtn.addEventListener(MouseEvent.CLICK, sculpClick);
plantBtn = new PlantButton();
plantBtn.x = (547 + tox);
plantBtn.y = 5;
btnBox.addChild(plantBtn);
plantBtn.addEventListener(MouseEvent.CLICK, plantClick);
robe = new GRobeButton();
robe.x = (590 + tox);
robe.y = 19;
btnBox.addChild(robe);
robe.addEventListener(MouseEvent.CLICK, robeClick);
}
private function skyClick(_arg1:MouseEvent):void{
if (box){
box.remove();
};
if (main.isShow){
main.cancel();
};
box = new SkyBox();
box.y = (-(box.height) + 5);
box.x = ((_arg1.currentTarget as GameButton).x + btnBox.x);
if (box.x > max){
box.x = max;
};
box.gameGood = (parent as GardenView).sky;
addChild(box);
}
private function robeClick(_arg1:MouseEvent):void{
if (box){
box.remove();
};
if (main.isShow){
main.cancel();
};
box = new GRobeBox();
box.y = (-217 + 5);
box.x = ((_arg1.currentTarget as GameButton).x + btnBox.x);
if (box.x > max){
box.x = max;
};
box.garden = (parent as GardenView);
addChild(box);
}
private function fountainClick(_arg1:MouseEvent):void{
if (box){
box.remove();
};
if (main.isShow){
main.cancel();
};
box = new FountainBox();
box.y = (-(box.height) + 5);
box.x = ((_arg1.currentTarget as GameButton).x + btnBox.x);
if (box.x > max){
box.x = max;
};
box.gameGood = (parent as GardenView).fountain;
addChild(box);
}
private function fenceClick(_arg1:MouseEvent):void{
if (box){
box.remove();
};
if (main.isShow){
main.cancel();
};
box = new FenceBox();
box.y = (-(box.height) + 5);
box.x = ((_arg1.currentTarget as GameButton).x + btnBox.x);
if (box.x > max){
box.x = max;
};
box.gameGood = (parent as GardenView).fence;
addChild(box);
}
private function sculpClick(_arg1:MouseEvent):void{
if (box){
box.remove();
};
if (main.isShow){
main.cancel();
};
box = new SculpBox();
box.y = (-(box.height) + 5);
box.x = ((_arg1.currentTarget as GameButton).x + btnBox.x);
if (box.x > max){
box.x = max;
};
box.gameGood = (parent as GardenView).sculp;
addChild(box);
}
}
}//package view.garden.control
Section 178
//GRobeBox (view.garden.control.GRobeBox)
package view.garden.control {
import flash.events.*;
import event.*;
import com.ning.components.*;
import common.control.*;
import view.garden.*;
import com.ning.btn.*;
import common.rule.*;
public class GRobeBox extends GameBox {
public var gRobe1:GRobeA;
public var gRobe2:GRobeB;
public var gRobe3:GRobeC;
public var gRobe4:GRobeD;
public var gRobe5:GRobeE;
public var gRobe6:GRobeF;
public var gRobe7:GRobeG;
public var gRobe8:GRobeH;
public function GRobeBox(){
creat();
}
override public function noClick(_arg1:MouseEvent=null):void{
$garden.robe.no();
$garden.robe1.no();
$garden.robe2.no();
visible = false;
}
private function creat():void{
gRobe1 = new GRobeA();
GameRule.GameBoxMove(gRobe1, (48 + 10), (78 + 34));
addChild(gRobe1);
gRobe2 = new GRobeB();
GameRule.GameBoxMove(gRobe2, 200, 13);
addChild(gRobe2);
gRobe3 = new GRobeC();
GameRule.GameBoxMove(gRobe3, 193, 121);
addChild(gRobe3);
gRobe4 = new GRobeD();
GameRule.GameBoxMove(gRobe4, 193, 52);
addChild(gRobe4);
gRobe5 = new GRobeE();
GameRule.GameBoxMove(gRobe5, 272, 51);
addChild(gRobe5);
gRobe6 = new GRobeF();
GameRule.GameBoxMove(gRobe6, 55, 18);
addChild(gRobe6);
gRobe7 = new GRobeG();
GameRule.GameBoxMove(gRobe7, 280, 122);
addChild(gRobe7);
gRobe8 = new GRobeH();
GameRule.GameBoxMove(gRobe8, 125, (35 + 18));
addChild(gRobe8);
btns = [gRobe1, gRobe2, gRobe3, gRobe4, gRobe5, gRobe6, gRobe7, gRobe8];
initButton();
}
override protected function init():void{
clear();
var _local1:GameButton = (btns[($garden.robe.currentFrame - 1)] as GameButton);
if (_local1){
yesBtn.x = _local1.x;
yesBtn.y = _local1.y;
yesBtn.visible = true;
addChildAt(yesBtn, (numChildren - 1));
_local1.selected = true;
};
slider.setGoods($garden.robe, $garden.robe.num);
}
override protected function getInitFrame():int{
return (($garden.robe.currentFrame - 1));
}
override protected function yesClick(_arg1:MouseEvent=null):void{
$garden.robe.yes();
$garden.robe1.yes();
$garden.robe2.yes();
}
override public function set garden(_arg1:GardenView):void{
$garden = _arg1;
init();
}
override protected function setFrame(_arg1:GameButton):void{
var _local2:int;
var _local3:int;
while (_local3 < btns.length) {
if (_arg1 == btns[_local3]){
_local2 = _local3;
};
_local3++;
};
$garden.robe.gotoAndStop((_local2 + 1));
$garden.robe1.gotoAndStop((_local2 + 1));
$garden.robe2.gotoAndStop((_local2 + 1));
}
override protected function getInitGoods():GameGoods{
return ($garden.robe);
}
override protected function sliderChange(_arg1:GameEvent):void{
$garden.robe1.filters = (_arg1.data as Array);
$garden.robe2.filters = (_arg1.data as Array);
}
override protected function doubleClick(_arg1:GameEvent):void{
$garden.robe.init();
$garden.robe1.init();
$garden.robe2.init();
clear();
slider.num = 0;
}
}
}//package view.garden.control
Section 179
//PlantBox (view.garden.control.PlantBox)
package view.garden.control {
import flash.events.*;
import event.*;
import com.ning.components.*;
import common.control.*;
import view.garden.*;
import com.ning.btn.*;
import common.rule.*;
public class PlantBox extends GameBox {
public var plant1:PlantA;
public var plant2:PlantB;
public var plant3:PlantC;
public var plant5:PlantE;
public var plant4:PlantD;
public function PlantBox(){
creat();
}
override protected function getInitFrame():int{
return (($garden.plant.currentFrame - 1));
}
override protected function yesClick(_arg1:MouseEvent=null):void{
$garden.plant.yes();
$garden.plant1.yes();
$garden.plant2.yes();
}
private function creat():void{
plant1 = new PlantA();
GameRule.GameBoxMove(plant1, (29 + 22), (6 + 22));
addChild(plant1);
plant2 = new PlantB();
GameRule.GameBoxMove(plant2, 173, 32);
addChild(plant2);
plant3 = new PlantC();
GameRule.GameBoxMove(plant3, 0xFF, 18);
addChild(plant3);
plant4 = new PlantD();
GameRule.GameBoxMove(plant4, 83, 140);
addChild(plant4);
plant5 = new PlantE();
GameRule.GameBoxMove(plant5, 218, 147);
addChild(plant5);
btns = [plant1, plant2, plant3, plant4, plant5];
initButton();
}
override protected function setFrame(_arg1:GameButton):void{
var _local2:int;
var _local3:int;
while (_local3 < btns.length) {
if (_arg1 == btns[_local3]){
_local2 = _local3;
};
_local3++;
};
$garden.plant.gotoAndStop((_local2 + 1));
$garden.plant1.gotoAndStop((_local2 + 1));
$garden.plant2.gotoAndStop((_local2 + 1));
}
override public function set garden(_arg1:GardenView):void{
$garden = _arg1;
init();
}
override public function noClick(_arg1:MouseEvent=null):void{
$garden.plant.no();
$garden.plant1.no();
$garden.plant2.no();
visible = false;
}
override protected function doubleClick(_arg1:GameEvent):void{
$garden.plant.init();
$garden.plant1.init();
$garden.plant2.init();
clear();
slider.num = 0;
}
override protected function getInitGoods():GameGoods{
return ($garden.plant);
}
override protected function sliderChange(_arg1:GameEvent):void{
$garden.plant1.filters = (_arg1.data as Array);
$garden.plant2.filters = (_arg1.data as Array);
}
override protected function init():void{
clear();
var _local1:GameButton = (btns[($garden.plant.currentFrame - 1)] as GameButton);
if (_local1){
yesBtn.x = _local1.x;
yesBtn.y = _local1.y;
yesBtn.visible = true;
addChildAt(yesBtn, (numChildren - 1));
_local1.selected = true;
};
slider.setGoods($garden.plant, $garden.plant.num);
}
}
}//package view.garden.control
Section 180
//SculpBox (view.garden.control.SculpBox)
package view.garden.control {
import com.ning.components.*;
import com.ning.btn.*;
import common.rule.*;
public class SculpBox extends GameBox {
public var sculp1:SculpA;
public var sculp2:SculpB;
public var sculp3:SculpC;
public var sculp4:SculpD;
public var sculp5:SculpE;
public function SculpBox(){
creat();
}
private function creat():void{
sculp1 = new SculpA();
GameRule.GameBoxMove(sculp1, 94, 23);
addChild(sculp1);
sculp2 = new SculpB();
GameRule.GameBoxMove(sculp2, 178, 33);
addChild(sculp2);
sculp3 = new SculpC();
GameRule.GameBoxMove(sculp3, 86, 98);
addChild(sculp3);
sculp4 = new SculpD();
GameRule.GameBoxMove(sculp4, 190, 88);
addChild(sculp4);
sculp5 = new SculpE();
GameRule.GameBoxMove(sculp5, 274, 40);
addChild(sculp5);
btns = [sculp1, sculp2, sculp3, sculp4, sculp5];
initButton();
}
}
}//package view.garden.control
Section 181
//SkyBox (view.garden.control.SkyBox)
package view.garden.control {
import com.ning.components.*;
import com.ning.btn.*;
import common.rule.*;
public class SkyBox extends GameBox {
public var sky1:SkyA;
public var sky2:SkyB;
public var sky3:SkyC;
public var sky4:SkyD;
public var sky5:SkyE;
public function SkyBox(){
creat();
}
private function creat():void{
sky1 = new SkyA();
GameRule.GameBoxMove(sky1, 63, 22);
addChild(sky1);
sky2 = new SkyB();
GameRule.GameBoxMove(sky2, 155, 22);
addChild(sky2);
sky3 = new SkyC();
GameRule.GameBoxMove(sky3, 247, 22);
addChild(sky3);
sky4 = new SkyD();
GameRule.GameBoxMove(sky4, 63, 91);
addChild(sky4);
sky5 = new SkyE();
GameRule.GameBoxMove(sky5, 153, 92);
addChild(sky5);
btns = [sky1, sky2, sky3, sky4, sky5];
initButton();
}
}
}//package view.garden.control
Section 182
//GardenView (view.garden.GardenView)
package view.garden {
import flash.events.*;
import com.gs.*;
import common.view.*;
import com.ning.*;
import view.garden.control.*;
import flash.utils.*;
public class GardenView extends GameSprite {
public var robe:GRobe;
public var bg:GargenBG;
public var bar:GardenBar;
public var men:GargenMen;
public var sky:Sky;
private var hideTimer:Timer;
public var plant2:PlantC;
public var sculp:Sculp;
public var plant:Plant;
public var plant1:PlantB;
public var fence:Fence;
public var robe2:GRobeB;
public var fountain:Fountain;
public var robe1:GRobeA;
public function GardenView(){
creat();
hideTimer = new Timer(300, 1);
hideTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
}
public function cancel():void{
bar.visible = true;
sky.init();
plant.init();
fence.init();
robe.init();
sculp.init();
fountain.init();
men.visible = false;
bar.init();
plant1.init();
plant2.init();
robe1.init();
}
public function hideBar():void{
TweenLite.to(bar, 0.5, {y:595});
}
private function creat():void{
bg = new GargenBG();
bg.x = 0;
bg.y = 280;
addChild(bg);
sky = new Sky();
sky.x = 0;
sky.y = 0;
addChild(sky);
plant = new Plant();
plant.x = 0;
plant.y = 8;
addChild(plant);
fence = new Fence();
fence.x = -24;
fence.y = 317;
addChild(fence);
plant2 = new PlantC();
addChild(plant2);
robe = new GRobe();
robe.x = -5;
robe.y = 248;
addChild(robe);
sculp = new Sculp();
sculp.x = 421;
sculp.y = 398;
addChild(sculp);
plant1 = new PlantB();
addChild(plant1);
robe1 = new GRobeA();
addChild(robe1);
fountain = new Fountain();
fountain.x = 33;
fountain.y = 478;
addChild(fountain);
robe2 = new GRobeB();
addChild(robe2);
men = new GargenMen();
men.x = 291;
men.y = 243;
addChild(men);
bar = new GardenBar();
bar.x = 6;
bar.y = 534;
addChild(bar);
bar.addEventListener(MouseEvent.ROLL_OVER, barOver);
bar.addEventListener(MouseEvent.ROLL_OUT, barOut);
}
public function hide():void{
visible = false;
if (bar.box){
bar.box.remove();
};
}
private function barOver(_arg1:MouseEvent):void{
showBar();
hideTimer.reset();
}
public function showBar():void{
TweenLite.to(bar, 0.5, {y:534});
}
public function initBar():void{
bar.y = 534;
}
private function barOut(_arg1:MouseEvent):void{
if (((((!(bar.box)) || (!(bar.contains(bar.box))))) || (!(bar.box.visible)))){
hideTimer.start();
};
}
public function show():void{
bar.visible = false;
men.visible = true;
if (bar.box){
bar.box.remove();
};
}
private function onTimerComplete(_arg1:TimerEvent):void{
hideBar();
}
}
}//package view.garden
Section 183
//CabinetBox (view.room.control.CabinetBox)
package view.room.control {
import com.ning.components.*;
import com.ning.btn.*;
import common.rule.*;
public class CabinetBox extends GameBox {
public var cabinet1:CabinetA;
public var cabinet2:CabinetB;
public var cabinet3:CabinetC;
public var cabinet4:CabinetD;
public var cabinet5:CabinetE;
public function CabinetBox(){
creat();
}
private function creat():void{
cabinet1 = new CabinetA();
GameRule.GameBoxMove(cabinet1, 78, 20, 50, 9);
addChild(cabinet1);
cabinet2 = new CabinetB();
GameRule.GameBoxMove(cabinet2, 233, 11, 50, 9);
addChild(cabinet2);
cabinet3 = new CabinetC();
GameRule.GameBoxMove(cabinet3, 151, 12, 50, 9);
addChild(cabinet3);
cabinet4 = new CabinetD();
GameRule.GameBoxMove(cabinet4, 78, 84, 50, 9);
addChild(cabinet4);
cabinet5 = new CabinetE();
GameRule.GameBoxMove(cabinet5, 168, 93, 50, 9);
addChild(cabinet5);
btns = [cabinet1, cabinet2, cabinet3, cabinet4, cabinet5];
initButton();
}
}
}//package view.room.control
Section 184
//CarpetBox (view.room.control.CarpetBox)
package view.room.control {
import com.ning.components.*;
import com.ning.btn.*;
import common.rule.*;
public class CarpetBox extends GameBox {
public var carpet1:CarpetA;
public var carpet2:CarpetB;
public var carpet3:CarpetC;
public var carpet4:CarpetD;
public var carpet5:CarpetE;
public function CarpetBox(){
creat();
}
private function creat():void{
carpet1 = new CarpetA();
GameRule.GameBoxMove(carpet1, 57, 20);
addChild(carpet1);
carpet2 = new CarpetB();
GameRule.GameBoxMove(carpet2, 204, 25);
addChild(carpet2);
carpet3 = new CarpetC();
GameRule.GameBoxMove(carpet3, 51, 67);
addChild(carpet3);
carpet4 = new CarpetD();
GameRule.GameBoxMove(carpet4, 170, 102);
addChild(carpet4);
carpet5 = new CarpetE();
GameRule.GameBoxMove(carpet5, 44, 140);
addChild(carpet5);
btns = [carpet1, carpet2, carpet3, carpet4, carpet5];
initButton();
}
}
}//package view.room.control
Section 185
//CliffBox (view.room.control.CliffBox)
package view.room.control {
import flash.events.*;
import event.*;
import com.ning.components.*;
import common.control.*;
import view.room.*;
import com.ning.btn.*;
import common.rule.*;
public class CliffBox extends GameBox {
public var cliff1:CliffA;
public var cliff2:CliffB;
public var cliff4:CliffD;
public var cliff5:CliffE;
public var cliff3:CliffC;
public function CliffBox(){
creat();
}
override protected function yesClick(_arg1:MouseEvent=null):void{
$room.cliff.yes();
$room.cliff2.yes();
}
override public function noClick(_arg1:MouseEvent=null):void{
$room.cliff.no();
$room.cliff2.no();
visible = false;
}
private function creat():void{
cliff1 = new CliffA();
GameRule.GameBoxMove(cliff1, 29, 66, 16, 54);
addChild(cliff1);
cliff2 = new CliffB();
GameRule.GameBoxMove(cliff2, 129, 57, 16, 54);
addChild(cliff2);
cliff3 = new CliffC();
GameRule.GameBoxMove(cliff3, 221, 60, 16, 54);
addChild(cliff3);
cliff4 = new CliffD();
GameRule.GameBoxMove(cliff4, 36, 153, 16, 54);
addChild(cliff4);
cliff5 = new CliffE();
GameRule.GameBoxMove(cliff5, 145, 148, 16, 54);
addChild(cliff5);
btns = [cliff1, cliff2, cliff3, cliff4, cliff5];
initButton();
}
override protected function setFrame(_arg1:GameButton):void{
var _local2:int;
var _local3:int;
while (_local3 < btns.length) {
if (_arg1 == btns[_local3]){
_local2 = _local3;
};
_local3++;
};
$room.cliff.gotoAndStop((_local2 + 1));
$room.cliff2.gotoAndStop((_local2 + 1));
}
override protected function getInitFrame():int{
return (($room.cliff.currentFrame - 1));
}
override protected function init():void{
clear();
var _local1:GameButton = (btns[($room.cliff.currentFrame - 1)] as GameButton);
if (_local1){
_local1.selected = true;
yesBtn.x = _local1.x;
yesBtn.y = _local1.y;
yesBtn.visible = true;
addChildAt(yesBtn, (numChildren - 1));
};
slider.setGoods($room.cliff, $room.cliff.num);
}
override public function set room(_arg1:RoomView):void{
$room = _arg1;
init();
}
override protected function doubleClick(_arg1:GameEvent):void{
$room.cliff.init();
$room.cliff2.init();
clear();
slider.num = 0;
}
override protected function sliderChange(_arg1:GameEvent):void{
$room.cliff2.filters = (_arg1.data as Array);
}
override protected function getInitGoods():GameGoods{
return ($room.cliff);
}
}
}//package view.room.control
Section 186
//LightBox (view.room.control.LightBox)
package view.room.control {
import com.ning.components.*;
import com.ning.btn.*;
import common.rule.*;
public class LightBox extends GameBox {
public var light1:LightA;
public var light2:LightB;
public var light3:LightC;
public var light4:LightD;
public var light5:LightE;
public function LightBox(){
creat();
}
private function creat():void{
light1 = new LightA();
GameRule.GameBoxMove(light1, 73, 33);
addChild(light1);
light2 = new LightB();
GameRule.GameBoxMove(light2, 115, 28);
addChild(light2);
light3 = new LightC();
GameRule.GameBoxMove(light3, 165, 33);
addChild(light3);
light4 = new LightD();
GameRule.GameBoxMove(light4, 218, 56);
addChild(light4);
light5 = new LightE();
GameRule.GameBoxMove(light5, 273, 56);
addChild(light5);
btns = [light1, light2, light3, light4, light5];
initButton();
}
}
}//package view.room.control
Section 187
//RobeBox (view.room.control.RobeBox)
package view.room.control {
import com.ning.components.*;
import com.ning.btn.*;
import common.rule.*;
public class RobeBox extends GameBox {
public var robe1:RobeA;
public var robe2:RobeB;
public var robe4:RobeD;
public var robe5:RobeE;
public var robe6:RobeF;
public var robe7:RobeG;
public var robe8:RobeH;
public var robe3:RobeC;
public function RobeBox(){
creat();
}
private function creat():void{
robe1 = new RobeA();
GameRule.GameBoxMove(robe1, 53, 18);
addChild(robe1);
robe2 = new RobeB();
GameRule.GameBoxMove(robe2, 191, 18);
addChild(robe2);
robe3 = new RobeC();
GameRule.GameBoxMove(robe3, 275, 13);
addChild(robe3);
robe4 = new RobeD();
GameRule.GameBoxMove(robe4, 58, 65);
addChild(robe4);
robe5 = new RobeE();
GameRule.GameBoxMove(robe5, 106, 95);
addChild(robe5);
robe6 = new RobeF();
GameRule.GameBoxMove(robe6, 275, 102);
addChild(robe6);
robe7 = new RobeG();
GameRule.GameBoxMove(robe7, 202, 122);
addChild(robe7);
robe8 = new RobeH();
GameRule.GameBoxMove(robe8, 154, 65);
addChild(robe8);
btns = [robe1, robe2, robe3, robe4, robe5, robe6, robe7, robe8];
initButton();
}
}
}//package view.room.control
Section 188
//RoomBar (view.room.control.RoomBar)
package view.room.control {
import flash.events.*;
import com.gs.*;
import common.control.*;
import view.room.*;
import com.ning.*;
public class RoomBar extends ControlBar {
public var sofaBtn:SofaButton;
public var carpetBtn:CarpetButton;
public var windowBtn:WindowButton;
public var room:RoomView;
public var cliffBtn:CliffButton;
public var lightBtn:LightButton;
public var cabinetBtn:CabinetButton;
public var tableBtn:TableButton;
public var lightingBtn:LightingButton;
public var wallBtn:WallButton;
public var robeBtn:RobeButton;
public function RoomBar(){
creat();
}
override protected function leftClick(_arg1:MouseEvent):void{
TweenLite.to(btnBox, 0.3, {x:0});
}
private function windowClick(_arg1:MouseEvent):void{
if (box){
box.remove();
};
if (main.isShow){
main.cancel();
};
box = new WindowBox();
box.y = (-(box.height) + 5);
box.x = ((_arg1.currentTarget as GameButton).x + btnBox.x);
if (box.x > max){
box.x = max;
};
box.gameGood = (parent as RoomView).window;
addChild(box);
}
private function creat():void{
wallBtn = new WallButton();
wallBtn.x = (272 + tox);
wallBtn.y = 16;
btnBox.addChild(wallBtn);
wallBtn.addEventListener(MouseEvent.CLICK, wallClick);
carpetBtn = new CarpetButton();
carpetBtn.x = (345 + tox);
carpetBtn.y = 29;
btnBox.addChild(carpetBtn);
carpetBtn.addEventListener(MouseEvent.CLICK, carpetClick);
cliffBtn = new CliffButton();
cliffBtn.x = (415 + tox);
cliffBtn.y = 4;
btnBox.addChild(cliffBtn);
cliffBtn.addEventListener(MouseEvent.CLICK, cliffClick);
lightBtn = new LightButton();
lightBtn.x = (463 + tox);
lightBtn.y = 5;
btnBox.addChild(lightBtn);
lightBtn.addEventListener(MouseEvent.CLICK, lightClick);
cabinetBtn = new CabinetButton();
cabinetBtn.x = (493 + tox);
cabinetBtn.y = 5;
btnBox.addChild(cabinetBtn);
cabinetBtn.addEventListener(MouseEvent.CLICK, cabinetClick);
sofaBtn = new SofaButton();
sofaBtn.x = (546 + tox);
sofaBtn.y = 18;
btnBox.addChild(sofaBtn);
sofaBtn.addEventListener(MouseEvent.CLICK, sofaClick);
tableBtn = new TableButton();
tableBtn.x = (604 + tox);
tableBtn.y = 10;
btnBox.addChild(tableBtn);
tableBtn.addEventListener(MouseEvent.CLICK, tableClick);
windowBtn = new WindowButton();
windowBtn.x = (670 + tox);
windowBtn.y = 8;
btnBox.addChild(windowBtn);
windowBtn.addEventListener(MouseEvent.CLICK, windowClick);
robeBtn = new RobeButton();
robeBtn.x = (705 + tox);
robeBtn.y = 8;
btnBox.addChild(robeBtn);
robeBtn.addEventListener(MouseEvent.CLICK, robeClick);
lightingBtn = new LightingButton();
lightingBtn.x = (764 + tox);
lightingBtn.y = 16;
btnBox.addChild(lightingBtn);
lightingBtn.addEventListener(MouseEvent.CLICK, lightingClick);
}
private function cliffClick(_arg1:MouseEvent):void{
if (box){
box.remove();
};
if (main.isShow){
main.cancel();
};
box = new CliffBox();
box.y = (-(box.height) + 5);
box.x = ((_arg1.currentTarget as GameButton).x + btnBox.x);
if (box.x > max){
box.x = max;
};
box.room = (parent as RoomView);
addChild(box);
}
private function cabinetClick(_arg1:MouseEvent):void{
if (box){
box.remove();
};
if (main.isShow){
main.cancel();
};
box = new CabinetBox();
box.y = (-(box.height) + 5);
box.x = ((_arg1.currentTarget as GameButton).x + btnBox.x);
if (box.x > max){
box.x = max;
};
box.gameGood = (parent as RoomView).cabinet;
addChild(box);
}
private function lightClick(_arg1:MouseEvent):void{
if (box){
box.remove();
};
if (main.isShow){
main.cancel();
};
box = new LightBox();
box.y = (-(box.height) + 5);
box.x = ((_arg1.currentTarget as GameButton).x + btnBox.x);
if (box.x > max){
box.x = max;
};
box.gameGood = (parent as RoomView).light;
addChild(box);
}
private function tableClick(_arg1:MouseEvent):void{
if (box){
box.remove();
};
if (main.isShow){
main.cancel();
};
box = new TableBox();
box.y = (-(box.height) + 5);
box.x = ((_arg1.currentTarget as GameButton).x + btnBox.x);
if (box.x > max){
box.x = max;
};
box.gameGood = (parent as RoomView).table;
addChild(box);
}
private function wallClick(_arg1:MouseEvent):void{
if (box){
box.remove();
};
if (main.isShow){
main.cancel();
};
box = new WallBox();
box.y = (-(box.height) + 5);
box.x = ((_arg1.currentTarget as GameButton).x + btnBox.x);
if (box.x > max){
box.x = max;
};
box.room = (parent as RoomView);
addChild(box);
}
private function robeClick(_arg1:MouseEvent):void{
if (box){
box.remove();
};
if (main.isShow){
main.cancel();
};
box = new RobeBox();
box.y = (-(box.height) + 5);
box.x = ((_arg1.currentTarget as GameButton).x + btnBox.x);
if (box.x > max){
box.x = max;
};
box.gameGood = (parent as RoomView).robe;
addChild(box);
}
private function sofaClick(_arg1:MouseEvent):void{
if (box){
box.remove();
};
if (main.isShow){
main.cancel();
};
box = new SofaBox();
box.y = (-(box.height) + 5);
box.x = ((_arg1.currentTarget as GameButton).x + btnBox.x);
if (box.x > max){
box.x = max;
};
box.gameGood = (parent as RoomView).sofa;
addChild(box);
}
private function lightingClick(_arg1:MouseEvent):void{
if (box){
box.remove();
};
if (main.isShow){
main.cancel();
};
var _local2:Lighting = (parent as RoomView).lighting;
if (_local2.currentFrame == 4){
_local2.gotoAndStop(1);
} else {
_local2.gotoAndStop((_local2.currentFrame + 1));
};
trace(_local2.currentFrame);
}
override protected function rightClick(_arg1:MouseEvent):void{
TweenLite.to(btnBox, 0.3, {x:-65});
}
private function carpetClick(_arg1:MouseEvent):void{
if (box){
box.remove();
};
if (main.isShow){
main.cancel();
};
box = new CarpetBox();
box.y = (-(box.height) + 5);
box.x = ((_arg1.currentTarget as GameButton).x + btnBox.x);
if (box.x > max){
box.x = max;
};
box.gameGood = (parent as RoomView).carpet;
addChild(box);
}
}
}//package view.room.control
Section 189
//SofaBox (view.room.control.SofaBox)
package view.room.control {
import com.ning.components.*;
import com.ning.btn.*;
import common.rule.*;
public class SofaBox extends GameBox {
public var sofa1:SofaA;
public var sofa2:SofaB;
public var sofa3:SofaC;
public var sofa4:SofaD;
public var sofa5:SofaE;
public function SofaBox(){
creat();
}
private function creat():void{
sofa1 = new SofaA();
GameRule.GameBoxMove(sofa1, 65, 19);
addChild(sofa1);
sofa2 = new SofaB();
GameRule.GameBoxMove(sofa2, 206, 22);
addChild(sofa2);
sofa3 = new SofaC();
GameRule.GameBoxMove(sofa3, 65, 82);
addChild(sofa3);
sofa4 = new SofaD();
GameRule.GameBoxMove(sofa4, 198, 80);
addChild(sofa4);
sofa5 = new SofaE();
GameRule.GameBoxMove(sofa5, 65, 133);
addChild(sofa5);
btns = [sofa1, sofa2, sofa3, sofa4, sofa5];
initButton();
}
}
}//package view.room.control
Section 190
//TableBox (view.room.control.TableBox)
package view.room.control {
import com.ning.components.*;
import com.ning.btn.*;
import common.rule.*;
public class TableBox extends GameBox {
public var table1:TableA;
public var table2:TableB;
public var table3:TableC;
public var table5:TableE;
public var table4:TableD;
public function TableBox(){
creat();
}
private function creat():void{
table1 = new TableA();
GameRule.GameBoxMove(table1, 68, 10);
addChild(table1);
table2 = new TableB();
GameRule.GameBoxMove(table2, 213, 13);
addChild(table2);
table3 = new TableC();
GameRule.GameBoxMove(table3, 68, 60);
addChild(table3);
table4 = new TableD();
GameRule.GameBoxMove(table4, 225, 68);
addChild(table4);
table5 = new TableE();
GameRule.GameBoxMove(table5, 156, (120 + 30));
addChild(table5);
btns = [table1, table2, table3, table4, table5];
initButton();
}
}
}//package view.room.control
Section 191
//WallBox (view.room.control.WallBox)
package view.room.control {
import flash.events.*;
import event.*;
import com.ning.components.*;
import common.control.*;
import view.room.*;
import com.ning.*;
import com.ning.btn.*;
import common.rule.*;
public class WallBox extends GameBox {
public var ceiling3:CeilingC;
public var wallText:WallText;
public var ceiling1:CeilingA;
public var ceiling2:CeilingB;
public var ceiling4:CeilingD;
public var floor1:FloorA;
public var floor2:FloorB;
public var wall1:WallA;
public var floor4:FloorD;
public var wall3:WallC;
public var wall4:WallD;
public var wall2:WallB;
public var floor3:FloorC;
public function WallBox(){
creat();
}
override protected function getInitFrame():int{
return ((goods.currentFrame - 1));
}
private function creat():void{
wallText = new WallText();
GameRule.GameBoxMove(wallText, 48, 34, 50, 30);
addChild(wallText);
wall1 = new WallA();
GameRule.GameBoxMove(wall1, 57, 49, 50, 30);
addChild(wall1);
wall2 = new WallB();
GameRule.GameBoxMove(wall2, 130, 51, 50, 30);
addChild(wall2);
wall3 = new WallC();
GameRule.GameBoxMove(wall3, 200, 52, 50, 30);
addChild(wall3);
wall4 = new WallD();
GameRule.GameBoxMove(wall4, 270, 51, 50, 30);
addChild(wall4);
ceiling1 = new CeilingA();
GameRule.GameBoxMove(ceiling1, 50, 123, 50, 30);
addChild(ceiling1);
ceiling2 = new CeilingB();
GameRule.GameBoxMove(ceiling2, 120, 123, 50, 30);
addChild(ceiling2);
ceiling3 = new CeilingC();
GameRule.GameBoxMove(ceiling3, 191, 123, 50, 30);
addChild(ceiling3);
ceiling4 = new CeilingD();
GameRule.GameBoxMove(ceiling4, 263, 123, 50, 30);
addChild(ceiling4);
floor1 = new FloorA();
GameRule.GameBoxMove(floor1, 58, 173, 50, 30);
addChild(floor1);
floor2 = new FloorB();
GameRule.GameBoxMove(floor2, 126, 173, 50, 30);
addChild(floor2);
floor3 = new FloorC();
GameRule.GameBoxMove(floor3, 193, 173, 50, 30);
addChild(floor3);
floor4 = new FloorD();
GameRule.GameBoxMove(floor4, 260, 151);
addChild(floor4);
btns = [wall1, wall2, wall3, wall4, ceiling1, ceiling2, ceiling3, ceiling4, floor1, floor2, floor3, floor4];
initButton();
}
override protected function yesClick(_arg1:MouseEvent=null):void{
$room.wall.yes();
$room.ceiling.yes();
$room.floor.yes();
}
override protected function setFrame(_arg1:GameButton):void{
var _local2:int;
var _local3:int;
while (_local3 < btns.length) {
if (_arg1 == btns[_local3]){
_local2 = _local3;
};
_local3++;
};
if (_local2 < 4){
if ($room.wall.currentFrame == (_local2 + 1)){
slider.setGoods($room.wall, $room.wall.num);
} else {
slider.setGoods($room.wall);
$room.wall.gotoAndStop((_local2 + 1));
};
} else {
if (_local2 < 8){
if ($room.ceiling.currentFrame == (_local2 - 3)){
slider.setGoods($room.ceiling, $room.ceiling.num);
} else {
slider.setGoods($room.ceiling);
$room.ceiling.gotoAndStop((_local2 - 3));
};
} else {
if ($room.floor.currentFrame == (_local2 - 7)){
slider.setGoods($room.floor, $room.floor.num);
} else {
slider.setGoods($room.floor);
$room.floor.gotoAndStop((_local2 - 7));
};
};
};
}
override public function set gameGood(_arg1:Object):void{
goods = (_arg1 as GameGoods);
init();
}
override protected function getInitGoods():GameGoods{
return (goods);
}
override protected function init():void{
clear();
var _local1:GameButton = (btns[($room.wall.currentFrame - 1)] as GameButton);
_local1.selected = true;
yesBtn.x = _local1.x;
yesBtn.y = _local1.y;
yesBtn.visible = true;
addChildAt(yesBtn, (numChildren - 1));
slider.setGoods($room.wall, $room.wall.num);
}
override public function noClick(_arg1:MouseEvent=null):void{
$room.wall.no();
$room.ceiling.no();
$room.floor.no();
visible = false;
}
override public function set room(_arg1:RoomView):void{
$room = _arg1;
init();
}
override protected function doubleClick(_arg1:GameEvent):void{
if ((((((((_arg1.target == wall1)) || ((_arg1.target == wall2)))) || ((_arg1.target == wall3)))) || ((_arg1.target == wall4)))){
$room.wall.init();
} else {
if ((((((((_arg1.target == ceiling1)) || ((_arg1.target == ceiling2)))) || ((_arg1.target == ceiling3)))) || ((_arg1.target == ceiling4)))){
$room.ceiling.init();
} else {
$room.floor.init();
};
};
clear();
slider.num = 0;
}
}
}//package view.room.control
Section 192
//WindowBox (view.room.control.WindowBox)
package view.room.control {
import com.ning.components.*;
import com.ning.btn.*;
import common.rule.*;
public class WindowBox extends GameBox {
public var window1:WindowA;
public var window5:WindowE;
public var window2:WindowB;
public var window3:WindowC;
public var window4:WindowD;
public function WindowBox(){
creat();
}
private function creat():void{
window1 = new WindowA();
GameRule.GameBoxMove(window1, 57, 296, 50, 273);
addChild(window1);
window2 = new WindowB();
GameRule.GameBoxMove(window2, 109, 296, 50, 273);
addChild(window2);
window3 = new WindowC();
GameRule.GameBoxMove(window3, 177, 305, 50, 273);
addChild(window3);
window4 = new WindowD();
GameRule.GameBoxMove(window4, 226, 305, 50, 273);
addChild(window4);
window5 = new WindowE();
GameRule.GameBoxMove(window5, 285, 306, 50, 273);
addChild(window5);
btns = [window1, window2, window3, window4, window5];
initButton();
}
}
}//package view.room.control
Section 193
//RoomView (view.room.RoomView)
package view.room {
import flash.events.*;
import com.gs.*;
import common.view.*;
import com.ning.*;
import flash.utils.*;
import view.room.control.*;
public class RoomView extends GameSprite {
public var robe:Robe;
public var wall:Wall;
public var carpet:Carpet;
public var floor:Floor;
public var table:Table;
public var cliff2:CliffB;
private var bar:RoomBar;
public var men:RoomMen;
public var sofa:Sofa;
public var lighting:Lighting;
public var light:Light;
public var cabinet:Cabinet;
private var hideTimer:Timer;
public var cliff:Cliff;
public var window:Window;
public var ceiling:Ceiling;
public function RoomView(){
creat();
hideTimer = new Timer(300, 1);
hideTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
}
public function cancel():void{
bar.visible = true;
ceiling.init();
wall.init();
floor.init();
window.init();
bar.init();
carpet.init();
cabinet.init();
light.init();
sofa.init();
cliff.init();
men.visible = false;
table.init();
robe.init();
lighting.init();
cliff2.init();
}
public function show():void{
bar.visible = false;
men.visible = true;
if (bar.box){
bar.box.remove();
};
}
private function creat():void{
ceiling = new Ceiling();
ceiling.x = 21;
addChild(ceiling);
wall = new Wall();
addChild(wall);
floor = new Floor();
floor.y = 446;
addChild(floor);
carpet = new Carpet();
carpet.x = 71;
carpet.y = 470;
addChild(carpet);
window = new Window();
window.x = 170;
window.y = 181;
addChild(window);
cliff = new Cliff();
cliff.x = 105;
cliff.y = 225;
addChild(cliff);
cabinet = new Cabinet();
cabinet.x = 57;
cabinet.y = 350;
addChild(cabinet);
light = new Light();
light.x = 23;
light.y = 266;
addChild(light);
sofa = new Sofa();
sofa.x = 270;
sofa.y = 353;
addChild(sofa);
men = new RoomMen();
men.x = 295;
men.y = 266;
addChild(men);
table = new Table();
table.x = 254;
table.y = 394;
addChild(table);
robe = new Robe();
robe.x = 280;
robe.y = 87;
addChild(robe);
cliff2 = new CliffB();
cliff2.x = 83;
cliff2.y = 546;
addChild(cliff2);
lighting = new Lighting();
addChild(lighting);
bar = new RoomBar();
bar.x = 6;
bar.y = 534;
addChild(bar);
bar.addEventListener(MouseEvent.ROLL_OVER, barOver);
bar.addEventListener(MouseEvent.ROLL_OUT, barOut);
}
public function hide():void{
visible = false;
if (bar.box){
bar.box.remove();
};
}
private function barOver(_arg1:MouseEvent):void{
showBar();
hideTimer.reset();
}
public function initBar():void{
bar.y = 534;
}
public function hideBar():void{
TweenLite.to(bar, 0.5, {y:595});
}
public function showBar():void{
TweenLite.to(bar, 0.5, {y:534});
}
private function barOut(_arg1:MouseEvent):void{
if (((((!(bar.box)) || (!(bar.contains(bar.box))))) || (!(bar.box.visible)))){
hideTimer.start();
};
}
private function onTimerComplete(_arg1:TimerEvent):void{
hideBar();
}
}
}//package view.room
Section 194
//StartView (view.start.StartView)
package view.start {
import flash.events.*;
import event.*;
import common.sound.*;
import common.view.*;
import view.*;
import com.ning.*;
import com.ning.control.*;
public class StartView extends GameSprite {
private var okBtn:OKButton;
private var snd:SoundMannager;
private var startBtn:StartButton;
public function StartView(){
snd = SoundMannager.getInstance();
super();
addChild(new StartBG());
creatStartBtn();
snd.playBSnd();
}
private function creatOKBtn():void{
okBtn = new OKButton();
okBtn.x = 373;
okBtn.y = 382;
addChild(okBtn);
okBtn.addEventListener(MouseEvent.CLICK, okBtnClick);
}
private function okBtnClick(_arg1:MouseEvent):void{
okBtn.removeEventListener(MouseEvent.CLICK, okBtnClick);
removeAllChild();
dispatchEvent(new GameEvent(GameEvent.GAME_START));
}
private function creatStartBtn():void{
startBtn = new StartButton();
startBtn.x = 622;
startBtn.y = 46;
addChild(startBtn);
startBtn.addEventListener(MouseEvent.CLICK, startBtnClick);
}
private function startBtnClick(_arg1:MouseEvent):void{
startBtn.removeEventListener(MouseEvent.CLICK, startBtnClick);
removeAllChild();
var _local2:Main = (parent.parent as Main);
_local2.logo.y = 8;
addChild(new DialogueBG());
creatOKBtn();
}
}
}//package view.start
Section 195
//Loading (view.Loading)
package view {
import flash.display.*;
public class Loading extends MovieClip {
public var bar:MovieClip;
public var mc:MovieClip;
}
}//package view
Section 196
//Main (view.Main)
package view {
import flash.events.*;
import event.*;
import common.sound.*;
import view.room.*;
import view.garden.*;
import common.view.*;
import flash.display.*;
import com.ning.*;
import view.start.*;
import com.ning.btn.*;
public class Main extends GameSprite {
private var showView:GameSprite;
public var isShow:Boolean;
private var room:RoomView;
private var music:MusicButton;
private var startView:StartView;
private var snd:SoundMannager;
public var logo:Logo;
private var frontView:GameSprite;
private var garden:GardenView;
private var contentView:GameSprite;
public function Main(){
snd = SoundMannager.getInstance();
super();
contentView = new GameSprite();
var _local1:Sprite = new Sprite();
_local1.graphics.beginFill(0xFFFFFF);
_local1.graphics.drawRect(0, 0, 800, 600);
contentView.mask = _local1;
addChild(contentView);
frontView = new GameSprite();
music = new MusicButton();
music.x = 10;
music.y = 7;
music.addEventListener(MouseEvent.CLICK, musicClick);
music.gotoAndStop(1);
frontView.addChild(music);
logo = new Logo();
logo.width = 180;
logo.height = 71;
logo.x = 600;
logo.y = 520;
frontView.addChild(logo);
addChild(frontView);
startView = new StartView();
startView.addEventListener(GameEvent.GAME_START, gameStart);
contentView.addChild(startView);
}
private function showChange(_arg1:MouseEvent):void{
if (room.visible){
room.visible = false;
garden.visible = true;
} else {
room.visible = true;
garden.visible = false;
};
}
private function gameStart(_arg1:GameEvent):void{
contentView.removeChild(startView);
logo.width = 120;
logo.height = 48;
logo.x = 58;
room = new RoomView();
garden = new GardenView();
roomShow();
contentView.addChild(room);
contentView.addChild(garden);
creatShow();
room.cancel();
garden.cancel();
snd.playBg1();
}
public function gardenShow():void{
garden.visible = true;
garden.initBar();
room.hide();
}
private function backClick(_arg1:MouseEvent):void{
showView.visible = false;
cancel();
roomShow();
room.hideBar();
}
private function musicClick(_arg1:MouseEvent):void{
if (snd.isSound){
music.gotoAndStop(2);
snd.isSound = false;
} else {
music.gotoAndStop(1);
snd.isSound = true;
};
}
private function creatShow():void{
showView = new GameSprite();
showView.visible = false;
contentView.addChild(showView);
var _local1:ShowArrow = new ShowArrow();
_local1.x = 10;
_local1.y = 280;
_local1.addEventListener(MouseEvent.CLICK, showChange);
showView.addChild(_local1);
var _local2:ShowArrow = new ShowArrow();
_local2.rotation = 180;
_local2.x = 790;
_local2.y = (282 + 40);
_local2.addEventListener(MouseEvent.CLICK, showChange);
showView.addChild(_local2);
var _local3:BackButton = new BackButton();
_local3.x = 645;
_local3.y = 530;
_local3.addEventListener(MouseEvent.CLICK, backClick);
showView.addChild(_local3);
room.hideBar();
}
public function roomShow():void{
room.visible = true;
garden.hide();
room.initBar();
}
public function cancel():void{
isShow = false;
garden.cancel();
room.cancel();
snd.playBg1();
}
public function show():void{
showView.visible = true;
isShow = true;
garden.show();
room.show();
snd.playBg2();
}
}
}//package view
Section 197
//Music (Music)
package {
import common.control.*;
public dynamic class Music extends GameButton {
}
}//package
Section 198
//PartyDecor (PartyDecor)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import game.*;
import common.rule.*;
import flash.utils.*;
public class PartyDecor extends MovieClip {
private var _loadingText:TextField;
private var loading:GameLoading;
public function PartyDecor(){
stage.showDefaultContextMenu = false;
loading = new GameLoading();
stop();
addEventListener(Event.ADDED_TO_STAGE, eventsHandler);
stage.addEventListener(MouseEvent.MOUSE_DOWN, stageDown);
stage.addEventListener(MouseEvent.MOUSE_UP, stageUp);
stage.addEventListener(MouseEvent.ROLL_OUT, stageUp);
loading.addEventListener("gameNext", gameNext);
}
private function createLoading():void{
_loadingText = new TextField();
_loadingText.x = 300;
_loadingText.y = 400;
var _local1:TextFormat = new TextFormat("Arial", 24, 0, true);
_loadingText.defaultTextFormat = _local1;
_loadingText.autoSize = "center";
addChild(_loadingText);
trace("create loading");
}
private function eventsHandler(_arg1:Event):void{
var _local2:int;
switch (_arg1.type){
case Event.ADDED_TO_STAGE:
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
removeEventListener(Event.ADDED_TO_STAGE, eventsHandler);
addEventListener(Event.ENTER_FRAME, eventsHandler);
break;
case Event.ENTER_FRAME:
_local2 = (((loaderInfo.bytesLoaded / loaderInfo.bytesTotal) * 100) >> 0);
addChild(loading);
loading.bar.loading_animation.gotoAndStop(int(_local2));
trace("loading:", _local2);
if (loaderInfo.bytesLoaded == loaderInfo.bytesTotal){
removeEventListener(Event.ENTER_FRAME, eventsHandler);
_loadingText = null;
loading.play();
loading.mc.play();
};
break;
};
}
private function gameNext(_arg1:Event):void{
this.removeEventListener("gameNext", gameNext);
removeChild(loading);
nextFrame();
initApp();
}
private function stageDown(_arg1:MouseEvent):void{
GameRule.isDown = true;
}
private function stageUp(_arg1:MouseEvent):void{
GameRule.isDown = false;
}
private function initApp():void{
var _local2:Object;
var _local1:Class = (getDefinitionByName("view.Main") as Class);
if (_local1 != null){
_local2 = new (_local1);
addChild((_local2 as DisplayObject));
};
}
}
}//package