drag multiple items
[potlatch2.git] / net / systemeD / halcyon / connection / EntityDraggedEvent.as
similarity index 54%
rename from net/systemeD/halcyon/connection/WayDraggedEvent.as
rename to net/systemeD/halcyon/connection/EntityDraggedEvent.as
index 1eb2a1b220fb93652dbc478ca0493ead8a67d143..ff0e579026ed3b2bf16d99e158d8ed05b05bc6f7 100644 (file)
@@ -2,26 +2,22 @@ package net.systemeD.halcyon.connection {
 
     import flash.events.Event;
 
-    public class WayDraggedEvent extends EntityEvent {
-        private var _way:Way;
+    public class EntityDraggedEvent extends EntityEvent {
                private var _xDelta:Number;
                private var _yDelta:Number;
 
-        public function WayDraggedEvent(type:String, way:Way, xDelta:Number, yDelta:Number) {
-            super(type, way);
-            this._way = way;
+        public function EntityDraggedEvent(type:String, entity:Entity, xDelta:Number, yDelta:Number) {
+            super(type, entity);
             this._xDelta = xDelta;
             this._yDelta = yDelta;
         }
 
-        public function get way():Way { return _way; }
         public function get xDelta():Number { return _xDelta; }
         public function get yDelta():Number { return _yDelta; }
 
         public override function toString():String {
-            return super.toString() + " in "+_way+" by "+_xDelta+","+_yDelta;
+            return super.toString() + " in "+item+" by "+_xDelta+","+_yDelta;
         }
     }
 
 }
-