Red5 Chat

We are just started a open source Red5 Chat Project details are available at google code: http://code.google.com/p/red5-chat/ . for more updates pelase visit the site again

New red5 chat prototype version : http://www.actionscript.co.in/red5chat/ 

actionscript 3.0 volume control

I searched google for an actionscript 3.0 volume control for one of my projects unfortunately i cannot find a good one so I Developed a simple volume slider for flash. I'm sharing the files here. Download and duble click the MXP file. it will install the volume control component. you can see the installed volume control in your flash component panel. if anyone find any bugs please report it here. Download the MXP file from here

Download Links

volume control MXP File

volume control SWC File

Documentation

facebook actionscript api

Today i'm working on a new Adobe flash builder 4.5 mobile and facebook application. to minimize my task i googled for facebook actionscript api and found a good actionscritpt opensource resource in google codes. so i'm shearing it here in my blog. Google code page here
Frends List Example


package {

import com.facebook.graph.FacebookDesktop;
import com.facebook.graph.net.FacebookRequest;

import flash.events.EventDispatcher;

import mx.collections.ArrayList;

public class FriendsModel extends EventDispatcher {

protected var friendsHash:Object;
protected var friendsArrayList:ArrayList;

public function FriendsModel() {
super();

friendsHash = {};
friendsArrayList = new ArrayList();
}

public function get dataProvider():ArrayList {
return friendsArrayList;
}

public function load():void {
FacebookDesktop.api('/me/friends', handleFriendsLoad);
}

protected function handleFriendsLoad(response:Object, fail:Object):void {
friendsArrayList.removeAll();
if (fail) { return }
var friendsIds:Array = [];

var friends:Array = response as Array;

var l:uint=friends.length;
for (var i:uint=0;i

facebook api php get friends

Here is a small php examples to get all the friends with php and facebook API

FQL Query to get all friends
SELECT uid, name, pic_square FROM user WHERE uid = me()
OR uid IN (SELECT uid2 FROM friend WHERE uid1 = me())

Using GRAPH API
https://graph.facebook.com/me/friends?access_token=YOUR_ACCESS_TOKEN

this will return all your friends list.After getting the friends list you can use folowing script to loop through the returened Array

foreach ($friends as $key=>$value) {
echo count($value) . ' Friends';
echo '<hr />';
echo '<ul id="friends">';
foreach ($value as $fkey=>$fvalue) {
echo '<li><img src="https://graph.facebook.com/' . $fvalue[id] . '/picture" title="' . $fvalue[name] . '"/></li>';
}
echo '</ul>';
}

Access Camera with Actionscript in Android and Iphone

This is a simple example to Access Camera with Actionscript In Android and I phone.

First we need to set the proper permission for our application for access Camera(android only).
Specify Android specific tags to AndroidManifest.xml
<uses-permission name="android.permission.CAMERA">

private var camera:CameraUI;
protected function application1_applicationCompleteHandler(event:FlexEvent):void {
if (CameraUI.isSupported){
camera = new CameraUI();
camera.addEventListener(MediaEvent.COMPLETE, onComplete);
camera.addEventListener(ErrorEvent.ERROR, onError);
status.text="CameraUI supported";
} else {
status.text="CameraUI NOT supported";
}
}
private function captureImage(event:MouseEvent):void {
camera.launch(MediaType.IMAGE);
}
private function onError(event:ErrorEvent):void {
trace("error has occurred");
}

actionscript svg parser

"as3svgrendererlib" Is a great Lib written in actionscript 3.0 . It very easy to use library. But still there are limitations for this lib.

Try http://as3svgrendererlib.googlecode.com

Google webfonts

Google webfonts Sounds good. It's a great collection of open-source fonts optimized for the web.

How to use

1 Select the Font you want to use in your web page
2 Choose the characters you want
3 Add this code to your website;

A sample is bellow




http://www.google.com/webfonts

http://code.google.com/apis/webfonts/docs/getting_started.html


PHP developer Cochin |PHP developer Kerala | PHP developer India | Flash developer/programmer Cochin | Flash developer/programmer Kerala | Flash developer/programmer India | web programmer kerala |web programmer Cochin |web programmer India |web developer kerala |Web developer Cochin | Kerala PHP | PHP freelancer| flash actionscript freelancer