Flash 8 menu buttons help, please!

Quite simply, I'd like the menu buttons to fade from grey to blue when you mouse-over them, and I can't figure out how to do it!

A bonus would be the buttons links to each of the sample pages.

My FLA file it attached. Many thanks.
LVL 3
callmecheezAsked:
Who is Participating?
 
crooksy88Connect With a Mentor Commented:
See if this is what you're after.

MC
cdp2c.txt
0
 
crooksy88Commented:
No file is attached?
0
 
callmecheezAuthor Commented:
Sorry I wasn't able to because of the .fla extension.

Have attached it again but with .txt so you'll need to rename the file back to .fla.
cdp2b.txt
0
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
crooksy88Commented:
So it's a fade from grey to blue as you rollover, then fade back to grey on rollout that you are after?
0
 
callmecheezAuthor Commented:
Yeah that's the one!
0
 
crooksy88Commented:
I haven't got a clue how to do that...

Only joking, give me 10 mins.
0
 
callmecheezAuthor Commented:
Many thanks, been trying to teach myself with a dvd but ended up wanting to throw computer out the window!
0
 
callmecheezAuthor Commented:
crooksy88 - That's great, exactly what I was after. Top marks!

Any chance you could give me a very brief explanation of what you did? That'd be much appreciated.
0
 
crooksy88Commented:
Sure,

On frame 1 you will see this code for each button (with the numbers changed)

_root.button1_mc.onEnterFrame = function() {
if (mouse_over_button1_mc) {
_root.button1_mc.nextFrame();
} else {
_root.button1_mc.prevFrame();
}
};

translated this says on every frame that is played, if the mouse over of button 1 is true (mouse_over_button1_mc), play the next frame of button1_mc.

If you select button 1 on the timeline you will see that on rollover, the state of mouse_over_button1_mc is set to true, and on rollout it is set to false, and if it is not true (else) the button is told to play the previous frame.

Does that make sense?
0
 
callmecheezAuthor Commented:
That makes sense, yeah. Many thanks! ps do you do freelance? :)
0
 
callmecheezAuthor Commented:
Many thanks, much appreciated.
0
 
crooksy88Commented:
That's my middle name!
0
 
callmecheezAuthor Commented:
drop me an email plz: cdearnley@gmail.com
0
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.

All Courses

From novice to tech pro — start learning today.