Hello,

I found a couple threads in the flashmxfiles.com Forum about making lines animate, but if doesn't seem to work out for me. I looked here in this forum but didn't see anything that helped.

I have a keyframe on the main timeline and on that frame I put the following code.



Code:


_root.createEmptyMovieClip("leftLine",5);
leftLine.lineStyle(0,0x806365,100);
startX = 30;
startY = 500;
endY = 140;
leftLine.moveTo(startX,startY);
function drawLine(endY) {
* *startY -= 3;
* *_root.leftline.lineTo(startX, startY);
* *if (startY == endY) clearInterval(draw);
}
draw = setInterval(drawLine, 5, endY);


My idea is to have a line that grows up on the left (30,500) and one that will do the same on the right (770,500)
When they stop @ the Y position of 140, I plan to have 2 horizontal lines
draw out (one at the top of the previous line and one at the bottom) untill they reach an X position of 400.
The right would do the same, but draw towards the left.

When all is complete I should have a rectangle outline.

I am just trying to get the one line drawn on the left for the moment.

Thanks for the help