Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

.hide(); not working

$
0
0

I am making a multiple choice quiz. I want a symbol called try_again1 to play when the wrong answer is clicked, and a symbol called correct1 to play when the right answer is clicked. Of course when correct1 plays, try_again1 should disappear. They are in the same spot on the stage.

 

Code for wrong answer:

 

sym.getComposition().getStage().getSymbol("try_again1").play();  //works

 

Code for right answer:

 

sym.getComposition().getStage().getSymbol("correct1").play();  //works

sym.getComposition().getStage().getSymbol("try_again1").hide();   //doesn't work

 

Each time a wrong answer is clicked, try_again1just replays. But when the right answer is clicked, try_again1 will not disappear! (deleteSymbol() works, but then it won't play again when wrong answer is clicked in the next question.)

 

Is there something astoundingly obvious I'm missing here?


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>