# \[F8\] attachMovie and dynamic text

**URL:** <https://forum.kirupa.com/t/f8-attachmovie-and-dynamic-text/217725>\
**Category:** flash\
**Created:** [March 1, 2007, 12:57pm UTC](https://forum.kirupa.com/t/f8-attachmovie-and-dynamic-text/217725 "2007-03-01T12:57:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sirwebster](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@sirwebster](https://forum.kirupa.com/u/sirwebster)\
**Post date:** [March 1, 2007, 12:57pm UTC](https://forum.kirupa.com/t/f8-attachmovie-and-dynamic-text/217725/1 "2007-03-01T12:57:42Z")

</div>

I’m using attachMovie to attach a mc from the library to an empty mc on the stage, the movie i’m attaching has 2 dynamic text fields in it, but when i change the .text property of them, nothing appears, if i put some text in them manually before publishing, this text disappears, and after i have set the .text of each, they both trace the correct values, but nothing is displayed, any ideas?

```auto

[FONT=monospace]function startGame() {
    mc_zoom._x = 17;
    mc_zoom._y = -20;
    _root.mc_zoom.attachMovie("mc_roomouter", "mc_roomouter", 1);
    if (theChar == 1) {
        mc_zoom.mc_roomouter.txt_name1.text = "Hurricane";
    } else if (theChar == 2) {
        mc_zoom.mc_roomouter.txt_name1.text = "Misty";
    } else if (theChar == 3) {
        mc_zoom.mc_roomouter.txt_name1.text = "Lightning";
    } else if (theChar == 4) {
        mc_zoom.mc_roomouter.txt_name1.text = "Sunny";
    }
    mc_zoom.mc_roomouter.txt_name2.text = mc_charselect.mc_select_inner.mc_select_text.txt_name.text;
    var skyOut:Tween = new Tween(mc_charselect.mc_sky, "_y", Strong.easeIn, mc_charselect.mc_sky._y, -383, 0.5, true);
    skyOut.onMotionFinished = function() {
        var grassOut:Tween = new Tween(mc_charselect.mc_grass, "_y", Strong.easeIn, mc_charselect.mc_grass._y, 261, 0.5, true);
    };
};
[/FONT]

```

[FONT=monospace]  
[/FONT]
