Jump to content
Search Community

ROLL_OVER and ROLL_OUT

chefkeifer test
Moderator Tag

Recommended Posts

is this an instance that i would use the overwrite:1. I am having issue when a user moves their mouse over the button it gets stuck in the over state. this is a drop down menu when..

 

function aboutOver(event:MouseEvent){//MAIN BUTTONS
		var aboutOver:TimelineMax = new TimelineMax();
			aboutOver.insert(TweenMax.to(event.currentTarget, .5, {glowFilter:{color:0xc8db00, alpha:1,blurX:15, blurY:15, inner:true}}));
			aboutOver.insert(TweenMax.to(about_dd, .5, {alpha:1, visible:true}));
			setChildIndex(about_dd,numChildren - 1);
	}
function aboutOut(event:MouseEvent){//MAIN BUTTONS
		TweenMax.to(event.currentTarget, .5, {glowFilter:{color:0xc8db00, alpha:0, blurX:0, blurY:0}});
	}
function dropOut(event:MouseEvent){
		TweenMax.to(about_dd, .5, {alpha:0, visible:false});
	}

Link to comment
Share on other sites

I don't see any obvious problems, but it's tough to tell exactly what about_dd and e.currentTarget refer to (could they ever be the same thing?). I'd need to see the rest of your code and your FLA to know for sure, but you're welcome to try overwrite:1 to see if it solves your problems. Again, I don't see any obvious errors though, nor do I see an obvious reason for using overwrite:1 (not that it's bad). The problem may have something to do with the fact that you're changing the level with setChildIndex(about_dd,numChildren - 1) - have you tried removing that just to test?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...