Mc question

i have been trying to make a menu system that when you mouseover the button a target movieclip plays next to it. The mc fades in and on rollOut it fades out. The only problem is that when you rollOut of the last item on the menu the mc gets stuck on…it doesn’t fade out…to prevent this from happening to all the other items i have changed the visibility on the others like this:

**on (rollOver) {
_root.btn.resume_mc.play();
_root.btn.graphics_mc._visible = false;
_root.btn.web_mc._visible = false;
_root.btn.int_mc._visible = false;
_root.btn.resume_mc._visible = true;
_root.btn.about_mc._visible = false;
}

on (rollOut) {
_root.btn.resume_mc.play();
}**

I’m afraid if I add the visibility thing on the rollOut that it will cut the mc short and i won’t get the fade out effect that I am looking for…if anyone can help me out it would be much appreciatted…i’ve been playing with this for a while and i’m new to Flash MX, and I don’t know the best ways of doing things yet, this way of doing it is probably a round-a-bout way of doing it.

Thanks!

i assume the fade in/out effects are motion tweens
why don’t you try with actionscript … ?

it would be something like: …

_root.btn.resume_mc actions

onClipEvent (load) {
	this._alpha = 0
	this.alpha = 0
}
onClipEvent (enterFrame) {
	this._alpha += (this.alpha - this._alpha) / 6
}

button that changes resume_mc alpha

on (rollOver) {
	_root.btn.resume_mc.alpha = 100
}
on (rollOut) {
	_root.btn.resume_mc.alpha = 0
}

try that or post your fla so i can take a look at it :smirk:

cool…i’ll check it out…i have to goto class all day, so i’ll play with it some this afternoon…but here is my .fla if you’d like to take a look…

here ya go :wink:

wow thanks…

i got it working without the .fla file you sent…thanks for the code help! it works great i sped up the fade a little bit…

i would have never thought to do it this way…

thanks for the help!

good for you !! :slight_smile:

glad i could help =)