# Attaching a MC to a dynamic text field

**URL:** https://forum.kirupa.com/t/attaching-a-mc-to-a-dynamic-text-field/262097
**Category:** flash
**Created:** [June 3, 2008, 10:17am UTC](https://forum.kirupa.com/t/attaching-a-mc-to-a-dynamic-text-field/262097 "2008-06-03T10:17:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![boozy\_juice](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@boozy\_juice](https://forum.kirupa.com/u/boozy_juice)
#### Post date: [June 3, 2008, 10:17am UTC](https://forum.kirupa.com/t/attaching-a-mc-to-a-dynamic-text-field/262097/1 "2008-06-03T10:17:12Z")

</div>

Hello all, im wanting to attach a movieclip to the bottom of a dynamic textfield (autoSize = ‘left’) that uses an XML file of an un-predetermined size. Which is where the problem lies for me…

i tried this simple code first - container\_mc.\_y = comment\_txt.\_height + 10; thinking it was a simple \_height; issue - but to no use. So I was wondering whether using attachMovie would be the way to go? maybe something like:  
container.onEnterFrame = function() {  
this.attachMovie (“container”, “comment\_txt”, {\_x:0, \_y:-90});  
}  
which also probably well off…

then i wondered does it need a stage listener to know the size of the textfield?

i know i should know this and should be quite simple, but my minds frazzled - please help 😉
