PDA

View Full Version : bendy line help!


dendk
11-12-2003, 02:21 AM
I am trying in vain to create a few lines of simple AS that will allow me to bend a line (with the ends remaining fixed) with the movement of the mouse.
Will anyone (who has more AS skill than me (which is pretty much everyone) throw me a bone?!)

pixelwit
11-12-2003, 01:34 PM
var pointA = {x:50, y:200};
var pointC = {x:500, y:200};
onMouseMove = function(){
clear();
lineStyle (1, 0xFF0000);
moveTo(pointA.x, PointA.y);
curveTo(_xmouse, _ymouse, pointC.x, pointC.y);
updateAfterEvent();
}-PiXELWiT
http://www.pixelwit.com