I'm developing an app in AS2.0 that will hold several images. I don't want to have to edit each image that goes in this thing so I was wondering if their is a way to create a dynamic mask based on the alpha channel in the image?
Thanks 4 the help in advance.

2 Comments
BinaryMoon
Written Oct. 25, 2007 / Report /
Simple answer... yes it's possible.
Long answer... I've never done it so can't give you any code. Off the top of my head you would need to bitmap data stuff then loop through all the pixels in the image and set alpha accordingly. I wonder why you need to do this though, flash supports alpha in images?
xirclebox
Written Oct. 25, 2007 / Report /
@BinaryMoon ... thnx. I'm importing images dynamically and creating btns out of them. the thing is sometime and image needs to be behind another img. right now, when i mouse over the highest level image, i can only access its btn. I have to rmv it to get to the lower btns. But if I can create a mask, I can manipulate the hit area for each btn and gain access to the lower level imgs.
I have a work around (a remove btn) but I would like to do something cleaner. I'm wanting to keep # of click to a min and the ui clutter free.