PDA

View Full Version : Connect two x/y coordinates


qbart
02-20-2002, 03:47 PM
Hi all!

I have a short question:

Knows anybody if there is a ActionScript function which can connect two x/y coordinates with a line (like drawLine() in JAVA)?

I haven't found such a function jet, I hoppe anyone can halp me.

thx ahead

poab
02-20-2002, 04:21 PM
http://www.actionscripts.org/tutorials/intermediate/Draw_a_line/index.shtml


Is that close enough? Because otherwise I don't know.

cheers.

Jesse
02-20-2002, 11:41 PM
The method used in the tutorial above is the best because it doesn't involve calculating rotation, just scale.

qbart
02-22-2002, 02:46 AM
Thx guys,
that seams to be what I was looking for!