Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How do I make a countdown timer to a specific date using Animate CC html5 canvas

Community Beginner ,
May 30, 2018 May 30, 2018

I am Starter to adobe Animate cc. can any one please send me the file or tutorial it will be helpful. Thanks in advance

3.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 31, 2018 May 31, 2018

yes, use your textfield instance instead of tf

var specific_d=new Date(2018, 5, 14);

var d=new Date();

this.tf.text=Math.round((specific_d.getTime()-d.getTime())/(1000*60*60*24))+" days";

Translate
Community Expert ,
May 31, 2018 May 31, 2018

var specific_d=new Date(whatever year, month less 1, date);

createjs.Ticker.addEventListener("tick"tickF.bind(this));

function tickF(){

var d=new Date();

this.tf.text=Math.round((specific_d.getTime()-d.getTime())/1000)+" seconds";

}

 

[moved from ActionScript 3 to Adobe Animate CC - General]

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 31, 2018 May 31, 2018

Should we need to apply this java code for dynamic text box?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 31, 2018 May 31, 2018

I need countdown timer for june 14th 2018. i have tried to insert direct to layer also.

Please check the file in the below we transfer link.

WeTransfer

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 31, 2018 May 31, 2018

yes, use your textfield instance instead of tf

var specific_d=new Date(2018, 5, 14);

var d=new Date();

this.tf.text=Math.round((specific_d.getTime()-d.getTime())/(1000*60*60*24))+" days";

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 31, 2018 May 31, 2018

I could not get output. in preview screen its showing empty. nothing visible.

.fla files in below link

WeTransfer

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 31, 2018 May 31, 2018

i don't download and correct files unless i'm hired.

if you want free help, you'll need to pinpoint the issue and post here.  or wait: someone else may download and correct your error(s).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 31, 2018 May 31, 2018

How much do you charge to as exactly as below instruction using animate CC Html 5 canvas.

frame 1: dummy image

frame 2: dummy image

frame 3: dummy image

frame 4: dummy image and

Add dynamic countdown timer for specific date (June 14th 2018).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 31, 2018 May 31, 2018

send a private message, or an email to kglad99 at gmail.com

EDIT:  nvm. i dl'ed your file.  you didn't assign an instance name (eg, tf) to your textfield.  also, you failed to copy my code: the month index is incorrect so your 'days' remaining reflects the days until july 14th instead of june 14th.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 31, 2018 May 31, 2018

Thanks a lot. never expected this

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 31, 2018 May 31, 2018
LATEST

you're welcome.

most people that ask for help here won't pay anything for help.  my feeling is if it's worth nothing to those people, it's not worth even a few minutes of my time to help them.

for people willing to consider paying, if it's only a few minutes of time needed to help, i don't charge anything.

(p.s when using the adobe forums, please mark helpful/correct responses, if there are any.)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines