6 Replies Latest reply on Nov 6, 2009 7:47 PM by Ned Murphy

    action scripting 2.0

    Mindy_ISD Level 1

      The training book that I have only shows how to do Sound On and Off action scripting with 3.0, and I need 2.0.  I cannot remember how to do it.  Can someone please help me?  If it helps, the On button is named On_btn, Off button is named Off_btn, and the sound file is named SLide45.wav.

      Here is what someone sent me earlier, but unfortunately it's not working.  So I'm wondering if I'm missing a step.  It's hard to tell when the book I'm using only teaches 3.0.

       

      var sound:Sound = new Sound();

      sound.attachSound('SLide45.wav');

       

      On_btn.onPress = function() { sound.start(); }

      Off_btn.onPress = function() { sound.stop(); }