# attachMovie({Stuff}), setInterval, and functions

**URL:** https://forum.kirupa.com/t/attachmovie-stuff-setinterval-and-functions/159123
**Category:** Uncategorized
**Created:** [August 15, 2005, 2:22am UTC](https://forum.kirupa.com/t/attachmovie-stuff-setinterval-and-functions/159123 "2005-08-15T02:22:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)
#### Post date: [August 15, 2005, 2:22am UTC](https://forum.kirupa.com/t/attachmovie-stuff-setinterval-and-functions/159123/1 "2005-08-15T02:22:27Z")

</div>

I have a question regarding the things I mentioned in the topic title.

I have a movie I’m attaching with attachMovie.

Essentially, the AS looks like this:

```auto
_root.attachMovie("idname", "newName", depth, {property:value, seti:setInterval(myFun, 500), myFun: function(){functionStuff}});

//

```

Obviously I’ve dumbed it down a bit, but for what I’m asking that doesn’t matter. Can I create a setInterval and the function it calls inside attachMovie and expect it to work? I’m wondering because if I can, then there’s something else I need to fix in my code.

Thanks,  
Krilnon

Edit… I don’t think it’s possible… I tried

```auto
_root.attachMovie("mcID", "mc_mc", 50, {mcFunc:function () {
	trace("mc");
}, mcSet:setInterval(mcFunc, 500)});
pooFunc = function(){
	trace("mc");
}
mcSet = setInterval(mcFunc, 500);

```

Of course, the AS outside of the attachMovie worked, but not the stuff inside it.

I’m still open for input 🙂
