Solved

Flash LocalConnection to talk to Director - Using across domains

Posted on 2006-07-13
3
212 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 69

Accepted Solution

by:
Merete earned 500 total points
Comment Utility
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&section=Multimedia%20Handyman

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

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this article, I'll explain how to setup a Plex Media Server (https://plex.tv/) on a Redhat (Centos) 7 based NAS with screenshots to help those looking for assistance.  What is Plex? If you aren't familiar with Plex, it’s a DLNA media serv…
Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
The viewer will learn how to search for and apply Apple Loops, as well as create their own in Logic Pro X. Record a region in the tracks area: Select the region: Go to File > Export > Region to Loop Library: Select the appropriate search terms…
Viewers will learn how to use LFOs to modulate the sound of their Sampler instruments. Click the Modulation tab in Sampler: Choose one (or more) of the three available LFOs, and click the respective button to turn it on: Select a waveform, an LF…

763 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now