# Dynamic mask effect with actionscript like in photoshop

**URL:** <https://forum.kirupa.com/t/dynamic-mask-effect-with-actionscript-like-in-photoshop/280755>\
**Category:** Uncategorized\
**Created:** [January 31, 2009, 10:26am UTC](https://forum.kirupa.com/t/dynamic-mask-effect-with-actionscript-like-in-photoshop/280755 "2009-01-31T10:26:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)\
**Post date:** [January 31, 2009, 10:26am UTC](https://forum.kirupa.com/t/dynamic-mask-effect-with-actionscript-like-in-photoshop/280755/1 "2009-01-31T10:26:38Z")

</div>

hi

i have seen how mask in photoshop works. however flash mask does not work like that.  
i want to create a effect in flash with a image dynamically. probably involving bitmapdata. can some one guide me on this.  
please see the pictures below to understand what i want.

![](http://forum.kirupa.com/uploads/kirupa/5130/2b5af77b4d3a599a.png)

![](http://forum.kirupa.com/uploads/kirupa/5131/97aa581a15830bce.png)

as yo can see the second image is the actual one. i want to create the first one from the second one using actionscript. but the problem is flash masking does not nderstand gradient mask etc: what do i do ?
