Mysterious repeating global function

I’m calling a global function in slide 2 of my slideshow to advance automatically to slide 3 on the 100th frame. The function is called in the 100th frame of slide 2, which is an attached movie. However, slide 3 advances automatically to slide 4 (seemingly after 100 frames as well), even though the function is not called in slide 3. Why would that happen?