ok… easy solution so far… but I want to try to teach you to fish instead of just giving it to you (which I’ll do as well in a minute)
for now. Take this code and paste it exactly as is into the a/s window. First Frame of the main timeline, all the way at the bottem.
/* Xcoords Ycoords
coords are set up like so ( x / y )
Xcoords[11] Xcoords[10]
(-3/-5) (3/-5)
@ @
Xcoords[8] Xcoords[9]
(-1/-3) (3/-3)
@ @
Xcoords[7] Xcoords[6]
(-1/-1) (2/-1)
@ @
Xcoords[4] Xcoords[5]
(-1/1) (2/1)
@ @
Xcoords[3] Xcoords[2]
(-1/3) (3/3)
@ @
Xcoords[0] Xcoords[1]
(-3/5) (3/5)
@ @
I use Xcoords array here but it doesn't matter.
the Xcoord corespond to the Ycoords array
*/
ok… next thing you need to do is go to the second frame and look for this
for (t=0;t<12;t++)
{
x = Xcoords[t]*R0;
y = Ycoords[t]*R0;
z = 0;
lx=x;
ly=y*gcos-z*gsin;
lz=y*gsin+z*gcos;
tx=lx*fcos-lz*fsin;
ty=ly;
tz=((lx*fsin+lz*fcos)/Zweaken)+Zoffset;
if(t!=0)
lineTo((tx/tz)+Xoffset,(ty/tz)+Yoffset);
else
moveTo((tx/tz)+Xoffset,(ty/tz)+Yoffset);
}
now where you see that… I want you to change a value.
the “for” statement above, should read
for (t=0;t<XCoords.length;t++)
so it should look like this
for (t=0;t<XCoords.length;t++)
{
x = Xcoords[t]*R0;
y = Ycoords[t]*R0;
z = 0;
lx=x;
ly=y*gcos-z*gsin;
lz=y*gsin+z*gcos;
tx=lx*fcos-lz*fsin;
ty=ly;
tz=((lx*fsin+lz*fcos)/Zweaken)+Zoffset;
if(t!=0)
lineTo((tx/tz)+Xoffset,(ty/tz)+Yoffset);
else
moveTo((tx/tz)+Xoffset,(ty/tz)+Yoffset);
}
that will let you alter the number of points in the construct of lines. The first bit of code above shows how the coordinates of the x and y are set up. Using that you should be able to develope any other construct pretty easily.
This is the array code for an L shape
Xcoords = new Array(-3,3,3,-1,-1,-3);
Ycoords = new Array( 5,5,3, 3,-5,-5);
And attached I’ve included my altered FLA file.