Sorry for the lame question but I don't know how to search for it. So if I have two events from the same class like:
package {
import flash.events.Event;
public class StylingEvent extends Event{
public static const BLUE_BG:String = "blue_bg";
public static const GREEN_BG:String = "green_bg";
public function StylingEvent(type:String) {
super(type);
}
}}
Do i need to add two eventlisteners like:
gameData.addEventListener(StylingEvent.BLUE_BG, onChangeBg);
gameData.addEventListener(StylingEvent.GREEN_BG, onChangeBg);
Or is it possible like:
gameData.addEventListener( [any type of stylingEvent] , [some method]);
Thanks