Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.

Cheers,
Kirupa

Results 1 to 6 of 6

Thread: take control of the mouse? possible?

  1. #1

    take control of the mouse? possible?

    Hi! I've searched the forums, but can't find no way of controlling the mouse position.
    What I need to do is this:

    Take control of the mouse, move it from it's relative position to another position, and then give the user back control.

    Any ideas?

  2. #2
    This has come up before and I may be wrong but I don't think its possible.
    The only way that im aware of that might give the effect your looking for is to hide the cursor and take its place with a movie clip and move that arround.
    But then the mouse wouldn't be in that spot when control is restored.

  3. #3
    lewi-p's Avatar
    952
    posts
    Say "NO" to Scenes!
    There's noway of taking control of the users mouse but here's an alternative...

    I was gonna write out a list of things you could do but seen as I'm such a nice guy and I'm having a slow day, I took the liberty of making a very basic example. I've commented the code to briefly explain whats goin on...enjoy!

    lewi-p
    Attached Files Attached Files

  4. #4
    Hehe...I like it
    2006-11 GlosRFC - Searching 8,168,684,336 brain cells

  5. #5
    lewi-p: I couldn't find any code in there but:

    Code:
    stop();
    //Hide the mouseMc
    mouseMc._visible = false;
    //Show the users mouse
    Mouse.show();
    where is the stuff that makes it work?

  6. #6
    figured it out. just had to change "current selection". thanks a lot! amazing how differently people use this programs.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012