         overlayColor = color;
         overlayTargetArea = targetArea;
 
-        if (selectedChild && selectedChild.numChildrenCreated == -1) // No children have been created
+        if (selectedChild && selectedChild.deferredContentCreated == false) // No children have been created
         {
             // Wait for the childrenCreated event before creating the overlay
             selectedChild.addEventListener(FlexEvent.INITIALIZE,

                
                // if something's selected, instantiate it
                if (newIndex != -1)
                    instantiateChild(Container(getChildAt(newIndex)));
            }
            else
            {


            if (i == selectedIndex)
            {
                content = UIComponent(getChildAt(i));
                content.cacheAsBitmap = false;
                content.scrollRect = null;
                content.visible = true;
