problem with connection
Posted: 15 Feb 2010, 19:19
Version: SFS Basic with the latest patch and latest apis
Debug:
[Sending]: <msg t='sys'><body action='verChk' r='0'><ver v='153' /></body></msg>
[Received]: <cross-domain-policy><allow-access-from domain="*" to-ports="9339" /></cross-domain-policy>
[Received]: <msg t="sys"><body action="apiOK" r="0" /></msg>
So...later this... i don't recieve any message...
the sfs tris example run normally for example...
but my game...see my codes...
Part of the code:
_root.zoneGame = "mygamezone";
_root.sfcl = new SFCl(username, ip, port, true, _root.zoneGame);
---------------------------------------------------------------------
Part of my class SFCl.as:
class SFCl extends it.gotoandplay.smartfoxserver.SmartFoxClient
{
static var zone;
function SFCl(username, ip, port, debug, z)
{
super();
this.debug = debug;
this.username = username;
this.ip = ip;
this.port = port;
zone = z;
this.connect(ip, port);
function onObjectReceived(obj, sender)
{
------------------------------------------------
*The api is appointed correctly to the classpath of sfs basic/flash api/actionscript 2...
-----------------------------------------------------------------
Anybody Can Help me?
Debug:
[Sending]: <msg t='sys'><body action='verChk' r='0'><ver v='153' /></body></msg>
[Received]: <cross-domain-policy><allow-access-from domain="*" to-ports="9339" /></cross-domain-policy>
[Received]: <msg t="sys"><body action="apiOK" r="0" /></msg>
So...later this... i don't recieve any message...
the sfs tris example run normally for example...
but my game...see my codes...
Part of the code:
_root.zoneGame = "mygamezone";
_root.sfcl = new SFCl(username, ip, port, true, _root.zoneGame);
---------------------------------------------------------------------
Part of my class SFCl.as:
class SFCl extends it.gotoandplay.smartfoxserver.SmartFoxClient
{
static var zone;
function SFCl(username, ip, port, debug, z)
{
super();
this.debug = debug;
this.username = username;
this.ip = ip;
this.port = port;
zone = z;
this.connect(ip, port);
function onObjectReceived(obj, sender)
{
------------------------------------------------
*The api is appointed correctly to the classpath of sfs basic/flash api/actionscript 2...
-----------------------------------------------------------------
Anybody Can Help me?