             return false;
         
         // loop thru the children, looking for errors.
-        var n:int = numElements;
+        var n:int = container.numElements;
         for (var i:int = 0; i < n; i++)
         {
             var child:IVisualElement = container.getElementAt(i);

        }
        
        // loop thru the children, looking for errors to clear.
        var n:int = numElements;
        for (var i:int = 0; i < n; i++)
        {
            var child:IVisualElement = container.getElementAt(i);

        
    }    
    
    //--------------------------------------------------------------------------
    //
    //  Event handlers
    //
    //--------------------------------------------------------------------------
    
    /**
     *  @private
