(ActionScript) Adjust Volume on FLV Video

// Adjust Volume on FLV Video

var st:SoundTransform = new SoundTransform();

st.volume = 1;

stream.soundTransform = st; 

function mute(e:MouseEvent):void {

st.volume = 0;

stream.soundTransform = st; // must reconnect after each volume change

}

Go to Source

This entry was posted in ActionScript and tagged , , , , , , , , , , , . Bookmark the permalink. Trackbacks are closed, but you can post a comment.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Why ask?