# Mving anchor points with code?

**URL:** <https://forum.kirupa.com/t/mving-anchor-points-with-code/247051>\
**Category:** flash\
**Created:** [December 18, 2007, 2:31am UTC](https://forum.kirupa.com/t/mving-anchor-points-with-code/247051 "2007-12-18T02:31:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TriKri](https://avatars.discourse-cdn.com/v4/letter/t/9de0a6/32.png) [@TriKri](https://forum.kirupa.com/u/TriKri)\
**Post date:** [December 18, 2007, 2:31am UTC](https://forum.kirupa.com/t/mving-anchor-points-with-code/247051/1 "2007-12-18T02:31:38Z")

</div>

Hi! I my scene I have a movieclip called main. For main I have a file main.as, and in there I have

```auto

class main extends MovieClip {
    function onLoad() {
        _x = Stage.width/2;
        _y = Stage.height/2;
    }
}

```

This movieclip is the central of everything that is gonna happen in the program. The program is supposed to simulate a rope hanging in the mouse cursor, for the animating of the rope I have thought I am gonna use anchor points, say I have about 50 of them for the whole rope. Now is my question: I know you can place lines in the movieclip by using moveTo and lineTo, but can you later change the position of the endpoints for those lines? And since I want the lines to be smooth, I want to place out the direction points as well and also be able to move those too. So, does anyone have any idea of how I can performe this?
