actionscript 3 - Using action script 3 with flash builder 4.7 when i try to load image of dimension 16000 X 16000, not able to upload -


i found below problem in action script 3.

using action script 3 flash builder 4.7 when try load image of dimension 16000 x 16000 using below code crash app , not able show image.

image size 4.6 mb , image dimension 16000 x 16000 (width x height)

when try other image having dimension 10000 x 3000 (width x height) work

var maploader:loader=new loader(); var loaderinfo:loaderinfo=maploader.contentloaderinfo;        loaderinfo.addeventlistener(event.complete, function(event:event):void             {             var image:image=new image();             image.source=maploader.content;             image.width=image.source.width * 0.6;              image.height=image.source.height * 0.6;                          image.smooth=true;              }             });             loaderinfo.addeventlistener(ioerrorevent.io_error,function(e:ioerrorevent):void             {                 //some code             });                      maploader.load(new urlrequest(mapsrc)); 

please me , in advance

before flash player 11, there limitation on size of loaded image. of flash player 11, limitation been removed, , maximum size dependent of operating system.

considering flash internally handle image bitmaps, 16000x16000px image requires around 1gb of ram itself. may more app allowed (or system capable of).

since seems making app, recommend using tile system : full map cut down in smaller images, placed side-by-side. using system, app can load , show required tiles, reducing memory required, necessary bandwidth. if don't want show blank spaces while tiles loading, can add lowres image of full-map under tiles, user see blurred version of section before app finished loading corresponding tile , show highres version.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -