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

Sound activation

New Here ,
Apr 18, 2021 Apr 18, 2021

Copy link to clipboard

Copied

Many years ago, using flash, i learned how to use sound to trigger events using actionscript.

But I can't now remember.

I can't seem to find any help on this subject.

Lots of help on triggering sound using actionscript, but i want to make animation sound reactive.

 

Any help,

 

Thanks.

TOPICS
ActionScript

Views

104

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 ,
Apr 18, 2021 Apr 18, 2021

Copy link to clipboard

Copied

LATEST

in what way do you want to use sound to trigger an event?

 

for example, you might want the end (completion) of a sound to trigger an event.  then you would use something like:

 

var soundCompleteE:Event=new Event("soundCompleteE");

var yoursoundchannel:SoundChannel = yoursound.play();

yoursoundchannel.addEventListener(Event.SOUND_COMPLETE, soundCompleteF);


function soundCompleteF(e:Event):void {
dispatchEvent(soundCompleteE);
}

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