Decaflon

Welcome to Decaflon! Where the geeks hang out: Signup or Login Here
Decaflon is proudly hosted by (mt) Media Temple.  We recommend them for your web hosting needs.
Clips: Popular Clips Upcoming Clips Notes: All Notes

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.

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?

@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.

Please Login To Leave A Comment

Decaflon Sponsors Get in touch if you want in.

Hot Notes (View all »)

 

Decaflon is part of the Chawlk Network of sites.

9 Great Places To Visit, Hang Out, & Meet New People

What's new and interesting at other Chawlk Network sites: