0 Replies Latest reply on Apr 2, 2013 8:43 AM by TheBionicGroup

    Trouble using touch commands

    TheBionicGroup

      I am trying to use touch comands so that as well as using a thumbnail to move to a fullscreen image (sym.play("label");) I would like to be able to use the touch comands to swipe between the markers but still keep the functionality of the thumbnails.

       

      I am trying the following code on the stage:

       

      Touchstart:

      // Get start point

      var xStart = e.originalEvent.touches[0].pageX;

      sym.setVariable('xStart', xStart);

       

      Touchend:

      xStart = sym.getVariable('xStart');

      var xEnd = e.originalEvent.touches[0].pageX;

       

       

      if (xEnd > xStart)

      {

          sym.playReverse();

      }

      else if (xEnd < xStart)

      {

          sym.play();

      }

       

      Any advice would be a great help. Thanks