1 Reply Latest reply on Jan 26, 2011 4:40 AM by Ned Murphy

    How to stop all sounds in root

    martinoredo

      Sorry I am a newvby to Actionscript.  I found the following script for a button which let me  stop all mc inside the root but I need to stop all sounds in the root as well.

       

      Any help is appreciated.


      Thanks

       

      on (press) {
      getAllMc(_level0);
      function getAllMc(mc) {
          for (var i in mc) {
              if (typeof mc[i] == "movieclip") {
      mc[i].stop();
                      getAllMc(mc[i]);
              }
          }
      }
      }