Hi, this is hopefully a straightforward thing… I’m a beginner, so I’m unclear about how to set up variables. I prefer to play sounds from my library using linkage, so can anyone please tell me how to pass an array of sounds into the SoundChannel, so that I can stop them all at once?
It’s for a ‘toggle voiceover’ button, so perhaps better to use Sound transform to mute the Sound Array. Any ideas?
This is what I have so far. (Page1 etc is my linkage sound name)
var GlobalVoice:Array = ["Page1", "Page2", "Page3"];
var Globalchannel:SoundChannel = new SoundChannel();
GlobalVoice = Globalchannel;
var transformVoice:SoundTransform=new SoundTransform();
transformVoice.volume=0;
Globalchannel.soundTransform=transformVoice;
The problem is Line 3, which I’m just guessing at, in order to pass a Sound Array into the SoundChannel, but it doesn’t work…
Thanks!