in my Main class I dispatch an event that should be recived by a .swf file, I did load earlier (via loaderMax). Unfortunately the eventListener doesnt recive the dispatched event and therefore doesnt do anything. I posted the short version of what Im trying to do below. I´d be happy if somebody could tell me what Im doing wrong.
public class Main {
DisplayObject(loader.content).dispatchEvent("doSomething");
}
public class loadedSWF {
this.addEventListener("doSomething", handler);
function handler (event:Event):void {
trace("recived dispatched Event");
}
}