# Flash initiates MovieClip every time

**URL:** https://forum.kirupa.com/t/flash-initiates-movieclip-every-time/292792
**Category:** flash
**Created:** [July 19, 2009, 8:18am UTC](https://forum.kirupa.com/t/flash-initiates-movieclip-every-time/292792 "2009-07-19T08:18:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![udi001](https://avatars.discourse-cdn.com/v4/letter/u/bc8723/32.png) [@udi001](https://forum.kirupa.com/u/udi001)
#### Post date: [July 19, 2009, 8:18am UTC](https://forum.kirupa.com/t/flash-initiates-movieclip-every-time/292792/1 "2009-07-19T08:18:56Z")

</div>

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??

```auto

 
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';
}

```
