套件 | com.adobe.icomm.assetplacement.model |
類別 | public class Resource |
繼承 | Resource PackageElement Object |
語言版本: | ActionScript 3.0 |
產品版本: | Asset Placement Building Block 9.5 |
執行階段版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
屬性 | 定義自 | ||
---|---|---|---|
altText : String [唯讀]
Alternative text (alt text) is used as a replacement for an image, whenever the image
cannot be seen. | Resource | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
contentType : String [唯讀]
Identifies the content type of the the current resource. | Resource | ||
controller : String [唯讀]
Contains a reference to a controller element using an XML id. | Resource | ||
expiration : String [唯讀]
Specifies the expiration date of a given resource. | Resource | ||
namespace : String [唯讀]
The namespace for this element. | PackageElement | ||
source : String [唯讀]
Specifies a reference to an external file resource. | Resource | ||
targetURL : String [唯讀]
Specifies a reference to an external web page. | Resource | ||
xml : XML
The XML this object represents. | PackageElement |
方法 | 定義自 | ||
---|---|---|---|
Resource()
Constructor. | Resource | ||
Retrieve an attribute of this element. | PackageElement | ||
Retrieve a child value of this element. | PackageElement | ||
Retrieve an attribute of this element's parent. | PackageElement | ||
指出物件是否有已定義的指定屬性。 | Object | ||
Using the expiration attribute specified on the resource, this function calculates whether the resource
is expired based on the current date. | Resource | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
altText | 屬性 |
altText:String
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Asset Placement Building Block 9.5 |
執行階段版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Alternative text (alt text) is used as a replacement for an image, whenever the image cannot be seen. Every visible image should have alt text, unless the image is purely decorative, that is, it has no function and is used only for visual formatting or decoration. This text will also be used by screen readers.
實作
public function get altText():String
contentType | 屬性 |
controller | 屬性 |
controller:String
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Asset Placement Building Block 9.5 |
執行階段版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Contains a reference to a controller element using an XML id. The controller element is the one that references this Resource at runtime.
實作
public function get controller():String
expiration | 屬性 |
source | 屬性 |
source:String
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Asset Placement Building Block 9.5 |
執行階段版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Specifies a reference to an external file resource. The set of supported URI schemes (e.g., http, ftp, repository, file) is implementation-defined.
實作
public function get source():String
targetURL | 屬性 |
Resource | () | 建構函式 |
public function Resource()
語言版本: | ActionScript 3.0 |
產品版本: | Asset Placement Building Block 9.5 |
執行階段版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Constructor.
isExpired | () | 方法 |
public function isExpired():Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Asset Placement Building Block 9.5 |
執行階段版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Using the expiration attribute specified on the resource, this function calculates whether the resource is expired based on the current date.
傳回值Boolean — True if the expiration data has passed as of the time of calling this function
and false otherwise
|
Tue Jun 12 2018, 03:47 PM Z