         var loader:Loader = new Loader();
         var loaderContext:LoaderContext = new LoaderContext();
 		
-		if (imageDecodingPolicy in loaderContext)
-			loaderContext.imageDecodingPolicy = imageDecodingPolicy;
+		if (hasImageDecodingPolicy(loaderContext))
+			loaderContext["imageDecodingPolicy"] = imageDecodingPolicy;
 		
         loadingContent = loader.contentLoaderInfo;
         attachLoadingListeners();

            dpi = DensityUtil.getRuntimeDPI();
        return values.getSource(dpi);
    }

    /**
     *  @private

    }
	
	/**
	 *  The image decoding policy, set to ON_DEMAND or ON_LOAD.
	 *  The default is ON_DEMAND.
	 * 
	 *  ImageDecodingPolicy also defined ON_DEMAND and ON_LOAD but these
	 *  are only available under AIR 2.6 and above.
	 * 
	 *  Setting to asynchronously decode and load the bitmap images for
	 *  large image may improve your application’s perceived performance.
