A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Button with no pointer

  1. #1
    Member
    Join Date
    May 2003
    Location
    @ work
    Posts
    45

    Button with no pointer

    Dear Flashers,

    Is there a way to make a button with no mouse pointer?

    It's for a MC that's on top of allot of buttons. I don't want the user to press these buttons when he's navigating in the MC. In the past I used a function to move the maintimeline 1 frame ahead to a frame with no buttons, but now I can't do that anymore becouse it messes up the draggable movieclip interface.

    I think it's a very common problem with flash, so maybe there are other solutions?

    Kind regards,
    Blackdoor

    p.s. Excuse my Englisch, I'm Dutch

  2. #2
    Senior Member
    Join Date
    Oct 2004
    Posts
    2,049
    do you mean the handcursor??? if so try this

    Button.prototype.useHandCursor = false;

  3. #3
    Member
    Join Date
    May 2003
    Location
    @ work
    Posts
    45
    Yes, sorry if I wasn't clear on that.

    Is this the way to do it?

    on (rollOver) {
    Button.prototype.useHandCursor = false;
    }
    on (rollOut) {
    Button.prototype.useHandCursor = true;
    }

    yes It works like a charm! Thanks, Wattsup you've saved me allot of work!

    Kind regards,
    Blackdoor
    Last edited by Blackdoor; 01-10-2006 at 04:25 AM.

  4. #4
    Junior Member scudsucker's Avatar
    Join Date
    Feb 2003
    Location
    Cape Town, RSA
    Posts
    1,509
    Button.prototype.useHandCursor = false will disable all button's handcursors. If you want to target a specific button, try giving it an instance name, then in the timeline,
    code:

    myButton.useHandCursor = false;

    Hariyemadzisawira nhaka yedu! Down the SCUD and win!
    I'm too lazy to read Private Messages.

  5. #5
    Member
    Join Date
    May 2003
    Location
    @ work
    Posts
    45
    Even better, thanks Scudsucker

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