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

    su FX le immagini non si caricano!!

    Ciao a tutti!!

    e scusatemi

    Ho una serie di immagini piccole, al click si apre la rispettiva immagine grande su una mc vuota. Su IE nessun problema ma su FX si inceppa, le immagini grandi non si caricano e non capisco da cosa dipenda.

    Se qualcuno potesse aiutarmi a risolvere il problema!! Io non ci capisco più niente



    Il filmato viene a sua volta caricato in un filmato principale e comunque

    primo frame:

    var urlTmp = _root.linguaSelezionata + ".txt";

    this.createEmptyMovieClip("variabiliTesto", this.getNextHighestDepth());
    loadVariables(urlTmp, variabiliTesto);
    //funzione per controllare lo stato di loading del file di testo
    function checkParamsLoaded() {
    if(variabiliTesto.testoOrigini != undefined){
    clearInterval(param_interval);
    mainTXT.text01.htmlText = variabiliTesto.testoOrigini;
    mainTXT.text02.htmlText = variabiliTesto.didaOrigini0;
    }
    }
    var param_interval:Number = setInterval(checkParamsLoaded, 100);


    bigImg = new Array();
    bigImg[0]="images/Castello/origini/origini04.jpg";
    bigImg[1]="images/Castello/origini/origini06.jpg";
    bigImg[2]="images/Castello/origini/origini07.jpg";
    bigImg[3]="images/Castello/origini/origini02.jpg";
    bigImg[4]="images/Castello/origini/origini01.jpg";
    bigImg[5]="images/Castello/origini/origini05.jpg";
    bigImg[6]="images/Castello/origini/origini03.jpg";

    theImg = new Array();
    theImg[0]="images/Castello/origini/origini04p.jpg";
    theImg[1]="images/Castello/origini/origini06p.jpg";
    theImg[2]="images/Castello/origini/origini07p.jpg";
    theImg[3]="images/Castello/origini/origini02p.jpg";
    theImg[4]="images/Castello/origini/origini01p.jpg";
    theImg[5]="images/Castello/origini/origini05p.jpg";
    theImg[6]="images/Castello/origini/origini03p.jpg";

    // creo il clip che conterrà l'ingrandimento
    this.createEmptyMovieClip("ingrandimento", this.getNextHighestDepth());
    ingrandimento._x = 0;
    ingrandimento._y = 141;
    ingrandimento._alpha = 0;
    ingrandimento._parent.imgGrande.loadMovie(bigImg[0]);
    //
    for (i = 0; i<theImg.length; i++) {
    // creo contenitore icone
    container = this.createEmptyMovieClip("cont"+i, this.getNextHighestDepth());
    container._x += 360+(57*i);
    container._y += 415;
    // dentro il contenitore creo il segnaposto per l'immagine piccola
    thumbnail = container.createEmptyMovieClip("thumbnail", this.getNextHighestDepth());
    thumbnail.loadMovie(theImg[i]);
    // rendo "cliccabile" il movieclip creato
    container.onRelease = function () {
    whatImg = this._name.substr(4,this._name.length);
    this._parent.ingrandimento._parent.imgGrande.loadM ovie(bigImg[whatImg]);
    mainTXT.text02.htmlText = variabiliTesto["didaOrigini"+whatImg];
    }

    }

    sull'mc con nome istanza imgGrande:

    onClipEvent (load){
    _x=0;
    _y=141;
    this._alpha = a;
    a = 0;
    }

    onClipEvent(enterFrame){
    //this._alpha = a;
    car = this.getBytesLoaded();
    tot = this.getBytesTotal();
    perc = Math.round((car/tot)*100);
    _parent.preloader.loadDati = "LOAD IMAGE";
    _parent.preloader.percentuale = perc + "%";
    _parent.preloader.barra._xscale = perc;
    //trace(perc)
    this._xscale = Math.floor(360/this.larg*100);
    this._yscale = Math.floor(240*100/this.alt*100);
    this._width=360;
    this._height=240;

    if(this.getBytesLoaded() == this.getBytesTotal()){
    this._alpha = a;
    _parent.preloader.percentuale._alpha= 0;
    a += 20;
    if (a>=100){
    a = 100;
    }}
    }

  2. #2
    prova con

    if(this.getBytesLoaded() == this.getBytesTotal() && this.getBytesLoaded() > 1024){

  3. #3
    GRAZIEEEEE!!

    funziona anche su FX, ho aggiunto una piccola modifica, le misure le ho dovute assegnare sul load e ho dovuto eliminare il ricalcolo delle misure altrimenti su FX si blocca il caricamento.

    quindi sull'mc:

    onClipEvent (load){
    _x=0;
    _y=141;
    this._alpha = a;
    a = 0;
    this._width=360;
    this._height=240;
    }

    onClipEvent(enterFrame){
    //this._alpha = a;
    car = this.getBytesLoaded();
    tot = this.getBytesTotal();
    perc = Math.round((car/tot)*100);
    _parent.preloader.loadDati = "LOAD IMAGE";
    _parent.preloader.percentuale = perc + "%";
    _parent.preloader.barra._xscale = perc;
    //trace(perc)
    //this._xscale = Math.floor(360/this.larg*100);
    //this._yscale = Math.floor(240*100/this.alt*100);
    //this._width=360;
    //this._height=240;

    if(this.getBytesLoaded() == this.getBytesTotal() && this.getBytesLoaded() > 1024){
    this._alpha = a;
    _parent.preloader.percentuale._alpha= 0;
    a += 20;
    if (a>=100){
    a = 100;
    }}
    }

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.