# Using actionscript with iframes

**URL:** <https://forum.kirupa.com/t/using-actionscript-with-iframes/197787>\
**Category:** Uncategorized\
**Created:** [August 19, 2006, 2:24am UTC](https://forum.kirupa.com/t/using-actionscript-with-iframes/197787 "2006-08-19T02:24:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 19, 2006, 2:24am UTC](https://forum.kirupa.com/t/using-actionscript-with-iframes/197787/1 "2006-08-19T02:24:29Z")

</div>

what i have is some movieclip buttons that im using actionscript with…

"button1\_mc.onRelease = function() {

```
getURL("main.html", "_main");

```

}"

how do i go about making it to where when i click button1\_mc that it will display main.html in a iframe that i have on the page?

the fla is located at: [http://stu.aii.edu/~ajb158/Untitled-1.fla](http://stu..aii.edu/%7Eajb158/Untitled-1.fla)  
and the html is attached in a txt file  
thanks
