套件 | mx.events |
類別 | public class EventListenerRequest |
繼承 | EventListenerRequest SWFBridgeRequest Event Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
data
property is not used. Only certain events
can be requested. When the event is triggered in the other application, that
event is re-dispatched through the bridge where the requesting
SystemManager picks up the event and redispatches it from itself.
In general, this request is generated because some other code called
the addEventListener()
method for one of the approved events on its SystemManager.
This request is also dispatched by SystemManager to allow the marshal implementation
to handle adding or removing listeners differently. When dispatched by the
SystemManager, the listener property is non-null;
公用屬性
屬性 | 定義自 | ||
---|---|---|---|
bubbles : Boolean [唯讀]
指出事件是否為反昇事件。 | Event | ||
cancelable : Boolean [唯讀]
指出是否可避免與事件相關聯的行為指令。 | Event | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
currentTarget : Object [唯讀]
正主動使用事件偵聽程式處理 Event 物件的物件。 | Event | ||
data : Object
Data related to the event. | SWFBridgeRequest | ||
eventPhase : uint [唯讀]
事件流程中的目前階段。 | Event | ||
eventType : String [唯讀]
The type of the event to listen to. | EventListenerRequest | ||
listener : Function [唯讀]
The method or function to call
| EventListenerRequest | ||
priority : int [唯讀]
The priority parameter
to addEventListener(). | EventListenerRequest | ||
requestor : IEventDispatcher
The bridge that sent the message. | SWFBridgeRequest | ||
target : Object [唯讀]
事件目標。 | Event | ||
type : String [唯讀]
事件類型。 | Event | ||
useCapture : Boolean [唯讀]
The useCapture parameter
to addEventListener(). | EventListenerRequest | ||
useWeakReference : Boolean [唯讀]
The useWeakReference parameter
to addEventListener(). | EventListenerRequest |
公用方法
方法 | 定義自 | ||
---|---|---|---|
EventListenerRequest(type:String, bubbles:Boolean = false, cancelable:Boolean = true, eventType:String = null, listener:Function = null, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false)
Creates a new request to add or remove an event listener. | EventListenerRequest | ||
複製 Event 子類別的實體。 | Event | ||
公用程式函數,可用來實作自訂 ActionScript 3.0 Event 類別中的 toString() 方法。 | Event | ||
指出物件是否有已定義的指定屬性。 | Object | ||
檢查是否已經對事件呼叫 preventDefault() 方法。 | Event | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
[靜態]
Marshals an event by copying the relevant parameters
from the event into a new event. | EventListenerRequest | ||
如果可以取消事件的預設行為指令,則取消該行為指令。 | Event | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
避免處理事件流程中,目前節點以及任何後續節點中的任何事件偵聽程式。 | Event | ||
避免處理接續在事件流程中的目前節點之後,後續節點中的任何事件偵聽程式。 | Event | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
傳回包含 Event 物件所有屬性的字串。 | Event | ||
會傳回指定之物件的基本值。 | Object |
公用常數
常數 | 定義自 | ||
---|---|---|---|
ADD_EVENT_LISTENER_REQUEST : String = "addEventListenerRequest" [靜態]
Request to add an event listener. | EventListenerRequest | ||
REMOVE_EVENT_LISTENER_REQUEST : String = "removeEventListenerRequest" [靜態]
Request to remove an event listener. | EventListenerRequest |
屬性詳細資訊
eventType | 屬性 |
listener | 屬性 |
priority | 屬性 |
useCapture | 屬性 |
useWeakReference | 屬性 |
建構函式詳細資料
EventListenerRequest | () | 建構函式 |
public function EventListenerRequest(type:String, bubbles:Boolean = false, cancelable:Boolean = true, eventType:String = null, listener:Function = null, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false)
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Creates a new request to add or remove an event listener.
參數type:String — The event type; indicates the action that caused the event. Either EventListenerRequest.ADD
or EventListenerRequest.REMOVE .
| |
bubbles:Boolean (default = false ) — Specifies whether the event can bubble up the display list hierarchy.
| |
cancelable:Boolean (default = true ) — Specifies whether the behavior associated with the event can be prevented.
| |
eventType:String (default = null ) — The type of message you would normally pass to the addEventListener() method.
| |
listener:Function (default = null ) — Determines whether the listener works in the capture phase or the target and bubbling phases.
| |
useCapture:Boolean (default = false ) — The priority level of the event listener. Priorities are designated by a 32-bit integer.
| |
priority:int (default = 0 ) — Determines whether the reference to the listener is strong or weak.
| |
useWeakReference:Boolean (default = false )
|
相關 API 元素
方法詳細資訊
marshal | () | 方法 |
public static function marshal(event:Event):EventListenerRequest
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Marshals an event by copying the relevant parameters from the event into a new event.
參數
event:Event — The event to marshal.
|
EventListenerRequest — An EventListenerRequest that defines the new event.
|
常數詳細資訊
ADD_EVENT_LISTENER_REQUEST | 常數 |
public static const ADD_EVENT_LISTENER_REQUEST:String = "addEventListenerRequest"
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Request to add an event listener.
REMOVE_EVENT_LISTENER_REQUEST | 常數 |
public static const REMOVE_EVENT_LISTENER_REQUEST:String = "removeEventListenerRequest"
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Request to remove an event listener.
Tue Jun 12 2018, 03:47 PM Z