Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Flash LocalConnection to talk to Director - Using across domains

Posted on 2006-07-13
3
Medium Priority
?
220 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 70

Accepted Solution

by:
Merete earned 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

I have a Synology DS212+ NAS.  These are not only great for backup and normal NAS stuff, but also for delivering media throughout your home or LAN via DLNA.  I copied my whole audio collection from iTunes over to the box, but couldn't figure out how…
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…
Users will learn how resize a batch of photos from a single command in Photoshop via Photoshop's Image Processor. Open up an Image you'd like to resize in Adobe Photoshop: Adjust the image size according to your preferences. Image > Adjustments > …
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…

660 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