Points movement

hi everybody… i’m starting some experiments with 3D, and i saw this: 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:

_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:

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…