Skip to main content
Known Participant
July 15, 2009
Question

Turning a movieclip into a bitmap

  • July 15, 2009
  • 1 reply
  • 1970 views

Hello ).

There´s a way to turn a movieclip with a complex shape into a bitmap so I can do a BitmapData.hitTest

seeing what are the non transparent pixels colliding between two bitmaps?

This is about a complex hitTest. (Yes I didn´t finished yet )
I´m trying to make two movieclips turn into two bitmaps so I can realize if there´s a way to

see if one of the first bitmap´s non transparent pixel is colliding with the second bitmap´s non transparent pixel.

Thanks

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
July 15, 2009

use the draw() method of the bitmapdata class to create a bitmap from a movieclip.

Known Participant
July 15, 2009

but to create an exactly shape as the movieclip, how would that be?

kglad
Community Expert
Community Expert
July 15, 2009

same answer.