2 Replies Latest reply on Aug 7, 2006 9:29 AM by CogDev

    Playing a sound

    CogDev Level 1
      I have a class file used for managing sounds, and it's method playSound(Boolean) gets called from another .as file.

      I have included trace statements for the name of the file from the library, and the duration of the sound that gets selected.

      At runtime, the appropriate string for the name of the sound gets played, but the duration and the name of the sound return "undefined".

      All of the sounds are in the library of the .fla file, and I have checked the box in the linkage properties for "export for actionscript" I have tried deleting the ".wav" in that box, as well as including "Sound" for the class, and neither worked.

      Here is my code: