Código :
MovieClip.prototype.select = function()
{
this.enabled = false;
this.gotoAndStop("_abrir");
}
MovieClip.prototype.deselect = function()
{
this.enabled = true;
this.gotoAndStop ("_espera");
}
MovieClip.prototype.disable = function()
{
this.enabled = false
this.gotoAndStop ("_cerrar");
}
botongrifo.onRelease = function()
{
if (Number(button) == 2) {
this.disable();
button = 1;
} else {
this.select();
button = 2;
}
}Pretendo que, cuando el botón se pulse una vez haga abra un grifo y cuando se pulse otra vez se cierre. Pero sólo me hace la primera pulsación, es decir, abrir.
Gracias por la atención!

Zguillez