3 Replies Latest reply on Jan 25, 2013 11:47 AM by kglad

    How do I make a sound play once the .swf starts?

    Tariq Bin Muhummad

      I have loaded 'Audio.wav' onto the Library, and given it a linkage name of 'Speedcore' without the apostrophes. I ticked the boxes 'Export for ActionScript' and 'Export in First Frame'.

      I want it to start once the .swf begins. I set Audio to Stream.

       

      This is a code I found but doesn't work

       

      var mySound:Sound= new Sound(); mySound.loadSound("Speedcore" , true); mySound.onLoad = function() { mySound.start(); }

       

      Help? =)