I recommend PHP for connecting to a MySQL Database and write out the XML to Flash.
You can write out XML with PHP just like you would write out HTML.
Look at http://www.flashkit.com , they have some Tutorials about these things. And a good site for everything php is http://www.php.net
Hope this helps!