Disable click event of other buttons while playing a button sound

New Here ,
Jan 23, 2021

Copy link to clipboard

Copied

I am creating a simple interactive exe by animate cc 2019. Now I have 5 buttons layer in a scene, there are animated movie clip inside the button and each button's down state had inserted a VO sound over 10s. long.

Here I got a problem that when one of the button clicked and playing the sound, I can still click other buttons which lead to multiple sound playing at the same time. I can't find a script or any way to stop the mouse click event of other buttons until the VO sound is completed. The simplest way seems to disable the other button clicks. And then return to normal when the sound complete.

TOPICS
ActionScript, Code, How to

Views

52

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
kglad LATEST
Adobe Community Professional ,
Jan 23, 2021

Copy link to clipboard

Copied

use movieclip buttons so you can control their behavior.

 

but you might be able to do what you want with the global createjs.Sound.stop() and stop all sounds.

Likes

Translate

Translate

Report

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