Hey all -
I have a mouse over event that triggers a setTimeout event. I’d like to clear that event from happening if the user rollOuts of the button. I basically need to figure out how to clear my setTimeout event. Can anyone help?
bButton.onRollOver = function()
{
_root.countdown._visible = true;
_root.countdown.gotoAndPlay('1');
setTimeout(function ()
{
ExternalInterface.call("prettyLaunch","http://bolle.com/news/official-eyewear-telluride.aspx?ie=UTF-8&oe=UTF-8&q=prettyphoto&iframe=true&width=100%&height=100%","");
trace('time');
},3000);
};
bButton.onRollOut = function()
{
_root.countdown._visible = false;
_root.countdown.gotoAndStop('1');
/*clearTimeout code here...*/
};