# Having a problem with onEnterFrame in mx

**URL:** https://forum.kirupa.com/t/having-a-problem-with-onenterframe-in-mx/278524
**Category:** flash
**Created:** [December 31, 2008, 7:40pm UTC](https://forum.kirupa.com/t/having-a-problem-with-onenterframe-in-mx/278524 "2008-12-31T19:40:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Thew\_Technology](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@Thew\_Technology](https://forum.kirupa.com/u/Thew_Technology)
#### Post date: [December 31, 2008, 7:40pm UTC](https://forum.kirupa.com/t/having-a-problem-with-onenterframe-in-mx/278524/1 "2008-12-31T19:40:58Z")

</div>

I am running a test using onEnterFrame in flash mx but its not working for the life of me…  
Heres the code:  
onEnterFrame=function(){  
size\_txt.text=test\_mc.\_xscale;  
}  
I am trying to get the text box to always register the width of the “test\_mc” however it will not change from 100 it doesn’t even start at 100! I tried changing the “\_xscale” to \_xmouse to see if it would change the text and it worked but still not for “\_xscale”! grateful for any help!
