Informative Question, why one works and one doestn

Participant ,
Jan 10, 2022 Jan 10, 2022

Copy link to clipboard

Copied

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

Views

41

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jan 10, 2022 Jan 10, 2022

Copy link to clipboard

Copied

Hi.

 

The label approach should've worked.

 

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

 

Regards,

JC

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 02, 2022 Feb 02, 2022

Copy link to clipboard

Copied

LATEST

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines