I've seen it before and never was able to track it down.  I ended up
switching to a nested Tile/Repeater instead which actually worked better for
the situation anyways.

Sam 


-------------------------------------------
We're Hiring! Seeking a passionate developer to join our team building Flex
based products. Position is in the Washington D.C. metro area. If interested
contact [EMAIL PROTECTED]
 
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Hall
Sent: Tuesday, December 11, 2007 12:38 PM
To: [email protected]
Subject: [flexcoders] Intermittent error with Tile in Flex 2.0.1 project

Every now and then, I get the error below. My client is seeing it
quite regularly and there is no way for the application to recover
from it - after clicking "dismiss" the screen remains partially drawn
and no buttons work. It's all internal to Tile/Container and in a
callLater() so I can't track it down to anything in my own code. The
dataProvider for the tile is just a binding to an ArrayCollection.
I've also tried listening for the change events manually and only
setting it when I know the array has length > 0.
I can reproduce this much more frequently when profiling in FB3, but
my client is seeing it a lot just in normal IE plugin.

The error occurs in a fairly innocent line in Tile.as (663):

       // Loop over the children to find the max child width and height.
        var n:int = numChildren;
        for (var i:int = 0; i < n; i++)
        {
            var child:IUIComponent = IUIComponent(getChildAt(i));


Somehow, while i goes from 0 to numChildren, it gets to be out of bounds.

The full error is:

RangeError: Error #2006: The supplied index is out of bounds.
        at flash.display::DisplayObjectContainer/getChildAt()

Reply via email to