Not sure what you mean. It is only affecting that one frame since you kill the event listener after you're off that frame. You want to use that function on other frames too? Then just re-add the event listener on those frames (you won't need to re-define the method, so no copypasta and it should still work fine).