Visualizzazione dei risultati da 1 a 3 su 3

Discussione: suono(mx)

  1. #1

    suono(mx)

    Ho messo questo codice per caricare un suono esterno,il tutto funziona ma poi il filmato si blocca al secondo fotogramma del filmato principale e non va oltre. Come fare?
    grazie



    onClipEvent (load) {
    _root.stop();
    barra2._visible = false;
    testo1 = "caricamento filmato";
    main = true;
    }
    onClipEvent (enterFrame) {
    if (main) {
    car = _root.getBytesLoaded();
    tot = _root.getBytesTotal();
    perc = parseInt((car/tot)*100);
    percent1 = perc+"%";
    barra1._xscale = perc;
    if (car == tot) {
    loadMovieNum("clip-musica.swf", 1);
    main = false;
    Sound = true;
    barra2._visible = true;
    testo2 = "caricamento musica";
    }
    }
    if (sound) {
    car = _level1.getBytesLoaded();
    tot = _level1.getBytesTotal();
    perc = parseInt((car/tot)*100);
    if (car != undefined) {
    percent2 = perc+"%";
    barra2._xscale = perc;
    if (car == tot) {
    _level1.musica.start(0, 999);
    _root.nextFrame();
    }
    }
    }
    }

  2. #2
    Utente di HTML.it L'avatar di tigerjack
    Registrato dal
    Aug 2003
    Messaggi
    1,661

    Re: suono(mx)

    Originariamente inviato da eurydix
    Ho messo questo codice per caricare un suono esterno,il tutto funziona ma poi il filmato si blocca al secondo fotogramma del filmato principale e non va oltre. Come fare?
    grazie



    onClipEvent (load) {
    _root.stop();
    barra2._visible = false;
    testo1 = "caricamento filmato";
    main = true;
    }
    onClipEvent (enterFrame) {
    if (main) {
    car = _root.getBytesLoaded();
    tot = _root.getBytesTotal();
    perc = parseInt((car/tot)*100);
    percent1 = perc+"%";
    barra1._xscale = perc;
    if (car == tot) {
    loadMovieNum("clip-musica.swf", 1);
    main = false;
    Sound = true;
    barra2._visible = true;
    testo2 = "caricamento musica";
    }
    }
    if (sound) {
    car = _level1.getBytesLoaded();
    tot = _level1.getBytesTotal();
    perc = parseInt((car/tot)*100);
    if (car != undefined) {
    percent2 = perc+"%";
    barra2._xscale = perc;
    if (car == tot) {
    _level1.musica.start(0, 999);
    _root.play();
    }
    }
    }
    }

    così, hai provato?


    tiger
    figlio perso e MAI ritrovato....?

  3. #3
    ho risolto grazie

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.