Forum General Attempting to launch and connect to Player using URL

Any issues or discussions relating to Flash development are welcome here.

Attempting to launch and connect to Player using URL

Postby moree007 » September 6th, 2011, 6:50 am

I have followed the tutorial the best I can (HelloWorldExample.fla), and I can't figure out why I'm getting this error.
I have tried to set Flash security to accept the playerio urls, but no success.
Here is the output flash gives:

Attempting to launch and connect to Player using URL C:\Users\megatron\Desktop\MPTutorial\MPTutorial-Hello-World\Output\MyGame.swf
[SWF] C:\Users\megatron\Desktop\MPTutorial\MPTutorial-Hello-World\Output\MyGame.swf - 27292 bytes after decompression
line 4
line 6
[SWF] C:\Users\megatron\Desktop\MPTutorial\MPTutorial-Hello-World\Output\MyGame.swf\[[DYNAMIC]]\1 - 210917 bytes after decompression
Connected to server
line 10
line 12
error

It appears to have a problem with this function:

function handleJoin(connection:Connection):void{
trace("line 14");
//Send "Hello" to the server
connection.send("Hello World");
trace("line 17");
//Listen for the "hello world" message and trace out when it arrives
connection.addMessageHandler("Hello World", function(m:Message){
trace(m.type);
})
trace("line 22");
}
moree007
 
Posts: 2
Joined: September 6th, 2011, 6:45 am

Re: Attempting to launch and connect to Player using URL

Postby moree007 » September 7th, 2011, 12:46 am

I have tried to get the tic-tac-toe game to work as well, with no success.
I have created an ID and placed it in the code where it should be, but
I am still unable to connect to the server.
moree007
 
Posts: 2
Joined: September 6th, 2011, 6:45 am


Return to General