Skip to main content
Participant
December 13, 2009
Answered

[Help] Getting a color on a point of the stage

  • December 13, 2009
  • 1 reply
  • 533 views

Im making a shirt designer application for a companys website, and I need flash to make a bitmap of the shirt using the 'BitmapData constructor'.

This sounds easy. Create the bitmap, and use a loop to set all the pixels to the color behind it.

But what functions can I use to find the color of a single point on the document?

I have looked around, but Im too lazy to do any in-depth research, any help is appreciated.

This topic has been closed for replies.
Correct answer kglad

the bitmapdata class has  getPixel() and getPixel32() methods you can use.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
December 13, 2009

the bitmapdata class has  getPixel() and getPixel32() methods you can use.

Participant
December 13, 2009

thats not what Im asking. :l

I dont need to find the color of the bitmap data, but I need to find the color of just a point on the document.

kglad
Community Expert
Community Expert
December 13, 2009

that is what you were asking.  you can use the bitmapdata class to find the color of any point in any movieclip.