Something easy but edittable to beginners. It's hard to get more basic then this so don't think i've put this up for how good, but for how easy it is.
On the first frame add this to the actionscript:
_root.moveTo(_root._xmouse, _root._ymouse);
On the second frame place this actionscript there:
_root.lineStyle(5, 0xAABBCC);
_root.lineTo(_root._xmouse, _root._ymouse);
Then lastly on the third and final frame put:
gotoAndPlay(2);
Try playing around with the numbers in frame 2 to suit what you want, just move the mouse around.
Now, something else i made but it's harder to understand for beginners.
Set the board dimensions as 400 x 400.
The frame rate should be 100 for a nice, fast and smooth action.
Make a blank movie clip and place this in the middle of the board give it an instance of "crosshairs".
Next make another blank movie clip and give it an instance name of "controller" if you want. Place it down anywhere then align it's y position to the middle with ctrl + k, then press ctrl + i and put it's x position as 300( middle of the board plus 100 which is the radius in the following code ). Now add the following to it's actions:
onClipEvent (load) {
radius = 100;
degrees = 0;
_root.lineStyle(1, 0xFF9900, 100);
_root.moveTo(this._x, this._y);
}
onClipEvent (enterFrame) {
_root.lineTo(this._x, this._y);
angle = degrees*(Math.PI/180);
degrees = degrees+2;
xposition = radius*Math.cos(angle);
yposition = radius*Math.sin(angle);
this._x=xposition+_root.crosshairs._x;
this._y=yposition+_root.crosshairs._y;
}