3 Replies Latest reply on May 11, 2015 3:46 AM by owen_bayley

    CSS classes not global ??

    g.bollmann Level 1

      I have code in a menu symbol which controls classes.

      I have classes applied to other symbols, which should react together. Ex:

       

      sym.getSymbol(".indef").play("indef-art");

       

      This should cause 4 symbols with the respective class to play at the same time, right?

      Instead, either only 1 symbol plays, or they play in sequence when the button is clicked.

      Thanks for your advice.

        • 1. Re: CSS classes not global ??
          owen_bayley Level 1

          hey g.bollmann,

           

          I have personally found that to use a class  in the way you are describing you need to make a function for the class then call this function: e.g in creation competed

           

          sym.playIndef = function() {

          sym.getSymbol(".indefl").play();

          }

           

          then just call this when you want a all symbols with the class indefl to play:

           

          sym.playIndef();

           

          I would personal recommend the first way I described as I find you have control over the project

           

          hope this helped

          • 2. Re: CSS classes not global ??
            g.bollmann Level 1

            Thanks Owen,

            I've been jumping through every hoop but no luck.

             

            Perhaps I am not creating the function correctly or maybe a class cannot access the timeline.

            Any other ideas? If so ... much appreciated!

            BR/Grace

            • 3. Re: CSS classes not global ??
              owen_bayley Level 1

              hey g.bollmann,

               

              how are you using it?

               

              can I see examples of what you have done/ how you are using it? how your projects is set out? as you may have conflicting code or something.

               

              I would recommend you play the symbols manually if it does not work with a function: e.g

               

              sym.getSymbol("symbolname").getSymbol("symbolname").play("lablename");

               

              you will need to have this code for every symbol you wan to start the animation in. I would further recommend putting this in a click.

               

              hope this helped

               

              Owen