0 Replies Latest reply on Feb 11, 2010 7:52 AM by Fabrice3D

    PNG transparency lost using event.target.loader.content.bitmapData

    Fabrice3D

      I load a png 24 (tripple checked alpha is ok)

       

      override public function loadData():void

      {

           var request:URLRequest = new URLRequest(url);

           var loader = new Loader();

           loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageloadedSuccess);

           loader.load(request);

      }

       

      public function imageloadedSuccess(e:Event):void

      {

           showPNG(e.target.loader.content.bitmapData);

      }

       

      in Air 1.5 png (e.target.loader.content.bitmapData) has no transparency

      same code using Flash 10 export transparency is there.

      both of course loading same png file.

       

      Is this a known issue?

      I haven't tried yet using 2.0

       

      is there a workarround to load external png and keep the transparency?

       

      thx by advance

      Fabrice