Question
Control sound in timeline
Hy,
I've some mc called, one a time, with attachMovie named mcTarget, each of
this has one speaker track sincronized with the animation on the stage. For
this reason sound is put directly in timeline in stream mode
(proprieties>>Sincr: stream). But now I cant control the volume of these
sounds. I'll tryed to do this:
//on main root
mySound = new Sound(); //no specify target to refer a "global sound"
function Volume(val){
mySound.setVolume(val);
trace(val);
}
// in another place
Volume(50);
This works only with a sound placed in main root but does nothing if the
sound is placed on a nested mc (my case).
Someone have an idea or a alternative way to do this?
Thanks
Roger
I've some mc called, one a time, with attachMovie named mcTarget, each of
this has one speaker track sincronized with the animation on the stage. For
this reason sound is put directly in timeline in stream mode
(proprieties>>Sincr: stream). But now I cant control the volume of these
sounds. I'll tryed to do this:
//on main root
mySound = new Sound(); //no specify target to refer a "global sound"
function Volume(val){
mySound.setVolume(val);
trace(val);
}
// in another place
Volume(50);
This works only with a sound placed in main root but does nothing if the
sound is placed on a nested mc (my case).
Someone have an idea or a alternative way to do this?
Thanks
Roger