Skip to main content
R__Huber
Known Participant
November 19, 2009
Answered

Bitmaps won't smooth.

  • November 19, 2009
  • 1 reply
  • 499 views

Hello again,

I'm loading some external images and trying to get them to smooth, but for some reason it's not happening. i've been trying everything i can find on the internet over the past 10 hours or so, and nothing's worked.

The code on my movieclip (first frame) is:

var Ldr:Loader=new Loader();

var UrlR:URLRequest=new URLRequest("myImage.jpg");

Ldr.x=340

Ldr.y=0

addChild(Ldr);

Ldr.load(UrlR);

all that works fine for getting the image on the stage.

i tried many variations of the following (immediately after the above code):

var myBitmap = new Bitmap(Bitmap(Ldr.content).bitmapData, "auto", true);

OR   Bitmap(Ldr.content).smoothing = true;

ETC.

I also tried:

stage.quality = StageQuality.BEST;

//on my first frame of main timeline, but my images were still jagged

my images are very high-res, so i know it isn't a resolution issue. anyway, they look crappy when they're sized down too. also, i'm pretty sure smoothing is the issue, because i have a very similar image in the library (a detail from the same shot, and similar resolution, etc.), and it looks great when i allow smoothing in the bitmap properties panel.

anyone know what's missing in my code?

thanks!

robin

This topic has been closed for replies.
Correct answer kglad

AFTER loading is complete, apply your bitmap and smoothing.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
November 19, 2009

AFTER loading is complete, apply your bitmap and smoothing.

R__Huber
R__HuberAuthor
Known Participant
November 19, 2009

ah... finally. it worked!  thanx

kglad
Community Expert
Community Expert
November 19, 2009

you're welcome.