Results 1 to 4 of 4

Thread: Hide Mouse Doesn't Work

  1. #1
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Hide Mouse Doesn't Work

    Hi All,

    I have this code...
    Code:
    this.onRollover = function()
    {
    	cover.useHandCursor=false;
    // dont think youd even need any code as long as you have a function
    // maybe you could do the mouse code that didnt show a rollover state
    // meaning your black square acts as a block but doesnt look active itself
    	}
    }
    But it doesn't work the mouse still shows up on RollOver any ideas?

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Just use this instead:

    Code:
    Mouse.hide();
    _root.onMouseUp = function(){Mouse.hide()};
    Now, technically you can just use:

    Code:
    Mouse.hide();
    All works well, but if the user right-clicks it will bring up the Flash menu, and the cursor will appear and stay there. by making a mouse up function it will hide it again.

    Also note your code is turning off the handCursor, which is not am implimented state of Flash, meaning the cursor will default to the OS items for Mouse behavior. Those people that have novelty cursors will see those instead of the hand finger, etc. The only way to combat that is to declare your own cursors, in which you would hide the normal cursors with the above code, and then add your own.

    If you haven't done that in your movie, then there is no handCursor to hide.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by BLiZZaRD
    Just use this instead:

    Code:
    Mouse.hide();
    _root.onMouseUp = function(){Mouse.hide()};
    Now, technically you can just use:

    Code:
    Mouse.hide();
    All works well, but if the user right-clicks it will bring up the Flash menu, and the cursor will appear and stay there. by making a mouse up function it will hide it again.

    Also note your code is turning off the handCursor, which is not am implimented state of Flash, meaning the cursor will default to the OS items for Mouse behavior. Those people that have novelty cursors will see those instead of the hand finger, etc. The only way to combat that is to declare your own cursors, in which you would hide the normal cursors with the above code, and then add your own.

    If you haven't done that in your movie, then there is no handCursor to hide.
    Hey Blizzard I wasn't clear on my post I wanted to stop the hand from showing up... I got it to work finally but was hoping someone could explaing to me why the second code works but the first doesn't... Technically aren't they both the same?

    Hmmm got it to work guys but I still don't get it! Hopefully one of you can shed some light... I changed
    Code:
    this.onRollover = function()
    {
    	cover.useHandCursor=false;
    	}
    }
    to
    Code:
    this.onRollover = function()
    {
    	this.useHandCursor=false;
    	}
    }
    But shouldn't both work???

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    You would think they would work both of them. But Flash 8 made some dynamic changes to thier parent/child structures and the applications of such.

    More and more developers were moving to _parent instead of _root. which explains the transition, but not the outcome.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

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