# Help with AS distance

**URL:** <https://forum.kirupa.com/t/help-with-as-distance/199186>\
**Category:** Uncategorized\
**Created:** [August 31, 2006, 4:39pm UTC](https://forum.kirupa.com/t/help-with-as-distance/199186 "2006-08-31T16:39:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![random\_number](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@random\_number](https://forum.kirupa.com/u/random_number)\
**Post date:** [August 31, 2006, 4:39pm UTC](https://forum.kirupa.com/t/help-with-as-distance/199186/1 "2006-08-31T16:39:19Z")

</div>

Ok so I have this script:

[SIZE=1]_\_root.createEmptyMovieClip(“line”,1);_[/SIZE]  
[SIZE=1]\*\_root.onMouseDown = function(){  
line.moveTo(\_xmouse,\_ymouse);  
line.lineStyle(4,0x11FF11,100);  
this.onEnterFrame = function(){  
line.lineTo(\_xmouse,\_ymouse);

}  
}  
\_root.onMouseUp = function(){  
this.onEnterFrame = null;  
}\*[/SIZE]  
[SIZE=1]_buttonErase.onPress = function(){  
\_root.line.clear();  
}_[/SIZE]  
_[SIZE=1][/SIZE]_  
[SIZE=1]Can someone please tell me how to display the lenght of the line in a Dynamic text box?[/SIZE]
