Question : Controlling audio in embedded FLVs

Im creating a microsite which loads external SWFs with embedded FLVs in their timeline (each SWF has its own preloader). To control their audio (mute/unmute buttun), I have encoded & imported the FLVs & their audio tracks seperately in the SWFs. I'm controlling the audio tracks by attached them from library through the sound object.

Issue:
The FLV & audio run synced when I play them together in timeline. But they go off-sync when I play the audio though AS, rest assured that FLV & SWF have the same fps. I have even tried encoding the FLV at both the source video fps & SWF fps.

Is there any other way to control the audio (mute/unmute), considering that the preloader should load both the FLV & its audio before they start to play?
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
This is my main function to attach FLV audio track from library:
var IntroMovieInstance:MovieClip = this.createEmptyMovieClip("IntroMovie", this.getNextHighestDepth());
var Intro_Sound:Sound = new Sound(IntroMovieInstance);
function Intro_attachedSounds(IntrolinkageName:String) {
    Intro_Sound.attachSound(IntrolinkageName);
    Intro_Sound.start();
}
 
This is the above function's call when the FLV video starts:
Intro_attachedSounds("audio_FR_intro");
Open in New Window Select All

Answer : Controlling audio in embedded FLVs

in first frame:
var soundControl = new Sound();

soundControl.setVolume()
soundControl.setPan()

is that what you wanted?
Random Solutions  
 
programming4us programming4us