1 Reply Latest reply on Sep 30, 2014 3:53 AM by Siva.

    How do you Play audio only OAM file with the scroll in Muse ?

    harrison_tait

      Hi guys,

       

      I am building a pretty cool site that shows off a telescopic pole with scroll animation ..

       

      I am trying to add the audio of the pole telescoping with the scroll when the pole section scrolls on ..

       

      Check out the site at :  http://www.multi-pole.com

       

      Thank you

       

      Harrison

        • 1. Re: How do you Play audio only OAM file with the scroll in Muse ?
          Siva. Level 3

          Hello,

           

          Suppose you have a symbol instance named 'mysound_track' inside your  stage.

           

          After embedding the OAM in Muse, you can try the following snippet on scroll event

           

          var comp = document.getElementById('<OBJECT ID>').contentWindow.AdobeEdge.getComposition("<COMPOSITION ID>");

          var sym = comp.getStage().getSymbol("mysound_track");

          sym.stop(time); //Seek to the required time position

          sym.play();


          Notes:

          Replace ObjectID, CompostionID, time as required

          To make sure that Object tag is  loaded, you can initiate the communication from Object tag by using window.parent property

          1 person found this helpful