3 Replies Latest reply on Feb 17, 2016 8:12 AM by robdillon

    I am trying to play a sound file from the library.It is going to play when the button is pressed. I have the following script: on (press) { var ses:Sound = new Sound();

    cabaka11

      I am trying to play a sound file from the library.It is going to play when the button is pressed. I have the following script:

      on (press) {

      var ses:Sound = new Sound();

      ses.loadSound("Kalimba.mp3", true);

      }

       

      Kalimba.mp3 is a file imported to library. But I always get this error:

       

      Error opening URL 'file:///C/Users/.../Desktop/Kalimba.mp3'

       

      Why do I get this error? Can anyone please help?

       

      Best,

      Cagri Kasap