If I were looking for the super-ideal "correct" algorithm and hade infinite
coding monkeys, I would at init time create bitmaps of every library item,
and use flood-fill combined with trig math to generate vector "trace" shapes
of the non-white areas, which I would draw as zero alpha shapes into a movie
clip attached to each raster movie clip. And then iterate throgh the display
list calling hitTest on these invisible shapes. You'd avoid any code to copy
bitmap data, would still be able to otherwise treat your clips as normal
clips, and would get pre-built hitTest() behavior for the vector shaps,
without having extra design-time work when images are added. The code to
convert a bitmap into vectors would be the tricky part, but is technically
doable.

I may be tired as well. Just thinking outside the box.


On 2/7/07, Dave Wood <[EMAIL PROTECTED]> wrote:

> cant you just use hitArea and make a transparent vector shape "hit
> state"
> for each visual element?


As I think I indicated, that is indeed an option, but one we're
looking for a way to avoid.

Cheers

David
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to