So here’s one for all you experts out there…
Let’s say I draw a line in AS3:
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:
.
.
.
addEventListener(Event.ENTER_FRAME, moveIt);
function moveIt(e:Event):void {
line.startingPoint.x -=5;
}
Thoughts?