Pop-Up Window Questions

So I’ve been browsing online for how to open a pop-up window from an SWF, and found this one to be pretty useful:

http://www.kirupa.com/developer/flash5/newwindow.htm

However, there’s a few things that differ with my swf. I actually have several buttons that open several different html files, so I can’t attach that html code to ONLY the main page (because each html page that should open up has a different width and height). Secondly, all my buttons lie within a movie clip which supposedly changes some things within the actionscript.

Can anybody offer any help?