包 | 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, 11:04 AM Z