Skip to main content
Inspiring
Jan 10, 2022 7:55 PM UTC
Question

Informative Question, why one works and one doestn

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 is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    JoãoCésar17023019
    Community Expert
    Community Expert
    Jan 10, 2022 8:34 PM UTC

    Hi.

     

    The label approach should've worked.

     

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

     

    Regards,

    JC

    Translate
    Inspiring
    Feb 2, 2022 3:22 PM UTC

    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

    Translate