Paket | com.adobe.solutions.exm.runtime.impl |
Klass | public class SimpleFunctionMapper |
Arv | SimpleFunctionMapper EventDispatcher Object |
Implementerar | IFunctionMapper, IEventDispatcher |
Språkversion: | ActionScript 3.0 |
Produktversion: | Expression Manager Building Block 10 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
- 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).
Metod | Definieras med | ||
---|---|---|---|
SimpleFunctionMapper(initFromServer:Boolean = false)
Creates a new SimpleFunctionMapper instance. | SimpleFunctionMapper | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registrerar ett händelseavlyssnarobjekt för ett EventDispatcher-objekt så att avlyssnaren får meddelanden om händelser. | EventDispatcher | ||
Adds a new local function mapping. | SimpleFunctionMapper | ||
Skickar en händelse till händelseflödet. | EventDispatcher | ||
Kontrollerar om EventDispatcher-objektet har några avlyssnare registrerade för en viss typ av händelse. | EventDispatcher | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Tar bort en avlyssnare från EventDispatcher-objektet. | EventDispatcher | ||
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 | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object | ||
Kontrollerar om en händelseavlyssnare är registrerad för det här EventDispatcher-objektet eller något av dess överordnade objekt för den angivna händelsetypen. | EventDispatcher |
SimpleFunctionMapper | () | Konstruktor |
public function SimpleFunctionMapper(initFromServer:Boolean = false)
Språkversion: | ActionScript 3.0 |
Produktversion: | Expression Manager Building Block 10 |
Körningsmiljöversioner: | 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".
ParametrarinitFromServer:Boolean (default = false ) — Whether local function mappings should be loaded from the server.
|
addFunction | () | metod |
public function addFunction(inExpr:String, actual:String):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Expression Manager Building Block 10 |
Körningsmiljöversioner: | 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]".
Parametrar
inExpr:String — A function reference of the form "[scope]:[functionName]"
| |
actual:String — The mapped function, in the format "[ActionScript_class_name]:[method_name]".
|
resolve | () | metod |
public function resolve(scope:String, functionName:String):Function
Språkversion: | ActionScript 3.0 |
Produktversion: | Expression Manager Building Block 10 |
Körningsmiljöversioner: | 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.
Parametrar
scope:String — The scope of the function.
| |
functionName:String — The name of the function.
|
Function — The resolved function.
|
Tue Jun 12 2018, 01:40 PM Z