Bezier curve using flash actionscript

Bezier curve using flash actionscript.
This code also works with flash as3.


var flashallys:MovieClip = _root.createEmptyMovieClip("bezier", 100);
var x:Number = Stage.width/2;
var y:Number = Stage.height/2;

flashallys.onMouseMove = function()
{
	bezier.lineStyle(2, 0xFF0000, 5);
	bezier.moveTo(x, y);
	bezier.curveTo(_xmouse, _ymouse, x, y);
}

This movie requires Flash Player 9

Tags: , , ,

Hi, Stranger! Leave Your Comment...

Name (required)
Email (required)
Website