matt_pawson
asked on
VML Polyline problems
Hi,
I am trying to dynamically remove some points from a VML Polyline element but can't see any way to go about doing this.
When I reference the points attribute of the line element, I find that it is a collection, so I'm able to and points to the element by simply doing:
document.all.line1.points. add(docume nt.all.lin e1.points. length);
document.all.line1.points( document.a ll.line1.p oints.leng th - 1) = '40 40';
So now I will have a VML Polyline like:
<V:POLYLINE id="line1" onclick="" name="line1" style="POSITION: absolute;" coordsize="0,0" points="0 0 10 10 30 30 40 40" strokecolor="black" strokeweight="1pt" /></V:POLYLINE>
But I can see any way of removing any of the points, all I can do is add to the collection.
Cheers,
I am trying to dynamically remove some points from a VML Polyline element but can't see any way to go about doing this.
When I reference the points attribute of the line element, I find that it is a collection, so I'm able to and points to the element by simply doing:
document.all.line1.points.
document.all.line1.points(
So now I will have a VML Polyline like:
<V:POLYLINE id="line1" onclick="" name="line1" style="POSITION: absolute;" coordsize="0,0" points="0 0 10 10 30 30 40 40" strokecolor="black" strokeweight="1pt" /></V:POLYLINE>
But I can see any way of removing any of the points, all I can do is add to the collection.
Cheers,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.