How to detect when a movieclip leaves the stage completely?

I have a dynamic text field that scrolls like movie credits. The autosize is set to true so that the field will conform to the content that loads into it.

I want to put in a function that clears the motion interval once the movieclip containing the dynamic textfield leaves the stage.

What’s the easiest way to do it?