Справочник по ActionScript® 3.0 для платформы Adobe® Flash®
Домашняя страница  |  Скрыть список пакетов и классов |  Пакеты  |  Классы  |  Что нового  |  Указатель  |  Приложения  |  Почему по-английски?
Фильтры: Получение данных с сервера...
Получение данных с сервера...
com.adobe.icomm.assetplacement.model 

Resource  - AS3 Asset Placement

Пакетcom.adobe.icomm.assetplacement.model
Классpublic class Resource
НаследованиеResource Inheritance PackageElement Inheritance Object

Язык версии: ActionScript 3.0
Версия продукта: Asset Placement Building Block 9.5
Версии среды выполнения: AIR 1.0, Flash Player 9, Flash Player 10

This class models a <resource> element in the package definition. It provides helper methods for getting and setting the most common attributes of the <resource> element.



Общедоступные свойства
 СвойствоОпределено
  altText : String
[только для чтения] Alternative text (alt text) is used as a replacement for an image, whenever the image cannot be seen.
Resource
 Inheritedconstructor : 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
 Inheritednamespace : 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
 Inheritedxml : XML
The XML this object represents.
PackageElement
Общедоступные методы
 МетодОпределено
  
Constructor.
Resource
 Inherited
Retrieve an attribute of this element.
PackageElement
 Inherited
Retrieve a child value of this element.
PackageElement
 Inherited
Retrieve an attribute of this element's parent.
PackageElement
 Inherited
Показывает, определено ли заданное свойство для объекта.
Object
  
Using the expiration attribute specified on the resource, this function calculates whether the resource is expired based on the current date.
Resource
 Inherited
Показывает, есть ли экземпляр класса Object в цепи прототипов объекта, заданного в качестве параметра.
Object
 Inherited
Показывает наличие заданного свойства и его перечисляемость.
Object
 Inherited
Задает доступность динамического свойства для операций цикла.
Object
 Inherited
Возвращает строковое представление этого объекта, отформатированного в соответствии со стандартами, принятыми для данной локали.
Object
 Inherited
Возвращает строковое представление заданного объекта.
Object
 Inherited
Возвращает элементарное значение заданного объекта.
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

свойство 
contentType:String  [только для чтения]

Язык версии: ActionScript 3.0
Версия продукта: Asset Placement Building Block 9.5
Версии среды выполнения: AIR 1.0, Flash Player 9, Flash Player 10

Identifies the content type of the the current resource.



Реализация
    public function get contentType():String

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

свойство 
expiration:String  [только для чтения]

Язык версии: ActionScript 3.0
Версия продукта: Asset Placement Building Block 9.5
Версии среды выполнения: AIR 1.0, Flash Player 9, Flash Player 10

Specifies the expiration date of a given resource. This date must be specified as YYYY-MM-DD. For example, 2009-12-12.



Реализация
    public function get expiration():String

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

свойство 
targetURL: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 web page.



Реализация
    public function get targetURL():String
Сведения о конструкторе

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




[ X ]Почему по-английски?
Содержимое Справочника ActionScript 3.0 отображается на английском языке

Не все части Справочника ActionScript 3.0 переводятся на все языки. Если какой-то текстовый элемент не переведен, он отображается на английском языке. Например, компонент ga.controls.HelpBox не переведен ни на один из языков. Это значит, что в русской версии справки компонент ga.controls.HelpBox будет отображаться на английском языке.