# Getting RGB of a MC in Actionsrcipt

**URL:** <https://forum.kirupa.com/t/getting-rgb-of-a-mc-in-actionsrcipt/201045>\
**Category:** flash\
**Created:** [September 18, 2006, 4:02am UTC](https://forum.kirupa.com/t/getting-rgb-of-a-mc-in-actionsrcipt/201045 "2006-09-18T04:02:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregtheorangema](https://avatars.discourse-cdn.com/v4/letter/g/f9ae1b/32.png) [@gregtheorangema](https://forum.kirupa.com/u/gregtheorangema)\
**Post date:** [September 18, 2006, 4:02am UTC](https://forum.kirupa.com/t/getting-rgb-of-a-mc-in-actionsrcipt/201045/1 "2006-09-18T04:02:01Z")

</div>

Allright, Ive been Searching and Searching about how to find the RGB or HEX or something of a Movieclip, that I have use “setRGB” on. I dont want to find the Objects RGB I want to get the MC’s RGB. I need it for an IF Statement. If this is possible please tell me. Ive searched everywhere.

Just to Make my Question even more clearer, this is whats in the Flash Help File:

var my\_color:Color = new Color(my\_mc);  
// set the color  
my\_color.setRGB(0xff9933);  
var myValue:String = my\_color.getRGB().toString(16);  
// trace the color value  
trace(myValue);  
// traces ff9933

this traces my\_color, which is the Object, I dont want that I want my\_mc’s RGB, Whenever I try this I Get “undefined”.

Please Help, and Thanks in Advance!!
