A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Help! Bitmap transparency problems!

  1. #1
    Junior Member
    Join Date
    Feb 2001
    Posts
    17

    Help! Bitmap transparency problems!

    Stumped... i'm loading an external png file into a MovieClip then drawing it to a BitmapData object, problem is the BitmapData object isn't keeping the transparency on the original png. Am i out of luck here?

  2. #2
    Senior Moderator
    Join Date
    Apr 2000
    Location
    Sheffield, UK
    Posts
    3,881
    You need to ensure that the BitmapData object you create, supports transparency:

    import flash.display.BitmapData
    var b=new BitmapData(mc._width,mc._height,true,0x00000000)
    b.draw(mc)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center