套件 | mx.automation.events |
類別 | public class EventDetails |
繼承 | EventDetails Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
更多範例
公用屬性
屬性 | 定義自 | ||
---|---|---|---|
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
eventType : String
Type of the event
| EventDetails | ||
handlerFunction : Function
Handler function that processes the event
| EventDetails | ||
priority : int
The priority level of the event listener. | EventDetails | ||
useCapture : Boolean
Determines whether the listener works in the capture phase or the target and bubbling phases. | EventDetails | ||
useWeekRef : Boolean
Determines whether the reference to the listener is strong or weak. | EventDetails |
公用方法
方法 | 定義自 | ||
---|---|---|---|
EventDetails(type:String, handler:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false)
Constructor
| EventDetails | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
屬性詳細資訊
eventType | 屬性 |
public var eventType:String
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Type of the event
handlerFunction | 屬性 |
public var handlerFunction:Function
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Handler function that processes the event
priority | 屬性 |
public var priority:int
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
The priority level of the event listener.
預設值為 0。
useCapture | 屬性 |
public var useCapture:Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Determines whether the listener works in the capture phase or the target and bubbling phases.
預設值為 false。
useWeekRef | 屬性 |
public var useWeekRef:Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Determines whether the reference to the listener is strong or weak. strong reference (the default) prevents your listener from being garbage-collected. weak reference does not.
預設值為 false。
建構函式詳細資料
EventDetails | () | 建構函式 |
public function EventDetails(type:String, handler:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false)
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Constructor
參數type:String — The event type; indicates the action that caused the event.
| |
handler:Function — Handler function that processes the event.
| |
useCapture:Boolean (default = false ) — Determines whether the listener works in the capture phase or the target and bubbling phases.
| |
priority:int (default = 0 ) — The priority level of the event listener.
| |
useWeakReference:Boolean (default = false ) — Determines whether the reference to the listener is strong or weak.
strong reference (the default) prevents your listener from being garbage-collected.
weak reference does not.
|
Tue Jun 12 2018, 03:47 PM Z