套件 | com.adobe.solutions.exm.runtime.impl |
類別 | public class SimpleFunctionMapper |
繼承 | SimpleFunctionMapper EventDispatcher Object |
實作 | IFunctionMapper, IEventDispatcher |
語言版本: | ActionScript 3.0 |
產品版本: | Expression Manager Building Block 10 |
執行階段版本: | 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).
方法 | 定義自 | ||
---|---|---|---|
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
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | EventDispatcher | ||
Adds a new local function mapping. | SimpleFunctionMapper | ||
會將事件傳送到事件流程。 | EventDispatcher | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | EventDispatcher | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
會從 EventDispatcher 物件移除偵聽程式。 | 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 | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | 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.
|
Tue Jun 12 2018, 03:47 PM Z