Visualizzazione dei risultati da 1 a 4 su 4

Discussione: Problema immagine

  1. #1
    Utente di HTML.it
    Registrato dal
    Nov 2004
    Messaggi
    1,627

    Problema immagine

    Ciao a tutti
    ho un sito in flash e xml, il quale visualizza delle gallerie con dei dati provenienti dà un file xml.

    Mi funziona tutto quanto con il solo problema legato al fatto che quando cambio galleria, mi fà visualizzare (in automatico) come prima immagine della nuova galleria l'ultima immagine vista nella galleria precedente, è come se mi rimanesse in cache l'immagine.
    Se poi passo però alla seconda immagine e poi riotrno alla prima visualizzo quella corretta...da cosa può essere dato???...ho provato con vari browser ma ho sempre questo problema.

    Graciess

  2. #2
    Utente di HTML.it
    Registrato dal
    May 2006
    Messaggi
    170
    Bhe.
    Intanto è una galleria open source o l'hai scritta tu? Come funziona il codice? Scrivi il codice che fa il load delle immagini. Nessuno penso possa aiutarti non hai dato nessuna indicazione. C'è bisogno di + dettagli . CIao.

  3. #3
    Utente di HTML.it
    Registrato dal
    Nov 2004
    Messaggi
    1,627
    hai ragione!
    allora il codice non l'ho scritto io, e appunto per questo mi trovo in difficoltà.
    Non ho proprio idea di quale parte del codice .
    C'è un file index che carica i vari file xml (lingua, menu, e poi le varie voci), il problema è che appunto non capisco quale parte del codice carichi le immagini.

    penso sia questo

    _atchImgFnc = function ()
    {
    if (_root.p == 45)
    {
    this.attachMovie("_scrlImgMC", "_scrlImgMC", this.getNextHighestDepth());
    _scrlImgMC._x = 235;
    _scrlImgMC._y = 32;
    }
    else if (_root.p == 35)
    {
    this.attachMovie("_nmbImgMC", "_nmbImgMC", this.getNextHighestDepth());
    _nmbImgMC._x = 235;
    _nmbImgMC._y = 32;
    } // end else if
    };
    _txt = _parent._xml.firstChild.childNodes[0].attributes.head;
    _txtT.autoSize = true;
    this.createEmptyMovieClip("_txt1MC", this.getNextHighestDepth());
    this.createEmptyMovieClip("_txt2MC", this.getNextHighestDepth());
    _topFnc = function (_txt1, _txt2)
    {
    _nmbImgMC.gotoAndPlay(2);
    _scrlImgMC._imgMC.btn.enabled = false;
    _scrlImgMC._imgMC.tween("_alpha", 0, 5.000000E-001, Elastic.easeOut, 0, function ()
    {
    _scrlImgMC._imgMC._alpha = 100;
    _scrlImgMC._imgMC.gotoAndPlay(2);
    });
    _topHMC._txt = "";
    _topHMC._txtx = "";
    var q = 0;
    _txt1MC.onEnterFrame = function ()
    {
    if (q < _txt1.length)
    {
    _topHMC._txt = _txt1.substring(0, q);
    _topHMC._txtT.autoSize = true;
    q = q + 1;
    }
    else
    {
    _topHMC._txt;
    _topHMC._txtT.autoSize = true;
    _txt1MC.onEnterFrame = null;
    } // end else if
    };
    var q2 = 0;
    _txt2MC.onEnterFrame = function ()
    {
    if (q2 < _txt2.length)
    {
    _topHMC._txtx = _txt2.substring(0, q2);
    _topHMC._txtxT.autoSize = true;
    q2 = q2 + 2;
    }
    else
    {
    _topHMC._txtx = _txt2.substring(0, q2);
    _topHMC._txtxT.autoSize = true;
    _txt2MC.onEnterFrame = null;
    } // end else if
    };
    };

  4. #4
    Utente di HTML.it
    Registrato dal
    Nov 2004
    Messaggi
    1,627
    dopo un attento sguardo questo è il codice che visualizza l'immagine in questione
    else if (_root.p == 35)
    {
    this.attachMovie("_nmbImgMC", "_nmbImgMC", this.getNextHighestDepth());
    _nmbImgMC._x = 235;
    _nmbImgMC._y = 32;
    } // end else if
    };
    _txt = _parent._xml.firstChild.childNodes[0].attributes.head;
    _txtT.autoSize = true;
    this.createEmptyMovieClip("_txt1MC", this.getNextHighestDepth());
    this.createEmptyMovieClip("_txt2MC", this.getNextHighestDepth());
    _topFnc = function (_txt1, _txt2)
    {
    _nmbImgMC.gotoAndPlay(2);
    _scrlImgMC._imgMC.btn.enabled = false;
    _scrlImgMC._imgMC.tween("_alpha", 0, 5.000000E-001, Elastic.easeOut, 0, function ()
    {
    _scrlImgMC._imgMC._alpha = 100;
    _scrlImgMC._imgMC.gotoAndPlay(2);
    });
    _topHMC._txt = "";
    _topHMC._txtx = "";
    var q = 0;
    _txt1MC.onEnterFrame = function ()
    {
    if (q < _txt1.length)
    {
    _topHMC._txt = _txt1.substring(0, q);
    _topHMC._txtT.autoSize = true;
    q = q + 1;
    }
    else
    {
    _topHMC._txt;
    _topHMC._txtT.autoSize = true;
    _txt1MC.onEnterFrame = null;
    } // end else if
    };
    var q2 = 0;
    _txt2MC.onEnterFrame = function ()
    {
    if (q2 < _txt2.length)
    {
    _topHMC._txtx = _txt2.substring(0, q2);
    _topHMC._txtxT.autoSize = true;
    q2 = q2 + 2;
    }
    else
    {
    _topHMC._txtx = _txt2.substring(0, q2);
    _topHMC._txtxT.autoSize = true;
    _txt2MC.onEnterFrame = null;
    } // end else if
    };
    };

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.