Loading dynamic swf files in new window

not sure if it belongs here. What I want in the end, is being able to click on links/buttons and then have the corresponding swf file loaded in a new window. I want that 1 new window to load whatever swf file into it depending on the button clicked.

right now, the new window has a dummy swf file that loads a movie depending on a variable in an external xml file. If it’s possible to change the value of a variable of an external xml with an on click event then that should work - but I have a feeling this is a very weird way of doing it.

I’ve been messing around on this for days. Still haven’t taken into account the changing window size depending on the size of the swf… any help is appreciated.