# Attaching Movie Clip from Library

**URL:** https://forum.kirupa.com/t/attaching-movie-clip-from-library/264268
**Category:** flash
**Created:** [June 24, 2008, 3:30pm UTC](https://forum.kirupa.com/t/attaching-movie-clip-from-library/264268 "2008-06-24T15:30:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![funky\_vicky](https://avatars.discourse-cdn.com/v4/letter/f/e95f7d/32.png) [@funky\_vicky](https://forum.kirupa.com/u/funky_vicky)
#### Post date: [June 24, 2008, 3:30pm UTC](https://forum.kirupa.com/t/attaching-movie-clip-from-library/264268/1 "2008-06-24T15:30:36Z")

</div>

Hi

Can anyone suugest a way to add labels at runtime to a movieclip that has been attached at the runtime from the library.

Thanks,  
Vicky

---

<div class="post-metadata">

### Author: ![DiamondDog](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@DiamondDog](https://forum.kirupa.com/u/DiamondDog)
#### Post date: [June 25, 2008, 7:18am UTC](https://forum.kirupa.com/t/attaching-movie-clip-from-library/264268/2 "2008-06-25T07:18:50Z")

</div>

You could edit your library symbol so that it contains a text field, and then set the text in that text field after you bring an instance of the symbol onto the stage.

Example, I have a symbol in my library linked to the Dude class. In that symbol there’s a text field called nameLabel. If I want a ‘dude’ called Bob on stage, I do this:

```auto
var dude1:Dude = new Dude();
addChild(dude1);
dude1.x = 150;
dude1.y = 100;
dude1.nameLabel.text = "Bob";

```

(.fla attached)

Would that do what you wanted?
