I am experiencing a strange problem with regards to "setInterval" not starting if "getSelectedIndex" has been called on a listBox.
I am using setInterval to fade in content loaded with loadMovie. All works well until "getSelectedIndex" is called - at that point, setInterval refuses to start doing its thing.
// This function you call to setInterval...*looks fine*function fadeInContent(){
contentFadeAmount = 0;
fadeIn = setInterval(fade, 50);
contentMovieClip._alpha = 100;
}// This function is what is called by setInterval....// I see you want to clear Interval when contentFadeAmount >= 100// But are you refering to the same variable in "fadeInContent"?// If you are, you don't need to make in global and you need a // a counter of some sort .... b/c contentFadeAmount seems to be// only at 0.// If it only stays at zero, your condition will never be true to clearInterval.function fade(){
contentMovieClip._alpha = contentFadeAmount;
contentFadeAmount = _global.contentFadeAmount+10;
if(_global.contentFadeAmount>=100){clearInterval(fadeIn);
}}
thanx boyz - was being a bit tired today, and not very with it - as mentioned in PM
and shaded:
Quote:
The trouble is after the button is pressed to remove an item from a list box - the setInterval then refuses to be called.
put some traces in, to see where the problem starts, and if you still can't suss out what the problem is, post the code, where the problem begins - or even, upload your file.