Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-07-2012, 01:14 AM   #1
Cadvan1123
Registered User
 
Join Date: Jul 2012
Posts: 2
Default Highlighter Tool Effect

Hey guys,

I wanted to create a highlighter tool similar to, if not exactly like, this one.
What happens is that as the highlighter tool is pressed and dragged across the stage, a series of "lines" appear that are angled according to the direction. When the tool has finished drawing, and the mouse is released, it turns into the type of image as shown by the second figure in the image. How do I go about doing this, and in specific, what classes do you think were used to turn that series of "lines" into a smooth image?

Thanks
Attached Thumbnails
Click image for larger version

Name:	Highlighter_tool.jpg
Views:	29
Size:	13.8 KB
ID:	38594  
Cadvan1123 is offline   Reply With Quote
Old 07-07-2012, 05:00 AM   #2
MichaelBaker
Registered User
 
Join Date: Sep 2008
Posts: 12
Default

Without trying to code and test myself it looks like you could achieve that by simply using lineStyle method with joints set to JointStyle.ROUND and turn it into one continuous path.
MichaelBaker is offline   Reply With Quote
Old 07-07-2012, 04:01 PM   #3
Cadvan1123
Registered User
 
Join Date: Jul 2012
Posts: 2
Default

Quote:
Originally Posted by MichaelBaker View Post
Without trying to code and test myself it looks like you could achieve that by simply using lineStyle method with joints set to JointStyle.ROUND and turn it into one continuous path.
Thanks, I'll look into that. In addition, how does the initial path work? What tools were used to create that "line" effect before being transformed into a round path?
Cadvan1123 is offline   Reply With Quote
Old 07-07-2012, 11:03 PM   #4
MichaelBaker
Registered User
 
Join Date: Sep 2008
Posts: 12
Default

In the actionscript 3 reference look up the Graphics class. Along with some math youll probably be using a lot of graphic.moveTo, graphic.lineTo, maybe graphics.curveTo also.
MichaelBaker is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:31 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.