# \[Flash8\] Problems with navigation

**URL:** https://forum.kirupa.com/t/flash8-problems-with-navigation/226712
**Category:** flash
**Created:** [May 23, 2007, 12:05pm UTC](https://forum.kirupa.com/t/flash8-problems-with-navigation/226712 "2007-05-23T12:05:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ezence](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@Ezence](https://forum.kirupa.com/u/Ezence)
#### Post date: [May 23, 2007, 12:05pm UTC](https://forum.kirupa.com/t/flash8-problems-with-navigation/226712/1 "2007-05-23T12:05:33Z")

</div>

Hi all,

I’ve just started work on the second website I will ever be making entirely in flash. 🍺

[![](http://img501.imageshack.us/img501/7513/helplt8.th.jpg)](http://img501.imageshack.us/my.php?image=helplt8.jpg)

As you can see from the vague illitration the website consists of a navigation and a cool slider that indicates to the user what page they are currently on. However. Although I have managed to write a piece of code that successfully slides the page indicator out of sight I want to make this generic.

Otherwise I will need to repeat this code for each instance of a page on each button.

```auto

on (release) {
 if (_root.about_us._currentframe == 40) {
 _root.about_us.play()
 }
}

```

Which would just be crazy.

I’ve looked into arrays but I dont see how I can place an array in the code instead of about\_us.

Any ideas?  
(just ask for more information) :huh:
