Solved

Flash 8 menu buttons help, please!

Posted on 2008-06-17
13
151 Views
Last Modified: 2011-10-19
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
Comment
Question by:callmecheez
  • 7
  • 6
13 Comments
 
LVL 13

Expert Comment

by:crooksy88
ID: 21807053
No file is attached?
0
 
LVL 3

Author Comment

by:callmecheez
ID: 21807129
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
 
LVL 13

Expert Comment

by:crooksy88
ID: 21807180
So it's a fade from grey to blue as you rollover, then fade back to grey on rollout that you are after?
0
 
LVL 3

Author Comment

by:callmecheez
ID: 21807199
Yeah that's the one!
0
 
LVL 13

Expert Comment

by:crooksy88
ID: 21807247
I haven't got a clue how to do that...

Only joking, give me 10 mins.
0
 
LVL 3

Author Comment

by:callmecheez
ID: 21807260
Many thanks, been trying to teach myself with a dvd but ended up wanting to throw computer out the window!
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 13

Accepted Solution

by:
crooksy88 earned 500 total points
ID: 21807347
See if this is what you're after.

MC
cdp2c.txt
0
 
LVL 3

Author Comment

by:callmecheez
ID: 21807452
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
 
LVL 13

Expert Comment

by:crooksy88
ID: 21807548
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
 
LVL 3

Author Comment

by:callmecheez
ID: 21807618
That makes sense, yeah. Many thanks! ps do you do freelance? :)
0
 
LVL 3

Author Closing Comment

by:callmecheez
ID: 31468112
Many thanks, much appreciated.
0
 
LVL 13

Expert Comment

by:crooksy88
ID: 21807783
That's my middle name!
0
 
LVL 3

Author Comment

by:callmecheez
ID: 21807802
drop me an email plz: cdearnley@gmail.com
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now