as3-psd-parser is a lib to parse PSD (Photoshop) files. It works by instantiating the PSDParser class, then calling the parse method passing the content of a PSD file in byte array format. The parsing is synchronous so after that line, you will already have all the file/layers info available. A loaded and parsed file will have their original layers, with their blend modes, visibility , lock, alpha , layer effect etc. Regarding the PSD file, the lib is able to parse canvas width x height, file color information (number of color channels, color depth, color mode), file’s composite bitmap snapshot and all layers and layer folders.

The lib is able to parse the following layers info: bitmap data, bounds and position, name, ID, blend mode, colour channels, alpha, filter, extra properties (e.g. isLocked, isVisible, clipping applied) and type (normal, folder).


var psdParser :PSDParser = PSDParser.getInstance();

var layersLevel :Sprite = new Sprite();

for (var i : Number = 0;i < psdParser.allLayers.length; i++) {
    var psdLayerm :PSDLayer = psdParser.allLayers[i];
    var layerBitmap_bmp :BitmapData = psdLayer.bmp;
    var layerBitmap :Bitmap = new Bitmap(layerBitmap_bmp);
    layerBitmap.x = psdLayer.position.x;
    layerBitmap.y = psdLayer.position.y;
    layerBitmap.filters	= psdLayer.filters_arr;

var compositeBitmap:Bitmap = new Bitmap(psdParser.composite_bmp);
Misc . URL.