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

    MX start stop ci sono quasi

    Ciao
    Devo far partire un audio all'avvio del filmato e pilotarlo con start e stop;

    ho scritto queste poche righe (aiutandomi con il manuale MX)

    ma ha un difetto:
    se clicco + volte start parte un nuovo audio sovrapposto a quello già in esecuzione...


    song = new Sound();

    song.attachSound("justdoit.mp3");

    _root.playButton.onRelease = function() {
    song.start();
    };

    _root.stopButton.onRelease = function() {
    song.stop();
    };



    nb
    per far partire l'audio all'avvio ho creato un livello con sopra la traccia audio... forse si può fare direttamente con AS...


    ciaux

  2. #2
    GRAZIE HO RISOLTO COSI' :


    song = new Sound();
    song.attachSound("justdoit.mp3");

    justdoit.mp3.start([0, 1000]);

    _root.playButton.onRelease = function() {

    song.stop();
    song.start();


    };

    _root.stopButton.onRelease = function() {
    song.stop();
    };

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.