Flash navigation in HTML frames

I want to place a Flash header in an HTML page with frames. I followed a tutorial from this site:
http://www.kirupa.com/developer/flash5/frames.htm

I could not figure out how to apply it to my own page though, because it didn’t explain how to set up the HTML frames at all.
I set up a frameset in Dreamweaver, so I have 3 frames, called “topframe”, “mainframe”, and “bottomframe”. In Flash, I applied the following action script to a button as the tutorial instructed:

on (release) {
getURL(“affiliates.html”, “mainframe”);
}

However, when I click on the button to go to “affiliates.html”, it opens in a new browser window instead of the main frame. what am i doing wrong??

I think i tripped over that one before…
although it was a long time ago…
i believe, if i recall correctly, you had to check for capital letters…

not “mainframe”, but try “mainFrame”

hope it works…