Can custom events be handled and dispatched across the same security domain, diff app domain?
Hi,
I am trying to create a portal which loads applications through SWFLoader which are in the same security domain but different application domains.
Can these scenarios be handled?
1. sub-application dispatch custom event and be handled by the host application (portal)?
2. host application dispatch custom event and be handled by sub-application?
I am currently using the following for simple events:
//from dispatching application
systemManager.getSandboxRoot().dispatchEvent(new MouseEvent("click");
//receiving application
systemManager.getSandboxRoot().addEventListener(MouseEvent.CLICK,clickHandler);
I need to be able to pass data along with the custom event within the same security domain (diff app domain), this is why I need custome events.
Can this be done? Would I have to create an RSL that contains the custom event package and import it to the separate applicaitons?
Thank you for your advise 🙂
Regards,
/Fatima
