flash Q

Out of context: Reply #9

  • Started
  • Last post
  • 10 Responses
  • davi-t0

    You have to give the buttons an instance name first. Then use the property 'enabled' to enable/disable the button (the same as turning off hit state). The 'enabled' property has a boolean value (meaning, its either true or false).
    So lets say button 1 is called "btn1'. You would write:

    btn1.enabled = true;
    //--> This makes the button active

    btn1.enabled = false;
    //--> This makes the button inactive (ie. code doesn't work, no hand cursor on rollover etc).

    -davi-t

View thread