1 Reply Latest reply on Oct 15, 2009 10:26 PM by David_F57

    Best way to add interface sound FX?

    Handycam Level 1

      I need to add some short sound effect to some of my interace elements (e.g. button clicks).

       

      In the past, I've done this:

      [Embed('assets/correct_sound.mp3')]
      private var foundAll_snd:Class;
      private var foundAll_sfx:SoundAsset = new foundAll_snd() as SoundAsset;
      
      ...
      foundAll_sfx.play();
      

      Which works, but I noticed the app hangs the first time the sound is used.

       

      Is there a better way?