I have a file with one main mc called "clip" that contains 9 different embedded audio tracks (all inside their own separate mc) on the first keyframe. They span the entire length of the mc - 10 frames in this case.
Essentially what this does is creates a full song with 9 separate tracks that I want to mute (and unmute) when I arrive at a specific keyframe.
I am using a slider (called "aSlider") on the main timeline to navigate between the keyframes.
Everything starts out muted and as we progress, tracks are unmuted and the song starts to build. It is working great right now in that direction. However, if I move the slider backwards, it seems to be re-creating the audio clips so that I am overlaying more and more audio on top of each other.. which is quite the mess.
Here's the AS for the slider.
aSlider.width = 324;
aSlider.maximum = mc.totalFrames;
mc.frameTxt.text = aSlider.value;
I did not tested the below code, but give it a try
//on First Frame
var arr:Array=new Array(piano,violin,cello,drums,bass,electro,voice,synth,guitarra);
//other frames just call the function like