I'm using the Solar System exhibit as a template, and current modifying it to use a total of 31 HotSpots, each with 4 jpeg images and a short description for each.
With this current setup, and all the code entered correctly, when playing the exhibit I created, I get the following error: “ArgumentError: Error #2015: Invalid BitmapData“
When I modify the code so only 12 HotSpots are set up, the exhibit plays properly through FlashDevelop, but adding HotSpots 13 through 31 brings that error. Some research suggests that the message relates to either a broken link (of which I don't have one) or maybe file size could be an issue. Is this the case, and if so - what file sizes exactly should I use for all images ? I currently have them all set to be at Maximum 2900x1800 or so - nothing larger than 2900 on any given jpeg.
If this is not the case, why else would this error occur ?
I have had the same error when using the Solar System exhibit and have also concluded it's a file size problem. I don't know what the file sizes should be, but cutting down the amount of files I was linking to took care of the problem. I will be needing to add more back in, so finding out the answer to this problem would help me a lot, too.
There is no inherit file size limitation. I can't tell if you are getting errors based on file size or for some other reason. Does the issue relate to a single large file or the accumulation of many files? Have you checked the memory usage from the operating system to see if you have exceeded the total RAM size on the computer?
In AIR 1.5 and Flash Player 10, the maximum size for a BitmapData object is 8,191 pixels in width or height, and the total number of pixels cannot exceed 16,777,215 pixels. (So, if a BitmapData object is 8,191 pixels wide, it can only be 2,048 pixels high.) In Flash Player 9 and earlier and AIR 1.1 and earlier, the limitation is 2,880 pixels in height and 2,880 in width.
Starting with AIR 3 and Flash player 11, the size limits for a BitmapData object have been removed. The maximum size of a bitmap is now dependent on the operating system.
Also, to give a better understanding, the CML parser always preloads image files. It uses the MaxLoader framework from GreenSock. The loaders will retain the data unless you dispose of it. If you want to dispose of it do the following on the CMLParser.COMPLETE event:
I'll put this here if anyone else has this issue...
I was getting the Bitmap error on the Solar System exhibit (without adding any new images). Removing the video in the solar_application.cml file (in the tag) fixed the issue for me.