# Setting Interval, not working externally

**URL:** https://forum.kirupa.com/t/setting-interval-not-working-externally/137714
**Category:** Uncategorized
**Created:** [February 16, 2005, 10:40pm UTC](https://forum.kirupa.com/t/setting-interval-not-working-externally/137714 "2005-02-16T22:40:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![1071\_64302\_R](https://avatars.discourse-cdn.com/v4/letter/1/ec9cab/32.png) [@1071\_64302\_R](https://forum.kirupa.com/u/1071_64302_R)
#### Post date: [February 16, 2005, 10:40pm UTC](https://forum.kirupa.com/t/setting-interval-not-working-externally/137714/1 "2005-02-16T22:40:15Z")

</div>

Hello, my code looks like this:

```auto
function playit(){
   _root.gotoAndPlay(4);
}
setInterval(playit, 58900);

```

It works nice when i play the movie, but when i load it from my main movie it doesnt works (obvious, “\_main” changes to be the movie that is loading). Now, i used “\_parent” but it doesnt work, “this” neither; so, thats my problem, when i load the movie with this code inside, into another movie it won’t work. =(
