Forum ActionScript 3.0 No Sever Types

Problems and discussions relating to ActionScript 3.0 here.

No Sever Types

Postby sr2449 » August 7th, 2012, 11:46 pm

Code: Select all
import playerio.*

//Connect and join the room
var connection:Connection;

var gameID:String = "[My Game Id is here Here]"
PlayerIO.connect(stage,   gameID,   "public", "User" + Math.floor(Math.random()*1000).toString(),   "",   handleConnect,   function(){trace("connect error")}   );   //This connects us to our game server

function handleConnect(client:Client){ // Called on successful connection
   trace("Connected to server")
   client.multiplayer.createJoinRoom("main", "Player.IO Main Cluster",   false, {},   {},   handleJoin,   function(error){trace(error)}   ); //Makes us join or create the room "main"

//called when a user joins the room
function handleJoin(conn:Connection){
   connection = conn
   //This will call gotMessage every time we receive any message

I get this error:
Error: The game run doesn't have server type with the name: "Player.IO Main Cluster". The available server types are []
Posts: 1
Joined: February 1st, 2011, 6:50 am

Return to ActionScript 3.0