2
* This file is part of the dis-Emi-A HaXe Library. Copyright (c) edA-qa mort-ora-y
3
* For full copyright and license information please refer to doc/license.txt.
9
import neash.events.Event;
11
import flash.events.Event;
15
* A generic event for menu items.
17
* The constructor allows both the standard type and a dynamic extension.
18
* This extension is simply held by the MenuEvent and available in the
19
* handler. This allows you to use one "type" with multiple dynamic items
20
* to avoid needing several handlers (as often some menu items call the
21
* same procedure with only slightly different parameters)
23
class MenuEvent extends Event
25
public var ext : Dynamic; //an extension object
27
public function new( evtStr : String, ?aext : Dynamic )
29
super( evtStr, true ); //bubbles by default
33
//HAXE: Bug prevents overriding of clone... so for now we use a custom
34
//solution with the Popup manager also recognizing this
35
public function fixClone( ) : Event
37
return new MenuEvent( type, ext );