Dynamic site

I’d like to create an xml driven menu for a flash site that could pass variables ( such as an xml file ) to the movie.

For example, I’ll have a photo gallery page, but if I want to add another gallery page, I’d like to just send a different xml file to the gallery through the dynamic menu to show different images.

Anyone seen something like this? Am I in waaaay over my head with this kind of thinking?