PLEASE MAKE A HACK TOOL FOR THIS GAME I BELEAVE YOU CAN DO IT , ITS A GAME ON FB PLEASE HELP US, THANK YOU AND MORE POWER!.
Quote:
Quote:
package ui
{
import share.components.BasePopUI;
import share.GameDomain;
import share.GameSetting;
import share.GamePubResource;
import flash.display.LoaderInfo;
import com.gdk.FLKernel;
import flash.display.DisplayObjectContainer;
import share.GameEventDispatcher;
import share.event.NewbieGuideEvent;
import ui.guide.NewbieGuideMaskPanel;
import flash.text.TextField;
import util.GameCheckBox;
import flash.display.SimpleButton;
import flash.display.MovieClip;
import flash.events.MouseEvent;
import util.ToolUtil;
import common.CommonHelper;
import com.wings.util.StringUtil;
import share.GamePlayer;
import flash.events.Event;
import com.wings.ui.components.constdefine.PopOpenType;
public class GameCheckMoneyType extends BasePopUI
{
public function GameCheckMoneyType() {
super();
this._winOpenType=PopOpenType.MASK;
return;
}
private static var instance:GameCheckMoneyType;
public static function getInstance() : GameCheckMoneyType {
if(instance==null)
{
instance=new GameCheckMoneyType();
}
return instance;
}
override protected function inits() : void {
_w=270;
_h=142;
if(GameDomain.ContainsKey(GameSetting.LOADER_CHARA CTER_SCENE))
{
this._isLoaded=true;
}
super.inits();
return;
}
override protected function loadElements() : void {
_batchLoad.AddFile(GameSetting.LOADER_CHARACTER_SC ENE,GamePubResource.GetInstance().getUISwfPath(Gam eSetting.LOADER_CHARACTER_SCENE));
_batchLoad.Load(true);
return;
}
private var bo:Boolean = false;
override protected function initUI() : void {
if(!GameDomain.ContainsKey(GameSetting.LOADER_CHAR ACTER_SCENE))
{
GameDomain.PutSwf(GameSetting.LOADER_CHARACTER_SCE NE,(_batchLoad.ContextInfoSet.Get(GameSetting.LOAD ER_CHARACTER_SCENE) as LoaderInfo).content);
}
_view=FLKernel.GetSpriteInstance("Lotterytip",20,3 0) as DisplayObjectContainer;
if(_view)
{
addView(_view);
_view.x=30;
_view.y=50;
this.bo=true;
this.beginHd(_view);
}
GameEventDispatcher.instance.dispatchEvent(new NewbieGuideEvent(NewbieGuideEvent.CONTINUE_FUNCTIO N_GUIDE,NewbieGuideMaskPanel.TARGETTYPE_STAR_EXTRA CT_PANEL));
return;
}
override public function Show() : void {
super.Show();
if(this.bo)
{
this.updateHd();
}
return;
}
public var money:int = 0;
public var cash:int = 0;
private var content:DisplayObjectContainer;
private var tf_txt:TextField;
private var cash_check:GameCheckBox;
private var gold_check:GameCheckBox;
private var tf_allcash:TextField;
private var tf_allgold:TextField;
private var btn_next:SimpleButton;
private var color:int;
private var type:int = 0;
private function beginHd(param1:DisplayObjectContainer) : void {
this.content=param1;
this.tf_txt=this.content.getChildByName("tf_txt") as TextField;
var _loc2_:MovieClip = this.content.getChildByName("btn_check0") as MovieClip;
var _loc3_:MovieClip = this.content.getChildByName("btn_check1") as MovieClip;
this.tf_allcash=this.content.getChildByName("tf_al lcash") as TextField;
this.tf_allgold=this.content.getChildByName("tf_al lgold") as TextField;
this.color=this.tf_allcash.textColor;
this.btn_next=this.content.getChildByName("btn_nex t") as SimpleButton;
this.btn_next.addEventListener(MouseEvent.MOUSE_DO WN,this.ddHd);
this.cash_check=new GameCheckBox();
this.cash_check.init(_loc2_);
this.gold_check=new GameCheckBox();
this.gold_check.init(_loc3_);
this.cash_check.mc.addEventListener("GAMECHECKBOX_ CHANGE",this.cashchangeHd);
this.gold_check.mc.addEventListener("GAMECHECKBOX_ CHANGE",this.goldchangeHd);
this.updateHd();
return;
}
private function updateHd() : void {
var _loc1_:String = ToolUtil.rePlaceStr(CommonHelper.getUILabel("rongy u3"),this.cash.toString(),"###");
var _loc2_:String = StringUtil.formatNumberToEnView(this.money);
var _loc3_:String = ToolUtil.rePlaceStr(_loc1_,_loc2_,"$$$");
this.tf_txt.htmlText=_loc3_;
if(this.money>GamePlayer.GetInstance().Money)
{
this.tf_allgold.textColor=16711680;
}
else
{
this.tf_allgold.textColor=this.color;
}
if(this.cash>GamePlayer.GetInstance().Credit)
{
this.tf_allcash.textColor=16711680;
}
else
{
this.tf_allcash.textColor=this.color;
}
this.tf_allcash.text=StringUtil.formatNumberToEnVi ew(this.cash);
this.tf_allgold.text=StringUtil.formatNumberToEnVi ew(this.money);
this.cash_check.selected=true;
if(this.cash_check.selected)
{
this.gold_check.selected=false;
this.type=2;
}
else
{
this.gold_check.selected=true;
this.type=0;
}
return;
}
private function ddHd(param1:MouseEvent) : void {
if(this.type==2)
{
if(GamePlayer.GetInstance().Credit<this.cash)
{
SystemNoticePanel.getInstance().showMsgImmediately (CommonHelper.getUILabel("maoge92"));
return;
}
}
else
{
if(GamePlayer.GetInstance().Money<this.money)
{
SystemNoticePanel.getInstance().showMsgImmediately (CommonHelper.getUILabel("lottery8"));
return;
}
}
GameArena.getInstance().RegictOK(this.type);
return;
}
private function cashchangeHd(param1:Event) : * {
if(this.cash_check.selected)
{
this.gold_check.selected=false;
this.type=2;
}
else
{
this.gold_check.selected=true;
this.type=0;
}
return;
}
private function goldchangeHd(param1:Event) : * {
if(this.gold_check.selected)
{
this.cash_check.selected=false;
this.type=0;
}
else
{
this.cash_check.selected=true;
this.type=2;
}
return;
}
}
}