4 Replies Latest reply on Feb 18, 2014 10:44 AM by Nonspacial33

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

    Nonspacial33

      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?