We here at Influxis understand that Flash Media Server isn’t the easiest thing to pick up, so what have we done to show you we truly have your back?

Random Flash peeps behold!


The Flash Media Server Framework for Rapid Prototyping and Flash Multiplayer Game Development.

Sounds pretty sweet, eh?  What’s that, you want to see an example?  Sure thing, check it:

public class SimpleChatExample extends Sprite
private var multipass:MyMultipass;
private var lock:Boolean = false;

public function SimpleChatExample()
enterButton.label = "enter";
enterButton.addEventListener(MouseEvent.CLICK, enterChat);

private function enterChat(e:MouseEvent):void
if(username.text != ""){
multipass = new MyMultipass();
multipass.addEventListener(MyMultipass.READY, initChat);
stage.addEventListener(KeyboardEvent.KEY_DOWN, sendChat);

private function initChat(e:Event):void
addEventListener(Event.ENTER_FRAME, statusUpdate);
//Here is where the Magic Starts!
//Set your UserName!
multipass.api.userName = username.text;
//Attach Your Chat Room
//Listen For Other Client's Updates
multipass.api.addEventListener(MultiPass.CHATUPDATE, updateChat);
//Connect your RTMP!

private function sendChat(e:KeyboardEvent):void
if(e.keyCode == Keyboard.ENTER)
output.appendText(username.text + " : " + input.text + "n");
input.text = "";

private function updateChat(e:Event):void
output.appendText(multipass.api.chatController.message + "n");

private function statusUpdate(e:Event):void
fmsStatus.text = multipass.api.status;



That is all the code it takes to make a fully operational Simple Chat Room system.

Basically, what MultiPass is doing is it’s going to be the FMS Controller for you.  It’s completely separate from the View.  Also with MultiPass the horror of having to code Actionscript 1 serverside is taken care of for you.

That’s not all!  MultiPass also will connect all of the various bits and pieces of FMS Prototype for you, so no more issues with calling your play function before bwDone() or anything like that.

Think of it like this:  if you want to add a Room List to that simple Chat Room you would do something like

multipass.api.addEventListener(MultiPass.ROOMUPDATE, updateMyRoom);

Easy right?   Next week I’m going to have my first Multiplayer game example “How to make a Multiplayer Racing Game”.

If you have any questions or ideas feel free to follow me on twitter:


One Response to “MultiPass FMS Framework Sneak Peek”

  1. Roxy

    This site is an invaluable resource for multiplayer game/chat programming. I’m really looking forward to your next post!


Leave a Reply to Roxy

Click here to cancel reply.

Current day month ye@r *