getPublicMessage's sfsobj

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

firstblood
Posts: 1
Joined: 13 Dec 2010, 05:49

getPublicMessage's sfsobj

Postby firstblood » 13 Dec 2010, 06:09

sfs.addEventListener(SFSEvent.PUBLIC_MESSAGE, onMsgReceive);

var sfso:SFSObject = new SFSObject();
sfso.putUtfString("name",_me.nickName);
sfs.send(new PublicMessageRequest("init", sfso, ev.params.room));

private function onMsgReceive(ev:SFSEvent):void {
trace( ev.params.message);
var sfso:SFSObject = ev.params.params; // it's wrong!
trace(sfso.getUtfString(Constants.NICK_NAME));
}

the problem is that:
how can I get the sfsobj from ev.params?

thanks
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 17 Dec 2010, 16:19

Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X ActionScript 3 API”

Who is online

Users browsing this forum: No registered users and 11 guests