Php & flash xml slideshow

I am trying to make a site that uses both php, xml (smarty templates) and flash. What I want to do is have when a user clicks on a button it loads a specfic swf into another frame. But I am going to have something like 20 different projects and I wanted to know if possible to have one flash movie and have the swf load a xml file based on what the user clicked in the php file.

I just only wanted to have 1 swf and dynamically load the xml into the flash based on the user clicking it.

I think I explained it well enough I think. Thanks for any help

Jeff Witters.