Why not simply change the width (since you are moving directly in the x position)
this.line._width += 5;
Hmm, it works pretty much the same as before, still increasing thickness (y) of the line for some reason, and changing the anchor point of the line doesn't seem to fix it down..?
1 person found this helpful
I just built a simple swf to test this, and discovered that it is because the line is a.... well, line.
If you convert the stroke to a fill (1px or 2px strokeless rectangle) - the "line" doesn't get any thicker as it grows.
Wicked, well that's sorted out the line beautifully:)
Any ideas what I could do about anchoring down one end of the line? - even if you're not sure, any idea what I should look for to help? - I've been looking for things about drawing lines completely throught code etc, but they seem to work in a different way to simply stretching a line (I dont think I can use the lineStyle function with the above code etc).
That is an alignment issue.
If you go into the line symbol, select the line, and Align to Stage Top and Left (so the crosshairs are in the upper-left corner of the line) the top/left corner of the line will always remain in the same place when you change its width.
Poifect! Thanks! R.