PDA

View Full Version : Ajax and Flash


designationlocutus
05-25-2007, 03:07 PM
Hi there,

Would it be possible to use AJAX from within a flash form?

The process I need to achieve is as follows:

- Player finishes a flash game.
- Player gets highscore.
- Highscore is checked against the XML data.
- Player submits highscore (here the ajax part calls a php script that writes to an XML file)
- XML file reloaded after a short delay to reflect the new highscore.

Is there still a security issue to call the script from within flash?

jsebrech
05-27-2007, 11:31 PM
Just use the LoadVars or XML classes to fetch the data from the server. As long as your swf is served from the same server as you're sending requests to, there shouldn't be any security issues.