6 Replies Latest reply on Oct 29, 2013 11:33 AM by resdesign

    Show / Hide Multiple Elements With a Single Line of Code

    bo737

      Hi everyone,

       

      How can I show / hide multiple elements with js coding in edge animate?

       

      In my project I'm using this timeline trigger actions:

       

      sym.getComposition().getStage().getSymbol("MENU").getSymbol("MenuMover").getSymbol("Grades Menu").$("Element01-Off").show();

      sym.getComposition().getStage().getSymbol("MENU").getSymbol("MenuMover").getSymbol("Grades Menu").$("Element01-On").hide();

      sym.getComposition().getStage().getSymbol("MENU").getSymbol("MenuMover").getSymbol("Grades Menu").$("Element02-On").show();

      sym.getComposition().getStage().getSymbol("MENU").getSymbol("MenuMover").getSymbol("Grades Menu").$("Element03-On").show();

      sym.getComposition().getStage().getSymbol("MENU").getSymbol("MenuMover").getSymbol("Grades Menu").$("Element04-On").show();

      sym.getComposition().getStage().getSymbol("MENU").getSymbol("MenuMover").getSymbol("Grades Menu").$("Element05-On").show();

      sym.getComposition().getStage().getSymbol("MENU").getSymbol("MenuMover").getSymbol("Grades Menu").$("Element06-On").show();

       

      Can I tie all theese .show commands just in a line?

      By the way I can't use grouping the elements in a div option. Because there is different combinations of this show / hide element actions triggering in different timeline points.