# Dynamic text box help please

**URL:** https://forum.kirupa.com/t/dynamic-text-box-help-please/254988
**Category:** Uncategorized
**Created:** [March 18, 2008, 12:32am UTC](https://forum.kirupa.com/t/dynamic-text-box-help-please/254988 "2008-03-18T00:32:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![autumnmedia](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@autumnmedia](https://forum.kirupa.com/u/autumnmedia)
#### Post date: [March 18, 2008, 12:32am UTC](https://forum.kirupa.com/t/dynamic-text-box-help-please/254988/1 "2008-03-18T00:32:39Z")

</div>

hi,  
im sort of new to as3  
i have created a dynamic text box called noin1

function waterMovement(event:KeyboardEvent):void  
{ if(event.keyCode == Keyboard.ENTER){  
var waterMove = noin1.text;  
trace(waterY);  
water.y += waterMove;  
}  
}

when i call this, to move a movie clip  
the trace works and shows the number  
but i cannot move the movie clip as flash is not seeing the value ive entered as a number but a string still.

how can i format the text box so that it saves the number inputted as a number or integer.

thanks for any help i get
