Hi, guys, I have this question for you guys:
create a flex actioscript project:

when I set bitmap.alpha=0. on the screen, there is a gray rectangle out there.
but this is not supported to be there.

but, when I set alpha=1, it is gone!!!

I don't understand this. in fact if I set alpha to any value  between  0 and 1. it will show the gray rectangle.  and for  any value between 0 and 1, it looks exactly the same.

the document says that when I create the bitmpaData and set the 3rd parameter to true, it means this bitmap support per-pix transparency.  but, it should be totally transparent no matter what the value of the alpha value is.

anyone can help? thanks.



    package {
        import flash.display.*;

        public class Test extends Sprite {

            public function Test()
            {
              
                stage.scaleMode = flash.display.StageScaleMode.NO_SCALE
                stage.align = flash.display.StageAlign.TOP_LEFT;


                var bitmapData:BitmapData=new BitmapData(200, 200, true, 0x000000)
               
                var bitmap:Bitmap = new Bitmap(bitmapData);
  
                 addChild(bitmap);
           
                  bitmap.alpha = 0;

            }
       
   
        }
       
    }


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to