PDA

View Full Version : flash 5 buttons - disable them ? any ideas



trevorsaint
September 7th, 2003, 11:43 PM
Does anyone know how to disable buttons in flash five, until i require them

Trev

Digitalosophy
September 8th, 2003, 01:47 AM
not sure if this will work with Flash 5 but:


myButton.enabled = false;


to reenable


myButton.enabled = true;

ericinho
September 8th, 2003, 04:18 AM
easiest way in Flash5 is to put your buttons in a MC. On frame 1 the button (+ stop() ), on frame 2 the disabled state (+ stop() ).

Then onRelease you simply tell this buttonMC to gotoandStop(2) and for example all the others to become active again (so move back to frame1)

Digitalosophy
September 8th, 2003, 10:12 AM
wow so you can't use the enabled function in Flash 5?

claudio
September 10th, 2003, 03:19 PM
In flash 5 buttons cannot have instance names.

Digitalosophy
September 10th, 2003, 04:20 PM
ahh that's right

flash_legend
September 23rd, 2003, 11:47 AM
can you please explain what do you mean by


disable buttons in flash five


so i know what is the story



thanks