1 Reply Latest reply on Jun 13, 2013 2:11 AM by AMULI

    How can I the properties of a symbol/element from a button?

    yulbri_65

      modifiy, for example, scale and position of that element calling it from a button

        • 1. Re: How can I the properties of a symbol/element from a button?
          AMULI Level 4

          Hi Yulbri,

           

          To set the opacity to 50% for example :

           

          sym.$( "<IDofYourElement>").css("opacity",".5");

           

          If your not familiar with the properties names, you get them in a tooltip by hovering over in the Properties panel : X gives you "CSS : left", Y "CSS : top", etc.

           

          May be the element will be in another symbol, so that you need to build an accees path to it :

           

          • in the parent symbol :

           

          sym.getParentSymbol().$( "<IDofYourElement>").css("opacity",".5");

           

          • directly on stage :

           

          sym.getComposition().getStage().$( "<IDofYourElement>").css("opacity",".5");

           

          • in another child symbol of the stage :

           

          sym.getComposition().getStage().getSymbol("<instanceName>").$( "<IDofYourElement>").css("opacity",".5");

           

          It's now time for you to explore the API here

           

          http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html#symbolinstance


           

          Gil