# Help with intervals or delay

**URL:** <https://forum.kirupa.com/t/help-with-intervals-or-delay/191389>\
**Category:** Uncategorized\
**Created:** [June 20, 2006, 4:38am UTC](https://forum.kirupa.com/t/help-with-intervals-or-delay/191389 "2006-06-20T04:38:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![santalea](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@santalea](https://forum.kirupa.com/u/santalea)\
**Post date:** [June 20, 2006, 4:38am UTC](https://forum.kirupa.com/t/help-with-intervals-or-delay/191389/1 "2006-06-20T04:38:56Z")

</div>

the code below is to make a circle follow the line. but when i test movie, the circle will not start from 100, 100. it will directly go to the last point 370, 400. i need to set intervals between each lineTo function. but i don’t know how to do it. can someone help me figure out how to write the interval function.  
btw, the name of the circle is mymc.  
help me someone, i need it as soon as possible. i need to finish it at least by tomorrow.

======================================================  
this.createEmptyMovieClip(“line\_mc”, 1);  
this.attachMovie(“mymc”, “mymc”, this.getNextHighestDepth());  
line\_mc.lineStyle(2, 0xFF00FF, 30);  
mymc.\_x = 100;  
mymc.\_y = 100;  
line\_mc.moveTo(100, 100);  
mymc.\_x = 200;  
mymc.\_y = 150;  
line\_mc.lineTo(200, 150);  
mymc.\_x = 220;  
mymc.\_y = 220;  
line\_mc.lineTo(220, 220);  
mymc.\_x = 300;  
mymc.\_y = 300;  
line\_mc.lineTo(300, 300);  
mymc.\_x = 330;  
mymc.\_y = 310;  
line\_mc.lineTo(330, 310);  
mymc.\_x = 370;  
mymc.\_y = 400;  
line\_mc.lineTo(370, 400);
