summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--webcam/ru/inspirit/net/events/MultipartURLLoaderEvent.as27
1 files changed, 27 insertions, 0 deletions
diff --git a/webcam/ru/inspirit/net/events/MultipartURLLoaderEvent.as b/webcam/ru/inspirit/net/events/MultipartURLLoaderEvent.as
new file mode 100644
index 0000000..2b90855
--- /dev/null
+++ b/webcam/ru/inspirit/net/events/MultipartURLLoaderEvent.as
@@ -0,0 +1,27 @@
+package ru.inspirit.net.events
+{
+ import flash.events.Event;
+
+ /**
+ * MultipartURLLoader Event for async data prepare tracking
+ * @author Eugene Zatepyakin
+ */
+ public class MultipartURLLoaderEvent extends Event
+ {
+ public static const DATA_PREPARE_PROGRESS:String = 'dataPrepareProgress';
+ public static const DATA_PREPARE_COMPLETE:String = 'dataPrepareComplete';
+
+ public var bytesWritten:uint = 0;
+ public var bytesTotal:uint = 0;
+
+ public function MultipartURLLoaderEvent(type:String, w:uint = 0, t:uint = 0)
+ {
+ super(type);
+
+ bytesTotal = t;
+ bytesWritten = w;
+ }
+
+ }
+
+} \ No newline at end of file