套件 | 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, 03:47 PM Z