Solved

Flash 8 menu buttons help, please!

Posted on 2008-06-17
13
155 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
Technology Partners: 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!

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Flash Player White Screen Facebook 5 790
Action Script commands 4 326
Flash player plugin 13 7 347
Video sharing with user login 3 215
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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. …
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

733 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