Drawing lines in AS

Hi there!

Is there any possibility to draw lines or rectangles with a commandline in ActionScript?

THX

Hartwig

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

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

You can check the amazing drawing board tutorial for further information.

pom :asian:test

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

:slight_smile: