I have a project with many frames of artwork and nested animations. The code is very simple but it is freezing up on the later frames. Advanced layers is turned off, I do not have any alphas, artwork is bitmapped and I'm using instance names. I have replaced this a few times but with no luck - it just freezes. I had this on frame 5 as well a few days ago. Is animate getting scrambled or is my code incorrect?
Please see below...
this.stop();
this.stage.canvas.style.cursor = "none";
this.mouseEnabled = true;
this.addEventListener("tick", fl_CustomMouseCursor.bind(this));
function fl_CustomMouseCursor() {
this.greendot8.x = stage.mouseX / stage.scaleX;
this.greendot8.y = stage.mouseY / stage.scaleY;
}
this.jelly1.addEventListener("click", fl_ClickToHide_47.bind(this));
function fl_ClickToHide_47()
{
this.jelly1.visible = false;
this.splash1.visible = true;
this.splash1.play();
}
this.jelly2.addEventListener("click", fl_ClickToHide_48.bind(this));
function fl_ClickToHide_48()
{
this.jelly2.visible = false;
this.splash2.visible = true;
this.splash2.play();
}
this.jelly5.addEventListener("click", fl_ClickToHide_49.bind(this));
function fl_ClickToHide_49()
{
this.jelly5.visible = false;
this.splash5.visible = true;
this.splash5.play();
}
this.jelly3.addEventListener("click", fl_ClickToHide_50.bind(this));
function fl_ClickToHide_50()
{
this.jelly3.visible = false;
this.splash3.visible = true;
this.splash3.play();
}
this.jelly4.addEventListener("click", fl_ClickToHide_51.bind(this));
function fl_ClickToHide_52()
{
this.jelly4.visible = false;
this.splash4.visible = true;
this.splash4.play();
}
this.arrBlueL8.addEventListener("click", fl_ClickToGoToAndStopAtFrame_69.bind(this));
function fl_ClickToGoToAndStopAtFrame_69()
{
this.gotoAndStop(7);
}
this.arrRightNew.addEventListener("click", fl_ClickToGoToAndStopAtFrame_70.bind(this));
function fl_ClickToGoToAndStopAtFrame_70()
{
this.gotoAndStop(8);
}
I also want to do a drag and drop but cannot figure out make it work without a code snippet.
Comments welcome. 😊