# \[AS\] AttachMovie + X&Y coord

**URL:** <https://forum.kirupa.com/t/as-attachmovie-x-y-coord/193109>\
**Category:** flash\
**Created:** [July 4, 2006, 12:55pm UTC](https://forum.kirupa.com/t/as-attachmovie-x-y-coord/193109 "2006-07-04T12:55:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![btibia](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/btibia/32/1625_2.png) [@btibia](https://forum.kirupa.com/u/btibia)\
**Post date:** [July 4, 2006, 12:55pm UTC](https://forum.kirupa.com/t/as-attachmovie-x-y-coord/193109/1 "2006-07-04T12:55:00Z")

</div>

Hello guys,

I have one small/big problem, when i attach a movieClip from my library to my stage (directly),

```auto

//Code in frame 2;
this.attachMovie ("btn", "btn1", _root.getNextHighestDepth ());
this.attachMovie ("btn", "btn2", _root.getNextHighestDepth ());
this.attachMovie ("btn", "btn3", _root.getNextHighestDepth ());
this.attachMovie ("btn", "btn4", _root.getNextHighestDepth ());

```

where “btn” it’s a movieClip that has another mc inside btnText (in btnText i have a dynamic TextField)  
the “btn” linkage has this details:  
Identifier: btn;  
AS2.0 Class: ButtonClass;

In the “btn” mc i have a small animation for changing the color of btnText, this animation it is controled by the ButtonClass (onRollOver and onRollOut);

Now my problem is that when i test the movie, only half of the text from the button is changing the color.

The rest of the code is this:

```auto

//Code in frame 2;
btn1._x = 61.0;
btn1._y = 550.7;
btn1.btnText.theBtnText.text = "FAKTEN";
btn1.btnText.theBtnText.setTextFormat (my_fmt);
//
btn2._x = 177.3;
btn2._y = 550.7;
btn2.btnText.theBtnText.text = "KUNDEN";
btn2.btnText.theBtnText.setTextFormat (my_fmt);
//
btn3._x = 303.7;
btn3._y = 550.7;
btn3.btnText.theBtnText.text = "KONTAKT";
btn3.btnText.theBtnText.setTextFormat (my_fmt);
//
btn4._x = 440.1;
btn4._y = 550.7;
btn4.btnText.theBtnText.text = "IMPRESSUM";
btn4.btnText.theBtnText.setTextFormat (my_fmt);

```

Thank you, btibia!

P.S. The btn exist outside the stage in frame 2, because i haven’t checked the Export in first frame.

```auto

```
