Here are samples of my work

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

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.

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
FIRST OPTIMIZED SCRIPT
LAST OPTIMIZED SCRIPT (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!

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 :stuck_out_tongue:

pom :asian:

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. Nice coding if you ask me :stuck_out_tongue:

pom :asian:

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:

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:

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.