4 Replies Latest reply on Nov 29, 2014 9:49 AM by freddiy

    Accessing var from symbol.

    freddiy

      My element has this click action:
      sym.setVariable("port1", true);

       

       

      Trying to use it with my symbol, click action as well:

       

      if (sym.getVariable("port1")) {

       

      sym.getSymbol("portfoliointro").playReverse();

       

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

      sym.setVariable("port3", true);

      sym.getSymbol("left").play(0);

      sym.setVariable("port1", false);

      } else

       

      }



      I've even tried (same result everything goes crazy):

       

      if (sym.getVariable("port1")) {

       

      } else

       

      }