0

I have a MovieClip with an irregular shape and colored with one color, and I want to fill it with a BitmapData. I've tried:

var mc : MovieClip = this.getChildByName("mc_test") as MovieClip;
mc.graphics.beginBitmapFill(new BitmapDataFill());
mc.graphics.drawRect(0, 0, mc.width, mc.height);
mc.graphics.endFill();

Is there an easy way to apply the BitmapData to the MovieClip?

Anonymous1
  • 3,877
  • 3
  • 28
  • 42

1 Answers1

0

Use a Bitmap to reference the BitmapData and mask it with your MovieClip as seen here: AS3 get Bitmap from Movieclip with Mask

Community
  • 1
  • 1
Florian Salihovic
  • 3,921
  • 2
  • 19
  • 26