5 Replies Latest reply on Sep 3, 2010 9:55 PM by Flex harUI

    BlendMode and drawing circles.




      I have a bitmap image that is a solid color.  Created like this.


      var bmd:BitmapData = new BitmapData(500, 500, false, 0x0000FF);


      What im trying to do is cut transparent circles into it before I draw it to my UIComponent from an array of Points like.


      for (var i:uint; i < circleArray.length; i++) {

          //cut circle width radius of 30 pixels at point circleArray[i].x,circleArray[i].y



      then finally draw it to my UIComponent


      graphics.beginBitmapFill(bmd, null, false);

      graphics.drawRect(0, 0, bmd.width, bmd.height);



      But I have no clue really how to do this.  I believe I need to use blending, but I only see a rectangle.  What is the best way to do this? Thank you