Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Clicking twice on pause/play button

$
0
0

Hi

I have made a pause and a play button to my slideshow.

 

The pause button is just a boks with the click-action code:

 

sym.$('btn').click(function(){

          sym.stop();

});

 

 

 

The pause button is a boks with the click-action code:

 

sym.$('btnPlay').click(function(){

var timelinePos = sym.getPosition();

          sym.play(timelinePos);

 

});

 

It works but in the beginning, I have to click twice before the function works.

It is only the first time. After that everything works fine.

 

Does anybody know what could be the issue ?


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>