# This simple code doesn't run, incredible

**URL:** <https://forum.kirupa.com/t/this-simple-code-doesnt-run-incredible/323316>\
**Category:** flash\
**Created:** [June 24, 2011, 11:41pm UTC](https://forum.kirupa.com/t/this-simple-code-doesnt-run-incredible/323316 "2011-06-24T23:41:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joecoolman](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@joecoolman](https://forum.kirupa.com/u/joecoolman)\
**Post date:** [June 24, 2011, 11:41pm UTC](https://forum.kirupa.com/t/this-simple-code-doesnt-run-incredible/323316/1 "2011-06-24T23:41:44Z")

</div>

in timeline if you write

a=5;  
if (a\>1) {  
trace(“I’m inside the if’s statements yeah!”);  
doOnce = setInterval(mytrace, 100, “This is a test!”);  
function mytrace(str) {  
trace(str);  
clearInterval(doOnce);  
}  
}  
the output is only: I’m inside the if’s statements yeah!  
why is “This is a test!” never traced?  
Is it a matter of clearInterval scope ? I don’t understand, help
