View Full Version : drawing lines in AS
Hartwig
July 17th, 2002, 12:49 PM
Hi there!
Is there any possibility to draw lines or rectangles with a commandline in ActionScript?
THX
Hartwig
jsk
July 17th, 2002, 01:02 PM
Draw a rectancle 100px by 100px
Draw a diagonal line and set line properties to hairline
You now have a line
To manipulate this line adjust _x, _y, _xScale, _yscale, _rotation
Not the cleanest but it works
sbeener
July 17th, 2002, 01:06 PM
if you're using mx there's a whole drawing api
moveTo(x,y);
lineStyle();
beginFill(0xcc0000);
lineTo(x,y);
endFill();
...
have a look in the a/s dictionary for usage details
pom
July 17th, 2002, 01:23 PM
You can check the *amazing* drawing board tutorial (http://www.kirupa.com/developer/actionscript/drawingboard.asp) for further information.
pom :asian:test
nemoBejingler
July 17th, 2002, 03:57 PM
Heres something I wipped up to help you. If you want the fla just ask:
http://mitsuwaguy.tripod.com/dd.html
Hope this helps. Good luck
Peace
nemo | Bejingler
^_^
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.