# Dynamic text

**URL:** <https://forum.kirupa.com/t/dynamic-text/150798>\
**Category:** Uncategorized\
**Created:** [June 10, 2005, 1:00pm UTC](https://forum.kirupa.com/t/dynamic-text/150798 "2005-06-10T13:00:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ineedsleep](https://avatars.discourse-cdn.com/v4/letter/i/e5b9ba/32.png) [@Ineedsleep](https://forum.kirupa.com/u/Ineedsleep)\
**Post date:** [June 10, 2005, 1:00pm UTC](https://forum.kirupa.com/t/dynamic-text/150798/1 "2005-06-10T13:00:52Z")

</div>

I have a dynamic text field that gets the mouse location to sisplay on screen

but it comes back undefined

onClipEvent (enterFrame){  
xval=\_root.xmouse;  
yval=\_root.ymouse;  
}

this is the code that am using

does any one know wha tis wrong or a better way of doing it??
