root/trunk/as3/com/jeroenwijering/events/ControllerEvent.as @ 1

Revision 1, 1.1 kB (checked in by jeroen, 18 months ago)

initial commit of old repository into public one

Line 
1/**
2* Event types fired by the Controller.
3**/
4package com.jeroenwijering.events {
5
6
7import flash.events.Event;
8
9
10public class ControllerEvent extends Event {
11
12
13        /** Identifiers for the accepted event types. **/
14        public static var CAPTION:String = "CAPTION";
15        public static var ERROR:String = "ERROR";
16        public static var ITEM:String = "ITEM";
17        public static var MUTE:String = "MUTE";
18        public static var PLAY:String = "PLAY";
19        public static var PLAYLIST:String = "PLAYLIST";
20        public static var QUALITY:String = "QUALITY";
21        public static var RESIZE:String = "RESIZE";
22        public static var SEEK:String = "SEEK";
23        public static var STOP:String = "STOP";
24        public static var VOLUME:String = "VOLUME";
25        /** The data associated with the event. **/
26        private var _data:Object;
27
28
29        /**
30        * Constructor; sets the event type and inserts the new value.
31        *
32        * @param typ    The type of event.
33        * @param dat    An object with all associated data.
34        **/
35        public function ControllerEvent(typ:String,dat:Object=undefined,bbl:Boolean=false,ccb:Boolean=false) {
36                super(typ,bbl,ccb);
37                _data = dat;
38        };
39
40        /** Returns the modified playlist **/
41        public function get data():Object {
42                return _data;
43        };
44
45
46}
47
48
49}
Note: See TracBrowser for help on using the browser.