Hi people,
I am not a genius when it comes to ActionScript but I trying to create a simple patterned background to my movie, basically just a series of evenly spaced digonal lines, similar to the ones found at
I have managed to create a diagonal line using the following code:
_root.createEmptyMovieClip( "diagonal", 1 );
with ( _root.diagonal )
{
lineStyle( 0, 0xff00ff, 100 );
moveTo( 0, 0 );
lineTo( 760,540 );
}
How do I reuse this code without copying and pasting it for each additional line (that would be a lot of code).
Basically need the lines to fill an area of 750 x 500 with a 0.5 pixel space between any ideas?
Thanks
I am not a genius when it comes to ActionScript but I trying to create a simple patterned background to my movie, basically just a series of evenly spaced digonal lines, similar to the ones found at
I have managed to create a diagonal line using the following code:
_root.createEmptyMovieClip( "diagonal", 1 );
with ( _root.diagonal )
{
lineStyle( 0, 0xff00ff, 100 );
moveTo( 0, 0 );
lineTo( 760,540 );
}
How do I reuse this code without copying and pasting it for each additional line (that would be a lot of code).
Basically need the lines to fill an area of 750 x 500 with a 0.5 pixel space between any ideas?
Thanks