Forum ActionScript 3.0 Sending & Receiving Messages

Problems and discussions relating to ActionScript 3.0 here.

Sending & Receiving Messages

Postby bobmania » February 26th, 2014, 10:18 pm

I have got playerIO to connect to my game, it successfully connects and all, and then goes to frame 2 where I have my game.
BUT, I have tried using the code playerIO says to use to send and receive messages and all but it doesn't work. I've been at it for 2 hours trying to find a way to send a receive messages from the server and to send messages to all clients connected, but still no luck.

Does anyone have any idea how to do this?
bobmania
 
Posts: 5
Joined: December 27th, 2013, 3:04 am

Re: Sending & Receiving Messages

Postby Henrik » February 27th, 2014, 1:24 am

In what way doesn't it work?

Are you running the local dev server?

Have you added the line in your game to make it point to your local dev server instead of the live game servers?

Do you have error handling callbacks in all api calls so you can see where it goes wrong and how?
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: Sending & Receiving Messages

Postby bobmania » February 27th, 2014, 3:41 pm

No, I have it connecting to the actual PlayerIO server.

This is what I have for errors:

Code: Select all
private function handleError(error:PlayerIOError):void{
         trace("got",error)
         gotoAndStop(3);

      }
bobmania
 
Posts: 5
Joined: December 27th, 2013, 3:04 am

Re: Sending & Receiving Messages

Postby waleed444 » February 24th, 2015, 12:54 pm

Have you added the line in your game to make it point to your local dev server instead of the live game servers?



_____________________
You can join us for best Testking pmp course dumps ccnp 300-101 routing and route oracle training solutions. Our mica.edu contains all those you want to pass for real
waleed444
 
Posts: 1
Joined: February 24th, 2015, 12:41 pm


Return to ActionScript 3.0