Skip to main content
Inspiring
October 8, 2018
Question

Speaker button not working

  • October 8, 2018
  • 4 replies
  • 1488 views

Nothing happens when I click the speaker button that has the movieclip icon in the Chrome browser but it is fine in the Microsoft Edge browser. There it works. I use label name begin in frame 42 and in frame 1

this.speaker.addEventListener("click", playClicked.bind(this));

function playClicked() {

this.play("begin");

}

I have the code where the button is located. Why does not Chrome work and will see if it works on Android. Certainly, Chrome Android is the same.

    This topic has been closed for replies.

    4 replies

    peorAuthor
    Inspiring
    October 30, 2018

    this.speaker.addEventListener("click", playClicked.bind(this));

    function playClicked() { 

    this.play("begin"); 

    }

    I can not still click with this code in the Chrome version 70.0.3538.77 browser but with the Microsoft Edge browser it works. Then I use this.stop(); after the code function in before the frame.

    Legend
    October 10, 2018

    No, it does not have the slightest thing to do with how many frames you have.

    Chrome doesn't play well with a lot of CreateJS's features when run directly from the file system. That's why Animate uses a local web server for previewing pages. If you want to test in Chrome, either set Chrome as your default browser, or copy-paste the test URL out of your default browser into Chrome.

    peorAuthor
    Inspiring
    October 11, 2018

    So it doesn't work so well the chrome browser with html5 canvas in Animate CC. How is it with Android os in smartphone?

    avid_body16B8
    Legend
    October 11, 2018

    In am wondering if you have a this.stop(); in the same frame as I see an action under begin.

    If so it will not play because you have a stop action.

    macpawel
    Participating Frequently
    October 9, 2018

    I think you have an etror in your code

    1. this.speaker.addEventListener("click", playClicked.bind(this)); 
    2.  
    3.  
    4. function playClicked() { 
    5. this.gotoAndPlay("begin");   ////// this I hope should be
    peorAuthor
    Inspiring
    October 9, 2018

    I have not solved it because it still does not work with Chrome, but in the Microsoft Edge browser it works. I have in the frame from one to forty there a movieclip object and after the frame forty to forty one I have a code plus a label with the name start. I send a picture so you can see how it is.

    kglad
    Community Expert
    Community Expert
    October 9, 2018

    open chrome‘s console and check your error.

    kglad
    Community Expert
    Community Expert
    October 8, 2018

    open the problematic browser console and check.

    peorAuthor
    Inspiring
    October 9, 2018

    Can you explain for me what you mean problematic browser console and I can't see it or I don't understand.

    peorAuthor
    Inspiring
    October 9, 2018

    I've solved it now. The object movieclip button and the codes were not within the same frame but now doing it.