Note that even though it has whined like this, it still seems to work,
ie after you dismiss the error you can tab around the items in the
popup window like you'd expect.
I'd really appreciate a clue on this one, if anyone has one.
TIA
On 26/09/2008, at 5:28 PM, Guy Morton wrote:
Hi list
I'm creating a popup using this code:
var lookupWindow:IFlexDisplayObject = PopUpManager.createPopUp(MyApp,
AddressLookup, true);
PopUpManager.centerPopUp(lookupWindow);
So far so good. This form has two text inputs. If I click in one and
then hit the tab key Flex throws this error:
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$/_sort()
at Array/http://adobe.com/AS3/2006/builtin::sort()
at fl.managers::FocusManager/sortFocusableObjects()
at fl.managers::FocusManager/keyDownHandler()
and I have NO idea why. Anyone able to help?
Guy