I bet it's the refreshText() function that causes this. If
you do something in the refreshText() function that triggers the
change event again, it will call refreshText, which triggers
change... started an endless loop. Check if the change event gets
triggered through the actions in refreshText, or the
gotoAndStop(1), and find a workaround to this, maybe by using a
temporary variable that blocks the event.