Skip to main content
samv18157404
Participant
May 29, 2020
Question

Start stop audio button using html5

  • May 29, 2020
  • 2 replies
  • 417 views

Hey up i'm trying to create a start / stop play button for an audio file within adobe AN, i can do it using action script 3, but not using html5 as it only plays audio as events, any suggestions.

    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    kglad
    Community Expert
    Community Expert
    May 29, 2020

    create an instance name when instantiating your sound (eg:

     

    var soundInstance = createjs.Sound.play("soundID");

     

    then you can use soundInstance to stop or pause play:

     

    soundInstance.stop();

     

    or 

     

    soundInstance.pause();

    samv18157404
    Participant
    May 31, 2020

    Thanks Dude 🙂  

     

    another question, are you able to import an image sequence ?