@@ -2,101 +2,57 @@ package flash.events {
22 [Ruffle (InstanceAllocator)]
33 public class Event {
44 public static const ACTIVATE : String = "activate" ;
5-
65 public static const ADDED : String = "added" ;
7-
86 public static const ADDED_TO_STAGE : String = "addedToStage" ;
9-
107 public static const BROWSER_ZOOM_CHANGE : String = "browserZoomChange" ;
11-
128 public static const CANCEL : String = "cancel" ;
13-
149 public static const CHANGE : String = "change" ;
15-
1610 public static const CLEAR : String = "clear" ;
17-
1811 public static const CLOSE : String = "close" ;
19-
2012 [API ("661" )]
2113 public static const CLOSING : String = "closing" ;
22-
2314 public static const COMPLETE : String = "complete" ;
24-
2515 public static const CONNECT : String = "connect" ;
26-
2716 public static const COPY : String = "copy" ;
28-
2917 public static const CUT : String = "cut" ;
30-
3118 public static const DEACTIVATE : String = "deactivate" ;
32-
3319 public static const ENTER_FRAME : String = "enterFrame" ;
34-
3520 public static const FRAME_CONSTRUCTED : String = "frameConstructed" ;
36-
3721 [API ("661" )]
3822 public static const EXITING : String = "exiting" ;
39-
4023 public static const EXIT_FRAME : String = "exitFrame" ;
41-
4224 public static const FRAME_LABEL : String = "frameLabel" ;
43-
4425 public static const ID3 : String = "id3" ;
45-
4626 public static const INIT : String = "init" ;
47-
4827 public static const MOUSE_LEAVE : String = "mouseLeave" ;
49-
5028 public static const OPEN : String = "open" ;
51-
5229 public static const PASTE : String = "paste" ;
53-
5430 public static const REMOVED : String = "removed" ;
55-
5631 public static const REMOVED_FROM_STAGE : String = "removedFromStage" ;
57-
5832 public static const RENDER : String = "render" ;
59-
6033 public static const RESIZE : String = "resize" ;
61-
6234 public static const SCROLL : String = "scroll" ;
63-
6435 public static const TEXT_INTERACTION_MODE_CHANGE : String = "textInteractionModeChange" ;
65-
6636 public static const SELECT : String = "select" ;
67-
6837 public static const SELECT_ALL : String = "selectAll" ;
69-
7038 public static const SOUND_COMPLETE : String = "soundComplete" ;
71-
7239 public static const TAB_CHILDREN_CHANGE : String = "tabChildrenChange" ;
73-
7440 public static const TAB_ENABLED_CHANGE : String = "tabEnabledChange" ;
75-
7641 public static const TAB_INDEX_CHANGE : String = "tabIndexChange" ;
77-
7842 public static const UNLOAD : String = "unload" ;
79-
8043 public static const FULLSCREEN : String = "fullScreen" ;
81-
8244 [API ("667" )]
8345 public static const CONTEXT3D_CREATE : String = "context3DCreate" ;
84-
8546 [API ("667" )]
8647 public static const TEXTURE_READY : String = "textureReady" ;
87-
8848 [API ("682" )]
8949 public static const VIDEO_FRAME : String = "videoFrame" ;
90-
9150 [API ("681" )]
9251 public static const SUSPEND : String = "suspend" ;
93-
9452 [API ("682" )]
9553 public static const CHANNEL_MESSAGE : String = "channelMessage" ;
96-
9754 [API ("682" )]
9855 public static const CHANNEL_STATE : String = "channelState" ;
99-
10056 [API ("682" )]
10157 public static const WORKER_STATE : String = "workerState" ;
10258
@@ -117,15 +73,15 @@ package flash.events {
11773 return new Event (this . type , this . bubbles , this . cancelable );
11874 }
11975
120- public function toString (): String {
121- return this . formatToString ("Event" ,"type" ,"bubbles" ,"cancelable" ,"eventPhase" );
76+ public function toString ():String {
77+ return this . formatToString ("Event" , "type" , "bubbles" , "cancelable" , "eventPhase" );
12278 }
12379
124- public function formatToString (className :String , ... arguments):String {
80+ public function formatToString (className :String , ... arguments):String {
12581 var fmt = "[" + className ;
126- for each (var key: String in arguments ) {
82+ for each (var key: String in arguments ) {
12783 var val = this [ key];
128- if (val is String ) {
84+ if (val is String ) {
12985 fmt += " " + key + "=\" " + val + "\" " ;
13086 } else {
13187 fmt += " " + key + "=" + val;
@@ -134,7 +90,7 @@ package flash.events {
13490 return fmt += "]" ;
13591 }
13692
137- public native function isDefaultPrevented(): Boolean ;
93+ public native function isDefaultPrevented(): Boolean ;
13894 public native function preventDefault(): void ;
13995 public native function stopPropagation(): void ;
14096 public native function stopImmediatePropagation(): void ;
0 commit comments