mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 09:37:50 -05:00
42 lines
1.2 KiB
ActionScript
42 lines
1.2 KiB
ActionScript
package org.osmf.events
|
|
{
|
|
import flash.events.Event;
|
|
|
|
public class DynamicStreamEvent extends Event
|
|
{
|
|
|
|
public static const SWITCHING_CHANGE:String = "switchingChange";
|
|
|
|
public static const NUM_DYNAMIC_STREAMS_CHANGE:String = "numDynamicStreamsChange";
|
|
|
|
public static const AUTO_SWITCH_CHANGE:String = "autoSwitchChange";
|
|
|
|
private var _switching:Boolean;
|
|
|
|
private var _autoSwitch:Boolean;
|
|
|
|
public function DynamicStreamEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, switching:Boolean = false, autoSwitch:Boolean = false)
|
|
{
|
|
super(type,bubbles,cancelable);
|
|
this._switching = switching;
|
|
this._autoSwitch = autoSwitch;
|
|
}
|
|
|
|
public function get switching() : Boolean
|
|
{
|
|
return this._switching;
|
|
}
|
|
|
|
public function get autoSwitch() : Boolean
|
|
{
|
|
return this._autoSwitch;
|
|
}
|
|
|
|
override public function clone() : Event
|
|
{
|
|
return new DynamicStreamEvent(type,bubbles,cancelable,this._switching,this._autoSwitch);
|
|
}
|
|
}
|
|
}
|
|
|