• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Start stop audio button using html5

New Here ,
May 29, 2020 May 29, 2020

Copy link to clipboard

Copied

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.

Views

305

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 29, 2020 May 29, 2020

Copy link to clipboard

Copied

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();

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 31, 2020 May 31, 2020

Copy link to clipboard

Copied

LATEST

Thanks Dude 🙂  

 

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines