# Here are samples of my work

**URL:** <https://forum.kirupa.com/t/here-are-samples-of-my-work/4838>\
**Category:** Uncategorized\
**Created:** [August 22, 2002, 3:20am UTC](https://forum.kirupa.com/t/here-are-samples-of-my-work/4838 "2002-08-22T03:20:59Z")\
**Posts on this page:** 8\
**Page:** 2

<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:** [August 28, 2002, 5:29pm UTC](https://forum.kirupa.com/t/here-are-samples-of-my-work/4838/21 "2002-08-28T17:29:21Z")

</div>

All that code talk might as well be Greek!! The thought of trying to figure all that code out is just so daunting.

---

<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:** [August 28, 2002, 5:38pm UTC](https://forum.kirupa.com/t/here-are-samples-of-my-work/4838/22 "2002-08-28T17:38:51Z")

</div>

Looks can be decieving. It is actually very easy to learn. That hard stuff resides in the Math side of Flash Actionscript. I am going to wait before I tackle that head on.

Don’t let the look intimidate you, you would be surprised at how easy it is to learn this.

---

<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:** [August 28, 2002, 6:13pm UTC](https://forum.kirupa.com/t/here-are-samples-of-my-work/4838/23 "2002-08-28T18:13:16Z")

</div>

Well I think I am finally finished optimizing my code. Unless Ilyas can find anything else to optimize. The smaller the better:)

Let us go through the results  
[ORIGINAL SCRIPT](http://www.8ballcreations.com/lostinbeta/bezierscript.html)  
[FIRST OPTIMIZED SCRIPT](http://www.8ballcreations.com/lostinbeta/bezierscript2.html)  
[LAST OPTIMIZED SCRIPT](http://www.8ballcreations.com/lostinbeta/bezierscript3.html) (unless I can do more with it, which would be cool)

I brough it down from 95 lines in the beginning to about 70 lines with the most recent changes. 25 lines went out the door, and it still works as great as it did in the first place.

Wait I forgot to factor in Comments, I have 10 comments in there which make it 70 lines. Take away the comments and my script is only 60 lines! Since the original script had no comments, then I actually took away somewhere around 35 lines of code. SCORE!

---

<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:** [August 29, 2002, 8:29am UTC](https://forum.kirupa.com/t/here-are-samples-of-my-work/4838/24 "2002-08-29T08:29:40Z")

</div>

Pretty good! Just a few things:  
I don’t think that defining the textFormat inside the prototype is a good idea. You should declare it outside, and pass it as a parameter of your prototype.

And I don’t understand why you don’t make all 3 points draggable 😛

pom :asian:

---

<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:** [August 29, 2002, 8:34am UTC](https://forum.kirupa.com/t/here-are-samples-of-my-work/4838/25 "2002-08-29T08:34:50Z")

</div>

And in my prototype, I also created the holder clip in the prototype, and returned it at the end. It can be practical. If you want to check it, it’s [here](http://flash-france.com/actionscript.php?action=ViewProto&Protoid=70). Nice coding if you ask me 😛

pom :asian:

---

<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:** [August 29, 2002, 3:47pm UTC](https://forum.kirupa.com/t/here-are-samples-of-my-work/4838/26 "2002-08-29T15:47:16Z")

</div>

Ok, holder clip thing I got, sounds cool. Not really sure about the text format thing. I not sure what you mean about declaring the format outside and passing it as a parameter of my prototype. Is that more effcient?

I don’t have 3 draggable squares because for some reason when I drag the one that currently isn’t solid, it messed everything up. It wouldn’t curve the line, it would just move the entire line and detatch it from the anchor on the other side. I am going to work on fixing that when I get back from vacation on Monday.

\<B\>EDIT/UPDATE: I tried creating the holder clip in my prototype but it threw EVERYTHING out of place. Hmmmm, I am having too many problems with this. I think I am going to keep it the way it is, and just try and rebuild a whole new one some other time. One that has ALL working points\</B\>:evil:

---

<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:** [August 31, 2002, 2:49pm UTC](https://forum.kirupa.com/t/here-are-samples-of-my-work/4838/27 "2002-08-31T14:49:11Z")

</div>

As you wish, man. And concerning that textFormat thing, it is just that it is useless to declare it every time you use the prototype, that’s all…

pom :asian:

---

<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:** [September 1, 2002, 9:16pm UTC](https://forum.kirupa.com/t/here-are-samples-of-my-work/4838/28 "2002-09-01T21:16:59Z")

</div>

Yeah, that does make sense. I am going to work on that 3d engine thing, and then I will get back to making a full working bezier curve.

[Previous page](https://forum.kirupa.com/t/here-are-samples-of-my-work/4838.md?page=1)
