questo su un bottone :gren:
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (!aperto) {
_root.chiudi(this._name);
this.gotoAndStop(2);
aperto = true;
conta = false;
}
} else {
if (aperto) {
inizio = getTimer();
aperto = false;
conta = true;
}
}
}
onClipEvent (enterFrame) {
if (conta && getTimer()-inizio>500) {
this.gotoAndStop(1);
conta = false;
}
}

Rispondi quotando