Flash->php->Mysql

Asked

Viewed 97 times

1

Here I am with one more question of actionscript, I’m going to be very objective. In the flash I drew an automobile, the 2 wheels are 1 button, which when clicked performs 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. Suggestions?

  • 4

    Hello @dev. What is the problem specifically? Flash, PHP or Mysql? Is there an error? See here how to create a complete minimal and verifiable example.

1 answer

0

When making a request to a remote server, Flash needs to first check the policy file cross-Domain to determine whether requests from your domain are allowed.

If you have access to the remote server, you can do the upload of a file with the name crossdomain.xml to grant 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 servers that must 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 that grants access to the Flash Player, regardless of the sub-domain that makes the request, by means of a wild card * in the field of token 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>
  • Thanks Zuul, but what I really wanted was the gigo.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.