I’m trying to load images that have aprox 5100x3400 px.
After they are loaded I want to resize them to stage.
The problem is the Flash doesn’t load the whole image. Instead of 5120px I get 2880px
What Is happening ?
var container:MovieClip = this.createEmptyMovieClip("container", this.getNextHighestDepth());
var mcLoader:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
Stage.scaleMode = "noScale";
listener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
progressDwl = int(bytesLoaded/bytesTotal*100);
};
listener.onLoadInit = function(target:MovieClip):Void {
trace(target._width) //2880
// resize code
};
mcLoader.addListener(listener);
mcLoader.loadClip("sample.jpg",container);