We Recommend

Essential ActionScript 3.0 Essential ActionScript 3.0
The book focuses on the core language and object-oriented programming, but also adds a deep look at the centerpiece of Flash Player's new API: display programming. Enjoy hundreds of brand new pages covering exciting new language features, such as the DOM-based event architecture, E4X, and namespaces--all brimming with real-world sample code.


Posted By

zeman on 07/21/08


Tagged

textmate flv video audio as3 volume


Versions (?)


Adjust Volume on FLV Video


Published in: ActionScript 3 


  1. var st:SoundTransform = new SoundTransform();
  2. st.volume = 1;
  3. stream.soundTransform = st;
  4.  
  5. function mute(e:MouseEvent):void {
  6. st.volume = 0;
  7. stream.soundTransform = st; // must reconnect after each volume change
  8. }

Report this snippet 

You need to login to post a comment.