PDA

View Full Version : Flash Nav Design Help - Samples Included


Transition
04-11-2004, 02:51 AM
Hello all,

Building my first real nav that i'll use. Objective is just to have a light-weight and efficient navigation. My big problem is as follows.

See Example: http://www.dionsys.com/nav.html
Source Here: http://www.dionsys.com/source.zip (MX Pro 2004)

When you click on a section (My Overview) the subnav appears. Although, i can't figure out how to get my button to stay at the 'down' state after the button has been clicked. What i'm trying to do is achieve a red background on the button after clicked, and stay that way until another button is pressed.

Any tips? Source FLA attached for reference - constructive criticism appreciated!

Thanks,

- RJ

Transition
04-12-2004, 08:01 PM
help!

Ricod
04-13-2004, 05:05 AM
what the .. I put a response here ...
mwaaah !

grr, once more then :

Make a mc with all the states you want your buttons to be in. Label the frames accordingly (eg "up", "down" etc.)

Make a button and put something the same size as the button in the hit frame and leave the other frames empty.

Place this invisible button in your mc, under your graphics.

Put a piece of code on your button like :
on (release) {
_root.myFunction(1):
// use a function called myFunction() and send a value of 1, 2 etc. accordingly
}

and make a function like :
function onRelease(buttonPressed) {
switch (buttonPressed) {
case 1 :
_root.myOverviewMc.gotoAndPlay("down");
_root.myReviewQueueMc.gotoAndPlay("up");
// etc.
break;
case 2 :
_root.myOverviewMc.gotoAndPlay("up");
_root.myReviewQueueMc.gotoAndPlay("down");
// etc.
break;
// add a case for every button
}
}
I`m sure there`s also a way around having to tell each buttonMc to what state it should go, but can`t think of anything at the moment (but I`m thinking for loops or something similar here)