[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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

Posted on 2007-03-19
2
Medium Priority
?
3,064 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
This article will show, step by step, how to integrate R code into a R Sweave document
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Suggested Courses

650 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