0 Replies Latest reply on Apr 20, 2015 6:06 PM by Go Man

    Why does this script only work on mobile devices?

    Go Man

      Is there any reason this conditional statement would work on mobile devices and not in a desktop browser i.e. Chrome, Safari? I am using it in a scroll activated project to trigger a symbol to play forwards or backwards depending on where the playhead is in the symbol. Works great on an iPad but not Chrome, Safari on my desktop.

       

      if (sym.getSymbol("icons_sym").getPosition("back") ) {

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

      }

      else {

         sym.getSymbol("icons_sym").play("front");

      }

       

      Thanks,
      Mark