Solved

URGENT!! - Flex 2 - RangeError: Error #2006: The supplied index is out of bounds.

Posted on 2007-03-19
2
3,035 Views
Last Modified: 2010-10-05
I am currently developing a rather complex application in Flex 2. When I resize the window, or the flex application re-validates itself I am getting this error:

RangeError: Error #2006: The supplied index is out of bounds.
      at flash.display::DisplayObjectContainer/getChildAt()
      at mx.core::Container/getChildAt()
      at mx.containers.utilityClasses::CanvasLayout/::measureContentArea()
      at mx.containers.utilityClasses::CanvasLayout/measure()
      at mx.core::LayoutContainer/mx.core:LayoutContainer::measure()
      at mx.core::Application/mx.core:Application::measure()
      ......

Here is a quick overview of the structure or the applicaiton:

1. The main flex swf loads.

2. Then, the main app loads a module and places it on the stage.

3. Then, the main app loads an external Flash 8 swf and places it inside a canvas inside the module.

4. That flash 8 swf then loads multiple flash 6 swf's within itself and the main application controls the flash 6 swf's using a local connection established by the flash 8 swf.

---

I have a hunch that the RangeError is caused by some component in the tree that is not registering itself with the parent application properly. The problem is that there is no way to debug this error. I have searched up and down and cannot find any information about this error or how to go about finding/debugint it.

Any help would be greatly appreciated!!!

Thanks,

Matt
0
Comment
Question by:maclema
2 Comments
 
LVL 5

Author Comment

by:maclema
ID: 18759671
To anyone who comes across this error:

Here is what happened. I was adding a component to the root of the application. Later on I then added that component to a canvas without first removing it from the root.

Admin: Please close question.
0
 

Accepted Solution

by:
EE_AutoDeleter earned 0 total points
ID: 18894814
maclema,
Because you have presented a solution to your own problem which may be helpful to future searches, this question is now PAQed and your points have been refunded.

EE_AutoDeleter
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The goal of the tutorial is to teach the user how to how to record live broadcast.

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now