Change volume of a sound on the timeline via AS3
Hi!
I have several sounds of same length playing on the Timeline, each playing in loop on their own layer so that they can be syncronised on the same tempo (i did not managed to do this through pure AS3).
Is it possible to manipulate the sounds on this timeline individually via actionscript (ie: add listeners, change volume, read position) ?
-Dave
Need to control start & stop of timeline sounds
Unless I missed something you can only use the SoundChannel class when creating your sound via AS3 (not via timeline). However playing multiple files simultaneously in AS3 just doesn't work, the sound aren't in sync together.
I fixed the sync problem by putting one sound on the timeline inside a movieclip for each sound. Then I use another movieclip as a container, where i put one instance of each movieclip on the stage. Now all sound are sync and the volume can be changed via mc.soundTransform.
But I can't control yet when the sounds starts to play (immediatly when the movieclip container is finished loaded). I'd like to be able to decide when to start & stop the sounds.
Any idea?