# Dynamic Loaded Smooth Bitmaps lose transparency

**URL:** <https://forum.kirupa.com/t/dynamic-loaded-smooth-bitmaps-lose-transparency/289109>\
**Category:** flash\
**Created:** [May 26, 2009, 2:23pm UTC](https://forum.kirupa.com/t/dynamic-loaded-smooth-bitmaps-lose-transparency/289109 "2009-05-26T14:23:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![log](https://avatars.discourse-cdn.com/v4/letter/l/e480ec/32.png) [@log](https://forum.kirupa.com/u/log)\
**Post date:** [May 26, 2009, 2:23pm UTC](https://forum.kirupa.com/t/dynamic-loaded-smooth-bitmaps-lose-transparency/289109/1 "2009-05-26T14:23:21Z")

</div>

i need some help. I am loading some bitmaps(transparent pngs) that i want to scale and remain smooth. we all know the problems with flash player 8+ anti-aliasing the images and not allowing the images to be forced to be smoothed.

before i get to the code, here is my problem. i want the png to retain its transparency. I use flash8 actionscript 2. Do you can help me? Here is the code

```php

var mclis:Object = new Object();
    //An object that listens for a callback notification from the MovieClipLoader event handlers.
    mclis.onLoadInit = function(target_mc:MovieClip) {
        thisHeightInit = target_mc._height;
        thisWidthInit = target_mc._width;
        // action for smoothed bitmap
       var bitmap:BitmapData = new BitmapData(target_mc._width, target_mc._height, true);
       target_mc.attachBitmap(bitmap, target_mc.getNextHighestDepth(), "auto", true);
       bitmap.draw(target_mc);
        // end action for smoothed bitmap
        calculateProportion(target_mc);
    };

```
