Kết quả 31 đến 40 của 42
Chủ đề: Share Game bài, ba cây, tiến lên
-
04-10-14, 04:45 PM #31
- Ngày tham gia
- Jul 2011
- Bài viết
- 171
- Thanks
- 17
- Thanked 16 Times in 14 Posts
Ðề: Share Game bài, ba cây, tiến lên
Khách viếng thăm hãy cùngOldGamerxây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
12-10-14, 10:04 PM #32
- Ngày tham gia
- Jul 2011
- Bài viết
- 171
- Thanks
- 17
- Thanked 16 Times in 14 Posts
Ðề: Share Game bài, ba cây, tiến lên
Mình tạo class sau đặt chung folder của API rồi chạy
public partial class testtest : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
try
{
Response.Redirect("getchannels.aspx", false);
}
catch (System.IO.FileNotFoundException ex)
{
Response.Write(ex.FileName);
}
}
}
A first chance exception of type 'System.IO.FileNotFoundException' occurred in Goffice_Api.DLLKhách viếng thăm hãy cùngOldGamerxây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
15-10-14, 04:17 PM #33
- Ngày tham gia
- Jul 2011
- Bài viết
- 171
- Thanks
- 17
- Thanked 16 Times in 14 Posts
Ðề: Share Game bài, ba cây, tiến lên
Tình hình là đã fix được lỗi đăng ký và lấy danh sách kênh, nhưng client không kết nối server và api luôn trả về uid=9999 ngoài id của user
[Only registered and activated users can see links. ]
[Only registered and activated users can see links. ]
Các bug này thì chịu vì không có nguồn hay thông tin đề mò @_@
P/S : bác khuek8b có fix đuwocj thì giúp nhé ^__^Lần sửa cuối bởi OldGamer, ngày 16-10-14 lúc 12:13 PM.
Khách viếng thăm hãy cùngOldGamerxây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
18-10-14, 02:33 AM #34
- Ngày tham gia
- Jul 2011
- Bài viết
- 171
- Thanks
- 17
- Thanked 16 Times in 14 Posts
Ðề: Share Game bài, ba cây, tiến lên
Xem ra con này hàng lỡm nhỉ 😓
30 charrrrrtrrrrrtrtffrrrtyugucbhKhách viếng thăm hãy cùngOldGamerxây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
23-10-14, 02:29 PM #35
- Ngày tham gia
- Jul 2011
- Bài viết
- 171
- Thanks
- 17
- Thanked 16 Times in 14 Posts
Ðề: Share Game bài, ba cây, tiến lên
Nhân làm con gunny, kiểm tra luôn game này thì phát hiện gói share bị xóa quá nhiều file giao diện swf và data, ngoài ra các store trong mysql sai thông số và cú pháp, dữ liệu quá nhiều mà sao các bác ấy lại chạy được nhỉ
Code:package { import utility.*; import flash.events.*; import bussiness.*; import flash.display.*; import flash.net.*; import Entity.*; import Connecter.*; import com.greensock.*; import com.greensock.easing.*; import com.gsolo.encryption.*; import Control.TypeEvent.Type; public class Main extends Sprite { public function Main() { var _loc3_:mvRepeat = null; super(); this.btclick = new Click(); var _loc1_:* = 0; var _loc2_:* = 0; while(_loc2_ < 1000 / 4) { _loc3_ = new mvRepeat(); _loc3_.x = _loc1_; this.mvbgu.addChild(_loc3_); _loc1_ = _loc1_ + 4; _loc2_++; } this.arrForm = new Array(); this.loaderProcess = new LoaderProcess(); this.loaderProcess.addEventListener(Event.COMPLETE,this.loaderDataComplete); this.loadproperty = new Property(); this.loadproperty.loadComplete = this.loadPropertyComplete; this.loadproperty.loadProperty(); this.customformattext = new CustomFormatText(); this.mvloading = new mvLoading(); this.mvloading.x = 450; this.mvloading.y = 230; this.mvbg.addChild(this.mvloading); this.mvloading.txtLoading.text = "1"; this.btInfor.visible = false; this.btFriend.visible = false; } public var btInfor:SimpleButton; public var mvbgu:MovieClip; public var btFriend:SimpleButton; public var mvmark:MovieClip; public var mvbg:MovieClip; private var openmessage:OpenMessage = null; private var opendialog:OpenDialog = null; private var arrProperty:Array = null; private var loadproperty:Property = null; private var session:loadSession = null; private var arrCards:Array = null; private var arrCardsId:Array = null; public var loadcards:loadCards = null; private var loadmessage:loadMessage = null; private var arrMessage:Array = null; private var arrEmotion:Array = null; private var loademotion:loadEmotion = null; private var arrStatus:Array = null; public var loadstatus:loadStatus = null; private var place:int = 0; private var arrForm:Array = null; private var ktloader:Boolean = false; private var typeLoader:int = 0; private var loaderProcess:LoaderProcess = null; private var host:String = ""; private var port:String = ""; private var chatport:String = ""; private var arrServer:Array = null; private var oConn:Connecter = null; private var oConnChat:ConnecterChat = null; private var account:Player = null; private var room:RoomControl = null; private var customformattext:CustomFormatText = null; private var loadmode:loadMode = null; private var arrMode:Array = null; private var mvloading:mvLoading = null; private var btclick = null; private var checkNum:CheckKeyAPI = null; private function loadPropertyComplete() : * { this.arrProperty = this.loadproperty.getArrProperty(); trace("arrProperty:" + this.arrProperty.length); this.loadproperty = null; this.mvloading.txtLoading.text = "4"; this.loadmessage = new loadMessage(); this.loadmessage.loadComplete = this.loadCookiesComplete; this.loadmessage.beginLoad(); } private function loadCookiesComplete() : * { this.arrMessage = this.loadmessage.getArrMessage(); this.loadmessage = null; this.opendialog = new OpenDialog(); this.opendialog.setValues(this.mvbg,mvDialogBox,this.ftDialogCancel,this.arrMessage,this.customformattext); this.openmessage = new OpenMessage(); this.openmessage.setValues(this.mvbg,mvMessageBox,this.arrMessage,this.customformattext); this.mvloading.txtLoading.text = "8"; this.checkNum = new CheckKeyAPI(); this.checkNum.setArrMessage(this.arrMessage); this.checkNum.loadSessionComplete = this.loadSessionComplete; this.checkNum.funcBackLogin = this.funcBackLogin; this.checkNum.checkLoginUrl(this.arrProperty[2]); } private function funcBackLogin() : * { trace("MESSAGE:" + this.checkNum.getMsg()); this.openmessage.addMess(this.checkNum.getMsg(),this.ftMessage,this.ftCloseMessage); } private var serverId:int = 0; private var channelId:int = 0; private var _host:String = "10.0.0.99"; private var _port:int; private var _portChat:int; private var _modeId:int; private function loadSessionComplete() : * { var _loc1_:URLRequest = null; this.account = new Player(); this.account.setId(this.checkNum.getAccId()); if(this.account.getId() == 0) { _loc1_ = new URLRequest(this.arrProperty[0]); navigateToURL(_loc1_,"_self"); return; } this.account.setName(this.checkNum.getUserName()); this.account.setPass(this.checkNum.getPassword()); this.account.setPass(MD5.encrypt("-1")); this._host = this.checkNum.getHost(); this._port = this.checkNum.getChanelPort(); this._portChat = this.checkNum.getChatPort(); this._modeId = this.checkNum.getMode(); this.checkNum = null; this.loadCardGame(); } private function loadCardGame() : * { this.loadcards = new loadCards(); this.loadcards.setArrCards(); this.loadcards.loadComplete = this.loadCardsComplete; this.loadcards.beginLoad(); this.mvloading.txtLoading.text = "14"; } private function closeServerComplete() : * { this.loadcards = new loadCards(); this.loadcards.setArrCards(); this.loadcards.loadComplete = this.loadCardsComplete; this.loadcards.beginLoad(); this.mvloading.txtLoading.text = "14"; } private function loadCardsComplete() : * { this.arrCards = this.loadcards.getArrCards(); this.loadcards = null; this.loadavatar = new loadAvatar(); this.loadavatar.loadComplete = this.loadAvatarComplete; this.loadavatar.beginLoad(this.arrProperty[1]); } private var loadavatar:loadAvatar = null; private var arrAvatar:Array = null; private function loadAvatarComplete() : * { this.arrAvatar = this.loadavatar.getArrAvatar(); this.loademotion = new loadEmotion(); this.loademotion.loadComplete = this.loadEmotionComplete; this.loademotion.beginLoad(); } private function loadEmotionComplete() : * { this.arrEmotion = this.loademotion.getArrEmotion(); this.loademotion = null; this.loadstatus = new loadStatus(); this.loadstatus.loadComplete = this.loadStatusComplete; this.loadstatus.beginLoad(); this.mvloading.txtLoading.text = "32"; } private function loadStatusComplete() : * { this.arrStatus = this.loadstatus.getArrStatus(); this.loadstatus = null; this.regChannel(); } private function ftRoomMessage() : * { this.openmessage.addMess(this.arrMessage[this.arrForm["room"].getIdMessage()],this.ftMessage,this.ftMessage); } private function regMenu() : * { this.ktloader = false; this.typeLoader = 4; this.arrForm["menu"] = "City.swf"; this.loaderProcess.addRequestByUrl("city1.txt",this.arrForm["menu"],FileFormat.BINARY,true,"city2.txt"); this.loaderProcess.load(); } private var isRoom:Boolean = true; private function regListChannel() : * { this.regChatx(); this.mvloading.txtLoading.text = "47"; } private function regRoom() : * { this.ktloader = false; this.typeLoader = 1; this.arrForm["room"] = "Room.swf"; this.loaderProcess.addRequestByUrl("room1.txt",this.arrForm["room"],FileFormat.BINARY,true,"room2.txt"); this.loaderProcess.load(); this.mvloading.txtLoading.text = "63"; } private function regCore() : * { this.ktloader = false; this.typeLoader = 2; this.arrForm["core"] = "Core.swf"; this.loaderProcess.addRequestByUrl("tamcay1.txt",this.arrForm["core"],FileFormat.BINARY,true,"tamcay2.txt"); this.loaderProcess.load(); } private function regChat() : * { this.ktloader = false; this.typeLoader = 3; this.arrForm["chat"] = "Chat.swf"; this.loaderProcess.addRequestByUrl("chat1.txt",this.arrForm["chat"],FileFormat.BINARY,true,"chat2.txt"); this.loaderProcess.load(); } private function regFriends() : * { this.ktloader = false; this.typeLoader = 13; this.arrForm["friend"] = "friends.swf"; this.loaderProcess.addRequestByUrl("friend1.txt",this.arrForm["friend"],FileFormat.BINARY,true,"friend2.txt"); this.loaderProcess.load(); } private function regAvatar() : * { this.ktloader = false; this.typeLoader = 10; this.arrForm["avatar"] = "Avatar.swf"; this.loaderProcess.addRequestByUrl("avatar1.txt",this.arrForm["avatar"],FileFormat.BINARY,true,"avatar2.txt"); this.loaderProcess.load(); } private function regInfor() : * { this.ktloader = false; this.typeLoader = 11; this.arrForm["infor"] = "infor.swf"; this.loaderProcess.addRequestByUrl("infor1.txt",this.arrForm["infor"],FileFormat.BINARY,true,"infor2.txt"); this.loaderProcess.load(); } private function regLog() : * { this.ktloader = false; this.typeLoader = 12; this.arrForm["log"] = "Log.swf"; this.loaderProcess.addRequestByUrl("log1.txt",this.arrForm["log"],FileFormat.BINARY,true,"log2.txt"); this.loaderProcess.load(); } private function regChatx() : * { this.arrForm["chat"].x = 250; this.arrForm["chat"].y = 398; if(this.isRoom) { this.regRoom(); } } private function getRoomComplete(param1:Event) : * { var _loc2_:* = false; this.place = 1; this.arrForm["room"] = Object(param1.currentTarget.content); this.arrForm["room"].setValues(this.arrStatus,this.oConn,this.account,this.customformattext,this.arrMessage,_loc2_); this.arrForm["room"].callGetRoomPage = this.callGetRoomPage; this.arrForm["room"].init(); this.arrForm["room"].regCore = this.regCore; this.arrForm["room"].ftMessage = this.ftRoomMessage; this.arrForm["room"].ftExit = this.ftRoomExit; this.mvbg.addChild(this.arrForm["room"]); this.oConn.sendData(<root><name>REG_ROOM</name><type>{Type.LIST}</type><data><room page="1" sort="0" asc="1"/></data></root>); this.mvbg.addChild(this.arrForm["chat"]); this.arrForm["chat"].setType(0); this.arrForm["chat"]._onClear(); this.arrForm["chat"].setRoom(0,""); this.arrForm["chat"].setFocusChat(); } private function getCoreComplete(param1:Event) : * { var evt:Event = param1; try { this.btInfor.visible = true; this.btFriend.visible = true; this.btInfor.y = 530; this.btFriend.y = 530; } catch(err:Error) { } this.arrForm["chat"].x = 765; this.arrForm["chat"].y = 416; this.arrForm["chat"].setType(0); this.arrForm["chat"]._onClear(); this.arrForm["chat"].setRoom(this.room.getId(),this.room.getId()); this.arrForm["chat"].setFocusChat(); this.place = 2; this.arrForm["core"] = Object(evt.currentTarget.content); this.arrForm["core"].setValues(this.oConn,this.room,this.account,this.arrStatus,this.arrCards,this.arrProperty,this.customformattext,this.arrMessage,this.arrAvatar,this.opendialog,this.ftDialogCancel); this.arrForm["core"].setArrEmotion(this.arrEmotion); this.arrForm["core"].setFormChat(this.arrForm["chat"]); this.arrForm["core"].setFormLog(this.arrForm["log"]); this.arrForm["core"].dataHandler(this.xmlSave); this.arrForm["core"].ftFriendClose = this.ftFriendClose; this.arrForm["core"].fnResetDialog = this.fnResetDialog; this.arrForm["core"].ftDialogBetCancel = this.ftDialogCancel; this.arrForm["core"].init(); this.arrForm["core"].ftKetban = this.ftKetban; this.arrForm["core"].ftExit = this.ftCoreExit; this.mvbg.addChild(this.arrForm["core"]); this.mvbg.addChild(this.arrForm["chat"]); this.mvbg.addChild(this.arrForm["log"]); } private function getChatComplete(param1:Event) : * { this.arrForm["chat"] = Object(param1.currentTarget.content); this.arrForm["chat"].setAccount(this.account); this.arrForm["chat"].setArrEmotion(this.arrEmotion); this.arrForm["chat"].setArrMessage(this.arrMessage); this.arrForm["chat"].x = 80; this.arrForm["chat"].y = 410; this.arrForm["chat"].checkUser = this.checkUser; this.arrForm["chat"].sendDataChat = this.sendDataChat; this.regChatConnect(this._host,this._portChat); this.stage.addEventListener(KeyboardEvent.KEY_DOWN,this._onEnter); } private function getAvatarComplete(param1:Event) : * { this.arrForm["avatar"] = Object(param1.currentTarget.content); this.arrForm["avatar"].setArrAvatar(this.arrAvatar); this.arrForm["avatar"].setAccount(this.account); this.arrForm["avatar"].ftSelect = this.ftAvatarSelect; this.arrForm["avatar"].ftClose = this.ftAvatarClose; this.regInfor(); } private function getInforComplete(param1:Event) : * { this.arrForm["infor"] = Object(param1.currentTarget.content); this.arrForm["infor"].x = 400; this.arrForm["infor"].y = 230; this.arrForm["infor"].setMvAvatar(this.arrForm["avatar"]); this.arrForm["infor"].setAccount(this.account); this.arrForm["infor"].ftInforClose = this.ftInforClose; this.regFriends(); } private function getFriendComplete(param1:Event) : * { this.arrForm["friend"] = Object(param1.currentTarget.content); this.arrForm["friend"].x = 300; this.arrForm["friend"].y = 200; this.arrForm["friend"].setAccount(this.account); this.arrForm["friend"].ftDel = this.ftDelFriend; this.arrForm["friend"].ftSelected = this.ftSelected; this.arrForm["friend"].ftFriendClose = this.ftFriendClose; trace("000000000000000000000000000"); this.oConn.sendData(<root><name>REG_PLAYER</name><type>{Type.LISTFRIEND}</type></root>); this.regLog(); } private function ftSelected() : * { this.nameFriendSelected = this.arrForm["friend"].getNameSelected(); if(this.nameFriendSelected != null) { trace("Ban da chon ",this.arrForm["friend"].getNameSelected(),this.room.getId()); this.nameFriend = this.nameFriendSelected; this.openDialogConfirm("(" + this.nameFriendSelected + ")" + this.arrMessage["6005"],2); } } private var mvDialogComfirm:MovieClip = null; private var nameFriend:String = ""; private var _typeDialog:int; public function openDialogConfirm(param1:String, param2:int) : * { this._typeDialog = param2; this.mvDialogComfirm = new MvDialogComfirm(); this.mvDialogComfirm.btOk.buttonMode = true; this.mvDialogComfirm.btCancel.buttonMode = true; this.customformattext.boldText(this.mvDialogComfirm.txtInfor); this.customformattext.boldText(this.mvDialogComfirm.btOk.txtName); this.customformattext.boldText(this.mvDialogComfirm.btCancel.txtName); this.mvDialogComfirm.txtInfor.text = this.arrMessage["18"]; this.mvDialogComfirm.btOk.txtName.text = this.arrMessage["3"]; this.mvDialogComfirm.btCancel.txtName.text = this.arrMessage["4"]; this.mvDialogComfirm.txtName.text = param1; this.mvDialogComfirm.btOk.gotoAndStop(1); this.mvDialogComfirm.btCancel.gotoAndStop(1); this.mvDialogComfirm.btOk.addEventListener(MouseEvent.MOUSE_OVER,this.ftOverMessage); this.mvDialogComfirm.btOk.addEventListener(MouseEvent.MOUSE_OUT,this.ftOutMessage); this.mvDialogComfirm.btOk.addEventListener(MouseEvent.CLICK,this._onClikOK); this.mvDialogComfirm.btCancel.addEventListener(MouseEvent.MOUSE_OVER,this.ftOverMessage); this.mvDialogComfirm.btCancel.addEventListener(MouseEvent.MOUSE_OUT,this.ftOutMessage); this.mvDialogComfirm.btCancel.addEventListener(MouseEvent.CLICK,this._onClikCancel); this.addChild(this.mvDialogComfirm); } private function _onClikOK(param1:MouseEvent) : * { var evt:MouseEvent = param1; this.btclick.play(); if(this._typeDialog == 2) { if(this.nameFriend != "") { if(this.nameFriend != "") { this.oConn.sendData(<root><name>REG_ROOM</name><type>{Type.SENDINV}</type><data><char character="{this.nameFriend}"/></data></root>); } this.nameFriend = ""; } } else if(this._typeDialog == 1) { this.oConn.sendData(<root><name>REG_PLAYER</name><type>{Type.DELFRIEND}</type><data><friend id="{this.arrForm["friend"].idDel}"/></data></root>); } else if(this._typeDialog == 3) { if(this.nameAdd != "") { this.oConn.sendData(new XML(<reg><name>REG_PLAYER</name><type>{Type.ANSFRIEND}</type><data><friend character="{this.nameAdd}" status='1'/></data></reg>)); } this.nameAdd = ""; } this.arrForm["friend"].setReset(); try { this.removeChild(this.mvDialogComfirm); } catch(err:Error) { } this._typeDialog = -1; } private function _onClikCancel(param1:MouseEvent = null) : * { var evt:MouseEvent = param1; this.btclick.play(); this.arrForm["friend"].setReset(); try { this.removeChild(this.mvDialogComfirm); } catch(err:Error) { } } private function ftOverMessage(param1:MouseEvent) : * { param1.currentTarget.gotoAndStop(2); } private function ftOutMessage(param1:MouseEvent) : * { param1.currentTarget.gotoAndStop(1); } private function ftInvSendOk(param1:MouseEvent) : * { this.btclick.play(); trace("Ket ban Call Function ftInvSendOk:" + this.nameFriendSelected); if(this.nameFriendSelected != "") { this.oConn.sendData(<root><name>REG_ROOM</name><type>{Type.SENDINV}</type><data><char character="{this.nameFriendSelected}"/></data></root>); this.ftDialogCancel(); } } private function ftCancelDialogConfirm(param1:* = null) : * { this.btclick.play(); this.arrForm["friend"].setNameSelected(); } private var idinv:int = 0; private function ftInvOk(param1:MouseEvent) : * { this.btclick.play(); trace("Kết bạn call function ftInvOk____"); if(!(this.arrForm["room"] == null) && !(this.idinv == 0)) { this.oConn.sendData(<root><name>REG_ROOM</name><type>{Type.SELECT}</type><data><room id="{this.idinv}"/></data></root>); this.idinv = 0; } this.ftDialogCancel(); } private function ftDelFriend() : * { trace("Xoa call function ftDelFriend____"); if(this.arrForm["friend"].idDel != 0) { this.openDialogConfirm(this.arrMessage["6001"],1); } } private function ftDialogDelOk(param1:MouseEvent = null) : * { this.btclick.play(); this.oConn.sendData(<root><name>REG_PLAYER</name><type>{Type.DELFRIEND}</type><data><friend id="{this.arrForm["friend"].idDel}"/></data></root>); this.ftDialogCancel(); } private function ftKetban() : * { trace("Kết bạn không??___ftKetban"); this.nameFriendSelected = this.arrForm["core"].getNameFriend(); this.opendialog.addDialog("(" + this.nameFriendSelected + ")" + this.arrMessage["6003"],this.ftDialogDelOk,this.ftKetbanOk); } private var nameFriendSelected:String = ""; private function ftKetbanOk(param1:MouseEvent = null) : * { this.btclick.play(); this.nameFriendSelected = this.arrForm["core"].getNameFriend(); trace("Ket ban Call Function ftKetbanOk:" + this.nameFriendSelected); if(this.nameFriendSelected != "") { if(!this.arrForm["friend"].checkFriend(this.nameFriendSelected)) { this.oConn.sendData(new XML(<reg><name>REG_PLAYER</name><type>{Type.ADDFRIEND}</type><data><friend character="{this.nameFriendSelected}"/></data></reg>)); } else { this.openmessage.addMess("(" + this.nameFriendSelected + ")" + this.arrMessage["6002"],this.ftMessage,this.ftMessage); } this.ftDialogCancel(); } } private function ftKetbanAnsOk(param1:MouseEvent = null) : * { this.btclick.play(); if(this.nameFriendSelected != "") { this.oConn.sendData(new XML(<reg><name>REG_PLAYER</name><type>{Type.ANSFRIEND}</type><data><friend character="{this.nameFriendSelected}" status='1'/></data></reg>)); } this.ftDialogCancel(); } private function getLogComplete(param1:Event) : * { this.arrForm["log"] = Object(param1.currentTarget.content); this.arrForm["log"].x = 795; this.arrForm["log"].y = 50; this.btInfor.addEventListener(MouseEvent.CLICK,this._onInforClick); trace("............"); this.btFriend.addEventListener(MouseEvent.CLICK,this._onFriendClick); trace("............"); this.regChat(); } private function ftAvatarSelect() : * { var _loc1_:* = this.arrForm["avatar"].getAvatarSelected(); this.oConn.sendData(new XML(<reg><name>REG_PLAYER</name><type>{Type.CAVATAR}</type><data><char avatar="{_loc1_.getId()}"/></data></reg>)); this.ftAvatarClose(); } private function ftAvatarClose() : * { this.arrForm["infor"].removeMvAvatar(); } private var ktInfor:Boolean = false; private function _onInforClick(param1:MouseEvent) : * { this.btclick.play(); this.fnResetDialog(); if(!this.ktInfor) { this.mvbg.addChild(this.arrForm["infor"]); this.ktInfor = true; } else { this.mvbg.removeChild(this.arrForm["infor"]); this.arrForm["infor"].removeMvAvatar(); this.ktInfor = false; } } private var ktFriend:Boolean = false; private function _onFriendClick(param1:MouseEvent) : * { this.btclick.play(); this.fnResetDialog(); if(!this.ktFriend) { this.mvbg.addChild(this.arrForm["friend"]); this.ktFriend = true; } else { this.mvbg.removeChild(this.arrForm["friend"]); this.ktFriend = false; } } public function fnResetDialog() : * { try { if(this.ktFriend) { this.mvbg.removeChild(this.arrForm["friend"]); this.ktFriend = false; } } catch(err:Error) { } try { if(this.ktInfor) { this.mvbg.removeChild(this.arrForm["infor"]); this.arrForm["infor"].removeMvAvatar(); this.ktInfor = false; } } catch(err:Error) { } try { this.arrForm["core"].fnResetFnDialog(); } catch(err:Error) { } } private function ftFriendClose() : * { if(this.ktFriend) { this.mvbg.removeChild(this.arrForm["friend"]); this.ktFriend = false; } } private function ftInforClose() : * { if(this.ktInfor) { this.mvbg.removeChild(this.arrForm["infor"]); this.arrForm["infor"].removeMvAvatar(); this.ktInfor = false; } } private var ktsearch:Boolean = false; private function loaderDataComplete(param1:Event) : * { switch(this.typeLoader) { case 1: if(!this.ktloader) { this.arrForm["room"] = Object(this.loaderProcess.getResponseById(this.arrForm["room"],true,"asdasdasdjk3lj434ldaudau")); this.arrForm["room"].contentLoaderInfo.addEventListener(Event.COMPLETE,this.getRoomComplete); this.ktloader = true; } break; case 2: if(!this.ktloader) { this.ktsearch = this.arrForm["room"].getktSearch(); trace("ktsearch" + this.ktsearch); if(this.ktsearch) { trace("xmlSave" + this.xmlSave); this.room = new RoomControl(); this.room.setId(this.xmlSave.data.room.@id); this.room.setMode(this.xmlSave.data.room.@mode); this.room.setCount(this.xmlSave.data.room.@countplayer); this.room.setGold(this.xmlSave.data.room.@betting); } this.mvbg.removeChild(this.arrForm["room"]); this.arrForm["room"] = null; this.arrForm["core"] = Object(this.loaderProcess.getResponseById(this.arrForm["core"],true,"asdasdasdjk3lj434ldaudau")); this.arrForm["core"].contentLoaderInfo.addEventListener(Event.COMPLETE,this.getCoreComplete); this.ktloader = true; } break; case 3: if(!this.ktloader) { this.arrForm["chat"] = Object(this.loaderProcess.getResponseById(this.arrForm["chat"],true,"asdasdasdjk3lj434ldaudau")); this.arrForm["chat"].contentLoaderInfo.addEventListener(Event.COMPLETE,this.getChatComplete); this.ktloader = true; } break; case 10: if(!this.ktloader) { this.arrForm["avatar"] = Object(this.loaderProcess.getResponseById(this.arrForm["avatar"],true,"asdasdasdjk3lj434ldaudau")); this.arrForm["avatar"].contentLoaderInfo.addEventListener(Event.COMPLETE,this.getAvatarComplete); this.ktloader = true; } break; case 11: if(!this.ktloader) { this.arrForm["infor"] = Object(this.loaderProcess.getResponseById(this.arrForm["infor"],true,"asdasdasdjk3lj434ldaudau")); this.arrForm["infor"].contentLoaderInfo.addEventListener(Event.COMPLETE,this.getInforComplete); this.ktloader = true; } break; case 12: if(!this.ktloader) { this.arrForm["log"] = Object(this.loaderProcess.getResponseById(this.arrForm["log"],true,"asdasdasdjk3lj434ldaudau")); this.arrForm["log"].contentLoaderInfo.addEventListener(Event.COMPLETE,this.getLogComplete); this.ktloader = true; } break; case 13: if(!this.ktloader) { this.arrForm["friend"] = Object(this.loaderProcess.getResponseById(this.arrForm["friend"],true,"asdasdasdjk3lj434ldaudau")); this.arrForm["friend"].contentLoaderInfo.addEventListener(Event.COMPLETE,this.getFriendComplete); this.ktloader = true; } break; } } private var gameSelected = null; private function ftModeSelect() : * { this.gameSelected = this.loadmode.getItemSelected(); this.arrMode = this.loadmode.getArrMode(); trace("Game da chon la:",this.gameSelected.id); this.regListChannel(); } private function regChannel() : * { this.oConn = new Connecter(); this.oConn.setAccId(this.account.getId()); this.oConn.setServer(this._host); this.oConn.setPort(this._port); this.oConn._connectSocket = this._connectData; this.oConn._dataSocket = this._dataData; this.oConn._closeSocket = this._closeData; this.oConn.connect(); } private function chatPrivate() : * { this.arrForm["chat"].setUser(0,""); } private function sendDataChat() : * { this.oConnChat.sendDataChat(this.arrForm["chat"].getXmlSend()); } private function checkUser() : * { if(this.place == 2) { this.arrForm["chat"].chatPrivate(this.arrForm["core"].checkUser(this.arrForm["chat"].getNameTo())); } } private function regChatConnect(param1:String, param2:int) : * { this.oConnChat = new ConnecterChat(); this.oConnChat.setServer(param1); this.oConnChat.setPort(param2); this.oConnChat._connectSocket = this._connectChat; this.oConnChat._dataSocket = this._dataChat; this.oConnChat._closeSocket = this._closeChat; this.oConnChat.connect(); } private function _connectChat() : * { trace("----------------"); this.oConnChat.sendDataChat(new XML(<reg><name>REG_CHAT</name><type>CONNECTED</type><data><char id="{this.account.getSession()}" password="{this.account.getPass()}"/></data></reg>)); this.loadmode = new loadMode(); this.loadmode.ftSelect = this.ftModeSelect; this.loadmode.beginLoad(); } private function _dataChat() : * { this.arrForm["chat"]._onData(this.oConnChat.getXML()); try { this.arrForm["core"]._onDataChat(this.oConnChat.getXML()); } catch(err:Error) { } } private function _closeChat() : * { } private function _connectData() : * { var _loc1_:* = MD5.encrypt("-1"); this.oConn.sendDataConnected(new XML(<reg><name>REG_PLAYER</name><type>CONNECTED</type><data><char id="{this.account.getId()}" password="{_loc1_}"/></data></reg>)); } private var mvNotifice:MovieClip = null; private function openNotificeMessage(param1:String) : * { if(this.mvNotifice != null) { this._onClickNotifice(); } this.mvNotifice = new MvNotificeMessage(); this.mvNotifice.txtInfor.htmlText = "<b>Thông báo</b>"; this.mvNotifice.txtName.htmlText = "<b>" + param1 + "</b>"; this.mvNotifice.btOk.txtName.htmlText = "<b>Đồng ý</b>"; this.mvNotifice.btOk.gotoAndStop(1); this.mvNotifice.btOk.buttonMode = true; this.mvNotifice.btOk.addEventListener(MouseEvent.MOUSE_OVER,this.ftOverMessage); this.mvNotifice.btOk.addEventListener(MouseEvent.MOUSE_OUT,this.ftOutMessage); this.mvNotifice.btOk.addEventListener(MouseEvent.CLICK,this._onClickNotifice); addChild(this.mvNotifice); } private function _onClickNotifice(param1:MouseEvent = null) : * { var evt:MouseEvent = param1; try { removeChild(this.mvNotifice); this.mvNotifice = null; } catch(err:Error) { } } private var xmlSave:XML = null; private function _dataData() : * { var aid:int = 0; var xml:XML = this.oConn.getXML(); var name:String = this.oConn.getName(); var type:String = this.oConn.getType(); var a:int = 0; trace("xml da nhan la ",xml); if(parseInt(xml.data.char.@id) == -1) { if(String(xml.type).substr(0,3) == "ERR") { if(String(xml.type) == "ERRO_XXX") { this.openNotificeMessage(xml.data.char.content); } else { this.openmessage.addMess(xml.data.char.content,this.ftMessage,this.ftMessage); } } } else if(String(xml.type).substr(0,3) == "ERR") { if(String(xml.type) == "ERRO_XXX") { this.openNotificeMessage(xml.data.char.content); } } if(String(this.oConn.getType()).substr(0,3) == "ERR" && this.account.getSession() == parseInt(xml.data.char.@id)) { if(this.oConn.getType() != "ERRO_CHANGE_BETTING") { trace("!ERRO_CHANGE_BETTING:" + this.oConn.getType()); if(this.oConn.getType() != "ERRO_XXX") { this.openmessage.addMess(xml.data.char.content,this.ftMessage,this.ftMessage); try { this.arrForm["room"].removeMark(); } catch(err:Error) { } } else if(this.oConn.getType() == "ERRO_XXX") { trace("Lỗi rồi: ERRO_XXX"); this.openNotificeMessage(xml.data.char.content); } else { this.openNotificeMessage(xml.data.char.content); } } else { trace("=ERRO_CHANGE_BETTING:" + this.oConn.getType()); try { this.arrForm["core"].addErr(xml); } catch(err:Error) { } } } if(name == "REG_PLAYER" && type == "RETURN_" + Type.CAVATAR) { try { this.arrForm["core"].dataHandler(xml); } catch(err:Error) { } if(this.account.getSession() == parseInt(xml.data.char.@id)) { a = 0; while(a < this.arrAvatar.length) { if(this.arrAvatar[a].getId() == xml.data.char.@avatar) { this.account.setAvatar(this.arrAvatar[a]); break; } a++; } this.arrForm["infor"].changeAccount(this.account); this.arrForm["avatar"].setAccount(this.account); } } if(type == "RETURN_CONNECTED" && this.account.getId() == parseInt(xml.data.char.@id)) { this.account.setSession(parseInt(xml.data.char.@pid)); this.account.setGender(xml.data.char.@gender); this.account.setGold(parseInt(xml.data.char.@gold)); this.account.setCash(parseInt(xml.data.char.@cash)); a = 0; while(a < this.arrAvatar.length) { aid = parseInt(xml.data.char.@avatar); if(aid <= 0) { aid = 1; } if(this.arrAvatar[a].getId() == aid) { this.account.setAvatar(this.arrAvatar[a]); break; } a++; } this.regAvatar(); } if(this.place == 1) { switch(type) { case "RETURN_" + Type.SELECT: if(parseInt(xml.data.char.@id) == this.account.getSession()) { this.room = this.arrForm["room"].getRoomControl(parseInt(xml.data.room.@id)); this.xmlSave = xml; } break; case "RETURN_" + Type.SENDINV: this.idinv = xml.data.room.@id; this.opendialog.addDialog("(" + this.idinv + ")" + this.arrMessage["6006"],null,this.ftInvOk); break; } this.arrForm["room"].dataHandler(xml); } else if(this.place == 2) { this.arrForm["core"].dataHandler(xml); } if(type == "RETURN_" + Type.LISTFRIEND || type == "RETURN_" + Type.DELFRIEND) { trace("--s-s-s-s--s"); this.arrForm["friend"].dataHandler(xml); } else if(type == "RETURN_" + Type.ADDFRIEND) { if(this.nameAdd == "") { this.nameFriendSelected = ""; this.nameAdd = ""; this.nameFriendSelected = xml.data.char.@character; this.nameAdd = this.nameFriendSelected; this.openDialogConfirm("(" + this.nameFriendSelected + ")" + this.arrMessage["6004"],3); } else { this.nameAdd = ""; try { this._onClikCancel(); } catch(err:Error) { } this.nameFriendSelected = ""; this.nameAdd = ""; this.nameFriendSelected = xml.data.char.@character; this.nameAdd = this.nameFriendSelected; this.openDialogConfirm("(" + this.nameFriendSelected + ")" + this.arrMessage["6004"],3); } } else if(type == "RETURN_" + Type.ANSFRIEND) { this.arrForm["friend"].dataHandler(xml); } } private var nameAdd:String = ""; private function _closeData() : * { trace("Bi close roi"); this.openmessage.addMess(this.arrMessage["1"],this.ftMessage,this.ftCloseMessage); } private function ftRoomExit() : * { var _loc1_:URLRequest = new URLRequest(this.arrProperty[0] + "Channel.aspx"); navigateToURL(_loc1_,"_self"); } private function ftChannelExit() : * { this.opendialog.addDialog(this.arrMessage["2"],null,this.ftDialogOk); } private function ftCoreExit() : * { try { this.btInfor.visible = false; this.btFriend.visible = false; } catch(err:Error) { } try { this.arrForm["log"].clearLog(); this.mvbg.removeChild(this.arrForm["log"]); } catch(err:Error) { } this.mvbg.removeChild(this.arrForm["core"]); this.arrForm["core"] = null; this.isRoom = true; this.regListChannel(); } private function _onEnter(param1:KeyboardEvent) : * { var evt:KeyboardEvent = param1; if(this.place == 2 || this.place == 1) { try { this.arrForm["chat"]._onEnter(evt); } catch(err:Error) { } } } private function ftMessage(param1:MouseEvent = null) : * { this.openmessage.removeMess(this.ftMessage); } private function ftCloseMessage(param1:MouseEvent = null) : * { this.btclick.play(); this.openmessage.removeMess(this.ftCloseMessage); var _loc2_:URLRequest = new URLRequest(this.arrProperty[0]); navigateToURL(_loc2_,"_self"); } private function ftDialogOk(param1:MouseEvent = null) : * { this.btclick.play(); var _loc2_:URLRequest = new URLRequest(this.arrProperty[0]); navigateToURL(_loc2_,"_self"); this.oConn.onclose(); } private function ftDialogCancel(param1:MouseEvent = null) : * { var evt:MouseEvent = param1; this.btclick.play(); this.opendialog.removeMess(this.ftDialogCancel); try { this.arrForm["core"].setCancel(); } catch(err:Error) { } try { this.arrForm["core"].setNameFriend(); } catch(err:Error) { } try { this.arrForm["friend"].setReset(); } catch(err:Error) { } } private function callGetRoomPage() : * { trace("Send get page" + this.arrForm["room"].getCurrentPage()); var _loc1_:* = this.arrForm["room"].getkieusort(); trace("kieusort" + _loc1_); switch(_loc1_) { case "0": this.oConn.sendData(<root><name>REG_ROOM</name><type>{Type.LIST}</type><data><room page="{this.arrForm["room"].getCurrentPage()}" sort="0" asc="{this.arrForm["room"].getktSortId()}"/></data></root>); break; case "1": this.oConn.sendData(<root><name>REG_ROOM</name><type>{Type.LIST}</type><data><room page="{this.arrForm["room"].getCurrentPage()}" sort="1" asc="{this.arrForm["room"].getktSortMoney()}"/></data></root>); break; case "2": this.oConn.sendData(<root><name>REG_ROOM</name><type>{Type.LIST}</type><data><room page="{this.arrForm["room"].getCurrentPage()}" sort="2" asc="{this.arrForm["room"].getktSortCount()}"/></data></root>); break; default: this.oConn.sendData(<root><name>REG_ROOM</name><type>{Type.LIST}</type><data><room page="{this.arrForm["room"].getCurrentPage()}" sort="{this.arrForm["room"].getkieusort()}" asc="1"/></data></root>); } } } }
Khách viếng thăm hãy cùngOldGamerxây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
23-10-14, 08:33 PM #36
- Ngày tham gia
- Sep 2014
- Bài viết
- 190
- Thanks
- 12
- Thanked 29 Times in 12 Posts
Ðề: Share Game bài, ba cây, tiến lên
Khách viếng thăm hãy cùng kenhoang xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
23-10-14, 08:35 PM #37
- Ngày tham gia
- Jul 2011
- Bài viết
- 171
- Thanks
- 17
- Thanked 16 Times in 14 Posts
Ðề: Share Game bài, ba cây, tiến lên
Có thể không đầy đủ nhưng chí ít phải chạy được đã
Khách viếng thăm hãy cùngOldGamerxây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
23-10-14, 08:50 PM #38
- Ngày tham gia
- Mar 2014
- Bài viết
- 43
- Thanks
- 1
- Thanked 138 Times in 15 Posts
Ðề: Share Game bài, ba cây, tiến lên
tất cả anh em đừng đợi cái này nữa mình chỉ nói 1 câu anh em nghe được ko đựoc thì đùng chchửi nhé
bản này chưa đầy đủ mình đã kiểm tra
1 game bài thiếu rất nhiều code game bao gồm có server nữa chứ ko phải vài file web vậy là chạy đâu
nói chung bản này người share thiếu server file rất nhiều góp ýKhách viếng thăm hãy cùng vuongecd1 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
23-10-14, 09:03 PM #39
- Ngày tham gia
- Jul 2011
- Bài viết
- 171
- Thanks
- 17
- Thanked 16 Times in 14 Posts
Ðề: Share Game bài, ba cây, tiến lên
Chờ bản của bác để ngâm cứu
Khách viếng thăm hãy cùngOldGamerxây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
23-10-14, 10:08 PM #40
- Ngày tham gia
- Nov 2010
- Đang ở
- Giường băng cùng Tiểu Long Nữ
- Bài viết
- 853
- Thanks
- 157
- Thanked 1,424 Times in 229 Posts
Ðề: Share Game bài, ba cây, tiến lên
ai bảo share thiếu thì , có thế nào share thế đó, còn fix dc hay không do các vìowr clbgame này, rất rất nhiều người đã chạy thành công rồi
Khách viếng thăm hãy cùng khuek8b xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
Các Chủ đề tương tự
-
Cần người share game Đắc Kỷ
Bởi aiue0501 trong diễn đàn Hỏi Đáp/ Yêu CầuTrả lời: 1Bài viết cuối: 18-07-13, 07:38 AM -
Share 1 game gần giống au
Bởi zin1007 trong diễn đàn Các Server Không Nằm Trong BoxTrả lời: 27Bài viết cuối: 05-07-13, 12:19 PM -
Share 1 Web Game nữa
Bởi thientruongdx trong diễn đàn CHUYÊN ĐỀ WEB GAMESTrả lời: 12Bài viết cuối: 18-08-12, 08:33 PM -
[SHARE] TOP 50 cao thủ cho game
Bởi Oack123 trong diễn đàn Hỏi Đáp/ Yêu CầuTrả lời: 6Bài viết cuối: 22-03-11, 11:06 AM -
Các pro share dum web game nhà hành vui vẻ
Bởi tan_vu646 trong diễn đàn Hỏi Đáp/ Yêu CầuTrả lời: 6Bài viết cuối: 03-12-09, 12:24 PM