# Require visiting certain frames before moving forward?

**URL:** <https://forum.kirupa.com/t/require-visiting-certain-frames-before-moving-forward/324659>\
**Category:** flash\
**Created:** [September 1, 2011, 7:49pm UTC](https://forum.kirupa.com/t/require-visiting-certain-frames-before-moving-forward/324659 "2011-09-01T19:49:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lazerbrains](https://avatars.discourse-cdn.com/v4/letter/l/b19c9b/32.png) [@lazerbrains](https://forum.kirupa.com/u/lazerbrains)\
**Post date:** [September 1, 2011, 7:49pm UTC](https://forum.kirupa.com/t/require-visiting-certain-frames-before-moving-forward/324659/1 "2011-09-01T19:49:11Z")

</div>

I have a site where I want to restrict the user from moving forward unless they have visited certain pages. So if you visti page 1, 2, & 3, then a button appears that lets you move forward. I have this working using buttons.

See example:

However, I need one or all of them to run the function

```auto
checkFramesVisited();

```

When it hits the frame, not when the button is pressed. (because I have a page that auto forwards when audio is done playing. So if you listen to all the audio and don’t click the button, checkFramesVisited(); doesn’t run.) Does anyone know how I can do this?
