To assist our developers to quickly build enterprise grade voice enable applications, TringMe has released source code for it's widgets. It can be downloaded from here.

Below are sample examples of how easy it is to use TringMe APIs.

TringMe Class

Following is an implementation of TringMe class to be used in Flash Widgets.

class TringMe {
var nc:NetConnection;
var ns:NetStream;
var nsplay:NetStream;
var mic:Microphone;
// initiallize random string
var randomstreamname = "dashd9ada9sdaskjdhask";

var TringMeURI = "rtmp://" + _root.cookie + "/" +
static var app:TringMe;

// entry point
static function main (mc) {
app = new TringMe();

function TringMe() {
var flashversion = getVersion();
// other initialization

function ConnectStatus( pInfo:Object ) {
if ( pInfo.code == "NetConnection.Connect.Success" ) {
} else if ( pInfo.code == "NetConnection.Connect.Closed" ||
pInfo.code == "NetConnection.Connect.Rejected" ) {

// call from user interface to make a call
function MakeCall() {
nc = new NetConnection();
nc.onStatus = ConnectStatus;
var ncres = nc.connect(TringMeURI);

ns = new NetStream(nc);
mic = Microphone.get();
ns.publish(randomstreamname, "record");

nsplay = new NetStream(nc);"tring", -1);

// call from user interface to end a call
function EndCall() {

If you are an enterprise and would like to know better how TringMe can help you reduce cost and at the same time benefit you,
please send a mail to