Techno m’lounge – Where technology meets human senses.

Technology, if not handled with care becomes disruptive, Iam a live example…
Home » Posts tagged 'Flash AS3'

Connecting to Flash Media Server Using ActionScript 3.0

September 29th, 2009 Posted in ActionScript 2.0 and 3.0, Flash Tags: ,

A lot of times you will need to connect to Flash Media Server , where there is lot of code avialable for AS 2.0 , I was not able to find much code on AS 3.0 . I hope this helps other fellow Action Script programmers out there.

package
{
import flash.net.NetConnection;
import flash.display.Sprite;
import flash.text.TextField;
import flash.events.NetStatusEvent;

public class FMSManager extends Sprite
{
private var nc:NetConnection;
private var rtmpNow:String;
private var msg:String;
private var connectText:TextField;
private var posX:Number;

public function FMSManager ()
{
nc=new NetConnection();
nc.addEventListener (NetStatusEvent.NET_STATUS,checkConnect);
rtmpNow=”rtmp://timfuzos.rtmphost.com/one2oneChat/room1″; //change the host name to your host
//rtmpNow=”rtmpe:/one2oneChat/room1″;  // if your FMS is hosted in local use this
nc.connect (rtmpNow,”sumit”);
}
private function checkConnect (event:NetStatusEvent):void
{
connectText=new TextField();
msg=event.info.code;
trace(msg);
connectText.width=250;
connectText.text=msg;
addChild (connectText);
posX=connectText.stage.stageWidth;
connectText.x=(posX/2)-((msg.length/2)*(6));
connectText.y=175;
}
}
}

The screen would look like this

Connection Screen

Connection Screen



Download code from here.

FMSConnect

Popularity: 48% [?]

Flash Based Poker Gaming Framework with realtime Audio-Video Poker Rooms – A Revolution in Online Poker Gaming Industry


This week we started the development of a Flash ActionScript 3 Based Poker gaming framework. The advantage with Action Script 3 is that we can port the code to Flex 3 SDK easily and then deploy the same codebase as a Desktop based AIR Application. This allows us to have the a multi Operating system game which can be played from the browser or as a desktop client and even as mobile application.

Over a series of articles I am going to post all my learning’s on AS3 along during the development of this game and also a lot of poker that I have learnt.

Iam excited to start an all new venture of Globussoft into Multiplayer Online Gaming.

Rules of Poker

Popularity: 12% [?]