2 Replies Latest reply on Dec 14, 2010 12:21 AM by hidarikani

    Graphics circle transparent background

    Ibarim Level 1

      Hi,

       

      I got something like this:

       

      can = new Canvas;
      txt = new Lable;
      img = new Image;
      can.addChild(txt);
      can.addChild(img);
      can.alpha = 0;
      

       

      then I do some stuff...and then I want to restore 'can.alpha', make it visible and put a partly - transparent circle around it:

       

      can.alpha = 100;
      can.graphics.beginFill(0x83F52C,0.5); 
      can.graphics.drawCircle(can.width/2,can.height/2,can.width/2);
      can.graphics.endFill();
      

       

      The effect is that the transparency doesn't work when can.alpha is set to 100 though it is set before I draw the partly - transparent circle. I tried to validate 'can' object between:

       

      can.alpha = 100;
      can.validateNow();
      can.graphics.beginFill(0x83F52C,0.5);
      
      

       

      but it has no effect. I wonder if any of you know any way around to achieve what I'm trying to do.