0 Replies Latest reply on Jan 9, 2013 2:24 AM by Aiesyaah

    Sound in Adobe Edge

    Aiesyaah Level 1



      I have managed to make the sounds play and stop, but now I need to ensure that

      1) only 1 sound is played at only 1 time when run in Adobe Edge

      2) Once the sound is stopped mid-way, the sound will automatically go to the beginning of the sound clip.


      Here is the set of my codes in index.html.


      <!DOCTYPE html>



                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

                <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>



      <!--Adobe Edge Runtime-->

          <script type="text/javascript" charset="utf-8" src="index_edgePreload.js"></script>


              .edgeLoad-EDGE-17588951 { visibility:hidden; }


      <!--Adobe Edge Runtime End-->



      <!--insert the audio functions here-->





      <!--sound set 1-->

      function VO() {

        var myAudio = document.getElementById("VO");



      function VO1() {

        var myAudio = document.getElementById("VO");





      <!--sound set 2-->

      function VO2() {

        var myAudio2 = document.getElementById("VO2");



      function VO3() {

        var myAudio2 = document.getElementById("VO2");










      <body style="margin:0;padding:0;">

                <div id="Stage" class="EDGE-17588951">



      <!--insert the audio id here. audio id="VO" is because the function is VO() -->

      <audio id="VO">

      <source src="sounds/sound01.mp3" type="audio/mpeg" />




      <audio id="VO2">

      <source src="sounds/sound02.mp3" type="audio/mpeg" />





      Here is a link to my file: https://www.box.com/s/khnjuk7j9zus7pw03u6f


      Thank you.