Need help creating an effect

basically I want a point to grow into a line that could then go into a turn

actually it’s like the pen writing effect I’ve seen before

so it’ll be like watching a square draw itself starting from a point

Thanks for any suggestions/help

or samples

Is the path based on some points (script) or on a path (no script)?

it’ll be based on points the line will draw it self in a defined direction,

so this has to be a scripted effect?

root.createEmptyMovieClip( “circle”, 1 );
with ( _root.circle )
{
lineStyle( 0, 0x0000FF, 100 );
beginFill( 0xFF0000 );
moveTo( 500, 500 );
curveTo( 600, 500, 600, 400 );
curveTo( 600, 300, 500, 300 );
curveTo( 400, 300, 400, 400 );
curveTo( 400, 500, 500, 500 );
endFill();
}

someone gave me this script to play with but how do I use it?