Please HELP! Hex Color Code MovieCLip
Hi!
How can i get the hex color code of a movieclip?
Thanks a lot!
Hi!
How can i get the hex color code of a movieclip?
Thanks a lot!
To do it at runtime you can use something like the following, where mc representa whatever the instance name of your movieclip 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 outputs the hex color value
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.