# Making a menu on a curve

**URL:** https://forum.kirupa.com/t/making-a-menu-on-a-curve/33796
**Category:** Uncategorized
**Created:** [October 23, 2003, 6:37pm UTC](https://forum.kirupa.com/t/making-a-menu-on-a-curve/33796 "2003-10-23T18:37:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![shuga](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@shuga](https://forum.kirupa.com/u/shuga)
#### Post date: [October 23, 2003, 6:37pm UTC](https://forum.kirupa.com/t/making-a-menu-on-a-curve/33796/1 "2003-10-23T18:37:44Z")

</div>

I have a dynamic bezier curve created with two points as the anchors and the mouse is the control point

```php

onEnterFrame = function () {
	_root.createEmptyMovieClip ("line", 0);
	with (_root.line){
		lineStyle(1, 0x8F0707, 80);
		moveTo(_root.ball1._x,_root.ball1._y);
		curveTo(_root._xmouse,_root._ymouse,_root.ball2._x,_root.ball2._y);
	}

```

What I want to do is attachMovieClip items dynamically to this line to make a menu that will respond to the mouse’s movement by pulling slightly towards it.

the line in the end movie will be invisible as well as the anchor points so all you’ll see is the menu items reacting to the mouse. pulling outward when the mouse is near

thanks
