Posted By

adrianparr on 04/19/10


Tagged

flv as3 volume netconnection netstream soundtransform


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

Nikolai
tspitzr
dubogii


AS3 Change / set volume on NetStream object (FLV playback)


 / Published in: ActionScript 3
 

URL: http://blog.open-design.be/2009/04/18/change-set-volume-on-netstream-object-flv-playback/

Thanks to Thomas John for this code.

  1. var nc = new NetConnection();
  2. nc.connect(null);
  3. var ns:NetStream = new NetStream(nc);
  4. // change "1" to whatever you need the volume to be changed to
  5. ns.soundTransform = new SoundTransform(1);

Report this snippet  

You need to login to post a comment.