• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • Last Modified:

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.
0
callmecheez
Asked:
callmecheez
  • 7
  • 6
1 Solution
 
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
 
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
crooksy88Commented:
See if this is what you're after.

MC
cdp2c.txt
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

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 7
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now