# How to control audio of embedded FLV?

**URL:** <https://forum.kirupa.com/t/how-to-control-audio-of-embedded-flv/257059>\
**Category:** flash\
**Created:** [April 9, 2008, 9:02pm UTC](https://forum.kirupa.com/t/how-to-control-audio-of-embedded-flv/257059 "2008-04-09T21:02:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikhil\_Pasricha](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@Nikhil\_Pasricha](https://forum.kirupa.com/u/Nikhil_Pasricha)\
**Post date:** [April 9, 2008, 9:02pm UTC](https://forum.kirupa.com/t/how-to-control-audio-of-embedded-flv/257059/1 "2008-04-09T21:02:06Z")

</div>

Hi,

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.

This is my main function to attach FLV audio track from library:

```auto
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:

```auto
 
Intro_attachedSounds("audio_FR_intro");

```

**[COLOR=black]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?[/COLOR]**

Thanks & regards,  
Nikhil.
