# REALLY simple code not working wtf \>\_\<

**URL:** https://forum.kirupa.com/t/really-simple-code-not-working-wtf--/317951
**Category:** flash
**Created:** [January 6, 2011, 5:55pm UTC](https://forum.kirupa.com/t/really-simple-code-not-working-wtf--/317951 "2011-01-06T17:55:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![CodeRed](https://avatars.discourse-cdn.com/v4/letter/c/aeb1de/32.png) [@CodeRed](https://forum.kirupa.com/u/CodeRed)
#### Post date: [January 6, 2011, 5:55pm UTC](https://forum.kirupa.com/t/really-simple-code-not-working-wtf--/317951/1 "2011-01-06T17:55:20Z")

</div>

Simple as this I’m testing a little bit of code, and its doing nothing on my MC, is there something really obvious I’m missing.

```auto
onClipEvent(enterFrame){
 _root.timer+=1
 if(_root.timer == 20){
trace("Duping")
duplicateMovieClip(_root.splash,"spray"+_root.num,_root.getNextHighestDepth());
_root.timer = 0
}
g=eval("spray"+_root.num);
g._x = _root.foot.pt1._x
g._y=_root.foot.pt1._y
}

```

Thanks in advance,

PS there are no errors being flagged.
