stop();
import it.gotoandplay.smartfoxserver.*;
import it.gotoandplay.smartfoxserver.data.*;
var sfs:SmartFoxClient = new SmartFoxClient();
//load config file
sfs.addEventListener(SFSEvent.onConfigLoadSuccess, onConfigLoadSuccessHandler);
sfs.addEventListener(SFSEvent.onConfigLoadFailure, onConfigLoadFailureHandler);
sfs.addEventListener(SFSEvent.onRoomListUpdate,onRoomListUpdate);
sfs.loadConfig("config.xml", false);
msg.text="";
function onConfigLoadSuccessHandler(evt:SFSEvent):void
{
msg.text = "Config file loaded, now connected...";
sfs.connect(sfs.ipAddress, sfs.port);
gotoAndStop("cRoom", "Scene 1");
}
function onConfigLoadFailureHandler(evt:SFSEvent):void
{
msg.text = "Failed loading config file: " + evt.params.message;
}
function onRoomListUpdate(e:SFSEvent):void
{
sfs.autoJoin();
}
AS 2 is it possible to make characters click-to-move?
-
What I'm asking specifically is, is it possible to make characters (or just
plain symbols) dynamically move to your cursor when you click on something?
I'v...
1 week ago
0 comments:
Post a Comment