# Moving one point of a line

**URL:** <https://forum.kirupa.com/t/moving-one-point-of-a-line/279300>\
**Category:** flash\
**Created:** [January 13, 2009, 4:43am UTC](https://forum.kirupa.com/t/moving-one-point-of-a-line/279300 "2009-01-13T04:43:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alpha\_Remex](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@Alpha\_Remex](https://forum.kirupa.com/u/Alpha_Remex)\
**Post date:** [January 13, 2009, 4:43am UTC](https://forum.kirupa.com/t/moving-one-point-of-a-line/279300/1 "2009-01-13T04:43:10Z")

</div>

So here’s one for all you experts out there…

Let’s say I draw a line in AS3:

```auto

var line:MovieClip = new MovieClip();
var container:MovieClip = new MovieClip();

container.addChild(line);
addChild(container);

line.graphics.lineStyle(3, 0x0000FFFF);
line.graphics.moveTo(200, 50);
line.graphics.lineTo(250,50);

```

Can I move **JUST** the starting point or the ending point? Something like this:

```auto

.
.
.
addEventListener(Event.ENTER_FRAME, moveIt);

function moveIt(e:Event):void {

line.startingPoint.x -=5;

}

```

Thoughts?
