Adobe Animate CC Actions Not Working Anymore
Hi,
I have these actions in frame 1 of an animation that used to work, but after removing a section, 2 of the buttons don't work, once the animation gets to the last frame.
stage.enableMouseOver;
//ChiroButton
this.ChiroButton.addEventListener("mouseover", overChiro.bind(this));
function overChiro()
{
this.gotoAndStop(99);
}
this.ChiroButtonWhite.addEventListener("mouseover", overChiroWhite.bind(this));
function overChiroWhite()
{
this.gotoAndStop(99);
}
this.ChiroButton.addEventListener("click", fl_ClickToGoToWebPageChiro);
function fl_ClickToGoToWebPageChiro() {
window.open("http://www.mpamedia.com/audiences/target_chr.php", "_blank");
}
this.ChiroMoreInfoButton.addEventListener("click", fl_ClickToGoToWebPageChiroMoreInfo);
function fl_ClickToGoToWebPageChiroMoreInfo() {
window.open("http://www.mpamedia.com/audiences/target_chr.php", "_blank");
}
//AcuButton
this.AcuButton.addEventListener("mouseover", overAcu.bind(this));
function overAcu()
{
this.gotoAndStop(201);
}
this.AcuButtonWhite.addEventListener("mouseover", overAcuWhite.bind(this));
function overAcuWhite()
{
this.gotoAndStop(201);
}
this.AcuButton.addEventListener("click", fl_ClickToGoToWebPageAcu);
function fl_ClickToGoToWebPageAcu() {
window.open("http://www.mpamedia.com/audiences/target_acu.php", "_blank");
}
this.AcuMoreInfoButton.addEventListener("click", fl_ClickToGoToWebPageAcuMoreInfo);
function fl_ClickToGoToWebPageAcuMoreInfo() {
window.open("http://www.mpamedia.com/audiences/target_acu.php", "_blank");
}
//ConsumerButton
this.ConsumerButton.addEventListener("mouseover", overConsumer.bind(this));
function overConsumer()
{
this.gotoAndStop(301);
}
this.ConsumerButtonWhite.addEventListener("mouseover", overConsumerWhite.bind(this));
function overConsumerWhite()
{
this.gotoAndStop(301);
}
this.ConsumerButton.addEventListener("click", fl_ClickToGoToWebPageConsumer);
function fl_ClickToGoToWebPageConsumer() {
window.open("http://www.mpamedia.com/audiences/target_con.php", "_blank");
}
this.ConsumerMoreInfoButton.addEventListener("click", fl_ClickToGoToWebPageConsumerMoreInfo);
function fl_ClickToGoToWebPageConsumerMoreInfo() {
window.open("http://www.mpamedia.com/audiences/target_con.php", "_blank");
}
The last working version of this can be found at: https://www.mpamedia.com. I have since removed the "Massage" section and when the play head gets to the final frame, the Chiropractic & Acupuncture buttons only function as simple buttons (where the rollover state of the button can be seen to work, but the actions that move the play head in the timeline on mouseover no longer function.
I am an old Flash trained designer who is not up to date on Animate/ActionScript3 and was never really a scripter to begin with. Please help!
Thanks,
Thomas
