Quantcast
Viewing all articles
Browse latest Browse all 87561

Re: Timeline NOT playing onClick with setTimeout method

Hello.

 

That thread was helpful indeed, thank you, it's still not working exactly as it should. I got the button to work with this code:

 

function snooze() {

 

  var d = new Date(); // current date

  var m = d.getMinutes();

  var h = d.getHours();

 

  sym.snooze() = setTimeout(snooze, 4000);

  sym.play(1000);

 

 

}

 

 

However, when I click the button, the animation plays instantly (it does not wait the 4000ms). It's like it's not reading that part of the code. Any ideas? Is there a syntax issue?

 

 

Thank you again.


Viewing all articles
Browse latest Browse all 87561

Trending Articles



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