Skip to main content
Venian
Inspiring
August 25, 2008
Question

How to clear a timeout

  • August 25, 2008
  • 1 reply
  • 270 views
Hi.
I need to clear a timeout in another movieclip.
I use the clearTimeout directive in _root. and doesn't work. I need it to work from _root.

Example:

button_btn.onRelease = function() {
_root.clearTimeout(_root.content_mc.my_timeout);
}

And it doesn't work.

Has anyone any ideas how it should be written?

Thanks.
This topic has been closed for replies.

1 reply

Inspiring
August 25, 2008
clearTimeout is not a movieClip method.

button_btn.onRelease = function() {
clearTimeout(_root.content_mc.my_timeout);
}

--
Dave -
www.offroadfire.com
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/