The FormatTest class provides two methods to check if an Image format is required or denied.
You can use the bitwise OR operator (|) to combine ImageFormat constants to indicate multiple formats.
public static function deny(image:Image, format:int):void
Checks if the given Image object belongs to the denied format.
Parameters
| image:Image — The Image object that should not belong to the required format.
|
| |
| format:int — A value based on ImageFormat. Can be combined using the OR operator (|).
|
Throws
public static function require(image:Image, format:int):void
Checks if the given Image object belongs to the required format.
Parameters
| image:Image — The Image object that should belong to the required format.
|
| |
| format:int — A value based on ImageFormat. Can be combined using the OR operator (|).
|
Throws
Built with love by Joa Ebert - http://blog.je2050.de/
Do Feb 8 2007, 1:02 AM GMT+01:00