Skip navigation
jps2008
Currently Being Moderated

I need button help...

Sep 9, 2007 7:59 PM

I'm trying to set up something with multiple buttons on it. When these buttons are clicked lines will appear on the screen. I went through the process of making the buttons and I drew the lines in the hit frame of the button, but when I test it nothing happens when I click it.
  • Currently Being Moderated
    Community Member
    Sep 10, 2007 2:19 AM
    The hit state within the button's is only the 'live' clickable area and is not actually shown on the stage. You need to trigger a movieclip to run using an onRelease event handler for the buttons. Something like (in AS2.0):

    linesMovieclip._visible = false;
    mybutton.onRelease = function(){
    linesMovieclip._visible = true;
    }

    Then have your lines within the linesMovieclip element.

    Hope this helps.
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points