0

I'm trying get LocalConnection to work between two swf's placed within two different IFRAMES. I've worked with LocalConnection often without too much trouble. But this time --i suspect because of the iframes--i can't get it to work.

Anybody experience the same?

sthg
  • 1,137
  • 3
  • 13
  • 32

2 Answers2

1

Actually, it is allowed. The SWFs are all sandboxed to the same flash player instance. You just need to insure that your security configuration is correct. Take a look at the LiveDocs for LocalConnection's allowDomain function.

carlsz
  • 2,224
  • 3
  • 18
  • 16
0

... Ok, tried this in many different ways, but it seems that Communication between iframes using LocalConnections is not allowed.

sthg
  • 1,137
  • 3
  • 13
  • 32
  • 1
    Make sure that you are prefixing the the connection name used in both the connect and send functions with an underscore (example: _foo). You'll also need to specifiy the wildcard "*" to allow calls from all domains. – carlsz Feb 08 '10 at 23:34
  • 1
    yowsa, I spent a long time on this too - I had tried absolutely everything mentioned everywhere EXCEPT the underscore convention. Ugh. – danjah Jul 07 '10 at 02:10