mirror of
https://github.com/MapMakersAndProgrammers/alternativa-editor-mod.git
synced 2025-10-26 17:59:07 -07:00
editor seems to almost working
This commit is contained in:
31
src/GlobalEventDispatcher.as
Normal file
31
src/GlobalEventDispatcher.as
Normal file
@@ -0,0 +1,31 @@
|
||||
package
|
||||
{
|
||||
import flash.events.Event;
|
||||
import flash.events.EventDispatcher;
|
||||
|
||||
public class GlobalEventDispatcher
|
||||
{
|
||||
private static var eventDispatcher:EventDispatcher = new EventDispatcher();
|
||||
|
||||
public function GlobalEventDispatcher()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public static function addListener(param1:String, param2:Function) : void
|
||||
{
|
||||
eventDispatcher.addEventListener(param1,param2);
|
||||
}
|
||||
|
||||
public static function removeListener(param1:String, param2:Function) : void
|
||||
{
|
||||
eventDispatcher.removeEventListener(param1,param2);
|
||||
}
|
||||
|
||||
public static function dispatch(param1:Event) : void
|
||||
{
|
||||
eventDispatcher.dispatchEvent(param1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user