# Smoothing images loading dynamically!

**URL:** https://forum.kirupa.com/t/smoothing-images-loading-dynamically/282085
**Category:** Uncategorized
**Created:** [February 17, 2009, 1:35pm UTC](https://forum.kirupa.com/t/smoothing-images-loading-dynamically/282085 "2009-02-17T13:35:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![secret007](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@secret007](https://forum.kirupa.com/u/secret007)
#### Post date: [February 17, 2009, 1:35pm UTC](https://forum.kirupa.com/t/smoothing-images-loading-dynamically/282085/1 "2009-02-17T13:35:20Z")

</div>

Hi,

i m loading images dynamically from a folder and i want when they show on the stage they retain their quality for that purpose i use 2 things first is

stage.quality = StageQuality.BEST;

and the second is with bitmap class after loading the images in loader i write…

```php
Imageload.load(new URLRequest ("images\\"+xml.images[k]));
var image:Bitmap = Imageload.content as Bitmap;
image.smoothing = true;

```

but i gives me the following error…

```php
[TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at BaseClass/::loadimage()
    at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/flash.net:URLLoader::onComplete()

```

anyone comes up with the solution…
