Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing audio from an FLV before Import 1

Status
Not open for further replies.

tfhwargt3

Programmer
Sep 19, 2006
61
US
I know that there is an attachAudio() function, and I have searched the forum for people who have a similar question, but what I want to do is detach the audio from the FLV's I am importing so that they import faster because they are smaller. And even if it doesn't effect load time or anything, I still don't any sound unless I specifically say so. Is there an easy way to do this?

Thanks
 
I want to turn off the sound from the FLV's so I can later add background music of my own. Sorry i didn't clarify that in the first post.
 
Thank you BillWatson for your very informative post. I had already read the livedocs page and it was helpful at first. However, I have run into the problem that the audio will not actually stop from loading, but only that you can lower the volume by doing setVolume() to 0. Which i guess accomplishes what i want, but I have that feeling that the audio is still using up bandwidth here. What I want to do is use something like this:

my_ns.play("video1.flv");
this.createEmptyMovieClip("flv_mc", this.getNextHighestDepth());
flv_mc.attachAudio(false);
var audio_sound:Sound = new Sound(flv_mc);

This way when I use false as the input for attachAudio it doesn't attach anything. however, the audio keeps showing up even though I am attaching just like it says on the livedocs.
 
could be wrong but i think that setting volume to 0 is all that can be done unless you have some software to strip out the audio from the flv

never tried to do that my clients always want the audio

 
it says in the livedocs here


that

"id:Object - The object that contains the audio to play. Valid values are a Microphone object, a NetStream object that is playing an FLV file, and false (stops playing the audio)."

But it isn't working for some reason... weird.
 
Oh wow, i'm sorry for everyone who was viewing this thread. I had a repeated variable later in the scope and it wasn't changing even though I attached audio (false). Sorry guys. It works perfect now. Thanks Bill for your help as well.

So for clarification for anyone who wants to use false with attachAudio() do it just like this:

netStream.play("yourVideo.flv");
this.createEmptyMovieClip("flv_mc", this.getNextHighestDepth());
flv_mc.attachAudio(false);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top