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

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

initial commit of old repository into public one

Line 
1/**
2* Event types fired by the Model.
3**/
4package com.jeroenwijering.events {
5
6
7import flash.events.Event;
8
9
10public class ModelEvent extends Event {
11
12
13        /** Identifier for buffer change event. **/
14        public static var BUFFER:String = "BUFFER";
15        public static var ERROR:String = "ERROR";
16        public static var LOADED:String = "LOADED";
17        public static var META:String = "META";
18        public static var STATE:String = "STATE";
19        public static var TIME:String = "TIME";
20        /** The data associated with the event. **/
21        private var _data:Object;
22
23
24        /**
25        * Constructor; sets the event type and inserts the new value.
26        *
27        * @param typ    The type of event.
28        * @param dat    An object with all associated data.
29        **/
30        public function ModelEvent(typ:String,dat:Object=undefined,bbl:Boolean=false,ccb:Boolean=false) {
31                super(typ,bbl,ccb);
32                _data = dat;
33        };
34
35
36        /** Returns the associated data. **/
37        public function get data():Object {
38                return _data;
39        };
40
41
42}
43
44
45}
Note: See TracBrowser for help on using the browser.