Unique and Random Avatar Examples with Robin – Flash PHP Open Source Multiuser Server

We just finished a full-scale custom avatar game in Flash using Robin, the Flash / PHP open source multiuser server system.  Here are some screen shots – the launch date will be in June 2010.

You get to create a nanobot out of parts and scale and rotate them as well as set their layer or depth.  All this data is passed to Robin which then displays your nanobot on everyone’s screen and their bots get displayed on yours.  You then try and keep your bot in the lightest areas to pick up energy and you can also feed on their energy waste represented by pellets.  The goal is to stay alive longest.

The updated robin.zip file includes two Avatar examples.  The first allows you to assign unique avatars so everyone in the room gets the next avatar in a list.  The second example lets the user choose their avatar.  The code to customize your avatar like the nano example is not provided but follows the same structure and just adds basic Flash functionality.

Pay close attention to the various ins and outs of the ActionScript as the situation requires some careful code.

Advertisement

4 Responses

  1. hi, i using robin in my web-sites any thing is fine but when look the swf will come out the following error.
    how to fix this problem? i have follow all the read me file.

    Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://www.example.com/robin/samples/floatchat.swf cannot load data from http://www.example.com:9999.
    at com.danzen.utilities::Robin()
    at samples::FloatChat()

    • Hi Jack – sorry for the delay – just switched over systems.

      Not sure where the example.com is coming from – did you put that in there in place of your domain?

      You might get this message if you are looking at the swf on your computer rather than in a web page…

      Dan

  2. There are a number of issues I ran into with the robin download package to get to where I’m at:

    1) robin/samples/ball.html doesn’t exist. I created that file, but it would be nice if those sample html files were there in the zip.

    2) The readme file does not instruct you to go into the utilities.Robin.as class and change the myServer property (though I think you mention it in the video).

    3) Even after changing myServer to my local site name (running MAMP on osx), I get the following error:
    Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://robintest/robin/samples/ball.swf cannot load data from robintest:9999.
    at com.danzen.utilities::Robin()
    at samples::Ball()

    I do have a crossdomain.xml policy file with a wildcard at the root level of the project, but that doesn’t seem to help.

    Other ideas?

    Thanks!

    • Thanks Aaron for the message. My apologies for the delay – I forgot to reset the RSS reader for these comments.

      1) I did not put the html pages in there because they will not work until you publish the swf files with your settings.

      2) The readme file is rather large so I am not surprised you missed it – but under the FLASH section there is the line *** In your Robin class, put your server address as instructed in the class (event with the *** as it is important)

      3) Let me check on the MAMP on the Mac – I know a couple people who got it running on the Mac but there was some folder security thing they did… not crossdomain…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.