Flixel Forums

development => chat => Topic started by: ashutosh sharma on Sat, Sep 20, 2014

Title: How to Enable or Disable a FlxButton?
Post by: ashutosh sharma 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?
Title: Re: How to Enable or Disable a FlxButton?
Post by: Gama11 on Sat, Sep 20, 2014
Depends on what exactly you mean by "disabled", but button.active = false; might do the trick.