공용 메서드
함수 | 정의 주체 | ||
---|---|---|---|
addOneShotEventListener(dispatcher:IEventDispatcher, type:String, listener:Function, useCapture:Boolean = false, priority:int = 0):void
Add an event listener to the specified event dispatcher ensuring that it will only fire once. | com.adobe.gravity.utility.events |
함수 세부 정보
addOneShotEventListener | () | 함수 |
public function addOneShotEventListener(dispatcher:IEventDispatcher, type:String, listener:Function, useCapture:Boolean = false, priority:int = 0):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
런타임 버전: | AIR 1.1, Flash Player 9 |
Add an event listener to the specified event dispatcher ensuring that it will only fire once.
매개 변수
dispatcher:IEventDispatcher — The event dispatcher to add the listener to.
| |
type:String — The type of event.
| |
listener:Function — The listener function that processes the event. This function must accept an Event object as its only parameter and must return nothing.
| |
useCapture:Boolean (default = false ) — Determines whether the listener works in the capture phase or the target and bubbling phases. If useCapture is set to true, the listener processes the event only during the capture phase and not in the target or bubbling phase. If useCapture is false, the listener processes the event only during the target or bubbling phase. To listen for the event in all three phases, call addEventListener() twice, once with useCapture set to true, then again with useCapture set to false.
| |
priority:int (default = 0 ) — The priority level of the event listener. Priorities are designated by a 32-bit integer. The higher the number, the higher the priority. All listeners with priority n are processed before listeners of priority n-1. If two or more listeners share the same priority, they are processed in the order in which they were added. The default priority is 0.
|
Tue Jun 12 2018, 03:33 PM Z