How to make two lines snap to your mouse cursor?

How to make two lines snap to your mouse cursor?
Example: http://www.kirupa.com/developer/mx/specialfx.htm
the flash file on the top ( small one )

Can anyone teach me and provide me with the code?

the crosshair? This should help you: http://www.flashkit.com/movies/Games/Skeet_Sh-Jobe_Mak-1043/index.php

can you provide me the code for the lines only?

this is the easiest way:
make a movieclip with a big + in it, make sure the x and y lines meet at center of movieclip,
then on that movieclip put:

onClipEvent (load) {
startDrag(this, true);
}

and set your movies framerate to like 20 so its not jerky

me waits for someone to post advanced actionscript version :slight_smile:

how to set frame rate?

when nothing is selected theres a box at the bottom titled properties, in the box frame rate: put 20

if its not there select somewhere in the movie not touching a object and rightclick and click on properties

sorry, I tried what you have say but the big + doesn’t move. or it moves but the mouse centre is at the left side of the +

Here’s teh zip file for what you wanted. Just edit the move clip to customize it but MAKE SURE IT IS COMPLETELY CENTERED!!! TO get this…

for the x - divide teh width of the cross by 2 and make it negative
for the y - divide teh height of the cross by 2 and make it negative

And thats it!

Good luck!

:p: aussy