說我有延伸Event
兩類:as3中的自定義事件類型標識符需要唯一嗎?
public class CustomEventOne extends Event
{
public static const EVENT_TYPE_ONE:String = "click";
//... rest of custom event
和
public class CustomEventTwo extends Event
{
public static const EVENT_TYPE_TWO:String = "click";
//... rest of custom event
它是確定它們都宣稱使用相同字符串"click"
事件類型?
或者事件類型標識符在整個應用程序中需要唯一嗎?
感謝您的澄清 - 我一直讓事件獨一無二,我出於好奇而問得比任何其他更多... – Reuben 2009-10-14 00:53:13