Link to home
Start Free TrialLog in
Avatar of RE-MEDIA
RE-MEDIAFlag for Afghanistan

asked on

Flash LocalConnection to talk to Director - Using across domains

Hi,

I am using the LocalConnection object to communicate between a Flash MX2004 SWF and a Director MX2004 movie (running in the Authoring environment). I need the two to communicate across different domains but, although I have followed the documentation, this does not appear to work!

My Director movie WILL execute the called handler when the calling SWF is run locally, but NOT when it is run on the web.

The documentation says that in order to allow the sending LocalConnection to talk cross-domain to the receiving LocalConnection I need to do the following:

1) Make sure both connections are connected with names starting with an underscore... CHECK. My LCs are connected as "_SourceLC" and "_DestLC"

2) Make sure that the allowDomain functions for both LCs are set to return true for the required domains... CHECK. My LCs' allowDomain functions both simply return true

When running cross-domain, when I call the desination LC (_DestLC) from the source LC (_SourceLC), it gets as far as the allowDomain function, but does NOT execute the required function. However, when both are run on the same domain, the allowDomain function is executed followed by the required function being successfully executed.

Can anyone help? Am I missing something, or is the documentation wrong?

Thanks,

Andy
ASKER CERTIFIED SOLUTION
Avatar of Merete
Merete
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial