PDA

View Full Version : Limit on dimension of object



wkt
July 8th, 2009, 08:32 AM
Hi there

I've heard that there is a limit on the dimension of an object in Flash. Something like the area cannot be bigger than 2880 in width or height in Flash 9 or below and 2880x2880 pixels in Flash 10 or above.

The situation is that my stage is 800x600. And I create a big map so wherever the player goes, the big map scrolls. What if this map is bigger than the limits? Will the map still be displayed? Will Flash Player crash? What exactly will the problem be?

Thanks in advance.

flashmxboy
July 8th, 2009, 09:39 AM
This limit is for bitmaps. In flash 9 if you have a bitmap with bigger dimensions than 2880 X 2880 the whole bitmap wont display. In flash 10 a bitmap cant have more than 2880 X 2880 = 8294400 pixels. Therefore in flash 10 a bitmap with the dimensions 1000 X 2880 would be ok, but not in flash 9.

I dont think this applies to MovieClips and buttons, but if it does you could just split them up in pieces.

bluemagica
July 8th, 2009, 10:07 AM
man, this limit is for "BITMAPS" not sprites, movieclips, or even BitmapData..... the only problem you are going to face is high memory usage, cause the movieclip will be kept in memory during use! Just use the concept of tile-based scrolling and break your movieclip in small portions, cause the portion outside stage isn't needed in reality, and is just a overhead!

wkt
July 8th, 2009, 10:28 AM
Yea I know. So I use spatial partitioning on my gigantic map. Activities of enemy units go on, but not collision detection.