We help IT Professionals succeed at work.

cross domain scripting with flash

leohung
leohung asked
on
493 Views
Last Modified: 2008-07-17
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?
Comment
Watch Question

Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
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)

Commented:
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.

Commented:
Um...  How about getURL("toServerB.php?variable=value", "_blank"); ???

CyanBlue
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.