Link to home
Start Free TrialLog in
Avatar of leohung
leohung

asked on

cross domain scripting with flash

I got problem while using flash call cross domain php file.
My current setting is:
Server A: static web hosting only. The domain is xxx.foo.com
Server B: php web server. The domain is yyy.foo.com

now,I want  the server A flash file coult  post some data to server B's php file.
But I found the server B didn't do anything after the form sent.
I tried if all the file upload to server B, all the function is fine, but if the flash and html file move to different server, it didn't work again. Do any one know how to fixed it?
ASKER CERTIFIED SOLUTION
Avatar of CyanBlue
CyanBlue
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of leohung
leohung

ASKER

Thx CyanBlue and Cep01, Actually, the Server A is own by others, therefore I couldn't put anything on it's root directory. Server B is mine so I put the crossdomain.xml at root directory.
Actually, if I just want my flash "post/get" one variable (a email address) to server B but didn't need get back the variable. Could I use other function which could ignore the security? (currently, I am using loadVariables() to send out my variable and URL)
You should do what CyanBlue says.

Flash -> Server A -> Server B.

There is no other way to do it if the Server B isn't yours or you don't have access to it.
Um...  How about getURL("toServerB.php?variable=value", "_blank"); ???

CyanBlue