Pass Variables from one swf to another swf?

I have a swf with an input text box and a button.
When the button is clicked, i need it to open another swf in a new window and pass the variables to a text box in the new window.

Any ideas on how to do this???