I am not able to attach a file (.jpg) outside of flash to a
movieClip without it changing the scale of the image. Stepping
through with the debugger, its clear the image loads correctly til
it is applied to the movie clip, I assume with the attachBitmap
function. It scales it up a little more than 50% and I can't figure
out where that scale is coming from. It appears to scale up from
the upper left corner. We have checked to make sure all the
movieclips within our flash file are the exact same size as the
image files (150 X 150). Please see code example. Everything is
fine except for this. We tried using the matrix transformation to
down size the images but the quality was not acceptable even with
using smoothing and pixel snapping.
So, the basic question being, how do we use attachBitmap and
have it preserve the original size? Any ideas for how to get this
to work is greatly appreciated...
well I'm afraid there are a few things that are not quite
right with the method here - however, the real problem is most
likely that the original image resolution is higher than 72 dpi -
it must be set at standard screen res or Flash will scale it up
uniformly to work at 72.
I think that you may have more success with something more
wow! thank you clbeech. this worked perfectly... I see the
image is not degraded. There must be something in the flash file
that is forcing a scale along the way. At least I know it can work
so this is much appreciated!