Skip to main content
Participating Frequently
January 10, 2019
Question

Adobe Animate CC Actions Not Working Anymore

  • January 10, 2019
  • 1 reply
  • 2236 views

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

    This topic has been closed for replies.

    1 reply

    kglad
    Community Expert
    Community Expert
    January 10, 2019

    do you see an error when testing?

    1CCAuthor
    Participating Frequently
    January 10, 2019

    I see this under Output:

    WARNINGS:

    ** 4 Bitmaps packed successfully into 1 spritesheet(s).

    Frame numbers in EaselJS start at 0 instead of 1. For example, this affects gotoAndStop and gotoAndPlay calls. (20)

    Content with both Bitmaps and Buttons may generate local security errors in some browsers if run from the local file system.

    Motion tweens are published as frame by frame animations. Use classic tweens where possible. (15)

    Can I send you the file?

    Thanks,

    Thomas

    kglad
    Community Expert
    Community Expert
    January 10, 2019

    open your browser's developer console and check for errors when testing.

    [moved from ActionScript 3 to Adobe Animate CC]