At 5/8/13 01:56 AM, egg82 wrote:
At 5/8/13 01:50 AM, TheNavigat wrote:
*After googling it and trying to avoid being a bad*** *right, yeah, that's what I thought you were asking.
Oh.. More details about using that with PHP, please? :)
Flash's security is tighter than a fly's anus, you can't access any data from a server without the server's permission in the form of a strictly-typed XML file. Specifically, crossdomain.xml
Use the Security class to add the site to the list of security exceptions (client-side access) and the same class to load the policy file (server-side access) to finally allow data to travel between the two. Same with Sockets, or any type of data in any way, shape, or form (aside from uploading and downloading, for some unknown reason) - you need the crossdomain.xml file
THAT IS AWESOME! Thanks a lot!
But the problem is that this way, I need to protect the second SWF, which will have access to the PHP script to perform actions, so no one can download it for example, and therefore be able to decrypt it, and ruin everything. I guess using .htaccess to allow only this SWF would work, but the problem is that the SWF works locally, so I guess the IP added would belong to the user, not the website. What do you think?
And thanks, again :)