Scena=Scena 1, Livello=Livello 1, Fotogramma=1:Linea 18: I gestori onClipEvent non possono essere nidificati in altri gestori onClipEvent
onClipEvent (mouseDown) {
vuol dire che nopn puoi inserire una azione onClipEvent all'interno di un'altra..come facevi qui
codice:
onClipEvent (mouseMove) {
if (!premuto) {
if (this.hitTest(_root._xmouse, _root._ymouse, false) && !aperto) {
if (_currentframe>(_totalframes/2)) {
gotoAndPlay(_totalframes-_currentframe);
} else {
play ();
}
aperto = true;
} else if (!this.hitTest(_root._xmouse, _root._ymouse, false) && aperto) {
if (_currentFrame<(_totalFrames/2)) {
gotoAndPlay(_totalframes-_currentframe);
} else {
play ();
}
aperto = false;
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
gotoAndStop (11);
_root.comandi(_parent._name);
premuto = true;
}
}
questo e' cio' da mettere:
codice:
onClipEvent (mouseMove) {
if (!premuto) {
if (this.hitTest(_root._xmouse, _root._ymouse, false) && !aperto) {
if (_currentframe>(_totalframes/2)) {
gotoAndPlay(_totalframes-_currentframe);
} else {
play ();
}
aperto = true;
} else if (!this.hitTest(_root._xmouse, _root._ymouse, false) && aperto) {
if (_currentFrame<(_totalFrames/2)) {
gotoAndPlay(_totalframes-_currentframe);
} else {
play ();
}
aperto = false;
}
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
gotoAndStop (11);
_root.comandi(this._name);
premuto = true;
}
}