I am trying to figure out how to draw a line between two coordinates using ActionScript, the way they do in the Soda Constructor (sodaplay.com/constructor/index.htm)..)
So far the only way I can find is to make a movie clip of a diagonal line, duplicate it at runtime, and then position, stretch, and resize the new line. The problem with this is the line doesn’t have a consistent width, and gets fuzzy when stretched too much.
I dont’ have the code in front of me… but the way most people do it is this.
the line should be made diagonal, and should disect a 100 by 100 square area. Make it with a line size of “hairline” and it wont distort when you stretch it.
Other than that… I’d have to look up the way of actually placing it… but that’s the basics of the line. I guess it’s 100/100 so that you can set it’s scale based upon a 100 pixel size.
tell me about it. i wrote a routine to fill shapes, it was montrously complicated and took nearly two weeks, now you go beginFill(), lineTo(), lineTo(), endFill().