Posts tagged as3.0

Get IP in Adobe AIR 2.5

0

A short snippet of how to get user’s IP on AIR 2.5

[code]
var netInterfaces = NetworkInfo.networkInfo.findInterfaces();
var addresses = netInterfaces[0].addresses;
var userIP = addresses[0].address; // user IP
[/code]

New AS3.0 VideoChat app in progress…

0

This is a preview of the new VideoChat application being developed at the moment:

This application is more robust and scalable than the previous AS2 version, so it will handle high amounts of simultaneous connections without slow-down or related problems.

Some of the app features will include:

- Room list, create rooms, invite to cam2cam private room, create password-protected rooms.
- Country, age, IP, status are shown on a tool tip when mouse over the user’s nickname.
- Room info tool tip.
- Ignore user (when a user is ignored he/she could not view my video stream).
- Private messages.
- Kick/Ban users.
- Manage rooms.
- watch 5 cams simultaneously.
- Resize live camera streams.
- Show user’s country flag on his/her info.
- VIP stream, user chooses if only VIP/Registered users can watch his/her webcam stream
- XML settings to fit your quality, bit rate, server URL, etc.

More features coming!

Remove Carriage Returns and New Lines (AS3)

0

[code]
function removeCarriageReturnsAndNewLines($myString:String):String
{
var newString:String;
var findCarriageReturnRegExp:RegExp = new RegExp("\r", "gi");
newString = $myString.replace(findCarriageReturnRegExp, "");
var findNewLineRegExp:RegExp = new RegExp("\n", "gi");
newString = newString.replace(findNewLineRegExp, "");
return newString;
}
[/code]

Go to Top