# Help Creating A Navigation Concept

**URL:** <https://forum.kirupa.com/t/help-creating-a-navigation-concept/60265>\
**Category:** flash\
**Created:** [August 8, 2004, 11:11am UTC](https://forum.kirupa.com/t/help-creating-a-navigation-concept/60265 "2004-08-08T11:11:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bodom78](https://avatars.discourse-cdn.com/v4/letter/b/aca169/32.png) [@Bodom78](https://forum.kirupa.com/u/Bodom78)\
**Post date:** [August 8, 2004, 11:11am UTC](https://forum.kirupa.com/t/help-creating-a-navigation-concept/60265/1 "2004-08-08T11:11:00Z")

</div>

I have started creating a navigation layout but before I go on I would like to know if it can be done. Basically I want a MC to ease to the rollover buttons but in an arc rather then a straight path. I have attached a flash movie to help explain.

Any help with this problem is appreciated.

Cheers.

---

<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 8, 2004, 12:16pm UTC](https://forum.kirupa.com/t/help-creating-a-navigation-concept/60265/2 "2004-08-08T12:16:44Z")

</div>

why dont you just mark the key frames to the bar/arc animation? Lets say the bar curves to the top button, mark that as button1Frame. Then when you rollover, it can play the timeline up to that frame. The problem with this is that making it go backwards is a little tricky, but not impossible.

---

<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 8, 2004, 12:33pm UTC](https://forum.kirupa.com/t/help-creating-a-navigation-concept/60265/3 "2004-08-08T12:33:49Z")

</div>

> [@bobdoe](#):
>
> why dont you just mark the key frames to the bar/arc animation? Lets say the bar curves to the top button, mark that as button1Frame. Then when you rollover, it can play the timeline up to that frame. The problem with this is that making it go backwards is a little tricky, but not impossible.

Yes thats where I got into trouble, traveling in one direction is fine, it’s when the user skips around thats the hard part as it requires the playhead to move back and forth.

---

<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 8, 2004, 9:27pm UTC](https://forum.kirupa.com/t/help-creating-a-navigation-concept/60265/4 "2004-08-08T21:27:56Z")

</div>

Lets see, thats really nothing but a simple direction calculation.  
Let me show you an example code:  
button1.onRollOver = functoin(){  
frame\_now = \_root.\_currentframe;  
frame\_destination = button1\_frame\_label; //frame number of rollover state  
if(frame\_now \< frame\_destination){  
direction = 1;  
}else{  
direction = -1;  
}  
\_root.onEnterFrame = function(){  
if(this.\_currentframe != frame\_destination){  
gotoAndStop(\_root.\_currentframe + direction)  
}  
}  
}  
Something like this might work, of course you’ll have to tweak it a bit.

---

<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 9, 2004, 7:34am UTC](https://forum.kirupa.com/t/help-creating-a-navigation-concept/60265/5 "2004-08-09T07:34:06Z")

</div>

bobdoe your a SUPERSTAR, after some tweaking and the sample code you supplied, I have basically got my navigation working, now I just got to create the graphics. Thanks a heap for the code.
