# Intermediate flash

**URL:** <https://forum.kirupa.com/t/intermediate-flash/174139>\
**Category:** Uncategorized\
**Created:** [January 3, 2006, 5:39am UTC](https://forum.kirupa.com/t/intermediate-flash/174139 "2006-01-03T05:39:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soig](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Soig](https://forum.kirupa.com/u/Soig)\
**Post date:** [January 3, 2006, 5:39am UTC](https://forum.kirupa.com/t/intermediate-flash/174139/1 "2006-01-03T05:39:12Z")

</div>

I’m trying to create a simple page transition. Please ignore everything but the timer in red. Everything works flawlessly EXCEPT that after the transition is made the timer is not cleared with the clearInterval command. Is there something wrong with my if statement?

> stop();  
> function loadPage() {  
> \_root.mcCover.gotoAndPlay(2);  
> \_root.logoFader.gotoAndPlay(2);  
> [COLOR=Red]function loadURL() {  
> \_root.mcHolder.loadMovie(“[http://www.labohemeny.com/flash/main.swf](http://www.labohemeny.com/flash/main.swf)”, “mcHolder”);  
> nTimes++;  
> if(nTimes \>=1) {  
> clearInterval(timer);  
> }  
> }  
> var nTimes:Number = 0;  
> var timer:Number = setInterval(loadURL, 900);

}[/COLOR]
