# Bitmap draw once fully loaded

**URL:** <https://forum.kirupa.com/t/bitmap-draw-once-fully-loaded/297425>\
**Category:** Uncategorized\
**Created:** [October 1, 2009, 8:34pm UTC](https://forum.kirupa.com/t/bitmap-draw-once-fully-loaded/297425 "2009-10-01T20:34:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AcolyTe](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@AcolyTe](https://forum.kirupa.com/u/AcolyTe)\
**Post date:** [October 1, 2009, 8:34pm UTC](https://forum.kirupa.com/t/bitmap-draw-once-fully-loaded/297425/1 "2009-10-01T20:34:51Z")

</div>

Im trying to draw a bitmap of an dynamically loaded image via xml, and ofcourse i’d like to apply smoothing to my images, as my page resizes with the browser and creates a mess.

The images are loaded with a timer event, which fires every 200ms, and each time this occurs, I’d like to quickly draw the bitmapdata of the image so i can apply the smoothing.

My problem that im having is that the images aren’t completely loaded when I run the draw method and so im left with a white box instead.

Currently im using:

```auto
function itemHandler(event:Event):void
{
        loadThumbs(event);
        thumbLoader.unload();
        thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, drawItem);
}

var bmc:MovieClip = new MovieClip();
function drawItem(evt:Event):void
{
    bmc = new MovieClip();
    var bmd:BitmapData = new BitmapData(170, 150);
    bmd.draw(thumbLoader);
    var bmp:Bitmap = new Bitmap(bmd);
    bmc.addChild(bmp);
    bmp.smoothing = true;

    placeHolder.addChild(bmc);
}

```

Any help/advice would be much appreciated, thanks.
