Highlighted

Sound Button can't "stop".

New Here ,
Jun 22, 2019

Copy link to clipboard

Copied

I'm making an interactive media application. but when I make a voice button, the 'stop' command cannot be executed.

This is the code I made:

But when I click the button, the sound won't stop.

Can anybody tell me what's wrong and help me fix this error?

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

to start, that's a problematic coding style.  all your significant code ( all code except for stops, plays and goto's) should be on the main timeline (or class files) or your code quickly becomes difficult to understand, update and debug.

you're already facing that problem now.  and if you have code on timelines other than symbol2, there's no reason for anyone to invest their time trying to help with the code you showed because a key part of the problem could be on other timelines.

can you move all your significant code to the main timeline?

is there any code on timelines other than the 2 timelines you showed?

TOPICS
Discussions

Views

110

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

Sound Button can't "stop".

New Here ,
Jun 22, 2019

Copy link to clipboard

Copied

I'm making an interactive media application. but when I make a voice button, the 'stop' command cannot be executed.

This is the code I made:

But when I click the button, the sound won't stop.

Can anybody tell me what's wrong and help me fix this error?

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

to start, that's a problematic coding style.  all your significant code ( all code except for stops, plays and goto's) should be on the main timeline (or class files) or your code quickly becomes difficult to understand, update and debug.

you're already facing that problem now.  and if you have code on timelines other than symbol2, there's no reason for anyone to invest their time trying to help with the code you showed because a key part of the problem could be on other timelines.

can you move all your significant code to the main timeline?

is there any code on timelines other than the 2 timelines you showed?

TOPICS
Discussions

Views

111

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
Jun 22, 2019 0
Adobe Community Professional ,
Jun 23, 2019

Copy link to clipboard

Copied

to start, that's a problematic coding style.  all your significant code ( all code except for stops, plays and goto's) should be on the main timeline (or class files) or your code quickly becomes difficult to understand, update and debug.

you're already facing that problem now.  and if you have code on timelines other than symbol2, there's no reason for anyone to invest their time trying to help with the code you showed because a key part of the problem could be on other timelines.

can you move all your significant code to the main timeline?

is there any code on timelines other than the 2 timelines you showed?

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
Reply
Loading...
Jun 23, 2019 1
Adobe Community Professional ,
Jun 24, 2019

Copy link to clipboard

Copied

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
Reply
Loading...
Jun 24, 2019 1