[fmx] strange setInterval issue

http://www.bleutuna.com/thirteen/thirteen.swf

Okay, here’s my dillema. First, I’m new to using setInterval, so I don’t fully understand what’s going on here, so I can’t really fix it :wink:

In the movie linked above, the first two menu items trigger a menu to come out on the right side. Right now, it’s the same menu (content wise), but the effect is still the same.

Here’s my problem: If you let one of the menu’s fully load before mousing over the next item, it works fine. However, if you mouse over the next link before the menu is fully loaded, you, the interval starts to snowball, and the menu’s won’t load fully any longer. The period the menu is down gets shorter and shorter the faster you go between the links.

Does anyone have any idea what’s causing this, and what the remedy is? As I mentioned in my last thread, this is not the way I really want to handle the menu rolling up, becuase it’s a hack/klooge - it’s just not the best way. However, in light of me not knowing a better way to actually trigger the next menu once the first menu is rolled up, setting an interval seems to be the closest thing to what I want.

The source code is in the .ZIP file attached to this post.

:pope:

Figured it out, though it took days :smiley:

For some reason, I have to clear the interval twice. Once in the IF statement I’m using, and then once at the beginning of the rollover.

Dunno why. Only that it works :wink:

http://www.bleutuna.com/thirteen/thirteen.swf

:pope: