Skip to main content
Participant
January 7, 2007
Question

Getting the color of a MovieClip

  • January 7, 2007
  • 2 replies
  • 318 views
I've got a movieclip that is one solid color. Via actionscript how can I identify what color this is? (in RGB) Thanks!
This topic has been closed for replies.

2 replies

Participant
January 10, 2007
Hi kglad -

Thanks for the reply - can you be more specific regarding the bitmap class? Is it necessary for me to grab the pixel via "draw" and "attachbitmap", etc. or is there a shorter way?

THANKS!
kglad
Community Expert
Community Expert
January 10, 2007
you'll use getPixel after creating an instance of the bitmap class and using the draw method of the bitmap class to "draw" the movieclip onto the bitmap:

kglad
Community Expert
Community Expert
January 7, 2007
you can't unless you set its color using actionscript.

correction: actually, you can using the bitmap class.