Visualizzazione dei risultati da 1 a 3 su 3

Discussione: Controllo su menu

  1. #1

    Controllo su menu

    ciao a tutti

    codice:
    onClipEvent (enterFrame) {
    	var initialY = 0;
    	var bottomX = -188.3;
    	var upperX = -88.5;
    	var currentY = this._y;
    	var speed = 10;
    	var mouseY = _root.menu._ymouse;
    	if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
    	} else if (!this.hitTest(_root._xmouse, _root._ymouse, true)) {
    		if (currentY>=initialX) {
    			this._y = currentY-(currentY/speed);
    		}
    	}
    }
    tutto ok per ora, ma mi serve un controllo che fermi lo spostamento _y se clip._y raggiunge una certa posizione
    ho provato con

    onClipEvent (enterFrame) {
    var initialY = 0;
    var bottomX = -188.3;
    var upperX = -88.5;
    var currentY = this._y;
    var speed = 10;
    var mouseY = _root.menu._ymouse;

    if (this._y >= -185 && this._y <= -85){

    if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
    } else if (!this.hitTest(_root._xmouse, _root._ymouse, true)) {
    if (currentY>=initialX) {
    this._y = currentY-(currentY/speed);
    }
    }
    }

    }

    ma non sembra funzionare..

    insomma, help.Se volete il fla lo uppo volentieri

  2. #2
    Utente di HTML.it L'avatar di and80
    Registrato dal
    Mar 2003
    Messaggi
    15,182
    l'enterFrame scritto in quel modo non si può bloccare

    Look here

  3. #3
    quindi? scrivere in frame e controllare mc da una funzione potrebbe andare?

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.