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

4 buttons with play in and out labels 1 of them breaks everything????

$
0
0

So I have 4 buttons all of which are differentiated by name of their symbol Home, Services, About and Contact Us.

 

The following commented out line breaks everything when uncommented and if commented obviously the previous symbol's out is not played:

 

 

var current = sym.getVariable("current");  if (current != "") {     //sym.getComposition().getStage().getSymbol("mainContent2").getSymbol(current).play("Out");      sym.getComposition().getStage().getSymbol("mainContent2").getSymbol("About").play("In");   }     sym.setVariable("current", "About");

 

It works perfectly in all 3 other symbols for example:

 

 

var current = sym.getVariable("current");  if (current != "") {     sym.getComposition().getStage().getSymbol("mainContent2").getSymbol(current).play("Out");      sym.getComposition().getStage().getSymbol("mainContent2").getSymbol("Contact").play("In");   }     sym.setVariable("current", "Contact");

 

the only difference is the symbol name  as you can see.

 

Someone please help me?


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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