Html link code into flash button?

hey guys, i’m having trouble finding a tutorial on this through google. in html, i have this code on a text link:

<a href="page1.html" onclick="return loadIframe('ifrm', this.href)">Page 1</a>

basically just returns a page’s height to the iframe called ifrm so that the height of the iframe will be dynamically changed.

the page’s nav is being changed to flash, so i need to somehow script that snippet into a flash button. normally i’d use something like:

on (release){
getURL("page1.html", "ifrm");
}

but i can’t find the proper syntax for writing that in actionscript. any help or point in the right direction would be greatly appreciated. thanks! :thumb: