# Stretchy string

**URL:** <https://forum.kirupa.com/t/stretchy-string/276220>\
**Category:** flash\
**Created:** [November 24, 2008, 4:32pm UTC](https://forum.kirupa.com/t/stretchy-string/276220 "2008-11-24T16:32:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adw999](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@adw999](https://forum.kirupa.com/u/adw999)\
**Post date:** [November 24, 2008, 4:32pm UTC](https://forum.kirupa.com/t/stretchy-string/276220/1 "2008-11-24T16:32:33Z")

</div>

Hi,

I’ve been creating a ball on a string thing and got the ball moving etc but I would like to add a string. I can add a straight string using lineto or a MC but i would like the string to curl up when the ball is closer than the string length.

Any ideas how to do this? I have code for working out the rotation needed, distance from the ball and max string length.

Thanks
