Two Domains Pointing to 1 SWF - ERROR

I have two domains pointing to the same swf. So I have domain “A” and “B” where my swf (site) is hosted at “A”. Domain “B” loads site “A”.

The swf loads some vars from a DB, when seeing site directly at domain “A” I have no problems, but when seeing with domain “B”, my site just freezes…giving an error at the Browser and I have to close. This is for FF and IE.

At first I thought this was cross domain policies, so I have put at my swf the following code:

      System.security.allowDomain("B")

However this did not solve the problem.

Any help please?!

Please put up the error message here, so that we can see it.

I don’t have an error message, the browser just freezes. I have to make “Terminate Program”.

And it consumes all my pc resources…Memory and cpu …

have you got a DB on site B?

Does the other domain (the one not hosting the swf )have a crossdomain.xml file at site root

No I don’t have a DB at site “B”, and I also don’t have that crossdomain.xml file hosted at “A”. I will try with the crossdomain.xml

Will post the result soon…

Solved with crossdomain.xml… thks.