 import mx.core.UITextField;
 import mx.core.UITextFormat;
 import mx.core.mx_internal;
+import mx.events.FlexEvent;
 import mx.graphics.BitmapFillMode;
 import mx.graphics.BitmapScaleMode;
 import mx.styles.CSSStyleDeclaration;

            _imageCache.enableCaching = true;
            _imageCache.maxCacheEntries = 100;
        }
    }
    
    //--------------------------------------------------------------------------

        }
    }
    
    /**
     *  @private
     */
    private function measuredSizePreliminaryHandler(event:FlexEvent):void
    {
        // block the event if there is no icon to display
        // otherwise the size will not get cached
        if (iconDisplay && iconDisplay.source == null)
            event.stopImmediatePropagation();
    }
    
}
    
}