Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / July 2006



Tip: Looking for answers? Try searching our database.

LocalConnection to Director MX2004

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
thellers_rem - 13 Jul 2006 15:16 GMT
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
seand03 - 13 Jul 2006 15:46 GMT
Andy-
I think what you are missing is a cross domain policy file on the domain
running your director movie. You need a xml file that tells the server you are
trying to connect to that flash can use resources on it.
More can be found here:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213
I hope that helps.
Sean
thellers_rem - 13 Jul 2006 17:20 GMT
Hi,

Makes sense I guess, but I've tried this with a crossdomain.xml file just
about everywhere that may be useful and it doesn't work...

I've tested all day and come up with a table of results showing the
combination of circumstances that succeed/fail... please take two seconds to
have a look: http://www.re-m.com/temp/LocalConn-Help.html

It's driving me crazy... I've done everything the documentation says! My
.allowDomain function doesn't even CHECK the domain at all, it ALWAYS returns
true, so I can't see what the problem is, really...

Many thanks,

Andy
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.