Ciao a tutti!
Ho creato, con un tutorial di flash-mx.it, un effetto fade in sul suono del mio filmato. Ho usato questo codice:
onClipEvent (load) {
m = new Sound(this);
m.attachSound("loop");
vol = 100;
m.setVolume(0);
m.start(0, 999);
}
onClipEvent (enterFrame) {
s = m.getVolume();
if (s == vol) return
m.setVolume(s-((vol<s) ? 1 : -1));
}