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

37

Likes

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
Adobe Community Professional ,
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);
}

Likes

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