Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with rollovers sticking and jumping.. Anyone?

Status
Not open for further replies.

theAntic

Technical User
Oct 7, 2003
26
US
I'm new to Flash, but I've been working at it enough to get myself into some trouble..

Anways, I've built some code-driven tweens on a couple of movieclips I'm using for buttons. The tween on the first rollover I built works great, but the second one jumps for some reason even though I created them the same.

Secondly, both rollovers will stick open if I mouse over them too quickly, or will mouseover when they should be mousing out..

Here's the SWF is located here:
The FLA is locate here:
Let me know, Thanks!
 
Wow! That's perfect on the sticking issue! Thanks!

I can see improvement difference between the codes, and looks like you adjusted the code on the first button to reference the other button, and visa-versa:

on (rollOver) {
this.gotoAndPlay (2);
rollover_2.gotoAndPlay(10)

}
on (rollOut) {
this.gotoAndPlay (10);
}


instead of:

on (rollOver) {
tellTarget ("/rollover_1") {
gotoAndPlay ("2");
}
}
on (rollOut) {
tellTarget ("/rollover_1") {
gotoAndPlay ("10");
}
}


Does this allow for more buttons being added later?

Also, do you have any idea on why that text over the second button jumps?

Thanks!

-theAntic
 
the text on button 2 does not have the code attached that button one has...for the same effect as buton 1 just copy the code over

onClipEvent(load){
_x=-100;
speed=2.8;
}
onClipEvent(enterFrame){
_x+=(targetx-_x)/speed;
}


sure you can add more buttons.....just add references and you will avoid the sticking problem
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top