Buttons and new windows

I want someone who clicks on my page to brings up new windows and then bring up the buttons in flash.
I want each new window to bring up a new button. So how do I reference and program this in flash instead of the button bringing up the window the reverse.

How do I do this?

How do I create a rectangular button when a new window unloads. I guess onunloading the new http://www.bonusicon.da.ru

The rectangular buttons show as someone clicks on link from the main page that loads in the treasure chest. So how would I create a flash program from the first window to onload the rectangular buttons that say go to step 1.Step 2 etc. Done