Maybe as part of a state change. Could that be the issue? The child it's looking for seems to be quite often a VScrollBar and the parent a VBox.
I'll try the keyFocusChange today. Thanks, Mark On 5/23/07, Alex Harui <[EMAIL PROTECTED]> wrote:
Did you reparent some child in a container? You can turn off tabbing by capturing keyFocusChange event from the stage. ------------------------------ *From:* [email protected] [mailto:[EMAIL PROTECTED] *On Behalf Of *Mr_MarkK *Sent:* Tuesday, May 22, 2007 5:15 PM *To:* [email protected] *Subject:* [flexcoders] Tabbing bug - disabling tabbing in the application We are having a bug in our application when the user presses the tab key in any field. The error is the following: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.display::DisplayObjectContainer/getChildIndex() at mx.core::Container/getChildIndex ()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2442] at fl.managers::FocusManager/::getChildIndex() at fl.managers::FocusManager/::sortByDepth() at Array$/Array::_sort() at Array/http://adobe.com/AS3/2006/builtin::sort() at fl.managers::FocusManager/::sortFocusableObjects() at fl.managers::FocusManager/::keyDownHandler() I am currently unable to narrow down the problem to a specific component, so until I find a better solution, I would like to disable tabbing globally in the application. It's impossible to provide an exhaustive list of things I've tried in order to achieve that result, but I've been unable to block the tab keydown event from getting to the FocusManager. I have tried listening to the keydown event everywhere (also using useCapture = true) in the application, from the root component to the fields where the user can actually press tab, but nothing works. Does anybody have a quick fix to disable tabbing? Thanks, Mark

