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

Revision 161, 1.3 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 View.
3*
4* Import this class into your project/plugin folder for strong-typed api references.
5**/
6package com.jeroenwijering.events {
7
8
9import flash.events.Event;
10
11
12public class ViewEvent extends Event {
13
14
15        /** Definitions for all event types. **/
16        public static var FULLSCREEN:String = "FULLSCREEN";
17        public static var ITEM:String = "ITEM";
18        public static var LINK:String = "LINK";
19        public static var LOAD:String = "LOAD";
20        public static var MUTE:String = "MUTE";
21        public static var NEXT:String = "NEXT";
22        public static var PLAY:String = "PLAY";
23        public static var PREV:String = "PREV";
24        public static var REDRAW:String = "REDRAW";
25        public static var SEEK:String = "SEEK";
26        public static var STOP:String = "STOP";
27        public static var TRACE:String = "TRACE";
28        public static var VOLUME:String = "VOLUME";
29        /** The data associated with the event. **/
30        private var _data:Object;
31
32
33        /**
34        * Constructor; sets the event type and inserts the new value.
35        *
36        * @param typ    The type of event.
37        * @param dat    An object with all associated data.
38        **/
39        public function ViewEvent(typ:String,dat:Object=undefined,bbl:Boolean=false,ccb:Boolean=false):void {
40                super(typ, bbl, ccb);
41                _data = dat;
42        };
43
44
45        /** Returns the data associated with the event. **/
46        public function get data():Object {
47                return _data;
48        };
49
50
51}
52
53
54}
Note: See TracBrowser for help on using the browser.