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

AssetEvent  - AS3 Формирователь активов

Пакетcom.adobe.icc.editors.events
Классpublic class AssetEvent
НаследованиеAssetEvent Inheritance FlexEvent Inheritance Event Inheritance Object

Язык версии: ActionScript 3.0
Версия продукта: Asset Composer Building Block 9.5
Версии среды выполнения: AIR (unsupported), Flash Player 10.2

The AssetEvent class represents the event object passed to the event listener for domain api invokers.

This event is dispatched by various asset domain classes to signify events related to operations being carried out on them. For example, the class LetterModel dispatches an event of this type when it is saved. The event can be leveraged to show certain cues on the UI accordingly.



Общедоступные свойства
 СвойствоОпределено
 Inheritedbubbles : Boolean
[только для чтения] Определяет, является ли событие событием восходящей цепочки.
Event
 Inheritedcancelable : Boolean
[только для чтения] Указывает, можно ли предотвратить поведение, связанное с событием.
Event
 Inheritedconstructor : Object
Ссылка на объект класса или функцию конструктора для данного экземпляра объекта.
Object
 InheritedcurrentTarget : Object
[только для чтения] Объект, активно обрабатывающий объект Event с помощью прослушивателя событий.
Event
 InheritedeventPhase : uint
[только для чтения] Текущая фаза в потоке событий.
Event
  fault : Fault
The fault object encapsulating the error sent by the server.
AssetEvent
 Inheritedtarget : Object
[только для чтения] Целевой объект события.
Event
 Inheritedtype : String
[только для чтения] Тип события.
Event
Общедоступные методы
 МетодОпределено
  
AssetEvent(type:String, bubbles:Boolean = true, cancelable:Boolean = false, fault:Fault = null)
Constructor.
AssetEvent
 Inherited
Создает дубликат экземпляра подкласса Event.
Event
 Inherited
formatToString(className:String, ... arguments):String
Служебная функция для реализации метода toString() в пользовательских классах ActionScript 3.0 Event.
Event
 Inherited
Показывает, определено ли заданное свойство для объекта.
Object
 Inherited
Проверяет, выполнялся ли для события вызова метода preventDefault().
Event
 Inherited
Показывает, есть ли экземпляр класса Object в цепи прототипов объекта, заданного в качестве параметра.
Object
 Inherited
Отменяет поведение по умолчанию для события, если такое поведение можно отменить.
Event
 Inherited
Показывает наличие заданного свойства и его перечисляемость.
Object
 Inherited
Задает доступность динамического свойства для операций цикла.
Object
 Inherited
Отменяет обработку прослушивателей событий в текущем узле, а также во всех узлах, которые следуют в потоке событий за текущим узлом.
Event
 Inherited
Отменяет обработку прослушивателей событий в узлах, которые следуют в потоке событий за текущим узлом.
Event
 Inherited
Возвращает строковое представление этого объекта, отформатированного в соответствии со стандартами, принятыми для данной локали.
Object
 Inherited
Возвращает строку, содержащую все свойства объекта Event.
Event
 Inherited
Возвращает элементарное значение заданного объекта.
Object
Общедоступные константы
 КонстантаОпределено
  SAVE_COMPLETE : String = "saveComplete"
[статические] The AssetEvent.SAVE_COMPLETE constant defines the value of the type property of the event object for a saveComplete event.
AssetEvent
  SAVE_FAULT : String = "saveFault"
[статические] The AssetEvent.SAVE_FAULT constant defines the value of the type property of the event object for a saveFault event.
AssetEvent
  SAVING : String = "saving"
[статические] The AssetEvent.SAVING constant defines the value of the type property of the event object for a saving event.
AssetEvent
Сведения о свойстве

fault

свойство
public var fault:Fault

Язык версии: ActionScript 3.0
Версия продукта: Asset Composer Building Block 9.5
Версии среды выполнения: AIR (unsupported), Flash Player 10.2

The fault object encapsulating the error sent by the server. This property is applicable only if the event type is saveFault. In case of other events, this property remains null and should be ignored.

Сведения о конструкторе

AssetEvent

()Конструктор
public function AssetEvent(type:String, bubbles:Boolean = true, cancelable:Boolean = false, fault:Fault = null)

Язык версии: ActionScript 3.0
Версия продукта: Asset Composer Building Block 9.5
Версии среды выполнения: AIR (unsupported), Flash Player 10.2

Constructor.

Параметры
type:String — The event type; indicates the action that caused the event.
 
bubbles:Boolean (default = true) — Specifies whether the event can bubble up the display list hierarchy.
 
cancelable:Boolean (default = false) — Specifies whether the behavior associated with the event can be prevented.
 
fault:Fault (default = null) — The fault object related to the error sent by the server. This is applicable only in case of the event type saveFault
Сведения о константе

SAVE_COMPLETE

Константа
public static const SAVE_COMPLETE:String = "saveComplete"

Язык версии: ActionScript 3.0
Версия продукта: Asset Composer Building Block 9.5
Версии среды выполнения: AIR (unsupported), Flash Player 10.2

The AssetEvent.SAVE_COMPLETE constant defines the value of the type property of the event object for a saveComplete event.

The saveComplete event is dispatched when the domain object has been successfully saved on the server. Unlike the saving event, this is dispatched in an aysnchronous manner only after the server has responded with a result for the save api call.

This event can be used to stop UI animations indicating "save in progress" or to popup an info box indicating save success.

SAVE_FAULT

Константа 
public static const SAVE_FAULT:String = "saveFault"

Язык версии: ActionScript 3.0
Версия продукта: Asset Composer Building Block 9.5
Версии среды выполнения: AIR (unsupported), Flash Player 10.2

The AssetEvent.SAVE_FAULT constant defines the value of the type property of the event object for a saveFault event.

The saveFault event is dispatched when the server reports an error while saving the asset on the server. Unlike the saving event, this is dispatched in an aysnchronous manner only after the server has responded with a result for the save api call.

When this event is dispatched, the fault property contains the fault object encapsulating the error sent by the server. The fault property can be used to determine the faultCode and show an error message accordingly.

This event can be used to stop UI animations indicating "save in progress" or to popup an info box indicating save success.

SAVING

Константа 
public static const SAVING:String = "saving"

Язык версии: ActionScript 3.0
Версия продукта: Asset Composer Building Block 9.5
Версии среды выполнения: AIR (unsupported), Flash Player 10.2

The AssetEvent.SAVING constant defines the value of the type property of the event object for a saving event.

The saving event is dispatched when the save() method has been called on the domain object. This event is dispatched before any server api is invoked but after the domain client validations are complete. This is because the actual save starts once the client validations are complete.

This event can be used to start a UI animation indicating "save in progress".

Связанные элементы API





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

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