Help, please! Hexadecimal color Code MovieCLip

Hello!

How can I get the hexadecimal color code of a movieclip?

Thank you very much!

To do at the time of execution, you can use something like the following, where mc represents regardless of your movieclip instance name is...

import flash.display.BitmapData;

var bmd:BitmapData = new BitmapData (mc.width, mc.height);
BMD. Draw (MC);
var pixelValue:uint = bmd.getPixel (1, 1); Specify a point where the color is
trace (pixelValue.ToString (16)); This displays the hexadecimal color value

Tags: Adobe Animate

Similar Questions

Maybe you are looking for