Yes; I have another question. My SimpleConnect AS is as follows:
Code: Select all
import it.gotoandplay.smartfoxserver.*
/*
* ----------------------------------------------------------------------------
* [ Advanced Chat ] version 1.1.0
* a SmartFoxServer sample application
*
* www.smartfoxserver.com
* (c) 2004 gotoAndPlay()
* ----------------------------------------------------------------------------
*/
stop()
//----------------------------------------------------------
// Server configuration
//
// ip = IP address of the server, if the server is running
// locally use 127.0.0.1
// port = default value is 9339
//----------------------------------------------------------
var ip:String = "70.60.138.26"
var port:Number = 9339
var zone:String = "simpleChat"
var smartfox:SmartFoxClient = new SmartFoxClient()
smartfox.onConnection = handleConnection
smartfox.debug = true
// Connect to the server
smartfox.connect(ip, port)
//----------------------------------------------------------
// Handle connection response from server
//----------------------------------------------------------
function handleConnection(success)
{
if (success)
{
status_txt.text = "Connection succesfull!"
}
else
{
status_txt.text = "Can't connect!"
}
}[edit] when i insert the "System.security.loadPolicyFile("xmlsocket://70.60.138.26:9339")" line into my movie, it just says "connecting" and shoots out no error or anything
whenever i test the movie in flash mx 2004, it gives me this output as well:
Code: Select all
[Sending]: <msg t='sys'><body action='verChk' r='0'><ver v='102' /></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>any ideas? thanks in advanced