Making flash target another frame on my website?

I have 2 frames on my website, top and the main.
The flash is in the top frame and when i click the buttons on that i need it to target the main frame. I can’t get it to do that so can some one please help me.
Thanx.

the a/s code
getUrl();
has a number of fields for information. Where it says “location”, instead of using a number, put in the name of the frame from the frameset page.