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 4 of 4

Thread: How do i change mouse cursor animation ???

  1. #1

    How do i change mouse cursor animation ???

    hi guys, I learnt how to change a normal mouse cursor
    into something different when the mouse cursor is located
    within the flash file (SWF)

    i was wandering whether it is possible to change the mouse cursor
    to something else if the user clicks the mouse cursor.

    example: the mouse cursor is alphabet A, when user clicks the mouse cursor, it changes to B, once the user lift off his mouse, it changed back to A.


    i tried searching for a tutorial on this in kirupa but they don't have any.

  2. #2
    120
    posts
    Registered User
    How are you doing it now?
    Basically you hide the mouse cursor and then attach a movieclip to _xmouse, _ymouse and update that onEnterFrame and then you can just change the movieclips frame when the mouse button is pressed.

  3. #3
    you can create the cursor object as a button within a movieclip....and for the button, put the animations in up, down,.. states....Since the mouse is present at the exact position of this button, it will detect mouse press release etc, and behave accordingly. The only thing to keep in mind is that, since it is at mouse coordinates, the default state of the button is not the UP state but the OVER state.

  4. #4
    Quote Originally Posted by bluemagica View Post
    you can create the cursor object as a button within a movieclip....and for the button, put the animations in up, down,.. states....Since the mouse is present at the exact position of this button, it will detect mouse press release etc, and behave accordingly. The only thing to keep in mind is that, since it is at mouse coordinates, the default state of the button is not the UP state but the OVER state.
    absolutely no need at all to do that

    Code:
    _root.onMouseUp = function ()
        {
        _root.mc.gotoAndPlay(_root.mc._currentframe + 1)
        }
    http://www.adobe.com/support/flash/a...ionary497.html

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