# Button loading html in frame

**URL:** https://forum.kirupa.com/t/button-loading-html-in-frame/231133
**Category:** flash
**Created:** [July 2, 2007, 1:17pm UTC](https://forum.kirupa.com/t/button-loading-html-in-frame/231133 "2007-07-02T13:17:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![statikcat](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@statikcat](https://forum.kirupa.com/u/statikcat)
#### Post date: [July 2, 2007, 1:17pm UTC](https://forum.kirupa.com/t/button-loading-html-in-frame/231133/1 "2007-07-02T13:17:14Z")

</div>

I can’t for the life of me get this to work. I have my flash publish settings in CS3 set to AS2.

I am simply just trying to get buttons on a menu to load html pages into a specified frame.

I am using this AS on the button

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

My HTML is correct… but the button loads the html page into a new page instead of the frame ‘mainframe’. This must be a simple setting or code that I am missing…it half works! I am pressed on time with this if anyone can offer some guidance.
