# setInterval with prototypes

**URL:** <https://forum.kirupa.com/t/setinterval-with-prototypes/127978>\
**Category:** Uncategorized\
**Created:** [November 8, 2004, 4:16pm UTC](https://forum.kirupa.com/t/setinterval-with-prototypes/127978 "2004-11-08T16:16:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![H4T](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/h4t/32/329_2.png) [@H4T](https://forum.kirupa.com/u/H4T)\
**Post date:** [November 8, 2004, 4:16pm UTC](https://forum.kirupa.com/t/setinterval-with-prototypes/127978/1 "2004-11-08T16:16:12Z")

</div>

I have a movieclip prototype which I want to be applied to different movieclips every so often. The prototype controls it’s movement, when it runs, the mc eases to a random x and y and stops. After that I want it to keep executing that movement prototype over and over, ie, keep moving around.

I know how to use setInterval with functions, and I know movieclip prototypes basically are functions, but how can I get setInterval to work with movieclip prototypes assigned to specific movieclips?
