Flash initiates MovieClip every time

hello,

I have a MovieClip with several frames - with arrows next and previous.

on frame 2 i have dynamic text field (instance name “doctor_txt”). and the text is “” (null…).

when i reach frame 2 and press a button I set the text to change to “DOCTOR”.

BUT i want it to stay “DOCTOR”. For some reason, when i go to another frame and then go back to frame 2 the text is null again…

How do i make it stay??


 
myMovieClip.addEventListener(Event.ENTER_FRAME, routine)
function routine(e:Event):void {
 
  if (myMovieClip.button1){
 
       myMovieClip.button1.addEventListener(MouseEvent.MOUSE_DOWN,ShowWord);
   }
}
 
 
function ShowWord(event:MouseEvent):void{
 myMovieClip.doctor_txt.text = 'DOCTOR';
}