# Coding some navigation

**URL:** <https://forum.kirupa.com/t/coding-some-navigation/209114>\
**Category:** Uncategorized\
**Created:** [December 6, 2006, 12:17am UTC](https://forum.kirupa.com/t/coding-some-navigation/209114 "2006-12-06T00:17:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![achisholm](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/achisholm/32/2607_2.png) [@achisholm](https://forum.kirupa.com/u/achisholm)\
**Post date:** [December 6, 2006, 12:17am UTC](https://forum.kirupa.com/t/coding-some-navigation/209114/1 "2006-12-06T00:17:17Z")

</div>

I’m laying out some ideas for a navigation system that i need to put together for an interactive text document. If somebody could have a look at this and give me a few pointers that would be awesome.

It involves 16 pages of text so i have set up 16 MC’s (mcPage1, mcPage2, mcPage3…).

There will be 16 buttons on the stage, one for each page and also ‘next’ and ‘previous’ buttons.

Initially page 1 will be visible. The first thing I am wanting to figure out will do the following:

btn1.onRelease … {swap current mcPage for mcPage1}  
btn2.onRelease … {swap current mcPage for mcPage2}  
btn3.onRelease … {swap current mcPage for mcPage3}  
and so on…

So basically the code will remove the current MC and replace it with the appropriate new one. I know i could just make these mc’s visible/non-visible but it can’t work like that because they are to be used in conjunction with a scrollbar which really needs the other MC’s to be removed.

once i have solved this i would like to add the next and previous buttons also but that’s an after issue i can look at later

I hope i made that clear and you understood it alright.

with kind regards,  
Alistair C
