# How To Change E to L?

**URL:** https://forum.kirupa.com/t/how-to-change-e-to-l/19211
**Category:** flash
**Created:** [April 25, 2003, 9:33am UTC](https://forum.kirupa.com/t/how-to-change-e-to-l/19211 "2003-04-25T09:33:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Rock\_star](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@Rock\_star](https://forum.kirupa.com/u/Rock_star)
#### Post date: [April 25, 2003, 9:33am UTC](https://forum.kirupa.com/t/how-to-change-e-to-l/19211/1 "2003-04-25T09:33:45Z")

</div>

Hi,

I am new to Flash MX and I don’t know how to write script in flash or anything like that.  
But I was wondering the **[COLOR=red]‘E’[/COLOR]** that can be found here =\>[http://www.kirupa.com/lab/ein3d.htm](http://www.kirupa.com/lab/ein3d.htm).  
Does anyone know how I could go about changing that to a **[COLOR=red]‘L’[/COLOR]**?  
If someone could do this or tell me how to do it, I will be very grateful.

Thanx,

Rock\_star:whistle:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 25, 2003, 9:41am UTC](https://forum.kirupa.com/t/how-to-change-e-to-l/19211/2 "2003-04-25T09:41:05Z")

</div>

Have you downloaded the source? It should just be a matter of changing the vector locations of the letter

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 25, 2003, 9:45am UTC](https://forum.kirupa.com/t/how-to-change-e-to-l/19211/3 "2003-04-25T09:45:07Z")

</div>

But as I am new to Flash MX. I don’t have a clue how to work out where the new vector locatons will be, could u tell me how to work it out please.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 25, 2003, 12:32pm UTC](https://forum.kirupa.com/t/how-to-change-e-to-l/19211/4 "2003-04-25T12:32:02Z")

</div>

Well I can tell you that it’s in this part of the script.

Xcoords = new Array(-3,3,3,-1,-1,2,2,-1,-1,3,3,-3);  
Ycoords = new Array(5,5,3,3,1,1,-1,-1,-3,-3,-5,-5);

I do not have the correct cordinates for an L shape, but I’ll give it a try (since I need a “D” for myself anyway.) But if you want… you can play around with these cordinates and see what you come up with . At the very least it should be interesting to change these numbers around, just to see what you get.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 25, 2003, 1:22pm UTC](https://forum.kirupa.com/t/how-to-change-e-to-l/19211/5 "2003-04-25T13:22:30Z")

</div>

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.

```auto
/* 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

```auto

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

```auto
for (t=0;t<XCoords.length;t++)

```

so it should look like this

```auto

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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 25, 2003, 1:51pm UTC](https://forum.kirupa.com/t/how-to-change-e-to-l/19211/6 "2003-04-25T13:51:33Z")

</div>

Hi,

Thanks alot for your help david. I did exactly what you said and it worked which is cool.  
I also now have a better understanding of the xcords array which I didn’t have a clue about before.  
You have really helped and I will mess around with it a bit more and see what other letters I can make.  
Well thanks alot for your help, it was greatly appreciated.

From

Rock\_star
