You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/06/24 17:37:19 UTC
[jira] [Resolved] (FLEX-33597) Not able to load Image 480px *
9720px
[ https://issues.apache.org/jira/browse/FLEX-33597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean resolved FLEX-33597.
----------------------------------
Resolution: Not A Problem
Fix Version/s: (was: Adobe Flex SDK 3.2 (Release))
This is not an Flex SDK issue but a Flash player issue.
For image size limits see:
http://helpx.adobe.com/flash-player/kb/size-limits-swf-bitmap-files.html
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/BitmapData.html
> Not able to load Image 480px * 9720px
> -------------------------------------
>
> Key: FLEX-33597
> URL: https://issues.apache.org/jira/browse/FLEX-33597
> Project: Apache Flex
> Issue Type: Bug
> Components: mx: Image
> Affects Versions: Adobe Flex SDK 3.2 (Release)
> Environment: window xp
> Reporter: hari krishna
> Priority: Blocker
>
> Hi ALL,
>
> Facing issue when trying to load image of 480px * 9720px, is there any limit for width and height to image.
> I am using sdk3.2 and flash player10.
>
> I tried in below mentioned ways:
>
> 1)Using <mx:image source="http://localhost:8081/testimg/photo01.png">
> -not able to see image after application load complete.
> 2)Using Loader class
> -not able to dispatch Event.COMPLETE even after total bytes loaded.
>
> code:
> var bitmapPath:String = "http://localhost:8081/testimg/photo01.png";
> var myBitmap:Bitmap;
> var bitmapLoader:Loader;
>
>
> bitmapLoader = new Loader();
> bitmapLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, addBitmap);
> bitmapLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR ,loadingError);
> bitmapLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRES S,updateInfo);
> bitmapLoader.load(new URLRequest(bitmapPath));
>
>
> function addBitmap(event:Event):void
> {
> var bd:BitmapData = new BitmapData(event.currentTarget.content.width, event.currentTarget.content.height);
> bd.draw(event.currentTarget.content);
>
> myBitmap = new Bitmap(bd);
>
> var img:Image = new Image();
> img.addChild(myBitmap);
> imgContainer.addChild(img);
> }
>
> function updateInfo(e:ProgressEvent):void {
> trace("Loading: "+String(Math.floor(e.bytesLoaded/1024))+" KB of "+String(Math.floor(e.bytesTotal/1024))+" KB.");
> }
>
> function loadingError(e:IOErrorEvent):void {
> trace("There has been an error loading the image. The server may be busy. Refresh the page and try again.");
> }
>
> Thanks a lot in advance,
> Hari krishna.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira