Please go to my website http://www.timdeneau.com/ and look at the button labeled sculpture. What I’m trying to achieve is a tooltip effect, and this is the code for my button so far:
on (rollOver) {
this.gotoAndPlay("start_hover");
interval_01bubble01 = setInterval(function_01bubble01, 1000);
function function_01bubble01() {
_root.mc_menu.mc_selection.mc_01bubble01.gotoAndPlay("start");
clearInterval(interval_01bubble01);
}
}
on (rollOut) {
this.gotoAndPlay("stop_hover");
_root.mc_menu.mc_selection.mc_01bubble01.gotoAndPlay("stop");
}
on (press) {
_root.mc_menu.mc_selection.mc_01status01.gotoAndPlay("start_load");
interval_01option01 = setInterval(function_01option01, 1000);
function function_01option01() {
_root.mc_content.loadMovie("girl.swf");
clearInterval(interval_01option01);
}
}
So it works fine if the user were to be perfect and hover over the button, press it, wait a second and then lose focus. But if the user just whizes passed the button the tooltip starts to freak out!
I understand the problem is that rollOut is trying to stop the animation before it even has time to start. I just can’t figure out what code I would need to remedy this? Any help is appreciated.