Child swapdepths?

I have a question about a child component’s hitTest. Say I have a MainCanvas component which holds ViewZero, ViewOne and ViewTwo. Further, ViewTwo holds a ComboBox (which I’m creating from scratch).


  • ViewZero
  • ViewOne
  • ViewTwo

Within that ComBox, I have a dropdown which slides up and down. When the ComboBox is dropdown is visible, I want to test for it’s hitTest so I can close it. For example, in AS2 I can do something like this:

private function mouseDownHandler() : Void
        closeOnMouseUp = isDropVisible && (!dropdownCanvas.hitTest(_level0._xmouse, _level0._ymouse, false)     

private function mouseUpHandler() : Void
        if (closeOnMouseUp)
            //Close the dropdown;