Solved

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

Posted on 2007-03-19
2
3,026 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

747 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

12 Experts available now in Live!

Get 1:1 Help Now