Newb - so what's the relationship for flash, php, mysql, and xml

am i wrong in thinking that you can use just php, mysql, and flash to make a flash based site that uses dynamic data.

i’ve been told that using xml is also part of this equation but I’m confused on its connection. is it the same manner as a .txt file of old where php writes to that file and then flash reads it?