can i seand a public message or a private message !

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

User avatar
shvilam
Posts: 118
Joined: 16 Mar 2008, 12:36
Location: Israel
Contact:

can i seand a public message or a private message !

Postby shvilam » 04 Jan 2009, 10:03

can i send a public message or private message from the server and get the messages as they where send form the client ??

Code: Select all

SFSEvent.onPrivateMessage:
SFSEvent.onPublicMessage:

thanks
sstark
Posts: 77
Joined: 21 Nov 2008, 16:06

Postby sstark » 05 Jan 2009, 17:28

yes, with a custom extension. I would use onAdminMessage, however.

http://www.smartfoxserver.com/docs/docPages/as3/html/index.html

I am sure there's an example in the sfs download's example folder.

also, here's a recent topic about adminMessage:

http://www.smartfoxserver.com/forums/viewtopic.php?t=2935
User avatar
shvilam
Posts: 118
Joined: 16 Mar 2008, 12:36
Location: Israel
Contact:

so i that way i can simulate any kind of message

Postby shvilam » 06 Jan 2009, 04:54

so if i am using a sendGenericMessage i a can simulate any call from the server ??
not just a public or a private message
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 06 Jan 2009, 07:21

For private and public messages you could use the dispatchPrivateMessage and dispatchPublicMessage server side methods.

Otherwise you can use the sendGenericMessage which, as you asked, allows you to "fake" any server message.

Happy new year
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “Server Side Extension Development”

Who is online

Users browsing this forum: No registered users and 31 guests