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

Revision 161, 1.2 kB (checked in by jeroen, 9 months ago)

separated captions/audiodescription, added plugin skin provisioning and added JW namespace to feeds

Line 
1/**
2* Definitions for all event types fired by the Controller.
3*
4* Import this class into your project/plugin for strong-typed api references.
5**/
6package com.jeroenwijering.events {
7
8
9import flash.events.Event;
10
11
12public class ControllerEvent extends Event {
13
14
15        /** Definitions for all event types. **/
16        public static var ERROR:String = "ERROR";
17        public static var ITEM:String = "ITEM";
18        public static var MUTE:String = "MUTE";
19        public static var PLAY:String = "PLAY";
20        public static var PLAYLIST:String = "PLAYLIST";
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 data 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):void {
36                super(typ,bbl,ccb);
37                _data = dat;
38        };
39
40
41        /** Returns the data associated with the event. **/
42        public function get data():Object {
43                return _data;
44        };
45
46
47}
48
49
50}
Note: See TracBrowser for help on using the browser.