[Red5] transpose red5 sample on AS3

Jean-Philippe DELAVALLADE jeanphide at orange.fr
Sat Jan 31 05:14:15 PST 2009


Hi all,
i would like to transpose the sample RED5 SimpleChat on AS3
i've do that :

var nc:NetConnection = new NetConnection();
nc.connect("rtmp://localhost/oflaDemo/");

nc.client=this;
function onBWDone():void {
	trace("onBWDone");
}
var  
so:SharedObject=SharedObject.getRemote("simpleChatDemo",nc.uri,false);
so.addEventListener(SyncEvent.SYNC, soSyncHandler);
so.connect(nc);
envoi.addEventListener(MouseEvent.CLICK, envoiClickHandler);
function envoiClickHandler(e:MouseEvent):void {
	so.data.chatMessage=message.text;
	message.text="";
}
function soSyncHandler(e:SyncEvent):void {
	var newChat:String=so.data.chatMessage;
	if (newChat==null) {
		return;

	}
	history.text+=newChat+"\n";
	//history.vPosition=history.maxVPosition;
}

but no way
thanks for sharing
JP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20090131/918e21fc/attachment.html>


More information about the Red5 mailing list