Packagesystem.events
Classpublic class NumberEvent
InheritanceNumberEvent Inheritance BasicEvent Inheritance flash.events.Event

The NumberEvent to dispatch an event who contains a specific Number context.

Example :

     import system.events.NumberEvent ;
     var e:NumberEvent = new NumberEvent("change", 10) ;
     trace( e.number ) ; // 10
     



Public Properties
 PropertyDefined By
 Inheritedcontext : *
Determinates the optional context of this event.
BasicEvent
  number : Number
Determinates the Number value of this custom event.
NumberEvent
 Inheritedtarget : Object
[override] Indicates the custom event target.
BasicEvent
 InheritedtimeStamp : uint
[read-only] Indicates the timestamp of the event.
BasicEvent
 Inheritedtype : String
[override] Returns the type of event.
BasicEvent
Public Methods
 MethodDefined By
  
NumberEvent(type:String, n:Number, target:Object = null, context:* = null, bubbles:Boolean = false, cancelable:Boolean = false, time:Number = 0)
Creates a new NumberEvent instance.
NumberEvent
  
clone():Event
[override] Returns the shallow copy of this event.
NumberEvent
 Inherited
dispatch(channel:String = null):void
Dispatch the event with the global event flow.
BasicEvent
 Inherited
toString():String
[override] Returns the string representation of this event.
BasicEvent
Protected Methods
 MethodDefined By
 Inherited
setTimeStamp(time:uint = 0):void
Sets the timestamp of the event (used this method only in internal in the Event class).
BasicEvent
Property Detail
numberproperty
number:Number

Determinates the Number value of this custom event.


Implementation
    public function get number():Number
    public function set number(value:Number):void
Constructor Detail
NumberEvent()Constructor
public function NumberEvent(type:String, n:Number, target:Object = null, context:* = null, bubbles:Boolean = false, cancelable:Boolean = false, time:Number = 0)

Creates a new NumberEvent instance.

Parameters
type:String — the string type of the instance. 
 
n:Number (default = NaN) — the Number value 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.
Method Detail
clone()method
override public function clone():Event

Returns the shallow copy of this event.

Returns
Event — the shallow copy of this event.