Jump to content
Search Community

onRollOver/onRelease Menu Issues

phish test
Moderator Tag

Recommended Posts

I am building a menu that when you RollOver the link a tab slides down, when you RollOut the tab slides back up and when you onRelease the tab stays in the lower position until another tab is clicked, then the "1st tab" slides up into the upper position. My problem is that sometimes when a tab is in the lowered position and I scroll across another link to have the tab slide down...the "2nd tab" stays in place for no reason at all. Here is my code...

 

 

LinkBar.Partners.onRollOver = function() {
TweenLite.to(LinkBar.TabPartners, 1, {_y:20, ease:Back.easeOut});
};	

LinkBar.Partners.onRollOut = function() {
TweenLite.to(LinkBar.TabPartners, 1, {_y:-45, ease:Back.easeOut});
};	

LinkBar.Partners.onRelease = function() {
	TweenLite.to(LinkBar.TabMission, 1, {_y:-68, ease:Back.easeOut});
	TweenLite.to(LinkBar.TabTriple, 1, {_y:-64, ease:Back.easeOut});
	TweenLite.to(LinkBar.TabPrograms.ProgramsSubLinks, .1, {_alpha:0});
	TweenLite.to(LinkBar.TabPrograms, 1, {_y:-82, ease:Back.easeOut, delay:.1});
	TweenLite.to(LinkBar.TabProjects, 1, {_y:-45, ease:Back.easeOut});
	TweenLite.to(LinkBar.TabAbout, 1, {_y:-45, ease:Back.easeOut});
		TweenLite.to(LinkBar.TabPartners, 1, {_y:20, ease:Back.easeOut});
	TweenLite.to(LinkBar.TabContact, 1, {_y:-45, ease:Back.easeOut});

	LinkBar.Partners.onRollOut = null;

	TweenLite.to(LinkBar.MissionLink, 1, {removeTint:true}); 
	TweenLite.to(LinkBar.TripleLink, 1, {removeTint:true});
	TweenLite.to(LinkBar.ProgramsLink, 1, {removeTint:true});
	TweenLite.to(LinkBar.ProjectsLink, 1, {removeTint:true});
	TweenLite.to(LinkBar.AboutLink, 1, {removeTint:true});
	TweenLite.to(LinkBar.PartnersLink, 1, {tint:0x55A7ED});
	TweenLite.to(LinkBar.ContactLink, 1, {removeTint:true});
}

 

For some reason it seems like the "2nd tab" will fire the onRelease when the onRollover should fire. Any thoughts? I feel like I am just missing something stupid...thanks for the help

Link to comment
Share on other sites

I'd need to see your FLA to know for sure, but one thing I'd point out is that many developers forget about onReleaseOutside. If you press the mouse button while your over a MovieClip/Button and then move the mouse and release it when it's NOT still over the MovieClip/Button, onRelease will NOT get fired! That's where you need an onReleaseOutside. Again, I'm not sure that's your problem here, but I figured I'd mention it because I didn't see you using an onReleaseOutside.

Link to comment
Share on other sites

Thanks, here is the FLA. Once you click on a tab and then move the cursor quickly across the other links, sooner or later a tab will get stuck in the down position...It seems like it is something little I am missing...

Link to comment
Share on other sites

  • 5 months later...

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...