|
Revision 374, 1.0 kB
(checked in by jeroen, 2 months ago)
|
|
implemented bitrate switching for rtmp/http/video. Also updated testmovies to use Edgecast / Bitgravity
|
| Line | |
|---|
| 1 | /** |
|---|
| 2 | * Definitions for all event types fired by the Model. |
|---|
| 3 | * |
|---|
| 4 | * Import this class into your project/plugin for strong-typed api references. |
|---|
| 5 | **/ |
|---|
| 6 | package com.jeroenwijering.events { |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | import flash.events.Event; |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | public class ModelEvent extends Event { |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | /** Definitions for all event types. **/ |
|---|
| 16 | public static var BUFFER:String = "BUFFER"; |
|---|
| 17 | public static var ERROR:String = "ERROR"; |
|---|
| 18 | public static var LOADED:String = "LOADED"; |
|---|
| 19 | public static var META:String = "META"; |
|---|
| 20 | public static var STATE:String = "STATE"; |
|---|
| 21 | public static var TIME:String = "TIME"; |
|---|
| 22 | /** The data associated with the event. **/ |
|---|
| 23 | private var _data:Object; |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | /** |
|---|
| 27 | * Constructor; sets the event type and inserts the new value. |
|---|
| 28 | * |
|---|
| 29 | * @param typ The type of event. |
|---|
| 30 | * @param dat An object with all associated data. |
|---|
| 31 | **/ |
|---|
| 32 | public function ModelEvent(typ:String,dat:Object=undefined,bbl:Boolean=false,ccb:Boolean=false):void { |
|---|
| 33 | super(typ,bbl,ccb); |
|---|
| 34 | _data = dat; |
|---|
| 35 | }; |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | /** Returns the data associated with the event. **/ |
|---|
| 39 | public function get data():Object { |
|---|
| 40 | return _data; |
|---|
| 41 | }; |
|---|
| 42 | |
|---|
| 43 | |
|---|
| 44 | } |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | } |
|---|