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:
@@ -2,7 +2,7 @@ package com.threerings.ezgame {
|
||||
|
||||
import flash.events.Event;
|
||||
|
||||
public class MessageReceivedEvent extends Event
|
||||
public class MessageReceivedEvent extends EZEvent
|
||||
{
|
||||
/** The type of all MessageReceivedEvents. */
|
||||
public static const TYPE :String = "msgReceived";
|
||||
@@ -23,9 +23,10 @@ public class MessageReceivedEvent extends Event
|
||||
return _value;
|
||||
}
|
||||
|
||||
public function MessageReceivedEvent (messageName :String, value :Object)
|
||||
public function MessageReceivedEvent (
|
||||
ezgame :EZGame, messageName :String, value :Object)
|
||||
{
|
||||
super(TYPE);
|
||||
super(TYPE, ezgame);
|
||||
_name = messageName;
|
||||
_value = value;
|
||||
}
|
||||
@@ -38,7 +39,7 @@ public class MessageReceivedEvent extends Event
|
||||
|
||||
override public function clone () :Event
|
||||
{
|
||||
return new MessageReceivedEvent(_name, _value);
|
||||
return new MessageReceivedEvent(_ezgame, _name, _value);
|
||||
}
|
||||
|
||||
protected var _name :String;
|
||||
|
||||
Reference in New Issue
Block a user