# MovieClip changes size after attachMovie

**URL:** <https://forum.kirupa.com/t/movieclip-changes-size-after-attachmovie/236727>\
**Category:** flash\
**Created:** [August 23, 2007, 7:47am UTC](https://forum.kirupa.com/t/movieclip-changes-size-after-attachmovie/236727 "2007-08-23T07:47:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitech](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nitech/32/2542_2.png) [@nitech](https://forum.kirupa.com/u/nitech)\
**Post date:** [August 23, 2007, 7:47am UTC](https://forum.kirupa.com/t/movieclip-changes-size-after-attachmovie/236727/1 "2007-08-23T07:47:22Z")

</div>

Hi,

when I attach a MovieClip from the library, onto a dynamically created MovieClip, the library’s MovieClip slightly changes size. Does anyone know why this happens?

Example:

This is the code that attaches the MovieClip and then traces width and height:

```auto

var preview_mc:MovieClip = build_mc.attachMovie(xmlModule.attributes.ai,(build_array.length + 1) + "_module",build_mc.getNextHighestDepth());

trace("-----------------NEW-MODULE---------------------");
trace("width: " + preview_mc._width);
trace("height: " + preview_mc._height);

```

Kind regards,  
nitech
