?
Solved

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

Posted on 2007-03-19
2
Medium Priority
?
3,055 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

764 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