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

SimpleFunctionMapper  - AS3 Диспетчер выражений

Пакетcom.adobe.solutions.exm.runtime.impl
Классpublic class SimpleFunctionMapper
НаследованиеSimpleFunctionMapper Inheritance EventDispatcher Inheritance Object
Реализует IFunctionMapper, IEventDispatcher

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

The default FunctionMapper implementation. This mapper handles two types of function references:
  • Remote function references are of the form "REMOTE_[scope]:[functionName](...)". These resolve to RPC calls and are asynchronous by nature. The remote endpoint used is a Flex remoting destination with ID [scope], and must have a function with name [functionName] defined on it.
  • Local function calls are of the form "[scope]:[functionName](...)" with no special prefix. The [scope] and [functionName] combination must map to a function defined on an ActionScript class which is available in the current ApplicationDomain. This mapping can be loaded from the server on initialization (pass true to the SimpleFunctionMapper constructor), or can be configured by the application using the addFunction() method (or a combination of both).



Общедоступные свойства
 СвойствоОпределено
 Inheritedconstructor : Object
Ссылка на объект класса или функцию конструктора для данного экземпляра объекта.
Object
Общедоступные методы
 МетодОпределено
  
SimpleFunctionMapper(initFromServer:Boolean = false)
Creates a new SimpleFunctionMapper instance.
SimpleFunctionMapper
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Регистрирует объект прослушивателя события на объекте EventDispatcher для получения прослушивателем уведомления о событии.
EventDispatcher
  
addFunction(inExpr:String, actual:String):void
Adds a new local function mapping.
SimpleFunctionMapper
 Inherited
Посылает событие в поток событий.
EventDispatcher
 Inherited
Проверяет, имеет ли объект EventDispatcher прослушиватели, зарегистрированные для определенного типа события.
EventDispatcher
 Inherited
Показывает, определено ли заданное свойство для объекта.
Object
 Inherited
Показывает, есть ли экземпляр класса Object в цепи прототипов объекта, заданного в качестве параметра.
Object
 Inherited
Показывает наличие заданного свойства и его перечисляемость.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Удаляет прослушиватель из объекта EventDispatcher.
EventDispatcher
  
resolve(scope:String, functionName:String):Function
Resolves the given scope and function-name to either an RPC operation or a local ActionScript method, depending on whether or not the scope starts with the "REMOTE_" keyword.
SimpleFunctionMapper
 Inherited
Задает доступность динамического свойства для операций цикла.
Object
 Inherited
Возвращает строковое представление этого объекта, отформатированного в соответствии со стандартами, принятыми для данной локали.
Object
 Inherited
Возвращает строковое представление заданного объекта.
Object
 Inherited
Возвращает элементарное значение заданного объекта.
Object
 Inherited
Проверяет, зарегистрирован ли прослушиватель события для указанного типа события с данным объектом EventDispatcher или любым его предшественником.
EventDispatcher
События
 Событие Сводка Определено
 Inherited[многоадресное событие] Отправляется, когда проигрыватель Flash Player или приложение AIR перемещается в фокус операционной системы и становится активным.EventDispatcher
 Inherited[многоадресное событие] Отправляется, когда проигрыватель Flash Player или приложение AIR теряет фокус системы и становится неактивным.EventDispatcher
Сведения о конструкторе

SimpleFunctionMapper

()Конструктор
public function SimpleFunctionMapper(initFromServer:Boolean = false)

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

Creates a new SimpleFunctionMapper instance. If the initFromServer flag is true, the calling application must wait for the instance to dispatch an Event of type "serverInitializationSuccess" before the instance can be used. If initialization from the server is unsuccessful, the instance will notify the application by dispatching an Event of type "serverInitializationError".

Параметры
initFromServer:Boolean (default = false) — Whether local function mappings should be loaded from the server.
Сведения о методе

addFunction

()метод
public function addFunction(inExpr:String, actual:String):void

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

Adds a new local function mapping. The mapping is from a function reference of the form "[scope]:[functionName]" to an actual function of the form "[ActionScript_class_name]:[method_name]".

Параметры

inExpr:String — A function reference of the form "[scope]:[functionName]"
 
actual:String — The mapped function, in the format "[ActionScript_class_name]:[method_name]".

resolve

()метод 
public function resolve(scope:String, functionName:String):Function

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

Resolves the given scope and function-name to either an RPC operation or a local ActionScript method, depending on whether or not the scope starts with the "REMOTE_" keyword.

Параметры

scope:String — The scope of the function.
 
functionName:String — The name of the function.

Возвращает
Function — The resolved function.




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

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