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

count up code

$
0
0

I found some code last week that counted up from 1 to whatever and it worked last week. when I opened the file up today adobe edge it says the file was created by a previous version of adobe edge and will be renamed "updated". Now the code I had that was working isn't working anymore.

 

here was the code. can someone give me code that just counts up from 1?

 

var counter_delay = 34;

var max_count = 45;

var present_count = 0;

 

var timer = window.setInterval(stepUp,counter_delay);

function stepUp(){

present_count++;

// Change the text of an element

sym.$("Text").html(present_count);

if(present_count==max_count)

clearInterval(timer);

}


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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