Hi,
I have an Animate file that was originally created in 2020 that is used on a client's website, so it uses HTML5 canvas. My client asked for some minor changes but now when I publish the previous file (without editing) it's not working properly.
On the main timeline I have a pie shaped graphic, and each section is a button. When the button is clicked it goes to a specific frame label on the parent timeline and plays a movie clip. In the individual movie clips, it plays part of the animation and then stops, and when they click on another button, it plays the rest of the current movie clip, then goes back to the parent timeline to the specified label and plays that. The following is the Action on the frame where it has been stopped, within the individual movie clip:
this.stop();
var _this = this;
_this.btn_intimidation_reduced.on('click', function(){
_this.gotoAndPlay('coercion_close');
setTimeout(function () {
_this.parent.gotoAndPlay('intimidation'); }, 833);
});
var _this = this;
_this.btn_emotional_reduced.on('click', function(){
_this.gotoAndPlay('coercion_close');
setTimeout(function () {
_this.parent.gotoAndPlay('emotional'); }, 833);
});
var _this = this;
_this.btn_isolation_reduced.on('click', function(){
_this.gotoAndPlay('coercion_close');
setTimeout(function () {
_this.parent.gotoAndPlay('isolation'); }, 833);
});
var _this = this;
_this.btn__minimize_reduced.on('click', function(){
_this.gotoAndPlay('coercion_close');
setTimeout(function () {
_this.parent.gotoAndPlay('minimize'); }, 833);
});
var _this = this;
_this.btn_children_reduced.on('click', function(){
_this.gotoAndPlay('coercion_close');
setTimeout(function () {
_this.parent.gotoAndPlay('children'); }, 833);
});
var _this = this;
_this.btn_male_reduced.on('click', function(){
_this.gotoAndPlay('coercion_close');
setTimeout(function () {
_this.parent.gotoAndPlay('male'); }, 833);
});
var _this = this;
_this.btn_economic_reduced.on('click', function(){
_this.gotoAndPlay('coercion_close');
setTimeout(function () {
_this.parent.gotoAndPlay('economic'); }, 833);
});
This works fine, but only once. If they click on any button more than once, it goes to the correct frame label but stops. I've tested every button, and every sequence that I can think of but it always stops working as soon as they click on a button a second time.
Thanks, any help would be much appreciated!