# Points movement

**URL:** <https://forum.kirupa.com/t/points-movement/160659>\
**Category:** Uncategorized\
**Created:** [August 28, 2005, 5:18am UTC](https://forum.kirupa.com/t/points-movement/160659 "2005-08-28T05:18:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![diogopitz](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@diogopitz](https://forum.kirupa.com/u/diogopitz)\
**Post date:** [August 28, 2005, 5:18am UTC](https://forum.kirupa.com/t/points-movement/160659/1 "2005-08-28T05:18:38Z")

</div>

hi everybody… i’m starting some experiments with 3D, and i saw this: [http://www.kirupa.com/developer/actionscript/panning.htm](http://www.kirupa.com/developer/actionscript/panning.htm)

this first .swf is very simple, but interesting… i have tried to make that, but i only did the 4 points rotating… here is my code:

```auto
_root.createEmptyMovieClip("line", _root.getNextHighestDepth());
_root.createEmptyMovieClip("p1", _root.getNextHighestDepth());
_root.createEmptyMovieClip("p2", _root.getNextHighestDepth());
_root.createEmptyMovieClip("p3", _root.getNextHighestDepth());
_root.createEmptyMovieClip("p4", _root.getNextHighestDepth());

line.lineStyle(2, 0x00000, 100);
line.moveTo(100, 100);
line.lineTo(100, 200);

p1.lineStyle(5, 0x00000, 100);
p1.moveTo(80, 150);
p1.lineTo(81, 150);

p2.lineStyle(5, 0x00000, 100);
p2.moveTo(80, 150);
p2.lineTo(81, 150);

p3.lineStyle(5, 0x00000, 100);
p3.moveTo(80, 150);
p3.lineTo(81, 150);

p4.lineStyle(5, 0x00000, 100);
p4.moveTo(80, 150);
p4.lineTo(81, 150);

radius = 50;
p1.degree = 0;
p2.degree = 90;
p3.degree = 180;
p4.degree = 270;

p1.onEnterFrame = p2.onEnterFrame = p3.onEnterFrame = p4.onEnterFrame = function() {
    this.degree+=3;
    this._x = 20 + Math.cos(this.degree*Math.PI/180)*radius;
    this._y = Math.sin(this.degree*Math.PI/180)*7;
}

```

i have tried to make the 2 lines, but didn’t work… i imagine something like:

```auto
line1.moveTo(p1._x, p1._y);
line1.lineTo(p2._x, p2._y);

```

does someone know how to make the 2 lines?

thank’s for help…
