Flash-php-Mysql [closed]

1

Here I am with one more issue of actionscript, I will be very objective. In the flash I designed a car, the 2 wheels are 1 button, which when clicked makes an sql query to a table with fields equal to the name of the button created for the wheels. The problem is flash and php with action script 3. Tips?

    
asked by anonymous 16.04.2015 / 12:04

1 answer

0

When ordering for a remote server, Flash first needs to check the cross-domain policy file to see if requests from your domain are allowed.

If you have access to the remote server, you can upload a file named crossdomain.xml to grant your access to the application.

Detailed information on:

Cross-domain policy for Flash movies

Example 1

Policy file to tell servers to allow access to Flash movies hosted on http://www.example.com :

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
    <allow-access-from domain="www.example.com" />
</cross-domain-policy>

Example 2

Policy file specifying which servers should allow access to Flash movies hosted on http://www.example.com , written with or without www :

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
    <allow-access-from domain="www.example.com" />
    <allow-access-from domain="example.com" />
</cross-domain-policy> 

Example 3

Policy file granting access to the Flash Player, regardless of the subdomain making the request, by means of a wild card * in the token field > of the sub-domain:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
    <allow-access-from domain="*.example.com" />
</cross-domain-policy>
    
16.04.2015 / 13:31