Solved

Flash LocalConnection to talk to Director - Using across domains

Posted on 2006-07-13
3
216 Views
Last Modified: 2008-03-06
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
0
Comment
Question by:RE-MEDIA
3 Comments
 
LVL 70

Accepted Solution

by:
Merete earned 500 total points
ID: 17136166
Hi Andy I have only brushed a small bit on dream weaver and fireworks stuff, but have seen your post sitting here all empty, so dont yell at me lol this just guess with good intentions.
it is rather a difficult one as it covers several subjects.
Please look at my offereings never know I might help if not blame it on the lack of experience :)
btw you are wellcome to ask for a refund, entirely/

Director MX Tutorial 1: Dynamic Use of External Media
http://www.joesparks.com/macr/postcards/DiMX_Tutorial1.htm
http://www.adobe.com/devnet/director/articles/external_media.html

Director Online Article Database
http://director-online.com/listArticles.php?type=section§ion=Multimedia%20Handyman

Basics of ASP.net PDF 1.25 megs
http://www.friendsofed.com/samples/1590595173.pdf

0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
This video will give a brief orientation and organization of Logic Pro X, and how to access different work spaces quickly with keyboard shortcuts.
Viewers will learn key ranges in Sampler to make their sampled instruments sound more realistic Gather samples of various notes and drag them to Key Range panel: Set proper root key for each sample: Select all the samples with Command-A (or Ctrl…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question