Solved

Flash 8 menu buttons help, please!

Posted on 2008-06-17
13
156 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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
 
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

691 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