# Action script 3: Export object to image with PNG format - make transparent

**URL:** <https://forum.kirupa.com/t/action-script-3-export-object-to-image-with-png-format-make-transparent/327885>\
**Category:** flash\
**Created:** [April 4, 2012, 3:55am UTC](https://forum.kirupa.com/t/action-script-3-export-object-to-image-with-png-format-make-transparent/327885 "2012-04-04T03:55:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ngocquynh\_183](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@ngocquynh\_183](https://forum.kirupa.com/u/ngocquynh_183)\
**Post date:** [April 4, 2012, 3:55am UTC](https://forum.kirupa.com/t/action-script-3-export-object-to-image-with-png-format-make-transparent/327885/1 "2012-04-04T03:55:43Z")

</div>

Hi!

I have a problem in export a object to image .PNG (and make transparent). When i add a object TextField in stage and add effect for my object. Then i export to image with format is .PNG.I use BlendMode.NORMAL properties of BitmapData to draw my image - work done and image is exported.

I use BlendMode.ERASE properties of BitmapData to draw my image - is not word ☹

See more in attact file :[LEFT][COLOR=#000000][FONT=Arial]BlendMode.ERASE[/FONT][/COLOR][/LEFT].png, BlendMode.NORMAL.png

Code text effect: \OnlyTextEff\view extEffs.as and \OnlyTextEff\effects\EnvelopeDistord\_2.as

Code export image: \OnlyTextEff\view extview.as (function name is “exportHandler”)

download demo: [http://www.mediafire.com/?vgnauwspt8b6x08](http://www.mediafire.com/?vgnauwspt8b6x08)  
Does anyone have a good example or explanation of that ? Thanks.
