Packageorg.si.sion.events
Classpublic class SiONEvent
InheritanceSiONEvent Inheritance flash.events.Event
Subclasses SiONTrackEvent

SiON Event class.



Public Properties
 PropertyDefined By
  data : SiONData
[read-only] Sound data.
SiONEvent
  driver : SiONDriver
[read-only] Sound driver.
SiONEvent
  streamBuffer : ByteArray
[read-only] ByteArray of sound stream.
SiONEvent
Public Methods
 MethodDefined By
  
SiONEvent(type:String, driver:SiONDriver, streamBuffer:ByteArray = null, cancelable:Boolean = false)
Creates an SiONEvent object to pass as a parameter to event listeners.
SiONEvent
  
clone():Event
[override] clone.
SiONEvent
Public Constants
 ConstantDefined By
  FADE_IN_COMPLETE : String = fadeInComplete
[static] Dispatch when fade in is finished.
SiONEvent
  FADE_OUT_COMPLETE : String = fadeOutComplete
[static] Dispatch when fade out is finished.
SiONEvent
  FADE_PROGRESS : String = fadeProgress
[static] Dispatch while fading.
SiONEvent
  FINISH_SEQUENCE : String = finishSequence
[static] Dispatch when finish executing all sequences.
SiONEvent
  QUEUE_CANCEL : String = queueCancel
[static] Dispatch when cancel all queued jobs.
SiONEvent
  QUEUE_COMPLETE : String = queueComplete
[static] Dispatch when finish all queued jobs.
SiONEvent
  QUEUE_PROGRESS : String = queueProgress
[static] Dispatch when executing queued jobs.
SiONEvent
  STREAM : String = stream
[static] Dispatch while streaming.
SiONEvent
  STREAM_START : String = streamStart
[static] Dispatch when start streaming.
SiONEvent
  STREAM_STOP : String = streamStop
[static] Dispatch when stop streaming.
SiONEvent
Property Detail
dataproperty
data:SiONData  [read-only]

Sound data.


Implementation
    public function get data():SiONData
driverproperty 
driver:SiONDriver  [read-only]

Sound driver.


Implementation
    public function get driver():SiONDriver
streamBufferproperty 
streamBuffer:ByteArray  [read-only]

ByteArray of sound stream. This is available only in STREAM event.


Implementation
    public function get streamBuffer():ByteArray
Constructor Detail
SiONEvent()Constructor
public function SiONEvent(type:String, driver:SiONDriver, streamBuffer:ByteArray = null, cancelable:Boolean = false)

Creates an SiONEvent object to pass as a parameter to event listeners.

Parameters
type:String
 
driver:SiONDriver
 
streamBuffer:ByteArray (default = null)
 
cancelable:Boolean (default = false)
Method Detail
clone()method
override public function clone():Event

clone.

Returns
Event
Constant Detail
FADE_IN_COMPLETEConstant
public static const FADE_IN_COMPLETE:String = fadeInComplete

Dispatch when fade in is finished. This event is dispatched after SiONEvent.STREAM.

The properties of the event object have the following values:

PropertyValue
cancelablefalse
driverSiONDriver instance to stop streaming.
dataSiONData instance playing now. This property is null if you call SiONDriver.play() with null of the 1st argument.
streamBufferByteArray instance of this stream. The length is twice of SiONDriver.bufferLength in the unit of float. You can get the renderd wave data by this propertiy.

FADE_OUT_COMPLETEConstant 
public static const FADE_OUT_COMPLETE:String = fadeOutComplete

Dispatch when fade out is finished. This event is dispatched after SiONEvent.STREAM.

The properties of the event object have the following values:

PropertyValue
cancelablefalse
driverSiONDriver instance to stop streaming.
dataSiONData instance playing now. This property is null if you call SiONDriver.play() with null of the 1st argument.
streamBufferByteArray instance of this stream. The length is twice of SiONDriver.bufferLength in the unit of float. You can get the renderd wave data by this propertiy.

FADE_PROGRESSConstant 
public static const FADE_PROGRESS:String = fadeProgress

Dispatch while fading. This event is dispatched after SiONEvent.STREAM.

The properties of the event object have the following values:

PropertyValue
cancelabletrue to cancel fading.
driverSiONDriver instance to stop streaming.
dataSiONData instance playing now. This property is null if you call SiONDriver.play() with null of the 1st argument.
streamBuffernull

FINISH_SEQUENCEConstant 
public static const FINISH_SEQUENCE:String = finishSequence

Dispatch when finish executing all sequences.

The properties of the event object have the following values:

PropertyValue
cancelablefalse
driverSiONDriver instance playing now.
dataSiONData instance playing now.
streamBuffernull

QUEUE_CANCELConstant 
public static const QUEUE_CANCEL:String = queueCancel

Dispatch when cancel all queued jobs.

The properties of the event object have the following values:

PropertyValue
cancelablefalse
driverSiONDriver instance compiled/rendered.
driver.mmlStringnull
datanull
streamBuffernull

QUEUE_COMPLETEConstant 
public static const QUEUE_COMPLETE:String = queueComplete

Dispatch when finish all queued jobs.

The properties of the event object have the following values:

PropertyValue
cancelablefalse
driverSiONDriver instance compiled/rendered.
driver.mmlStringMML string compiled. null when the job is "render".
dataSiONData instance compiled/rendered.
streamBuffernull

QUEUE_PROGRESSConstant 
public static const QUEUE_PROGRESS:String = queueProgress

Dispatch when executing queued jobs.

The properties of the event object have the following values:

PropertyValue
cancelabletrue; Cancel compiling/rendering immediately.
driverSiONDriver instance compiling/rendering compiling now.
driver.mmlStringMML string compiling now. null when the job is "render".
dataSiONData instance compiling/rendering now. This data is not available when compiling.
streamBuffernull

STREAMConstant 
public static const STREAM:String = stream

Dispatch while streaming. This event is called inside SiONDriver.play() after SiONEvent.STREAM_START, and each streaming timing.

The properties of the event object have the following values:

PropertyValue
cancelabletrue; Stop streaming. SiONDriver.stop() s called inside
driverSiONDriver instance playing now.
dataSiONData instance playing now. This property is null if you call SiONDriver.play() with null of the 1st argument.
streamBufferByteArray instance of this stream. The length is twice of SiONDriver.bufferLength in the unit of float. You can get the renderd wave data by this propertiy.

STREAM_STARTConstant 
public static const STREAM_START:String = streamStart

Dispatch when start streaming. This event is called inside SiONDriver.play() before SiONEvent.STREAM.

The properties of the event object have the following values:

PropertyValue
cancelabletrue; Cancel to start streaming.
driverSiONDriver instance to start streaming.
dataSiONData instance to start streaming. This property is null if you call SiONDriver.play() with null of the 1st argument.
streamBuffernull

STREAM_STOPConstant 
public static const STREAM_STOP:String = streamStop

Dispatch when stop streaming. This event is dispatched inside SiONDriver.stop().

The properties of the event object have the following values:

PropertyValue
cancelablefalse
driverSiONDriver instance to stop streaming.
dataSiONData instance to stop streaming. This property is null if you call SiONDriver.play() with null of the 1st argument.
streamBuffernull