# Allow smoothing for dynamically loaded image

**URL:** https://forum.kirupa.com/t/allow-smoothing-for-dynamically-loaded-image/256778
**Category:** Uncategorized
**Created:** [April 7, 2008, 8:44am UTC](https://forum.kirupa.com/t/allow-smoothing-for-dynamically-loaded-image/256778 "2008-04-07T08:44:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![seanrock](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@seanrock](https://forum.kirupa.com/u/seanrock)
#### Post date: [April 7, 2008, 8:44am UTC](https://forum.kirupa.com/t/allow-smoothing-for-dynamically-loaded-image/256778/1 "2008-04-07T08:44:25Z")

</div>

Hi all

in flash there is a setting to ‘allow smoothing’ for images that are imported. how can i do this in AS3 so that the images i dynamically load are smoothed (because when i scale them they look bad).

thanks

---

<div class="post-metadata">

### Author: ![dilly85](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@dilly85](https://forum.kirupa.com/u/dilly85)
#### Post date: [May 27, 2008, 12:51pm UTC](https://forum.kirupa.com/t/allow-smoothing-for-dynamically-loaded-image/256778/2 "2008-05-27T12:51:32Z")

</div>

[quote=seanrock;2309274]solution:

in the loader complete event handler:

var bit:Bitmap = evt.target.content;  
if(bit != null)  
bit.smoothing = true;  
addChild(loader);

works for me.[/quote]

Hi

I am a flash newbie and have same problem as you did, how do i correctly implement this piece of code to allow smoothing of my images being pulled in via XML?

thanks
