mouse over effect

hi
i am trying acheive the following navigation effect in flash mx 2004

i have a trigger button
when the mouse is placed on the button
the items on a menu are highlight one by one

what i am trying to do is when the trigger button is pressed i want the last highlighted button to remain hightlighted then the new scene will be loaded

does anyone know the action script that will cause this effect
i have tried a few things

currently i have the trigger button as a movie clip
when the mouse is over the button
the movie hightlights all the menu options in turn

i have tried to put a
on (press)
{
 stop();
}
on the individual keyframes in the movie
but to no effect

any ideas would be gratefully appreciated
thanks
lis

liseperuAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

vickerleungCommented:
Lis,

Hope I don't misunderstand your meaning

Please download the sample file here
www.geocities.com/vickerleung/menu_highlight.zip

The logic is like this

The menu is a movieclip which continuously highlight a certain item
I name this movieclip menu_set

And then make another circle movieclip called trigger_button

Attach the following code

_root.trigger_button.onRelease = function () // when the trigger button is click and release
{
      _root.menu_set.stop(); // the menu set's movie stops
}

Hope I got your meaning
Vicker :)
0
liseperuAuthor Commented:
hi
that worked a treat
thanks
do you have any idea how i could assign a scene to the buttons
so when you press the button it will goto that scene after a 2 second pause?

thanks in advance
lis
0
liseperuAuthor Commented:
perhaps i should clarify

i am trying to assign different  scenes to all the individual sections of the menu in the menu_set
the scenes are acessed by pressing  trigger_button
and when it rolls over trigger_button is just cycles through the options as before (which is complete)

thanks
lis
0
vickerleungCommented:
Lis,

The method to do can be this way

Assuming you have a scene in frame 100 called scene_2, another scene in frame 110 called scene_3, etc

You can add the following code to the trigger button like this

_root.trigger_button.onRelease = function () // when the trigger button is click and release
{
     _root.menu_set.stop(); // the menu set's movie stops
     
     if (_root.menu_set._currentframe < 10) _root.target_frame = "scene_2";
     else if (_root.menu_set._currentframe < 20) _root.target_frame = "scene_3";
     .......... // This section is use to detect where the menu set stoped, and then set the corresponding scene to jump to

     _root.gotoAndPlay ("delay_frame"); // Jump to the delay frame
}

On frame 50, make a keyframe (actually anywhere is okay) name it delay_frame
On frame 75, make a keyframe add the following code

gotoAndPlay (_root.target_frame);

The logic behind is that between frame 50 and 75, there is a 2 seconds gap,
after the gap, it will jump to the target frame.

If samples needed, I can provide tomorrow~
Cheer :)
Vicker
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
liseperuAuthor Commented:
thanks for all your help
i have sorted it
:)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.