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

    attachSound impossibile

    In riferimento all'articolo pubblicato su flash-mx:
    http://flash-mx.html.it/guide/view_l...dguida=5&id=66

    ho modificato il codice per adattare il tutto al mio filmato che viene caricato da un eseguibile tramite loadMovie con target "mcContenitore".
    Questo è il codice pulito, così come nell'articolo:

    Primo frame sullo stage:
    loop = new Sound(suono);

    sullo slider:
    on (press) {
    _root.vol.slider.startDrag(true, -50, 0, 0, 0);
    }
    on (release) {
    _root.vol.slider.stopDrag();
    x = _root.vol.slider. _x;
    _root.loop.setVolume((x*2)+100);
    }

    Questo è il mio intervento sul codice:

    Primo frame sullo stage:
    mcContenitore.loop = new Sound(suono);

    sullo slider:

    on (press) {
    _root.mcContenitore.vol.slider.startDrag(true, -50, 0, 0, 0);
    }
    on (release) {
    _root.mcContenitore.vol.slider.stopDrag();
    x = _root.vol.slider. _x;
    _root.mcContenitore.loop.setVolume((x*2)+100);
    }

    Ho provato anche con attachSound esportando il file.wav con linkage "music":

    Primo frame sullo stage:
    mcContenitore.loop = new Sound();
    loop.attachSound("music");

    sullo slider:

    on (press) {
    _root.mcContenitore.vol.slider.startDrag(true, -50, 0, 0, 0);
    }
    on (release) {
    _root.mcContenitore.vol.slider.stopDrag();
    x = _root.vol.slider. _x;
    _root.mcContenitore.loop.setVolume((x*2)+100);
    }

    NIENTE DA FAREEEEEEEE!!!
    Help Me!

  2. #2

  3. #3

  4. #4
    magari sbaglio, ma hai provato cosi' [secondo tuo tentativo] ?

    _root.mcContenitore.loop = new Sound();
    _root.mcContenitore.loop.attachSound("music");

    :master:
    Formaldehyde a new Ajax PHP Zero Config Error Debugger

    WebReflection @WebReflection

  5. #5

    si, purtroppo...

    ho provato e non funzica!
    Comunque ho risolto con una extension di flash MX. Mi sono spaccato in due per non so quanto e poi era lì già pronta...
    Grazie lo stesso

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.