# Flash menu to control IFRAME

**URL:** https://forum.kirupa.com/t/flash-menu-to-control-iframe/137252
**Category:** Uncategorized
**Created:** [February 12, 2005, 5:39pm UTC](https://forum.kirupa.com/t/flash-menu-to-control-iframe/137252 "2005-02-12T17:39:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Inflicted](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@Inflicted](https://forum.kirupa.com/u/Inflicted)
#### Post date: [February 12, 2005, 5:39pm UTC](https://forum.kirupa.com/t/flash-menu-to-control-iframe/137252/1 "2005-02-12T17:39:08Z")

</div>

(Follow-up on earlier (deleted) thread)

I want to scroll through pages in an IFRAME  
in a HTML page with my Flash menu.

It works partly but it doesn’t go back and forth  
correctly. This is the code I have now:

```auto
myUrl = 1;
btn1.onPress = function() {
    if (myUrl<4) {
        getURL("page"+myUrl+".html", "home");
        myUrl++;
        input = myUrl;
    }
};
btn2.onPress = function() {
    if (myUrl>0 ) {
        getURL("page"+myUrl+".html", "home");
        myUrl--;
        input = myUrl;
    }
};

```

Does anyone know how to do this correctly?  
example:[here](http://www.inflicted.nl/test/evers/btn_test/a_test.html)

thanks
