mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 01:27:51 -05:00
34 lines
845 B
ActionScript
34 lines
845 B
ActionScript
package org.osmf.events
|
|
{
|
|
import flash.events.Event;
|
|
|
|
public class TimeEvent extends Event
|
|
{
|
|
|
|
public static const CURRENT_TIME_CHANGE:String = "currentTimeChange";
|
|
|
|
public static const DURATION_CHANGE:String = "durationChange";
|
|
|
|
public static const COMPLETE:String = "complete";
|
|
|
|
private var _time:Number;
|
|
|
|
public function TimeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, time:Number = NaN)
|
|
{
|
|
super(type,bubbles,cancelable);
|
|
this._time = time;
|
|
}
|
|
|
|
public function get time() : Number
|
|
{
|
|
return this._time;
|
|
}
|
|
|
|
override public function clone() : Event
|
|
{
|
|
return new TimeEvent(type,bubbles,cancelable,this.time);
|
|
}
|
|
}
|
|
}
|
|
|