public virtual bool contains(AsDisplayObject child)
        {
            if (child == this)
            {
                return(true);
            }
            int childsCount = getNumChildren();
            int i           = 0;

            for (; i < childsCount; ++i)
            {
                AsDisplayObject          currentChild          = mChildren[i];
                AsDisplayObjectContainer currentChildContainer = currentChild as AsDisplayObjectContainer;
                if (currentChildContainer != null && currentChildContainer.contains(child))
                {
                    return(true);
                }
                else
                {
                    if (currentChild == child)
                    {
                        return(true);
                    }
                }
            }
            return(false);
        }
        private void getChildEventListeners(AsDisplayObject _object, String eventType, AsVector <AsDisplayObject> listeners)
        {
            AsDisplayObjectContainer container = _object as AsDisplayObjectContainer;

            if (_object.hasEventListener(eventType))
            {
                listeners.push(_object);
            }
            if (container != null && container.getNumChildren() > 0)
            {
                AsVector <AsDisplayObject> children = container.mChildren;
                int numChildren = (int)(children.getLength());
                int i           = 0;
                for (; i < numChildren; ++i)
                {
                    getChildEventListeners(children[i], eventType, listeners);
                }
            }
        }
 public virtual void setParent(AsDisplayObjectContainer _value)
 {
     mParent = _value;
 }
 public virtual void setParent(AsDisplayObjectContainer _value)
 {
     mParent = _value;
 }