How to move a line?

Hello everyone!
I have a simple line drawn with the newLine function. I want to move the origin of the line with another parameters, but how?
I’ve tried to change xOrigin value, x value, xReference value but none of them worked.
How do I change the origin of a line? [import]uid: 53682 topic_id: 10475 reply_id: 310475[/import]

you will have to regenerate the line with the new point [import]uid: 24 topic_id: 10475 reply_id: 38123[/import]

As Carlos said you have to draw a new line (and remove the old one) … one thing that I have done is to put a line (or lines in my case) into a group, then just move that group, which worked for me, since I was not changing any parameters for the line, just where it was located. [import]uid: 34551 topic_id: 10475 reply_id: 38127[/import]

look at my bezier code - it regenerates the line every time the bezier handles are manipulated

its in the code exchange section of our site
c. [import]uid: 24 topic_id: 10475 reply_id: 38128[/import]

Thanks you guys… I wrote a routine that redraw the lines, everything’s fine so far.
The only problem is that I just can’t remove the old lines.

If I group the lines and use the a simple for to remove the lines using lines:remove(n), something happens that I can’t even draw the first lines,

If I try to remove one by one without grouping them and using the following code
line1:removeSelf()
line2:removeSelf()
.
.
.
lineN:removeSelf()

The lines still on the screen, what can i do to remove them so i can draw new ones on each event? [import]uid: 53682 topic_id: 10475 reply_id: 38493[/import]