SQL or XML for flash

Idea is for a flash video to get the video’s file location is should be playing from either a database or that the database could populate an XML file and the flash movie could use that instead.

I’m adjusting from Actionscript 2 into 3 so I’m not 100% on all the new capabilities yet.

So is it possible for a Flash movie to connect directly to an SQL 2005 database? Or is it easier if it was connected to a XML file?

Any helps appreciated :beam: