The Help in Flash is quite thorough. Do a search for "create
button" and "getURL".
But basically, create a button image on the stage, select it
and hit F8 then choose button as your symbol type. Now give your
button an instance name... for example "myBtn_btn". Then in frame
one, of the timeline where your button sits and on a layer for
actions put the following code: