包 | com.adobe.icc.enum |
类 | public final class MimeType |
继承 | MimeType Object |
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
相关 API 元素
方法 | 由以下参数定义 | ||
---|---|---|---|
[静态]
Converts a FILEEXT value to a TYPE value. | MimeType | ||
[静态]
Specifies whether the format represents image content. | MimeType | ||
[静态]
True if the format represents text content. | MimeType | ||
[静态]
Converts a FORMAT value to a FILEEXT value. | MimeType | ||
[静态]
Converts a FORMAT value to a TYPE value. | MimeType | ||
表示对象是否已经定义了指定的属性。 | Object | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
设置循环操作动态属性的可用性。 | Object | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
[静态]
Converts a TYPE value to a FORMAT value. | MimeType | ||
返回指定对象的原始值。 | Object |
常量 | 由以下参数定义 | ||
---|---|---|---|
FILEEXT_GIF : String = "gif" [静态]
File: GIF image. | MimeType | ||
FILEEXT_JPEG : String = "jpeg" [静态]
File: JPEG image. | MimeType | ||
FILEEXT_JPG : String = "jpg" [静态]
File: JPG image. | MimeType | ||
FILEEXT_PNG : String = "png" [静态]
File: PNG image. | MimeType | ||
FILEEXT_TEXT : String = "txt" [静态]
File: Text-based (plain/unformatted text). | MimeType | ||
FILEEXT_XML : String = "xml" [静态]
File: XML-based (could be HTML, XHTML, plain XML, etc.). | MimeType | ||
FORMAT_GIF : String = "image/gif" [静态] Image Format: GIF content. | MimeType | ||
FORMAT_JPEG : String = "image/jpeg" [静态] Image Format: JPEG content. | MimeType | ||
FORMAT_JPG : String = "image/jpg" [静态] Image Format: JPG content. | MimeType | ||
FORMAT_PLAINTEXT : String = "text/plain" [静态] Text Format: Plain text content. | MimeType | ||
FORMAT_PNG : String = "image/png" [静态] Image Format: PNG content. | MimeType | ||
FORMAT_RICHTEXT : String = "text/html" [静态] Text Format: XHTML content. | MimeType | ||
FORMAT_XMLTEXT : String = "text/xml" [静态] Text Format: Flash HTML/Flex Rich Text content. | MimeType | ||
TYPE_GIF : String = "IMAGE_GIF" [静态]
Image Type: GIF content. | MimeType | ||
TYPE_JPEG : String = "IMAGE_JPEG" [静态]
Image Type: JPEG content. | MimeType | ||
TYPE_PLAINTEXT : String = "TEXT_PLAIN" [静态]
Text Type: Plain text content. | MimeType | ||
TYPE_PNG : String = "IMAGE_PNG" [静态]
Image Type: PNG content. | MimeType | ||
TYPE_RICHTEXT : String = "TEXT_RICH" [静态]
Text Type: XHTML content. | MimeType | ||
TYPE_XMLTEXT : String = "TEXT_XML" [静态]
Text Type: Flash HTML/Flex Rich Text content. | MimeType |
fileExtToType | () | 方法 |
public static function fileExtToType(fileExt:String):String
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Converts a FILEEXT value to a TYPE value. FILEXT is a file extension.
参数
fileExt:String — The FILEEXT constant value to convert to a TYPE constant value.
|
String — Associated TYPE constant value.
|
引发
Error — Invalid file extension.
|
formatIsImage | () | 方法 |
public static function formatIsImage(format:String):Boolean
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Specifies whether the format represents image content. Note that true is only returned if format
is explicitly set to
something recognized as an image.
参数
format:String — The format to inspect. One of the image format constants. For example, FORMAT_JPG, FORMAT_JPEG, or FORMAT_PNG.
|
Boolean — Boolean indicating whether the format represents image content
|
formatIsText | () | 方法 |
public static function formatIsText(format:String):Boolean
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
True if the format represents text content. Note that true is only returned if format
is explicitly set to
something recognized as text.
参数
format:String — The format to inspect. One of the text format constants. For example, FORMAT_RICHTEXT, FORMAT_XMLTEXT, or FORMAT_PLAINTEXT.
|
Boolean — the boolean value indicating if the format represents Text content.
|
formatToFileExt | () | 方法 |
public static function formatToFileExt(format:String):String
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Converts a FORMAT value to a FILEEXT value. That is, a file extension.
参数
format:String — The FORMAT constant value to convert to a FILEEXT constant value.
|
String — Associated FILEEXT constant value.
|
引发
Error — Invalid format.
|
formatToType | () | 方法 |
public static function formatToType(format:String):String
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Converts a FORMAT value to a TYPE value.
参数
format:String — The FORMAT constant value to convert to a TYPE constant value.
|
String — Associated TYPE constant value.
|
引发
Error — Invalid format.
|
typeToFormat | () | 方法 |
public static function typeToFormat(type:String):String
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Converts a TYPE value to a FORMAT value.
参数
type:String — The TYPE const value to convert to a FORMAT const value.
|
String — Associated FORMAT const value.
|
引发
Error — Invalid type.
|
FILEEXT_GIF | 常量 |
public static const FILEEXT_GIF:String = "gif"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
File: GIF image.
FILEEXT_JPEG | 常量 |
public static const FILEEXT_JPEG:String = "jpeg"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
File: JPEG image.
FILEEXT_JPG | 常量 |
public static const FILEEXT_JPG:String = "jpg"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
File: JPG image.
FILEEXT_PNG | 常量 |
public static const FILEEXT_PNG:String = "png"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
File: PNG image.
FILEEXT_TEXT | 常量 |
public static const FILEEXT_TEXT:String = "txt"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
File: Text-based (plain/unformatted text).
FILEEXT_XML | 常量 |
public static const FILEEXT_XML:String = "xml"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
File: XML-based (could be HTML, XHTML, plain XML, etc.).
FORMAT_GIF | 常量 |
public static const FORMAT_GIF:String = "image/gif"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Image Format: GIF content.
FORMAT_JPEG | 常量 |
public static const FORMAT_JPEG:String = "image/jpeg"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Image Format: JPEG content.
FORMAT_JPG | 常量 |
public static const FORMAT_JPG:String = "image/jpg"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Image Format: JPG content.
FORMAT_PLAINTEXT | 常量 |
public static const FORMAT_PLAINTEXT:String = "text/plain"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Text Format: Plain text content.
FORMAT_PNG | 常量 |
public static const FORMAT_PNG:String = "image/png"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Image Format: PNG content.
FORMAT_RICHTEXT | 常量 |
public static const FORMAT_RICHTEXT:String = "text/html"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Text Format: XHTML content.
FORMAT_XMLTEXT | 常量 |
public static const FORMAT_XMLTEXT:String = "text/xml"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Text Format: Flash HTML/Flex Rich Text content.
TYPE_GIF | 常量 |
public static const TYPE_GIF:String = "IMAGE_GIF"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Image Type: GIF content.
TYPE_JPEG | 常量 |
public static const TYPE_JPEG:String = "IMAGE_JPEG"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Image Type: JPEG content.
TYPE_PLAINTEXT | 常量 |
public static const TYPE_PLAINTEXT:String = "TEXT_PLAIN"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Text Type: Plain text content.
TYPE_PNG | 常量 |
public static const TYPE_PNG:String = "IMAGE_PNG"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Image Type: PNG content.
TYPE_RICHTEXT | 常量 |
public static const TYPE_RICHTEXT:String = "TEXT_RICH"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Text Type: XHTML content.
TYPE_XMLTEXT | 常量 |
public static const TYPE_XMLTEXT:String = "TEXT_XML"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Text Type: Flash HTML/Flex Rich Text content.
Tue Jun 12 2018, 11:04 AM Z