Quantunet.com

My Account

Joins Us
Flash 8 Actionscript 2.0 Knowledgebase
Drawing A Curve  

Download this .fla

How to draw this curved line with Actionscript.

Actionscript

_root.lineStyle(3, 0x0000FF,100);
_root.moveTo(100,100);
_root.curveTo(150,150,100,200);



The first section of code: " _root.lineStyle(3, 0x0000FF, 100); " tells flash HOW to draw the line. First it specifies the thickness of the line in pixels, the color of the line in hexadecimal then the level of transparency (alpha channel percentage).The second line of code: " _root.curveTo(150,150,100,200); " commands flash to "draw a curve".



© 2008 Quantunet LLC All Rights Reserved | Intellectual Property | Terms of Use | Privacy
Home | About Quantunet | FAQ's | Contact Us