Skip to main content
Participating Frequently
February 17, 2021
Question

Compiler Error 1151: A conflict exists with definition _this in namespace internal

  • February 17, 2021
  • 1 reply
  • 2886 views

I am doing an interactive animation project in school using Adobe Animate. Everything works when I test it out (Ctrl + Enter), but when I export movie, I get a bunch of compiler errors saying what's in the subject line. I will attach a screenshot of the compiler error window and the actions tab of one of the frames that is referred in the list. All of the actions use the same code that was brought by the wizard.

    This topic has been closed for replies.

    1 reply

    JoãoCésar17023019
    Community Expert
    Community Expert
    February 17, 2021

    Hi.

     

    You're using JavaScript in an AS3 document.

     

    Go to File > Convert To > HTML5 Canvas.

     

    All the code will be commented out so just uncomment it.

     

    Regards,

    JC

    bass3922Author
    Participating Frequently
    February 17, 2021

    It already is an HTML5 canvas. The filename in the screenshot above the stage shows a little bit of that.

    kglad
    Community Expert
    Community Expert
    February 19, 2021

    Yes, and it plays properly when I play from the timeline. Just in a playtest, it starts playing when Mario starts jumping down the stairs, and when I publish it, it doesn't play at all. All the other audio plays fine except for that song.


    if it plays fully in the timeline and when the timeline moves, but you want it to start playing when the page loads you should reset its sync property back to "event" start the sound on frame 2 of the main timeline and make sure frame 2 plays when your files load.  ie, no this.stop() in frame 1.