Visualizzazione dei risultati da 1 a 4 su 4
  1. #1

    [MX]codice non funzionante.. onclipevent

    Ho preso questo pezzo di codice da una guida di flash.html.it.. ma mi da errore dicendo che non posso mettere un onclipevent in un'altro..

    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;
    }
    }
    | ACER 290 LCi | Pocket PC e750 | AudioVox Tri-Band GSM/GPRS CF Card RTM 8000 |

  2. #2
    ti sei perso una parentesi
    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;
    	}
    }

  3. #3
    grazie.. ..

    | ACER 290 LCi | Pocket PC e750 | AudioVox Tri-Band GSM/GPRS CF Card RTM 8000 |

  4. #4

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.