I guess it depends on the structure of the XML and so on, but you could load all the content from the XML into an array (or maybe an array of objects) and then use the variable passed into the movie to determine which of this content is displayed.