Blue Genie,
Would really appreciate that thanks, please note this fla will be published as an AIR file.
Main Topics
Browse All TopicsHi experts,
I am trying to create a desktop countdown timer (personal project) however I am getting some issues with the script. The countdown timer works fine until I try and get user inputs. I have created some variables to store the end date and have a series of input fields for the user to provide their desired date.
I have provided the complete actionscript below in the hope this will help idenitfy the issue. Basically when the user inputs their desired date and click OK the application takes these values converts them to a number and assigns them to the date variables. Then it is supposed to update the countdowntimer start counting down from this new date value.
I have used trace to ensure the initial values are correct (which they are) and the ensure the user inputs are getting through and they are, I just can't seem to get the timer to refresh with the updated end date.
I appreciate any help provided.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
oh hey sorry, your email alert must have slipped past during a manic session.
had a quick look if you're still struggling with this.
the problem is your endDate variable is not being updated because you're declaring the new variable in applyNewTimer which is then local , i.e. only persists within that function so it's not affecting the bigger scheme of things.so to fix this you just need to declare the variable once at the top
i.e var endDate:Date = new Date();
and then when you use in later in all the other functions just use endDate and don't re-instantiate the variable.
Hi,
thanks for your response, I am still not getting this to work, if I have declared the endDate variable outside of the function (i.e. the top of my code) then all functions should be able to access and edit the data within this variable (is this correct?).
If this is so how would I set the new date I have tried mutliple ways (see code snippet) but I keep getting various errors. I hope you can help.
Business Accounts
Answer for Membership
by: blue-geniePosted on 2009-05-04 at 12:49:53ID: 24298508
I'll have a look if you upload your file (CS3)
i don't have time to replicate everything.