PDA

View Full Version : "drawn" linework


drewsteele
10-01-2003, 06:35 AM
Hey Guys-
I have a some line work.
How would I go about having it appear as if it were being drawn?

Thanks
Andy

dzy2566
10-01-2003, 03:12 PM
That all depends on what you mean by "linework" and how you get it on the stage. Could you elaborate on this?

webguy
10-01-2003, 05:17 PM
I think he means like pencil and pen drawings. Educate him on this dzy.. I have no clue :)

drewsteele
10-01-2003, 05:39 PM
I've attached the FLA with the line work. (it's very simple)
What I'm looking for is a way to display it as if it were being drawn in real time.
I've tried shape tweening but it with no luck.

Thanks for the replies
Andy

webguy
10-01-2003, 05:56 PM
http://www.actionscript.org/showMovie.php?id=339

All I got for you :) I've done it Flash 4 style, frame by frame, outlining peice by peice.

webG

dzy2566
10-01-2003, 05:56 PM
Here's one really dirty way to do it. I have some other ideas, but look at this first and let me know if that's what you're getting at. I'm almost ashamed to submit this one, but if it works........ Hey web, isn't that your motto :D.

dzy2566
10-01-2003, 06:03 PM
Here's another approach. It's not a complete solution, but it might get you started. You can just cut and paste this one.
startX = 20;
startY = 20;
inc = 10;
_root.onEnterFrame = function(){
this.lineStyle(1,0x000000,100);
newX += startX+inc;
this.moveTo(20,startY);
this.lineTo(newX,20);
inc +=10;
if (newX >= 500){
delete this.onEnterFrame;
}
}
You can add if/else structure to this to draw the whole thing, or you can make a bunch of seperate drawing functions (that draw inside their own mc w/ createEmptyMovieClip) that each call the next when they reach their destination.

webguy
10-01-2003, 06:10 PM
Sure is :D, but I'm thinking of changing it to: "As long as it twerks".

So I guess the only way to outline something is still the Flash 4 way.. frame by frame. Otherwise fake it with a mask or two.

webG

drewsteele
10-01-2003, 06:15 PM
I think Thats enough to get me started.
I opened the laser effect FLA and it's in Italian. I think I will probably just fine tune the mask.
Thanks
for the help!!!
Andy

dzy2566
10-01-2003, 06:21 PM
Rock on, good luck. Don't you hate it when you open up a tute that is perfect for what you need and it's in another language? What a letdown :)

EDIT: How about that, 500th post. I was hoping it would come on a more exciting one, but oh well :D. Here's to AS.org!!!!!!!

webguy
10-01-2003, 06:24 PM
saw that dzy..congrats. :D I'll be in the 4 digit club in a couple weeks probably. Gotta love this place!

Thanks Jesse :D

drewsteele
10-01-2003, 06:30 PM
Hey man - that's cool! Sorry the post wasn't as juicy as 500 deserves but know that your time and expertise are very much appreciated. Thanks Again!!!

Andy