2 Replies Latest reply on May 10, 2015 6:05 AM by resdesign

    How to play a class?

    g.bollmann Level 1

      I would like 4 symbols with class "flip" to play together. I cannot get more than one to play! Is there a reason?

      I confirmed each symbol I'd like to play has the class added in the [c] property panel dropdown - flip. I see it in the .js file, too.

      Can I access a timeline via class? Please help, as I am self-taught. I am clearly missing something.

       

      This fails: a direct instruction inside the menu symbol:

      sym.$(".flip").play();

      or

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


      AND this fails: 

      in compositionReady

      sym.playFlip = function() {

      sym.getSymbol(".flip").play();  or   sym.$(".flip").play();   or   $(".flip").play(); 

      }

      or

      in creationComplete

      sym.playFlip = function() {

      sym.getSymbol(".flip").play();  or   sym.$(".flip").play();   or   $(".flip").play(); 

      }

      plus

      in button symbol

      sym.playFlip();

       

      I've also tried prefacing with sym.getComposition().getStage()...

       

      Please help! Anyone? Is it possible to play a class ...or only show/hide a class? Is it necessary to load an external script or something?

      thx