Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Reversing Your Mouse

Reversing Your Mouse

Reversing Your Mouse


I'm fairly new to director and these forums as well. However I've done a search on these forums and I cannot seem to find anything about inversing/reversing mouse movements with director.

I'm trying to program a shockwave interactivity for a replication of a psychology experiment for a website.

 Individuals will have to trace a path along a star without going out of the boundaries. However, the original experiment had subjects looking at the star (and their hand) in a mirror.

So in essence, they had to move their hands backwards. I'm trying to emulate this inversion in a director movie. Is this possible?

Thank you people in advance for your help regarding this topic


RE: Reversing Your Mouse

This script hides the cursor, puts the dummy cursor on Stage and moves it to the opposite of the mouse.

In this example the dummy cursor graphic is in the member slot 1, and the mask graphic is in the member slot 2.


-- Movie script
global gSp, gStageW, gStageH

on startMovie me
  stageRect = _movie.stage.rect
  gStageW = stageRect[3] - stageRect[1]
  gStageH = stageRect[4] - stageRect[2]
  gSp = sprite(1)
  gSp.puppet = true
  gSp.member = member(1)
  gSp.ink = 9
end startMovie

on enterFrame me
  gSp.locV = gStageH - _mouse.mouseV
  gSp.locH = gStageW - _mouse.mouseH
end enterFrame

Kenneth Kawamoto

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close