FORUMS: list search recent posts

AS3 - Muted Audio Not Muted

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Anthony Proctor
AS3 - Muted Audio Not Muted
on Dec 28, 2011 at 9:06:23 pm

Hi all, and thanks for reading...

This one's a head scratcher. I have a video for which I'd like to mute the audio. Long story, but the client wants a song to play while the video loops. Anyway, here's my code. For some reason, the audio on the video is still playing (albeit at a lower level than if I set the volume to 1). Am I missing something?


stop();

vidOpen.source = "video/clientVid.flv";
vidOpen.volume = 0;

import fl.video.*;

Thanks!

--Ant.

Carpe vacca...


Return to posts index

Ed Vizenor
Re: AS3 - Muted Audio Not Muted
on Jan 4, 2012 at 8:30:30 pm

I put this together for you my friend. I hope it helps.

http://edvizenor.com/?p=news&id=08

Please see this link as I posted some FLA files for you to test it.
It works great! Best to you in 2012!


:)

-Ed Vizenor

import fl.video.*;

var myVideo:FLVPlayback = new FLVPlayback();
myVideo.source = "Beau.flv";
addChild(myVideo);


myVideo.addEventListener(ProgressEvent.PROGRESS, progressListener);
function progressListener (e:ProgressEvent):void{
myVideo.play();
myVideo.volume = 0;
trace("Jesus is Lord!");

//// to change the size :)
myVideo.width = 480;
myVideo.height = 854;
}
myVideo.addEventListener(Event.COMPLETE, startListener);
function startListener (e:Event):void{
myVideo.play();
}


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]