Pakiet | mx.events |
Klasa | public class EventListenerRequest |
Dziedziczenie | EventListenerRequest SWFBridgeRequest Event Object |
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | 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;
Właściwości publiczne
Właściwość | Zdefiniowane przez | ||
---|---|---|---|
bubbles : Boolean [tylko do odczytu]
Określa, czy zdarzenie może przechodzić fazę propagacji. | Event | ||
cancelable : Boolean [tylko do odczytu]
Wskazuje, czy można uniemożliwić operacje skojarzone ze zdarzeniem. | Event | ||
constructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | Object | ||
currentTarget : Object [tylko do odczytu]
Obiekt przetwarzający aktywnie obiekt Event za pomocą detektora zdarzeń. | Event | ||
data : Object
Data related to the event. | SWFBridgeRequest | ||
eventPhase : uint [tylko do odczytu]
Bieżąca faza przepływu zdarzeń. | Event | ||
eventType : String [tylko do odczytu]
The type of the event to listen to. | EventListenerRequest | ||
listener : Function [tylko do odczytu]
The method or function to call
| EventListenerRequest | ||
priority : int [tylko do odczytu]
The priority parameter
to addEventListener(). | EventListenerRequest | ||
requestor : IEventDispatcher
The bridge that sent the message. | SWFBridgeRequest | ||
target : Object [tylko do odczytu]
Miejsce docelowe zdarzenia. | Event | ||
type : String [tylko do odczytu]
Typ zdarzenia. | Event | ||
useCapture : Boolean [tylko do odczytu]
The useCapture parameter
to addEventListener(). | EventListenerRequest | ||
useWeakReference : Boolean [tylko do odczytu]
The useWeakReference parameter
to addEventListener(). | EventListenerRequest |
Metody publiczne
Metoda | Zdefiniowane przez | ||
---|---|---|---|
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 | ||
Powiela instancję podklasy Event. | Event | ||
Funkcja narzędziowa umożliwiająca implementację metody toString() w niestandardowych klasach Event w języku ActionScript 3.0. | Event | ||
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | ||
Sprawdza, czy w odniesieniu do tego zdarzenia wywołano metodę preventDefault(). | Event | ||
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | ||
[statyczny]
Marshals an event by copying the relevant parameters
from the event into a new event. | EventListenerRequest | ||
Anuluje domyślne ustawienia zdarzenia, o ile zachowanie to może być anulowane. | Event | ||
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | ||
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | ||
Zapobiega przetwarzaniu wszelkich detektorów zdarzeń w węźle bieżącym i węzłach następujących po nim. | Event | ||
Zapobiega przetwarzaniu wszelkich detektorów zdarzeń w węzłach następujących po węźle bieżącym w przepływie zdarzeń. | Event | ||
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | ||
Zwraca ciąg znaków, który zawiera wszystkie właściwości obiektu Event. | Event | ||
Zwraca pierwotną wartość dla określonego obiektu. | Object |
Stałe publiczne
Stała | Zdefiniowane przez | ||
---|---|---|---|
ADD_EVENT_LISTENER_REQUEST : String = "addEventListenerRequest" [statyczny]
Request to add an event listener. | EventListenerRequest | ||
REMOVE_EVENT_LISTENER_REQUEST : String = "removeEventListenerRequest" [statyczny]
Request to remove an event listener. | EventListenerRequest |
Szczegół właściwości
eventType | właściwość |
listener | właściwość |
priority | właściwość |
useCapture | właściwość |
useWeakReference | właściwość |
useWeakReference:Boolean
[tylko do odczytu] Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
The useWeakReference
parameter
to addEventListener()
.
Implementacja
public function get useWeakReference():Boolean
Powiązane elementy interfejsu API
Konstruktor Szczegół
EventListenerRequest | () | Konstruktor |
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)
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Creates a new request to add or remove an event listener.
Parametrytype: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 )
|
Powiązane elementy interfejsu API
Szczegół metody
marshal | () | metoda |
public static function marshal(event:Event):EventListenerRequest
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Marshals an event by copying the relevant parameters from the event into a new event.
Parametry
event:Event — The event to marshal.
|
EventListenerRequest — An EventListenerRequest that defines the new event.
|
Szczegół stałej
ADD_EVENT_LISTENER_REQUEST | Stała |
public static const ADD_EVENT_LISTENER_REQUEST:String = "addEventListenerRequest"
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Request to add an event listener.
REMOVE_EVENT_LISTENER_REQUEST | Stała |
public static const REMOVE_EVENT_LISTENER_REQUEST:String = "removeEventListenerRequest"
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Request to remove an event listener.
Tue Jun 12 2018, 12:06 PM Z