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

    aiuto per uno SCROLL di una Gallery

    Salve, sono una principiante, però ho scaricato una Gallery Xml fatta in Flash e me la sono adattata per dimensioni alla table del mio sito.... certo, tutto ok, solo che lo scrollBar non scrolla fino in fondo. Ho visto che sul frame dello scroll cìè un codice bello lungo, ho provato a metterci le mani ma non va cmq. DAte un'occhiata al sito in questione e se serve vi giro il codice. Rispondetemi x favore. Grazie Lucy

    http://www.grafiti.it/porz_gallery.htm

  2. #2
    credo che tu abbia allungato tutto mc rimanendo l'ogetto scroll e la maschera dell scroll più piccoli e non riconosce le nuove dimensioni...

  3. #3
    edco come appare il mio stage in flash. Il profilo azzurro è la maschera. Non mi pare che esca.....
    Immagini allegate Immagini allegate

  4. #4
    inoltre questo è il codice che c'è sullo scroll.....

    stop();
    #include "tween.as"
    #include "xml.as"
    categoriasito = 0;
    rollcolor = "0x00CC00";
    init();
    //MASK
    this.setMask(maschera);
    //SOUND
    var suonoroll:Sound = new Sound();
    suonoroll.attachSound("roll");
    var suonoclick:Sound = new Sound();
    suonoclick.attachSound("click");
    //FADE
    this._alpha = 0;
    this.alphaTo(100,2);

  5. #5
    NO, è questo il codice sullo scroll:

    function scrollUpdate() {
    var my_mc = this._parent.my_mc;
    if (my_mc._height<this.bg._height) {
    this._visible = false;
    } else {
    this._visible = true;
    }
    var pxls_cont = my_mc._height-this.bg._height;
    var pxls_scroll = this.bg._height-this.barra._height;
    var alfa = pxls_cont/pxls_scroll;
    var vel = 2;
    var desty = -this.barra._y*alfa+this.hxini;
    desty = Math.floor(desty);
    my_mc._y = Math.floor((my_mc._y*vel+desty)/(vel+1));
    }
    function startScrool() {
    yfin = this._parent.bg._height-this._height;
    this.startDrag("", this._x, 0, this._x, yfin);
    }
    function stopScroll() {
    this.stopDrag();
    }
    function moveScroll(dir) {
    if (dir == "stop") {
    delete controlla["onEnterFrame"];
    } else {
    var barra = this.barra;
    var vel = 4;
    if (dir == "top") {
    var lim = 0;
    vel = vel*-1;
    } else {
    var lim = this.bg._height-barra._height;
    }
    }
    controlla.onEnterFrame = function() {
    if (dir == "foot") {
    if (barra._y+vel<lim) {
    barra._y = barra._y+vel;
    } else {
    barra._y = lim;
    }
    } else if (barra._y+vel>lim) {
    barra._y = barra._y+vel;
    } else {
    barra._y = lim;
    }
    };
    }
    this.hxini = this._parent.my_mc._y;
    this.onEnterFrame = scrollUpdate;
    this.barra.onPress = startScrool;
    this.barra.onRelease = stopScroll;
    this.barra.onReleaseOutside = stopScroll;
    this.createEmptyMovieClip("controlla", 100);
    sup.onPress = function() {
    moveScroll("top");
    };
    sup.onRelease = inf.onRelease=function () {
    moveScroll("stop");
    };
    inf.onPress = function() {
    moveScroll("foot");
    };
    inf.onRelease = function() {
    moveScroll("stop");
    };
    barra.useHandCursor = false;
    barra._alpha = 100;
    sup.useHandCursor = false;
    inf.useHandCursor = false;
    barra.onRollOver = function() {
    barra.alphaTo(100, 2);
    };
    barra.onRollOut = function() {
    barra.alphaTo(100, 2);
    };
    sup = barra._y+38;
    mouseListener = new Object();
    mouseListener.onMouseWheel = function(delta) {
    if (meuScroll._visible) {
    return;
    }
    if (barra._y<=sup && delta>0 || barra._y>=yfin && delta<0) {
    return;
    } else {
    barra._y -= delta*6;
    drag();
    }
    };
    Mouse.addListener(mouseListener);

  6. #6
    Utente bannato
    Registrato dal
    Jan 2009
    Messaggi
    713

    ciao... ti stanno bene i baffi!!

    non ce l'hai il fla di questo esempio?

    prova a modificare sta riga

    Codice PHP:
    sup barra._y+38
    metti un valore superiore... tipo 138 e vedi che succede

    ciao
    by max

  7. #7
    provato... il risultato è sempre lo stesso... se mi dai l a mail ti invio il fla con le foto allegate, non so che dire. Eh si che son sicura che è una stupidata.

  8. #8
    Utente bannato
    Registrato dal
    Jan 2009
    Messaggi
    713

    l'email la ved in basso nella mia firma


  9. #9
    Utente bannato
    Registrato dal
    Jan 2009
    Messaggi
    713

    purtroppo non riesco ad aprire il tuo fla

    abbiamo versioni di flash differenti
    come puoi leggere nella firma io usa flash mx 7.2
    se hai flash 8 puoi salvare il tuo fla in mx

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.