Hello all,
[FONT=Helvetica]I use a custom event with public message vars to send messages and triggers in AS3. It's great, however, I cannot get it to propagate an event from a loaded SWF via Loader to my main objects. Below is pcode for the problem case:[/FONT]
new Loader();
Loader.addEventListener(GENERAL_EVENT,handleGeneral);
or
Loader.content.addEventListener(GENERAL_EVENT,handleGeneral);
or
Loader.contentLoaderInfo.addEventListener(GENERAL_EVENT,handleGeneral);
Loader.load("mySwf.swf");
… then mySwf.swf dispatches a GeneralEvent
function handleGeneral(e:GeneralEvent) {
trace("HEARD GENERAL EVENT") // NEVER HEARS IT
}
[FONT=Helvetica]I never hear the event. It’s as if there is a event “firewall” between a loaded SWF and Loader’s parent. The GeneralEvent class works great in all other cases where the objects are not Loaders.[/FONT]
[FONT=Helvetica]Any ideas?[/FONT]
[FONT=Helvetica]Thanks,[/FONT]
[FONT=Helvetica]dseeley
[/FONT]