# Lines that follow the mouse

**URL:** <https://forum.kirupa.com/t/lines-that-follow-the-mouse/3502>\
**Category:** Uncategorized\
**Created:** [January 31, 2002, 6:07pm UTC](https://forum.kirupa.com/t/lines-that-follow-the-mouse/3502 "2002-01-31T18:07:23Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 31, 2002, 6:07pm UTC](https://forum.kirupa.com/t/lines-that-follow-the-mouse/3502/1 "2002-01-31T18:07:23Z")

</div>

hi  
i saw at [kirupa.com](http://kirupa.com) site a small flash where when we hoover the mouse two lines follow the mouse  
how can one do that?  
thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 31, 2002, 8:30pm UTC](https://forum.kirupa.com/t/lines-that-follow-the-mouse/3502/2 "2002-01-31T20:30:56Z")

</div>

That’s a very useful technique. First of all, press Ctrl + F8. This will edit a movie Clip. Name it whatever you want. Draw two perpendicular lines, the point where they cross must match the little cross. Try and make it very big.  
On the top left of your window, click on Scene 1 to go back to the main scene (to exit the edit mode). Press Ctrl + L to poen your library. you will see your clip in there. Drag and drop it on the scene. Press Ctrl + M and resize your window to something a little bit smaller.  
Right click your clip, select Actions, and write :  
onClipEvent (load) {  
startDrag (this, true) ;  
}  
Explanation : 1st line : when you load the movie  
2nd line : start to drag this clip (target) with a lock to mouse center (true) [you get that in normal mode with actions\>startDrag\>target = this, check expression, check lock to mouse center]  
And you’re done !

pom  
:cool:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 31, 2002, 9:56pm UTC](https://forum.kirupa.com/t/lines-that-follow-the-mouse/3502/3 "2002-01-31T21:56:52Z")

</div>

hi again  
it didnt took me 2 minutes!! and worked perfectly!  
thanks a lot!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 31, 2002, 10:07pm UTC](https://forum.kirupa.com/t/lines-that-follow-the-mouse/3502/4 "2002-01-31T22:07:47Z")

</div>

Hmmmm

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 31, 2002, 10:11pm UTC](https://forum.kirupa.com/t/lines-that-follow-the-mouse/3502/5 "2002-01-31T22:11:01Z")

</div>

Hum hummm… You seem perplex, Phil. That new footer ?  
pom

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 31, 2002, 10:12pm UTC](https://forum.kirupa.com/t/lines-that-follow-the-mouse/3502/6 "2002-01-31T22:12:27Z")

</div>

Didn’t you see my crosshairs in the phooter? Duh!

pj  
Try doing a mouseover my werk every now and then…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 31, 2002, 10:36pm UTC](https://forum.kirupa.com/t/lines-that-follow-the-mouse/3502/7 "2002-01-31T22:36:12Z")

</div>

Sorry Phil, I really did NOT see the crosshair. What can I do to make it up to you, except crush you at your little game with Upu (pick any movie, I’m mister Cinema). You’re no match for me (I hope).  
pom, bragging a little bit, but it feels so good… 0]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 31, 2002, 10:40pm UTC](https://forum.kirupa.com/t/lines-that-follow-the-mouse/3502/8 "2002-01-31T22:40:57Z")

</div>

To make it up to me; Hmmm, well, er, unh, lets see; How bout this, phind a nice phrench women phor me, a beautiphul one, pheed her really well and stuff her in a UPS crate and ship her to me here in the states. Plenty of room in my attic for two.

pj  
8:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 31, 2002, 10:54pm UTC](https://forum.kirupa.com/t/lines-that-follow-the-mouse/3502/9 "2002-01-31T22:54:05Z")

</div>

I think I’ll stick to crushing at that quotes game.  
pom

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 31, 2002, 11:03pm UTC](https://forum.kirupa.com/t/lines-that-follow-the-mouse/3502/10 "2002-01-31T23:03:07Z")

</div>

Ya…RIGHT! Ha!
