 			
 			if (displayObject is Bitmap)
 			{
-				_textureResource = new TextureResource();
 				_textureResource.setContentFromBitmapData(Bitmap(displayObject).bitmapData, _mipmap);
 				_complete.execute(this, _textureResource);
 				_isComplete = true;

			else
			{
				var className : String = getQualifiedClassName(displayObject);
				className = className.substr(className.lastIndexOf(':') + 1);
				_isComplete = true;
				throw new Error('No texture can be created from an object of type \'' + className + '\'');

			
			return textureLoader.textureResource;
		}
		
		public static function load(request				: URLRequest,
									enableMipMapping 	: Boolean = true) : TextureResource
		{
			var textureLoader : TextureLoader = new TextureLoader(enableMipMapping);
			
			textureLoader.load(request);
			
			return textureLoader.textureResource;
		}
		
		public static function loadBytes(bytes				: ByteArray,
										 enableMipMapping 	: Boolean = true) : TextureResource
		{
			var textureLoader : TextureLoader = new TextureLoader(enableMipMapping);
			
			textureLoader.loadBytes(bytes);
			
			return textureLoader.textureResource;
		}
	}
}