Can't you override the onMouseOver of the clips to prevent the cursor
change?

Or wait, why would the cursor be changing?

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

Thanks for those suggestions.

I didn't think about Birmapdata.hitTest(), but I had thought about
using getPixel()

Sure, I can use that to decide whether or not the user has clicked on
a non-white area, but that doesn't resolve user confusion. It doesn't
help the user to know which item they are about to select because the
cursor will already have changed when the mouse enters the bounding
rect.

Cheers

David


On 8/02/2007, at 4:05 PM, Jason Boyd wrote:

> Also, just looking this up made me notice that as of Flash 8, you
> can do
> pixel-level hit detection between not only a bitmap and a point, but 2
> bitmaps, with alpha threshold support!
>
> BitmapData.hitTest()
>
> On 2/7/07, Jason Boyd <[EMAIL PROTECTED]> wrote:
>>
>> Check out the BitmapData class, specifically the static loadBitmap
>> (id)
>> method for creating an instance from a library symbol, and getPixel
>> () which
>> allows checking individual pixel values.
>>
>> I would think an algorithm that would work would be to iterate
>> through the
>> display list, do hitTest() on every clip, and for those that hit,
>> starting
>> with the first (which is the highest depth), copy the image data
>> into a
>> BitmapData object and do a getPixel() at that spot to test for the
>> transparent color (which sounds like its white). This would be slow,
>> presumably. But might redo the objects on stage so that they are
>> already
>> Bitmaps or BitmapData.
>>
>> My 2 cents.
>>
> _______________________________________________
> [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

_______________________________________________
[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