I am learning data handling using Flash as the interface. What are the benefits of using XML and Actionscript versus an SQL database and PHP scripting?

Tell me your preference, if any.