Ahh... if my old OpenSWF memories serve, is that because x/y values are stored as 16-bit int (64k values), split into +/- (-32k -> +32k), given quarter-pixel accuracy (-8k -> +8k)...
Troy. On 10 Apr 2007 10:31:38 -0700, Alex Harui <[EMAIL PROTECTED]> wrote:
+/-8191 according to the player engineers. ------------------------------ *From:* [email protected] [mailto:[EMAIL PROTECTED] *On Behalf Of *Troy Gilbert *Sent:* Monday, April 09, 2007 8:37 PM *To:* [email protected] *Subject:* Re: [flexcoders] X/Y Limit for DisplayObjects? Yeah, I'm very aware of the 2880 pixel limit on the BitmapData class (didn't I mention that?). Here's the specific scenario: I have a sprite that's parented to the stage. I fill the sprite's graphics with a bitmap fill sized around 10000x10000. I'm "scrolling" around by shifting the sprite's x/y. Everything works exactly as expected until I set the x/y to a value greater than 8192 (or less than -8192) at which point the sprite stops rendering. So, yeah, I'm sure this relates to an internal limits of Flash, but the magic numbers I've seen are 2880 (for the size of a single bitmap) and 10,000 (for the size of text fields and the max size of a "canvas" in Flash 8). 8192 is a different magic number (apparently)... I'm just trying to confirm that that is the limit for x/y before I start "virtualizing" things to work around it. Note: it's not the same as the 2880 bitmap limit because everything renders correctly until I *move* my sprite to that x/y... it's still the same size and still occupies the same size on the screen. Troy. On 09 Apr 2007 17:13:06 -0700, Andrew Trice <[EMAIL PROTECTED]> wrote: > > The maximum number of pixels in both the horizontal and vertical > directions within the BitmapData class is 2880. It is documented here: > > > > http://livedocs .adobe.com/flex/2/langref/flash/display/BitmapData.html > > > > Thanks, > > Andy > > > > _____________________________________ > > *Andrew Trice* > > Cynergy Systems, Inc. > > http://www.cynergysystems.com > > > > Blog: http://www.cynergysystems.com/blogs/page/andrewtrice > > Email: [EMAIL PROTECTED] > > Office: 866-CYNERGY > > > ------------------------------ > > *From:* [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com] > *On Behalf Of *Alex Harui > *Sent:* Monday, April 09, 2007 7:35 PM > *To:* [email protected] > *Subject:* RE: [flexcoders] X/Y Limit for DisplayObjects? > > > > I'm surprised it didn't fail sooner. 2880 is the limit for most things. > After that it is unpredictable. > > > > That's why DataGrid and other list classes virtualize their children. > > > > Sorry, > > -Alex > > > ------------------------------ > > *From:* [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] > *On Behalf Of *Troy Gilbert > *Sent:* Monday, April 09, 2007 4:03 PM > *To:* [email protected] > *Subject:* [flexcoders] X/Y Limit for DisplayObjects? > > > > I find that if I position a DisplayObject (specifically, a sprite) > beyond +/- 8192 it vanishes from the stage (well, it stops rendering)... I > couldn't find any docs that attest to this limit... and it doesn't seem to > matter if I turn on cacheAsBitmap, etc. (besides, the bitmap limit is 2880). > > > Is this a hard limit, or can it be worked around with a proper use of > cacheAsBitmap and scroll rects? Or am I basically going to have to manage > the display list manually? (I'm panning across a big sprite that has > children sporadically placed across it, each one within the bitmap limits.) > > Thanks, > > Troy. > >

