Skip to main content
Inspiring
January 10, 2022
Question

Informative Question, why one works and one doestn

  • January 10, 2022
  • 1 reply
  • 169 views

I am trying to change like backgrounds in a game i was gonna do this:

 

raiz.fondito.gotoAndStop("nivel2") //raiz is my root variable, fondito my backgrounds but it wont work...

 

So i had to do this, that this does work!, using multiple movieclips, instead of multiple frames as i was planning, and this, does work!
raiz.fondito.visible = 0;

 

Si I guess i am gonna do it like that, but Why? i am shure i am doing something wront, but it still fishy it should! lol 

 

happy new year Flashers!! tyvm

    This topic has been closed for replies.

    1 reply

    JoãoCésar17023019
    Community Expert
    Community Expert
    January 10, 2022

    Hi.

     

    The label approach should've worked.

     

    Can you provide more details, like your full relevant code or some screenshots?

     

    Regards,

    JC

    Inspiring
    February 2, 2022

    hola, perdon que no he respondido andaba de fiestas

     

    abrigado

     

    codigo


    //alert("url")
    //window.open("nivel2.html", "_self");
    //raiz.fondito.gotoAndStop("nivel2")
    raiz.fondito.visible = 0;
    raiz.fondito2.visible = 1;
    alert("URLL");

     

    This movieclip gets play when the total enemies of level gets kill, should play show next background, its the movie clip siting at center of screen

     

    https://drive.google.com/file/d/1A6U_EKAkx2jCdp2n4yW0TwdiGYwVDwPo/view?usp=sharing

     

    abrigado