Controlling loaded swf

i’m developing a thumbnail gallery in one swf, and i’m loading it from another swf(a main page), and it works perfect, but i want to control what XML to load from the main page swf.

the question here is how to tell the thumbnail gallery swf to load a xml file from the main page swf?

thanks in advance!