Actionscript 3.0 PSDParser

Can you imagine PSD file can Parser with actionscript. if you think no it is possible with PSDParser. actionscript PSDParser is a great class it can read PDS files its cool. bellow is the sample code

function loadPSDFile( url:String ):void {
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.BINARY;
loader.addEventListener( Event.COMPLETE, onCompleteLoad );
loader.load( new URLRequest( url ) );
function onCompleteLoad( e:Event ):void {
var loader:URLLoader = as URLLoader;
var parser:PSDParser = new PSDParser( );
var layers:Array = layerAndMask.layers;
var pixels:Array = layerAndMask.pixels;
var imageData:PSDImageData = parser.imageData;
var bd:BitmapData;

if ( layers.length > 0 ){
for ( var i:int = 0; i < layers.length; ++i ) {
var layer:LayerStructure = layers[i];
var pixel:LayerPixelData = pixels[i];
bd = pixel.getImage();
} else {
bd = imageData.getImage();

openCV actionscript 3.0

i always dream about to develop a face recognition app in flash. today i find out a lib that's very cool. OpenCV Actionscript port is good to play with only the face detection part working properly. i tried other opencv object detection samples but they fail to detect. anyway its a good start for me. i'm waiting for new versions of this great lib. bellow is the example i tested.

ActionScript 3 Preloader video tutorial

how to create a preloaded in actionscript 3.0

actionscript 3.0 button 3.0 tutorial

following tutorial help actionscript 3.0 beginners and actionscript 2.0 developers new to actionscript 3.0 to understand how actionscript 3.0 buttons works, how to attach a button to actionscript 3.0 events.

how to create a screen share application in flash

this is a simple example how to create a pure flash based screen share application with flash ide and actionscript 3.0

sample urls
Viewer :

Hope you guys enjoy screen share :)

Simple actionscript 3.0 dynamic registration point

this is a very simple dynamic registration point in actionscript 3.0 using fl.motion.MatrixTransformer class. please refer the class for more useful features.

import fl.motion.MatrixTransformer;
import flash.display.Sprite
var box:Sprite;
box = new Sprite();;, 0, 100, 100, 5);
box.x = (stage.stageWidth / 2);
var xPoint:uint = (box.width/2);
var yPoint:uint = (box.height / 2);
var mtrx:Matrix=box.transform.matrix;
MatrixTransformer.rotateAroundInternalPoint(mtrx, xPoint, yPoint, 40);

actionscript 3.0 Loading image-swf from local file system

This is an example how to load a image file from local hdd to swf file running in a browser.

//file referance
var refer:FileReference=new FileReference();
//file filter
var imagesFilter:FileFilter=new FileFilter("Images","*.jpg;*.gif;*.png");
var loader:Loader=new Loader();
//event listener for file selection event
refer.addEventListener(Event.SELECT, selectHandler);
// event listener for load complete
refer.addEventListener(Event.COMPLETE, done);

function selectHandler(e:Event):void {
// load the file after file selection

function done(e:Event) {
//load the byte array from the loaded data
//add the loader to stage
//loadevent handler for loader

//button clickevent listener
function loadImage(e:Event){
//show the browser window after click the button

function onImageDone(e:Event){
//resize the image after it add to stage

sample source file will be uploaded soon.

how to load external image with actionscript 3.0

This post is a simple example for actionscript 3.0 beginners. The bellow actionscript 3.0 code help you to understand how you can load an external image from a url. if any doubt or help please add a comment.

import flash.display.Loader;
var url:String=""
var loader:Loader = new Loader();
loader.load(new URLRequest(url));

open URL with Querystring using actionscript 3.0


this post is not for actionscript masters this is only for those who just started playing with actionscript. this simple example demonstrate how to open a url with querystring HTTP GET method.


var url:String="";
var variables:URLVariables = new URLVariables();
var urlRequest:URLRequest = new URLRequest(url);
navigateToURL(urlRequest, "_blank");

flash actionscript 3.0 change color

bellow is a simple example to change the color of a DisplayObject(MovieClip,Button,Sprite) in flash actionscript 3.0.

// creates a red square
var square:Shape = new Shape();
//fill the square with blue color;
// drow the square, 0, 150, 150);
//add the square to stage
// calling the change color function

//changeColor function
function changeColor(o:DisplayObject,color:Number):void {
//create a new ColorTransform
var newColor:ColorTransform=new ColorTransform();
// set the color property
//assign the new ColorTransform to target DisplayObject

Simple custom event example actionscript 3.0

This is a simple custom Event example I hope this will help actionscript 3.0 bingers to understand how event works in actionscript 3.0. In this example I just created a MouseDown event listener for stage mouse clicks. Clicking the stage will trigger the custom event.

const CUSTOM_EVENT:String='custom_event';
function onMouseClick(e:Event){
dispatchEvent(new Event(CUSTOM_EVENT));
function onCustomevent(e:Event){
display.text="Custom Event Called"

how to post data from actionscript 3.0 to php or sample

this a small example for sending and retrieving data from serverside scripts like php , or any thing

import flash.display.Sprite;

* ...
* @author Anil Mathew
public class Main extends Sprite
public var loader:URLLoader; //url loader
private var _url:String // the url string
private var _req:URLRequest; // url request
public var _vars:URLVariables; // url variables
public function Main():void
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);

private function init(e:Event = null):void
removeEventListener(Event.ADDED_TO_STAGE, init);
// entry point
_url = "";// url where we need to post the data
_req = new URLRequest(_url);// url request instance
_req.method = URLRequestMethod.POST ; // metheod to use for the request
_vars = new URLVariables();// url variables = "Myname"; // sending name
_vars.age = 21; //sending age
loader = new URLLoader(); //loader instance
loader.load(_req); //loading request
loader.addEventListener(Event.COMPLETE, completeHandler);// event handler for complete event


private function completeHandler(event:Event):void {
trace(; // returned data



web Camera Snapshot flash Actionscript 3.0 Component

i made this component to take snapshot for a community website. i think it's useful so i'm sharing it here. In this version save to server function is disabled but you can do it with takeSnap() method or encodeJpeg(),encodePng();

Small outline About Class


  1. imageFormat jpeg,png
  2. saveType URL,LOCAL
  3. showToolBar true,false
  1. saveImage() Save the image to local or to url according to saveType property
  2. attachCamera(camindex="0") change Camera
  3. takeSnap() Return Bitmap data from camera
  4. encodeJpeg(quality) you can pass the quality 1 to 100 it will return byteArray of jpeg image
  5. encodePng() return png image byteArray

Actionscript 3.0 sample code

var snap:SnapShot=new SnapShot();

Demo Link:


download MXP Component
download SWC component
download Sample FLA

mohanlal on twitter


finally mohanlal @twitter
hope you guys follow him

what is php++


Is there any one know what is PHP++ . I googled for it and don't get any correct information. some of my friend said that it a new php IDE. when i googled for it i get the following informations

  2. PHP++ is an object-oriented version of PHP. Its primary goal is to reduce the amount of code one would need to rewrite for his or her site while maintaining functionality. Its other goals include converting a decent percentage of PHP's base functions into classes.
but there is noting to download and in the sourceforge site and the site saying that it's an inactive project any one here know what it is ?

some institutes in India are offering courses for php ++ is the ??? . see the php++ training institutions
are they just kidding. any one know about this please update me thanks.

swf and image loader component with progress bar

Today i just finished a small but useful (i think) component. this component is useful for beginners. and designers they don't know actionscript. ImageLoader very quick to use there are only three properties.

  1. imageUrl
  2. autoLoad
  3. autoResize
imageUrl requires a string input for the file absolute or relative
autoLoad- if autoLoad set to true the image will automatically Load when the swf loads
autoResize- if autoResize set to true the image will resize to the component size otherwise it will maintain its actual size.

Simple use of component with actionscript 3.0

import com.anilmathewm.ImageLoader;
var loader:ImageLoader=new ImageLoader();


MXP component Download
SWC component Download
Sample fla file download
sample fla file with custom progress bar

LIve Demo

sony vaio adobe flash crush attempts to access webcam solution

This problem was caused by a known issue with a file on your computer that supports the capability of sharing your webcam over a Bluetooth wireless connection. The problem occurs when Adobe Flash attempts to access the webcam.

Sony Corporation is aware of the problem and is working as quickly as possible to make a solution available.

Until a permanent solution is available, you can prevent this problem from occurring again by renaming the file that caused the problem.

The following procedure will disable the capability of sharing your webcam over a Bluetooth wireless connection, but it should not disturb any other webcam or Bluetooth capabilities.

Go to 'Computer' and explore drive C:\
Navigate to C:\Windows\System32 and search for BtwVdpCapFilter.dll andright-click on it to rename it to anything for example BtwVdpCapFiltertemp.dll and everything should be fine.

actionscript 3.0 image pixel effect

today i createad a image pixel effect you can see it working at

Ip to location flash cs4 component

due to an upgrade in ipinfodb api i just modified addeed new version for this component

pelase see the updates bellow

Version 2.0 component
if you have the oldone installed please uninstall it.

Sample Source


this is just a flash component version of this component only communicate with ipinfodb

the source for this project will release soon if any one need the source code just send me a mail



my new ip2location flash cs4 component released.

Sample Source

new generation web site builder

3kcorpration launches a new revolution in website builder tool with very simple and easy to use interface. compare to other industries leading online site builder tool have many advanced features. I think the most attractive features are is they provide free option to create a website without any credit card information or any limitation. another one is they provide one year hosting free. also the designer is very simple any one with a simple knowledge in computer can create beautiful looking web site in minutes. i think this is a new generation tool for web development for personal use and small business. Check it out.

Actionscript 3.0 Papervision Coverflow

The structure for our XML is very simple:

Source Download

The ActionScript 3.0 Design Pattern Thrill Ride

Here is a good article about ActionScript 3.0 Design Pattern

How to create a cookie that cannot be deleted by the user

For last few years i was searching for a method to set a cookie that cannot deleted by the user. it will be use full when we need to track a user activity. for example we only want a user to register one time from a PC in our web site it is not possible through native cookie.

following is the working demo

Source file download

Please post the suggestions and bugs

flash actionscript 3.0 javascript multiple file uploader

I just made a multiple file uploaded in actionscript. I think it is useful for some one so i'm just posting the first version of the multiple file uploaded here. there is no detailed documentation available if any one need help using file uploader just send me a mail.

How to use the multiple file uploader.

1 . Just embed the swf file to your html documnet

2. following java script function get the file progress including current file total bytes loaded, total bytes

function onProgress(name,loaded,total){

3. Following javascript function trigger an event when the user select the file

function onSelect(){
var s=thisMovie('main').getFiles();// get the seklected file names

4. following java script function triggers when the all file upload finish

function onComplete(){

sorry for the low description. i will be back with more details on the.

Kerala domain registration web site

Hi friends,
i just stared my domain registration service. i think this is a low price options for you all please send me any suggestions if you have my domain registration service url is . Here you can also purchase web hosting for just 2000 Rs for one year with unlimited web space unlimited Bandwidth unlimited database unlimited sub domains. if any one have custom requirements just send me an email. selected sites can get free web hosting also.

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