# Creating an Elastic Line

**URL:** https://forum.kirupa.com/t/creating-an-elastic-line/233220
**Category:** Uncategorized
**Created:** [July 21, 2007, 12:48pm UTC](https://forum.kirupa.com/t/creating-an-elastic-line/233220 "2007-07-21T12:48:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![SeanEB](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@SeanEB](https://forum.kirupa.com/u/SeanEB)
#### Post date: [July 21, 2007, 12:48pm UTC](https://forum.kirupa.com/t/creating-an-elastic-line/233220/1 "2007-07-21T12:48:37Z")

</div>

I’ve been searching Google and this site for tutorials for this and can’t find anything which seems to fit what I’m looking for. I’m trying to divide the screen in 2 and then allow user to rollover the middle of screen - when they do, depending which direction they drag, the bottom or top of the screen bulges and then springs back into place. I’ve created this mock-up:

[http://www.idigitdesign.com/testarea/flash/](http://www.idigitdesign.com/testarea/flash/)

Wherever the user rolls over which the mouse, that is where the line bulges.

I have tried this tutorial:  
[http://www.kirupa.com/developer/actionscript/spring.htm](http://www.kirupa.com/developer/actionscript/spring.htm)

but I can’t figure out how to get from a single ball to a solid block which bulges at different points depending on where the mouse action is.

I really can’t figure this one out so any help or ideas would be much appreciated.

Thanks all.
