패키지 | mx.messaging.events |
클래스 | public class ChannelEvent |
상속 | ChannelEvent Event Object |
하위 클래스 | ChannelFaultEvent |
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
속성 | 정의 주체 | ||
---|---|---|---|
bubbles : Boolean [읽기 전용]
이벤트가 버블링 이벤트인지 여부를 나타냅니다. | Event | ||
cancelable : Boolean [읽기 전용]
해당 이벤트와 연관된 비헤이비어를 차단할 수 있는지 여부를 나타냅니다. | Event | ||
channel : Channel
The Channel that generated this event. | ChannelEvent | ||
connected : Boolean
Indicates whether the Channel that generated this event is already connected. | ChannelEvent | ||
constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
currentTarget : Object [읽기 전용]
이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다. | Event | ||
eventPhase : uint [읽기 전용]
이벤트 흐름에서 현재 단계입니다. | Event | ||
reconnecting : Boolean
Indicates whether the Channel that generated this event is reconnecting. | ChannelEvent | ||
rejected : Boolean
Indicates whether the Channel that generated this event was rejected. | ChannelEvent | ||
target : Object [읽기 전용]
이벤트 대상입니다. | Event | ||
type : String [읽기 전용]
이벤트 유형입니다. | Event |
메서드 | 정의 주체 | ||
---|---|---|---|
ChannelEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, channel:Channel = null, reconnecting:Boolean = false, rejected:Boolean = false, connected:Boolean = false)
Constructs an instance of this event with the specified type and Channel
instance. | ChannelEvent | ||
[재정의]
Clones the ChannelEvent. | ChannelEvent | ||
createEvent(type:String, channel:Channel = null, reconnecting:Boolean = false, rejected:Boolean = false, connected:Boolean = false):ChannelEvent [정적]
Utility method to create a new ChannelEvent that doesn't bubble and
is not cancelable. | ChannelEvent | ||
사용자 정의 ActionScript 3.0 Event 클래스에서 toString() 메서드를 구현하기 위한 유틸리티 함수입니다. | Event | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
이벤트에서 preventDefault() 메서드가 호출되었는지 여부를 확인합니다. | Event | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
이벤트의 기본 비헤이비어를 취소할 수 있는 경우, 그 비헤이비어를 취소합니다. | Event | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
이벤트 흐름에서 현재 노드 및 그 후속 노드에 있는 모든 이벤트 리스너가 처리되지 않도록 합니다. | Event | ||
이벤트 흐름에서 현재 노드의 후속 노드에 있는 모든 이벤트 리스너가 처리되지 않도록 합니다. | Event | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
[재정의]
Returns a string representation of the ChannelEvent. | ChannelEvent | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
상수 | 정의 주체 | ||
---|---|---|---|
CONNECT : String = "channelConnect" [정적]
The CONNECT event type; indicates that the Channel connected to its
endpoint. | ChannelEvent | ||
DISCONNECT : String = "channelDisconnect" [정적]
The DISCONNECT event type; indicates that the Channel disconnected from its
endpoint. | ChannelEvent |
channel | 속성 |
public var channel:Channel
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The Channel that generated this event.
connected | 속성 |
public var connected:Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Indicates whether the Channel that generated this event is already connected.
reconnecting | 속성 |
public var reconnecting:Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Indicates whether the Channel that generated this event is reconnecting.
rejected | 속성 |
public var rejected:Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Indicates whether the Channel that generated this event was rejected. This would be true in the event that the channel has been disconnected due to inactivity and should not attempt to failover or connect on an alternate channel.
ChannelEvent | () | 생성자 |
public function ChannelEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, channel:Channel = null, reconnecting:Boolean = false, rejected:Boolean = false, connected:Boolean = false)
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Constructs an instance of this event with the specified type and Channel instance.
매개 변수type:String — The ChannelEvent type.
| |
bubbles:Boolean (default = false ) — Specifies whether the event can bubble up the display
list hierarchy.
| |
cancelable:Boolean (default = false ) — Indicates whether the behavior associated with the
event can be prevented; used by the RPC subclasses.
| |
channel:Channel (default = null ) — The Channel generating the event.
| |
reconnecting:Boolean (default = false ) — Indicates whether the Channel is in the process of
reconnecting or not.
| |
rejected:Boolean (default = false ) — Indicates whether the Channel's connection has been rejected,
which suppresses automatic reconnection.
| |
connected:Boolean (default = false ) — Indicates whether the Channel that generated this event
is already connected.
|
clone | () | 메서드 |
createEvent | () | 메서드 |
public static function createEvent(type:String, channel:Channel = null, reconnecting:Boolean = false, rejected:Boolean = false, connected:Boolean = false):ChannelEvent
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Utility method to create a new ChannelEvent that doesn't bubble and is not cancelable.
매개 변수
type:String — The ChannelEvent type.
| |
channel:Channel (default = null ) — The Channel generating the event.
| |
reconnecting:Boolean (default = false ) — Indicates whether the Channel is in the process of
reconnecting or not.
| |
rejected:Boolean (default = false ) — Indicates whether the Channel's connection has been rejected,
which suppresses automatic reconnection.
| |
connected:Boolean (default = false ) — Indicates whether the Channel that generated this event
is already connected.
|
ChannelEvent — New ChannelEvent.
|
toString | () | 메서드 |
CONNECT | 상수 |
public static const CONNECT:String = "channelConnect"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The CONNECT event type; indicates that the Channel connected to its endpoint.
The value of this constant is "channelConnect"
.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
channel | The channel that generated this event. |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
reconnecting | Indicates whether the channel that generated this event is reconnecting. |
rejected | Indicates whether the channel that generated this event was rejected. This would be true in the event that the channel has been disconnected due to inactivity and should not attempt to failover or connect on an alternate channel. |
DISCONNECT | 상수 |
public static const DISCONNECT:String = "channelDisconnect"
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The DISCONNECT event type; indicates that the Channel disconnected from its endpoint.
The value of this constant is "channelDisconnect"
.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
channel | The channel that generated this event. |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
reconnecting | Indicates whether the channel that generated this event is reconnecting. |
rejected | Indicates whether the channel that generated this event was rejected. This would be true in the event that the channel has been disconnected due to inactivity and should not attempt to failover or connect on an alternate channel. |
Tue Jun 12 2018, 03:17 PM Z