-
Notifications
You must be signed in to change notification settings - Fork 2
/
RecordingEvent.hx
52 lines (42 loc) · 1.02 KB
/
RecordingEvent.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
** RecordingEvent.hx
**
** Copyright (c) 2012-2017 Peter McQuillan
**
** All Rights Reserved.
**
** Distributed under the BSD Software License (see license.txt)
**
*/
import flash.events.Event;
class RecordingEvent extends flash.events.Event {
public var time(get_time, set_time) : Float;
public var bytesize(get_bytesize, set_bytesize) : Int;
public static var RECORDING:String = "recording";
var _time:Float;
var _size:Int;
public function new(type:String, time:Float, bytesize:Int)
{
super(type, false, false);
_time = time;
_size = bytesize;
}
public function get_bytesize():Int {
return _size;
}
public function set_bytesize(value:Int):Int {
_size = value;
return value;
}
public function get_time():Float{
return _time;
}
public function set_time(value:Float):Float{
_time = value;
return value;
}
public override function clone(): Event
{
return new RecordingEvent(type, _time, _size);
}
}