7 Replies Latest reply on Feb 17, 2011 9:30 AM by kglad

    AS3: Adjusting volume with SoundChannel

      hey again everybody :D

      AS2 -> AS3 migration: doncha just love it?!

      have a look at the attached code. selection one makes us a new sound and gets it playting, great. then we need to adjust the volume so we read in the help files that:

      You can alter the volume and panning while a sound is playing by setting the pan or volume properties of a SoundTransform object and then applying that object as the soundTransform property of a SoundChannel object.

      great, so selection 2 in code below should do that, right?

      uh, sadly no, we have to do selection 3 which works but feels bad, so bad, so hacky

      how can i improve this everybody? :)