There is a limit of 8000 pixels or so.  You can end up with artifacts if you go 
out beyond that.  I would virtualize since you can only see 1000 pixels or so 
at a time.


On 1/21/10 2:10 PM, "flexaustin" <flexaus...@yahoo.com> wrote:






Does anyway happen to know the best way to draw a grid inside of Sprite that 
uses the least amount of mem/processing?

I have a sprite that can be up to 40,000 pixels wides by 40,000 pixels high and 
I need to draw a grid in the background of the sprite, similar to Visio.

The issue is when I just try drawing the lines in the sprite it takes up a huge 
amount of memory.  I was wondering if maybe I only draw the lines 2x the width 
and height of the screen and then if the user scrolls the swf then redraw the 
lines based on position?

Anyone ever tried this or have any suggestions or examples?






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to