PDA

View Full Version : Disable buttons/objects


Trysko23
09-04-2003, 01:00 AM
Is there a way to disable a button after its been click so it can not be clicked again untill you restart the menu? Thanks In advanced

Corey
09-04-2003, 01:04 AM
Sure, use a variable and an IF statement. Generally speaking IF statements work best in situations where you only want an event to occur under a specific set of circumstances, i.e. a button which checks a variable you create such as %buttonState% to see if it's active before firing an attached action.

Here, I built you a sample project which demonstrates this http://www.indigorose.com/temp_web/ifbutton.zip check it out...

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)