Referencia de ActionScript® 3.0 para la plataforma de Adobe® Flash®
Inicio  |  Ocultar lista de paquetes y clases |  Paquetes  |  Clases  |  Novedades  |  Índice  |  Apéndices  |  ¿Por qué hay texto en inglés?
Filtros: Recuperando datos del servidor...
Recuperando datos del servidor...
com.adobe.solutions.exm.runtime.impl 

SimpleFunctionMapper  - AS3 Expression Manager

Paquetecom.adobe.solutions.exm.runtime.impl
Clasepublic class SimpleFunctionMapper
HerenciaSimpleFunctionMapper Inheritance EventDispatcher Inheritance Object
Implementa IFunctionMapper, IEventDispatcher

Versión del lenguaje: ActionScript 3.0
Versión de producto: Bloque de construcción Expression Manager 10
Versiones de motor de ejecución: 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).



Propiedades públicas
 PropiedadDefinido por
 Inheritedconstructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada.
Object
Métodos públicos
 MétodoDefinido por
  
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
Registra un objeto de detector de eventos con un objeto EventDispatcher, de modo que el detector reciba la notificación de un evento.
EventDispatcher
  
addFunction(inExpr:String, actual:String):void
Adds a new local function mapping.
SimpleFunctionMapper
 Inherited
Distribuye un evento en el flujo del evento.
EventDispatcher
 Inherited
Comprueba si el objeto EventDispatcher tiene detectores registrados para un tipo concreto de evento.
EventDispatcher
 Inherited
Indica si un objeto tiene definida una propiedad especificada.
Object
 Inherited
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro.
Object
 Inherited
Indica si existe la propiedad especificada y si es enumerable.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Elimina un detector del objeto 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
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle.
Object
 Inherited
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional.
Object
 Inherited
Devuelve la representación de cadena del objeto especificado.
Object
 Inherited
Devuelve el valor simple del objeto especificado.
Object
 Inherited
Comprueba si hay registrado un detector de eventos con este objeto EventDispatcher o con cualquiera de sus ascendientes para el tipo de evento concreto.
EventDispatcher
Eventos
 Evento Resumen Definido por
 Inherited[evento broadcast] Se distribuye cuando Flash Player o AIR pasan a estar activos.EventDispatcher
 Inherited[evento broadcast] Se distribuye cuando Flash Player o de AIR pasan a estar inactivos.EventDispatcher
Información sobre constructores

SimpleFunctionMapper

()Información sobre
public function SimpleFunctionMapper(initFromServer:Boolean = false)

Versión del lenguaje: ActionScript 3.0
Versión de producto: Bloque de construcción Expression Manager 10
Versiones de motor de ejecución: 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".

Parámetros
initFromServer:Boolean (default = false) — Whether local function mappings should be loaded from the server.
Información sobre métodos

addFunction

()método
public function addFunction(inExpr:String, actual:String):void

Versión del lenguaje: ActionScript 3.0
Versión de producto: Bloque de construcción Expression Manager 10
Versiones de motor de ejecución: 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]".

Parámetros

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

resolve

()método 
public function resolve(scope:String, functionName:String):Function

Versión del lenguaje: ActionScript 3.0
Versión de producto: Bloque de construcción Expression Manager 10
Versiones de motor de ejecución: 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.

Parámetros

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

Valor devuelto
Function — The resolved function.




[ X ]¿Por qué hay texto en inglés?
Cierto contenido de la Referencia de ActionScript 3.0 se muestra en inglés

No todo el contenido de la Referencia de ActionScript 3.0 se traduce a todos los idiomas. Si un elemento del lenguaje no se traduce, aparecerá en inglés. Por ejemplo, la clase ga.controls.HelpBox no está traducida en ningún idioma. Por lo tanto, en la versión en español de la referencia, la clase ga.controls.HelpBox aparecerá en inglés.