Is there a way to change a movie clip's width
without affecting _xscale?
Sorry - let me explain that better...
I am using a function that converts dynamically loaded images into bitmaps. This allows me to set "smoothing" for dynamic content. When I attempt to resize the image I load in, it resizes the "bitmap holder" but not the image itself.
actionscript Code:
import flash.display.*;
function loadBitmapSmoothed(url:String, target:MovieClip) {
// Create a movie clip which will contain our unsmoothed bitmap
var bmc:MovieClip = target.createEmptyMovieClip("bmc", target.getNextHighestDepth());
var listener:Object = new Object();
// Track the target
listener.tmc = target;
listener.onLoadInit = function(mc:MovieClip) {
mc._visible = false;
var bitmap:BitmapData = new BitmapData(mc._width, mc._height, true);
this.tmc.attachBitmap(bitmap, this.tmc.getNextHighestDepth(), "auto", true);
bitmap.draw(mc);
bitmap.height = thumbH; //value set above
bitmap.width = thumbW; //value set above
};
// Do it, load the bitmap now
var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(listener);
loader.loadClip(url, bmc);
}