PDA

View Full Version : cool nav


dude9er
06-08-2004, 07:07 PM
how is this effect done? I've been looking through the threads and haven't found a tutorial or fla on this. Check out the button nav, they're animated and then disabled.

http://www.internettinyawards.com./

Also this one, I'd really like to know how this is done. Not only are the buttons animated and then disabled on the over state, but they also are using intro and outro sequences. Does anyone have any help for me on how to do this. I'd be forever greatful.



http://www.yolks715.com/v01/main.html

thanks everyone.

Timmee_3Styler
06-08-2004, 07:59 PM
In your button, on the over state, put the animation in there ;)

As for the yolks site make one animation tween and you use Hittest to tell this animation which is located in a "mc" to either go to the next frame or go to the previous frame

farafiro
06-09-2004, 04:17 AM
make the button as a MC
in the first frame the button's shape
make the animation in a separate MC, with a stop script in its first and last frame and also the first frame is empty
name all of your buttons in a sequance, like navBtn1, navBtn2,...
//in its first frame
stop();
this.onRollOver = function(){
_level0.animation._x = this._x
_level0.animation.play();
}
this.onRelease = function(){
_level0.selectedButton = this._name
}
//in the last frame
stop();
then in the root's first frame
var selectedButton = ""
var numOfBtns = 5
this.onEnterFrame = function(){
for(i=1;i<=numOfBtns;i++){
if (this.selectedButton==this["navBtn"+i]._name]){
this["navBtn"+i].enabled = false
}
}
}