Author Topic: How to Enable or Disable a FlxButton?  (Read 1267 times)

ashutosh sharma

  • New Member
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
How to Enable or Disable a FlxButton?
« on: Sat, Sep 20, 2014 »
Hi Everyone...

I have a very simple question.. How can I disable or enable a FlxButton in FlxState as required in my game?

Gama11

  • Contributor
  • ****
  • Posts: 390
  • Karma: +0/-0
    • View Profile
Re: How to Enable or Disable a FlxButton?
« Reply #1 on: Sat, Sep 20, 2014 »
Depends on what exactly you mean by "disabled", but button.active = false; might do the trick.