Created listener interfaces that will automatically be registered

if implemented by something on the display hierarchy.
You may also implement them in utility classes and register and unregister
event listening by hand.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@55 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2006-08-24 00:15:49 +00:00
parent b118e302a3
commit a465884a84
11 changed files with 185 additions and 18 deletions
@@ -6,7 +6,7 @@ import flash.events.Event;
* Property change events are dispatched after the property change was
* validated on the server.
*/
public class PropertyChangedEvent extends Event
public class PropertyChangedEvent extends EZEvent
{
/** The type of a property change event. */
public static const TYPE :String = "PropChanged";
@@ -47,9 +47,10 @@ public class PropertyChangedEvent extends Event
* Constructor.
*/
public function PropertyChangedEvent (
propName :String, newValue :Object, oldValue :Object, index :int = -1)
ezgame :EZGame, propName :String, newValue :Object,
oldValue :Object, index :int = -1)
{
super(TYPE);
super(TYPE, ezgame);
_name = propName;
_newValue = newValue;
_oldValue = oldValue;
@@ -64,7 +65,8 @@ public class PropertyChangedEvent extends Event
override public function clone () :Event
{
return new PropertyChangedEvent(_name, _newValue, _oldValue, _index);
return new PropertyChangedEvent(
_ezgame, _name, _newValue, _oldValue, _index);
}
/** Our implementation details. */