| Package | system.events |
| Class | public class BooleanEvent |
| Inheritance | BooleanEvent BasicEvent flash.events.Event |
BooleanEvent to dispatch an event who contains a specific Boolean context.
Example :
import system.events.BooleanEvent ;
var e:BooleanEvent = new BooleanEvent("change", true) ;
trace( e.boolean ) ; // true
| Property | Defined By | ||
|---|---|---|---|
| boolean : Boolean
Determinates the Boolean value of this custom event. | BooleanEvent | ||
![]() | context : *
Determinates the optional context of this event. | BasicEvent | |
![]() | target : Object [override]
Indicates the custom event target. | BasicEvent | |
![]() | timeStamp : uint [read-only]
Indicates the timestamp of the event. | BasicEvent | |
![]() | type : String [override]
Returns the type of event. | BasicEvent | |
| Method | Defined By | ||
|---|---|---|---|
BooleanEvent(type:String, b:Boolean = false, target:Object = null, context:* = null, bubbles:Boolean = false, cancelable:Boolean = false, time:Number = 0)
Creates a new BooleanEvent instance. | BooleanEvent | ||
clone():Event [override]
Returns the shallow copy of this event. | BooleanEvent | ||
![]() | dispatch(channel:String = null):void
Dispatch the event with the global event flow. | BasicEvent | |
![]() | toString():String [override]
Returns the string representation of this event. | BasicEvent | |
| boolean | property |
boolean:BooleanDeterminates the Boolean value of this custom event.
public function get boolean():Boolean public function set boolean(value:Boolean):void| BooleanEvent | () | Constructor |
public function BooleanEvent(type:String, b:Boolean = false, target:Object = null, context:* = null, bubbles:Boolean = false, cancelable:Boolean = false, time:Number = 0)
Creates a new BooleanEvent instance.
type:String — the string type of the instance.
| |
b:Boolean (default = false) — the Boolean object of this event.
| |
target:Object (default = null) — the target of the event.
| |
context:* (default = null) — the optional context object of the event.
| |
bubbles:Boolean (default = false) — indicates if the event is a bubbling event.
| |
cancelable:Boolean (default = false) — indicates if the event is a cancelable event.
| |
time:Number (default = 0) — this optional parameter is used in the eden deserialization to copy the timestamp value of this event.
|
| clone | () | method |
override public function clone():EventReturns the shallow copy of this event.
ReturnsEvent — the shallow copy of this event.
|