Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
When loading large images within Flash Player, we now have control over when the image is actually decoded. Previous to Flash Player 11, loading large images or other files could adversely impact performance and responsiveness of the general user interface. We can now offload this process to a separate thread and make some choices around the image decode process by using the flash.system.ImageDecodingPolicy class.
This is set as the imageDecodingPolicy property of the flash.system.LoaderContext class and has two potential values. These values are defined by the constants ImageDecodingPolicy.ON_LOAD and ImageDecodingPolicy.ON_DEMAND. The ON_LOAD setting will actually decode the image even before the complete event fires. If ON_DEMAND is specified as the developer’s intended behavior, the image will not be decoded until it is needed by the runtime.