Forum ActionScript 3.0 Server sends message to both clients?

Problems and discussions relating to ActionScript 3.0 here.

Server sends message to both clients?

Postby igli1 » June 29th, 2013, 1:15 pm

My server sends message to both clients when i write sth...
case "BroadcastMessage":
Broadcast("BroadcastMessage", message.GetString(0));
break;

I know that's how it's programmed to send, but how can i make to send to only 1 client?
From Client A to B, and not when client A sends message, to recieve it too

Any idea? Your help would be appreciated

Best Regards,
igli

PS: If someone would be interested in helping me for becoming a part of my team, tell me :D
igli1
 
Posts: 38
Joined: June 29th, 2013, 1:12 pm

Re: Server sends message to both clients?

Postby Henrik » June 29th, 2013, 4:11 pm

Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: Server sends message to both clients?

Postby igli1 » June 29th, 2013, 5:12 pm


"Use foreach to loop over all the players." (From players link) An example please
How can i target to the OTHER player/client?
igli1
 
Posts: 38
Joined: June 29th, 2013, 1:12 pm


Return to ActionScript 3.0



cron