Force a horizontal scroll menu to start in different positions on different pages

Hi,

I am fairly new to flash but have been gradually figuring things out as I go along. I have made a horizontally scrolling menu bar that scrolls right or left depending on which arrow the mouse is hovered over. But what I need to do is make the menu bar start in different places. Here is a link to the fla file as I can’t really explain all the action scripts I have in there.

http://www.omnisis.co.uk/anthony/new/menu2.fla

and here it is in the site

http://www.omnisis.co.uk/anthony/new/home.htm

Basically the colour of the buttons in the menu corrispond to the menu of the banner at the top so I need when I click on say the 8th button for the bar to either stay in the position or at least still show that button on the screen when the next page loads.

I’m not explaining this very well but any help would be greatly appreciated.

Cheers
Ant

Wow your using a timeline animation to do that…with a ‘controller mc’…man thats a messy way to do things, I was thinking you were using an onEnterFrame that modified the _x position of the movie clip.

One way to do it would be to make each page have a ‘menuFrame’ variable that indicates what frame the menu animation should stop at so it lines up correctly, so when you go to each page, it then calls a gotoAndStop(menuFrame) on the page you selected - this could be tricky as the timeline based animation may not always match up each frame right. I would use an onEnterFrame and transition the _x of the mc, and seeing as your buttons seem to be a standard width, I’d use a loop to set up each one’s “selectedX” to be buttonNumber*buttonWidth…

This is all just ideas, let me know if you understand at all, if not Ill make a demo file