         {
             loadFromBytes(value as ByteArray);
         }
-        
+
         if (value is BitmapData)
         {
             bitmapData = value as BitmapData;

            invalidateDisplayList();
        }
    }
    
    /**
     *  @private
     */
    public function get smooth():Boolean
    {
        return _smooth;
    } 
    
    //----------------------------------
    //  smoothingQuality
    //----------------------------------
    
    private var _smoothingQuality:String = BitmapSmoothingQuality.DEFAULT;
    
    [Inspectable(category="General", enumeration="default,high", defaultValue="default")]   
    
    /**
     *  Determines how the image is down-scaled.  When set to
     *  <code>BitmapSmoothingQuality.HIGH</code>, the image is resampled (if data
     *  is from a trusted source) to achieve a higher quality result.  
     *  If set to <code>BitmapSmoothingQuality.DEFAULT</code>, the default stage 
     *  quality for scaled bitmap fills is used.
     *  
     *  @default <code>BitmapSmoothingQuality.DEFAULT</code>
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10
     *  @playerversion AIR 1.5

            dispatchEvent(new Event("sourceChanged"));
        }
    }

    //----------------------------------
    //  sourceHeight
    //----------------------------------

    /**
     *  Provides the unscaled height of the original image data.
     *
     *  @default NaN
     *
     *  @langversion 3.0
     *  @playerversion Flash 10
     *  @playerversion AIR 1.5
     *  @productversion Flex 4.5
     */
    public function get sourceHeight():Number
    {
        return imageHeight;
    }

    //----------------------------------
    //  sourceWidth
    //----------------------------------

    /**
     *  Provides the unscaled width of the original image data.
     *
     *  @default NaN
     *
     *  @langversion 3.0
     *  @playerversion Flash 10
     *  @playerversion AIR 1.5
     *  @productversion Flex 4.5
     */
    public function get sourceWidth():Number
    {
        return imageWidth;
    }

    //----------------------------------
    //  trustedSource
    //----------------------------------

    private var _trustedSource:Boolean = true;

    /**
     *  A read-only flag denoting whether the currently loaded
     *  content is considered loaded form a source whose security
     *  policy allows for cross domain image access.
     *  When <code>false</code>, advanced bitmap operations such as high quality scaling,
     *  and tiling are not permitted.  This flag is set once an
     *  image has been fully loaded.
     *
     *  @default true
     *
     *  @langversion 3.0
     *  @playerversion Flash 9
     *  @playerversion AIR 1.5
