Solved

Flash 8 menu buttons help, please!

Posted on 2008-06-17
13
153 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
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

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…
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to record live broadcast.

803 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