I don't think u can check the color of the mc which is set at authoring time
When u set the color of the mc through a color object u can retrive the
color
Here is the code
var my_color:Color = new Color(mc);
my_color.setRGB(0xFF0000);
// my_mc turns red
trace(my_color.getRGB().toString(16));
//Retruns a value converted to hexadecimal format
//ff0000
You can check for these values
If u set the color at authoring time.. you need to set the color to a
variable to check the condition and execute any statement..
I think this would solve ur problem
Durai
www.expertbuddy.net
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul V.
Sent: Thursday, May 10, 2007 8:18 PM
To: Flash Coders
Subject: [Flashcoders] if(color == X) {} looking for method.
...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.
Thanks,
Vdst.
_______________________________________________
[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
DISCLAIMER:
This communication may be confidential and privileged and the views expressed
herein may be personal and are not necessarily the views of ReDIM.
It is for the exclusive use of the intended recipient. If you are not the
intended recipient, please note that any distribution,
copying or use of this communication or the information in it is strictly
prohibited.If you have received this communication
in error, please notify us by email ([EMAIL PROTECTED]) and then delete the
email and any copies of it.
_______________________________________________
[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