Visualizzazione dei risultati da 1 a 4 su 4

Discussione: percorsi

  1. #1

    Per Negatyve

    Ciao sto impazzendo. Non riesco a far funzionare una cosa, si tratta del solito problema dei path relativi. Avrei bisogno di inviarti i due clip che ho fatto per farteli verficare. Mi aiuteresti per favore?
    Nicola

  2. #2
    Utente di HTML.it L'avatar di negatyve
    Registrato dal
    Feb 2001
    Messaggi
    9,479
    Manda, ma spiegami bene il tutto...

  3. #3

    Per Negatyve

    Ritorno sul solito problema di path relativi per chiamate fatte da mc caricati all'interno di altri mc.
    Il mio problema e' questo.
    Ho un MOVIE PRINCIPALE nel quale ho messo un clip vuoto (chiamato MONITOR) in cui tramite LOADMOVIE carico un altro movie che si chiama SECONDO.swf.
    SECONDO.SWF è fatto così:
    primo frame:
    setProperty("_root.lista", _y, "300");
    target = 140;
    secondo frame:
    diffpos = target-_root.lista._y;
    _root.lista._y += diffpos/5;
    if (Math.abs(diffpos)<1) {
    _root.lista._y = target;
    // altezza superiore ed inferiore
    } else if (_root.target>140) {
    _root.target = 140;
    } else if (_root.target<-210) {
    _root.target = -210;
    }
    terzo frame:
    gotoAndPlay(2);
    decimo frame:
    stop();

    In SECONDO.SWF ho anche un clip che si chiama LISTA e due clip che si chiamano SU e GIU per scorrere LISTA in altro e in basso.
    I due pulsanti hanno il seguente codice associato:

    Il tasto SU:

    onClipEvent (mouseDown) {
    if (this.hitTest(_root._xmouse, _root._ymouse)) {
    scrollup = true;
    }
    }
    onClipEvent (mouseUp) {
    scrollup = false;
    }
    onClipEvent (enterFrame) {
    if (scrollup & _root.lista._y<>150) {
    _root.target +=20;
    } else if ((Key.isDown(Key.UP) == true)) {
    _root.target +=20;
    }
    }


    Il tasto GIU:

    nClipEvent (mouseDown) {
    if (this.hitTest(_root._xmouse, _root._ymouse)) {
    scrolldown = true;
    }
    }
    onClipEvent (mouseUp) {
    scrolldown = false;
    }
    onClipEvent (enterFrame) {
    if (scrolldown) {
    _root.target -=20;
    } else if ((Key.isDown(Key.DOWN) == true)) {
    _root.target -=20;
    }
    }

    Non riesco ad adattare questo script in modo che funzioni all'interno di MONITOR ossia il clip vuoto del mio primo filmato che si carica SECONDO.SWF.
    Potresti per favore indicarmi i path corretti?
    Grazie

  4. #4
    Utente di HTML.it L'avatar di negatyve
    Registrato dal
    Feb 2001
    Messaggi
    9,479
    codice:
    setProperty("this.lista", _y, "300"); 
    target = 140;
    secondo frame:

    codice:
    diffpos = target-this.lista._y; 
    this.lista._y += diffpos/5; 
    if (Math.abs(diffpos)<1) { 
    	this.lista._y = target; 
    	// altezza superiore ed inferiore 
    } else if (this.target>140) { 
    	this.target = 140; 
    } else if (this.target<-210) { 
    	this.target = -210; 
    }
    terzo frame:

    codice:
    gotoAndPlay(2);
    decimo frame:

    codice:
    stop();

    Il tasto SU:

    codice:
    onClipEvent (mouseDown) { 
    	if (this.hitTest(_root._xmouse, _root._ymouse)) { 
    		scrollup = true; 
    	} 
    } 
    onClipEvent (mouseUp) { 
    	scrollup = false; 
    } 
    onClipEvent (enterFrame) { 
    	if (scrollup & _parent.lista._y<>150) { 
    		_parent.target +=20; 
    	} else if ((Key.isDown(Key.UP) == true)) { 
    		_parent.target +=20; 
    	} 
    }

    Il tasto GIU:

    codice:
    onClipEvent (mouseDown) { 
    	if (this.hitTest(_root._xmouse, _root._ymouse)) { 
    		scrolldown = true; 
    	} 
    } 
    onClipEvent (mouseUp) { 
    	scrolldown = false; 
    } 
    onClipEvent (enterFrame) { 
    	if (scrolldown) { 
    		_parent.target -=20; 
    	} else if ((Key.isDown(Key.DOWN) == true)) { 
    		_parent.target -=20; 
    	} 
    }

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.