Actionscript 3 在AS3中使用加载程序加载高分辨率图像时出现问题

Actionscript 3 在AS3中使用加载程序加载高分辨率图像时出现问题,actionscript-3,loader,high-resolution,Actionscript 3,Loader,High Resolution,我正在使用一个代码来缩放和平移这个页面。它工作正常,但当a尝试加载带有3201X 2451 px的图像时,它不工作 var loader:Loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE,initPic); loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,updateInfo); loader.conten

我正在使用一个代码来缩放和平移这个页面。它工作正常,但当a尝试加载带有3201X 2451 px的图像时,它不工作

var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,initPic);
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,updateInfo);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,imagenError);
loader.load(new URLRequest("simbologia.png"));

function updateInfo(e:ProgressEvent):void { 
  infoBox.text="Loading: "+String(Math.floor(e.bytesLoaded/1024))+" KB of "+String(Math.floor(e.bytesTotal/1024))+" KB.";
  trace(e);
}
输出为:

[ProgressEvent type="progress" bubbles=false cancelable=false eventPhase=2 bytesLoaded=0 bytesTotal=486441]
[ProgressEvent type="progress" bubbles=false cancelable=false eventPhase=2 bytesLoaded=65536 bytesTotal=486441]
[ProgressEvent type="progress" bubbles=false cancelable=false eventPhase=2 bytesLoaded=131072 bytesTotal=486441]
[ProgressEvent type="progress" bubbles=false cancelable=false eventPhase=2 bytesLoaded=196608 bytesTotal=486441]
[ProgressEvent type="progress" bubbles=false cancelable=false eventPhase=2 bytesLoaded=262144 bytesTotal=486441]
[ProgressEvent type="progress" bubbles=false cancelable=false eventPhase=2 bytesLoaded=327680 bytesTotal=486441]
[ProgressEvent type="progress" bubbles=false cancelable=false eventPhase=2 bytesLoaded=393216 bytesTotal=486441]
[ProgressEvent type="progress" bubbles=false cancelable=false eventPhase=2 bytesLoaded=458752 bytesTotal=486441]
[ProgressEvent type="progress" bubbles=false cancelable=false eventPhase=2 bytesLoaded=486441 bytesTotal=486441]

loader.contentLoaderInfo.addEventListener(Event.COMPLETE,initPic);从来没有被调用或执行过,我认为程序是冻结的。有什么想法吗?提前感谢。

问题可能是表示图像的
位图数据的尺寸,尽管这取决于几个变量;最主要的问题是你使用的是哪个版本的Flash播放器

从:

在AIR 1.5和Flash Player 10中,BitmapData对象的最大宽度或高度为8191像素,像素总数不能超过16777215像素。(因此,如果BitmapData对象宽8191像素,则只能高2048像素。)在Flash Player 9及更早版本和AIR 1.1及更早版本中,高度限制为2880像素,宽度限制为2880像素。

从AIR 3和Flash player 11开始,BitmapData对象的大小限制已取消。位图的最大大小现在取决于操作系统


将实际图像添加到舞台的位置在哪里?