Take a look at the BitmapData function:

getColorBoundsRect()

It might be handy. It can certainly tell you if a clip contains any
specific colour (if you take a BitmapData copy of the clip first).

If not, I guess getPixel() and getPixel32() might be of help.

Hope that's helpful,
  Ian

On 5/10/07, Danny Kodicek <[EMAIL PROTECTED]> wrote:
 > ...I am wanting to run a color of instance test.   I am
> wondering if I can do this?
>
> attachMovie("shapes","shapes",num);
>
> if( shapes /*color*/  == 0x333333){
>   // action(s)
> }
>
> // this is sudo code but basically I want to know if I can
> test for color.

A library symbol doesn't have a colour - what exactly are you trying to do?

Danny

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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