# setInterval in Class

**URL:** <https://forum.kirupa.com/t/setinterval-in-class/182013>\
**Category:** flash\
**Created:** [March 14, 2006, 9:50pm UTC](https://forum.kirupa.com/t/setinterval-in-class/182013 "2006-03-14T21:50:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thinker2501](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@Thinker2501](https://forum.kirupa.com/u/Thinker2501)\
**Post date:** [March 14, 2006, 9:50pm UTC](https://forum.kirupa.com/t/setinterval-in-class/182013/1 "2006-03-14T21:50:45Z")

</div>

I have a custom Class with a method that I want to call over an interval using setInterval. Its a public class I can call from the root timeline with obj.myMethod(); however, when I try to call it using setInterval (obj.myMethod, 200) nothing happens.

Does anyone know how to call methods within a custom class using intervals? Thanks a ton.
