A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: [F8] Is there a way to change mouse position?

  1. #1
    Senior Member
    Join Date
    Mar 2004
    Posts
    137

    [F8] Is there a way to change mouse position?

    Hi, I've been trying to set my mouse position onto a certain part of my movie. It's like when you start an application the mouse automatically focus on a button or something like that.
    I have looked in the documentation and so far couldn't find a way to do this. _xmouse & ymouse is a read only variable so you can't set the value and you can only get the mouse position and not set them.
    Is it possible to change the mouse position ?
    Motorama, riding can be tough in deed !
    www.motoramagame.com
    Fun web games for all !!!
    www.iplayallday.com

  2. #2
    I don't know of any actual way to do that... although I can think of a possible cheap way to cheat it. Make the regular mouse icon disappear, draw your own mouse icon to replace it within Flash, and then limit that icon's x,y coordinates to whatever area you describe.
    Screenhog.com - low bandwidth, high fun

  3. #3
    Senior Member
    Join Date
    Mar 2004
    Posts
    137
    yes.. it seems that's the only way to do it
    Motorama, riding can be tough in deed !
    www.motoramagame.com
    Fun web games for all !!!
    www.iplayallday.com

  4. #4
    Senior Member dudeqwerty's Avatar
    Join Date
    Mar 2005
    Location
    Bosnia
    Posts
    1,626
    flash does not have access to mouse position, just think of the implications if it did,
    you will have to use the above method or similar
    New sig soon

  5. #5
    Banned NTD's Avatar
    Join Date
    Feb 2004
    Posts
    3,438
    Removing any helpful previous posts I mistakenly contributed to these forums.

    See ya FK'ers
    Last edited by NTD; 10-19-2006 at 06:09 AM.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center