Skip to main content
Participating Frequently
May 14, 2023
Answered

When i convert my game to html 5 it loops endlessly when i open in browser

  • May 14, 2023
  • 1 reply
  • 855 views

When I convert my game to HTML 5 it loops endlessly when I open it in its browser. it displays two warnings. Please let me know how I can fix this.

 

 

    This topic has been closed for replies.
    Correct answer kglad

    I tried again it does not return any error, just warnings, I also was trying to rewrite it, and now I get this error

     


    you're mixing as3 and javascript.

     

    show the developer console after removing that as3 code removed, and just leaving 

     

    this.stop();  // on the main timeline 

    1 reply

    kglad
    Community Expert
    Community Expert
    May 14, 2023

    do you have code that's supposed to stop it from looping?

    Participating Frequently
    May 14, 2023

    i used this.stop() at the top

    kglad
    Community Expert
    Community Expert
    May 14, 2023

    open the test browser's developer console and check for errors.

     

    lesson 1 - https://youtu.be/PBDQN9CQSeI

     

    lesson 2 - https://youtu.be/KJEl0OenGUY