Trouble using touch commands


i trying use touch comands using thumbnail move fullscreen image (sym.play("label");) able use touch comands swipe between markers still keep functionality of thumbnails.

 

i trying following code on stage:

 

touchstart:

// 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 great help. thanks



More discussions in Edge Animate CC


adobe

Comments

Popular posts from this blog

Falang and too many redirects - Joomla! Forum - community, help and support

Infinite loop detected in JErrorInfinite loop detected in JError - Joomla! Forum - community, help and support

logged out from joomla! - Joomla! Forum - community, help and support