Hi Joe,

You might want to look into using AMFPHP rather than opening up your
MySQL installation for remote access:

http://www.adobe.com/devnet/flex/articles/flex2_amfphp.html

Or if you don't mind sending and receiving XML, you don't need AMFPHP:

http://www.adobe.com/devnet/flex/articles/flex2_php.html

You can also do similar things using WebORB with other server-side
languages.

If the Flex app is on a separate machine to the database, you will
still have to worry about the crossdomain.xml issue though.

Cheers,
Darren.

--- In [email protected], "li.wen" <[EMAIL PROTECTED]> wrote:
>
> Hello all,
> 
> I am using flash.net.Socket class to connect mysql database. And I
always meet sandbox violation error. I have some questions regarding
this problem.
> 
> 1) When I develop the flex application and mysql database
(localhost:3066 is used) in same machine, there is no sandbox 
violation box error, since they are considered as in the same domain.
Am I correct?
> 2) After I upload the flex application the server which is equipped
with mysql, I access the flex application from client machine. Firstly
the flex application will be downloaded to the client machine's cache,
then start to execute. Now flex application and mysql database are
considered as in different domain, and the sandbox violation may happen?
> 3) In order to solve it, I need to enable mysql remote access? Set
mysql server address to digital format (xxx.xxx.xxx.xxx) to instead of
"localhost"?
> 4) Or alternative way to solve it is to set "crossdomain.xml" file?
> Thank you.
> 
> Regards,
> Joe
>


Reply via email to