# Timeline problems

**URL:** <https://forum.kirupa.com/t/timeline-problems/273641>\
**Category:** flash\
**Created:** [October 17, 2008, 10:10pm UTC](https://forum.kirupa.com/t/timeline-problems/273641 "2008-10-17T22:10:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arlanx](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@Arlanx](https://forum.kirupa.com/u/Arlanx)\
**Post date:** [October 17, 2008, 10:10pm UTC](https://forum.kirupa.com/t/timeline-problems/273641/1 "2008-10-17T22:10:53Z")

</div>

n my main timeline I have a movieclip and inside this movie clip(content\_mc) there are some images and text there are also buttons that navigate inside this movieclip to show pictures or text.  
The pictures are inside of a movieclip (photos\_mc) because each photo changes every 2 sec  
Im using this code in the frames to hold the playhead 2 sec before it moves.

stop();  
function wait(){  
clearInterval(myInterval);  
play();  
}  
myInterval = setInterval(wait, 2000);

Now here is the problem: when I test the movie and start to click on the buttons that are on the content\_mc, my main timeline starts to run in a loop and it should not move  
at all, it’s like it uses the code from my photos\_mc , I dont understand why this is happening.  
I have attached a sample file to better describe this, I welcome any help I am noob.

Thanks
