Another problem with countdown timer. Don't know why
Hi all
I noticed on my 30 minutes to count down the seconds seem to ignore or hesitate at different intervals. It seems to work for 30 minutes, but it will be displayed on a GIANT screen and the seconds of the movements is very obvious. Someone would show me how please correct the code to a total accuracy of the calendar? Not sure if I should add milliseconds. (I don't want to show in the timer, just minutes and seconds 00:00. Thanks in advance.
Here is the code
totalTime = 1800;
Start from 30 minutes
startTime = getTimer();
function timer() {}
timeLeft = (totalTime * 1000)-(getTimer () - startTime);
seconds = Math.floor (timeLeft/1000);
minutes = 0;
While (seconds > 59) {}
seconds = seconds-60;
minutes = minutes + 1;
}
If (minutes < 10) {}
minutes = String("0"+minutes);
}
If (seconds < 10) {}
seconds = String ("0" + seconds);
}
Time_text. "Text = minutes +": "+ seconds;
If (timeLeft < = 0) {}
Time_text. Text = ("00:00");
_root.gotoAndPlay (11);
clearInterval (timer1);
}
}
Timer1 = setInterval (timer, 1000);
You walk a fine line with a 1 second interval. Increase your sampling rate and you are less likely to ignore a value. Here is an approach that samples at rate of the file. Note that 'var' has been addded in many places. You should always declare your variables without worrying that AS2 allows you to not have to.
totalTime var = 1800;
Start from 30 minutes
startTime = getTimer() var;
this.onEnterFrame = function() {}
timeLeft var = (totalTime * 1000)-(getTimer () - startTime);
var seconds = Math.floor (timeLeft/1000);
var minutes = Math.floor (seconds/60);
seconds = seconds % 60;
If (minutes<10)>10)>
minutes = String("0"+minutes);
}
If (seconds<10)>10)>
seconds = String ("0" + seconds);
}
Time_text. "Text = minutes +": "+ seconds;
If (timeLeft<=0)>=0)>
delete this.onEnterFrame;
Time_text. Text = ("00:00");
_root.gotoAndPlay (11);
}
}
Tags: Adobe Animate
Similar Questions
-
Hello! I use a PC and have problems loading my homepage of Muse. First of all, I made one with the address "nordensstjarnor" and updated several times without any problems. And once, I couldn't download on 'nordensstjarnor' any longer. Don't know why, when he got the address "nordensstjrnor". That me ok at first, but now I really need to give the first address once again, "nordensstjarnor". But when I try, the alternative of the site of ' publish on ' old isn't here. And if I try to create a new one, but with the old URL, the box turns red. What can I do?
The reason why you cannot change nordensstjarnor.businesscatalyst.com is because a different Adobe ID is used for the publication of this site.
t * [email protected] is used for the publication of nordensstjarnor.businesscatalyst.com
t s. * [email protected] is used for the publication of nordensstjarnorindex.businesscatalyst.com
You must make sure that Adobe ID is used in account publish, so that you can see a list of the websites published under this account. Go in Edition > Preferences > publish on Business Catalyst > publish with accounts
You can pass the accounts for you can also make changes to the sites.
Thank you
Sanjit
-
Perhaps another problem with Css
I think this is another problem with my CSS is applied because of a problem but I have really no idea.
The site is Alliance of injuries. The problem is with the images in the middle of the page. They are supposed to be in three rows of 3-3-2, but for some reason some they just below the other. When I click on Home.css in the "View Source", it is titled 'Page not found' don't know why.
Anyone who has any ideas I would appreciate it.
Brad
First thing - you must stop using filenames with spaces in them. That can get you into trouble. Use only letters, numbers, dash or underscore - nothing else.
Next thing, the image and CSS links in this page (located at the root of the site) are all (except two) wrong links related document, for example,.
If the page is already at the root of the site, there is no ".." as possible. It is sure to cause you problems. All these links need to be just like this one (which is correct)-(although the Home.CSS file does not appear on the server!)The reason why your images are displayed in a vertical table is that each of them is contained in acontainer with no specified width (was this width specified in the Home.css file does not exist?). So that they appear along a horizontal line, you need to specify the width of the div and float tag he left. -
I got no automatic updates of Windows7 since 6/14; I went through all the troubleshooting steps provided by Windows/Microsoft, but just not get the problem solved. I don't know what to do and I am positive, there are of new updates that must be downloaded. Microsoft blocks updates for Windows7 to force people to switch to Windows 10? I also use Norton as the security for my computer package. Norton Help Center says there was a major update in mid-June caused problems with the center of Action of Windows, but this problem has been resolved. What can I possibly do to get this problem resolved? I am VERY frustrated.
Previous versions of the Windows Update client cannot properly manage updates. Install the latest version, included in KB3161608.
https://support.Microsoft.com/en-us/KB/3161608
Set never 'Find updates' automatic updates and restart before installing.
Best regards, VZ
-
I have installed Adobe Audition on my 64-bit pc but I have a problem with the time and the effects of pitch appear unavailable because... I can do?, installed on another PC laptop 64 bist and does not
My guess is that you are in multitrack view and not editview
These fx are destructive and only take effect when you change a single audio file in editview
-
After that download site on the internet Web browser says page not found, file 'null' is not found. Also in the Muse I can't preview the site or pages more. Never had a problem and now I don't know what to do. In Safari and Google Chrome there is no problem on the internet, but I can't be seen.
OK, so your last post, it seems the widgets are the cause of the problem. Let's see if we can understand why:
- Have you tried to create a NEW Widget of emptiness of Composition and which fill with new content?
- Have you tried a full download instead of only changed files?
- Also can you check with domain host that send you to the right directory, and whether or not they have made changes to the ftp upload?
- When you export the site in HTML format instead of FTP download and compare the files that are generated in the HTML folder, they are identical to those published via FTP?
If this does not help, it would be useful that you could provide us some screenshots of errors you are seeing, you use parameters of publication etc. (you can block-out user name and password for security reasons of course).
CARI
-
Hello
I wonder is there another problem with Edge and Chrome.
I know that something got sorted out but now I have a problem with rectangles (such as the hitboxes) not appearing is not in Chrome.
Anyone know why this is happening?
Hi Robyn,
Looks like a problem with chrome. He is not able to manage the z-index property (although set) in this case. Due to which the user is not able to click on the button that is hidden by another element.
There is a workaround solution you can do on board animate:
You simply select the item named "s_cpl_fa_nav_x2" in the Panel edge ' Elements' animate and drag just below the element named "s_cpl_fa_0_guide_page1" and delete the selected item. This will place the first below the latter, with regard to the stacking order of the UI, and so the click event will work.
I hope this works.
-
I use 4 windows with multiple tabs, but I 'don't know why one of them (window) always close when I restar computer
Hello, by default the firefox session restore feature only allows you to save last 3 windows open. to change this, type on: config in the address bar of firefox (confirmed the message information where it appears) and search for the preference named browser.sessionstore.max_windows_undo. Double-click it and change its value to 4 (or more).
http://KB.mozillazine.org/browser.sessionstore.max_windows_undo
-
I have an automatic jump towards the high Advisor new updates to install so I chose the required #6 and #5 update without problem but the 6th as stated above does not and I don't know why. There is no reason why my security software would have limited download.
Hello
-Don't you get an error message when you try to install the update?
I suggest you to follow the steps in this article to resolve the problem.
-
Adobe Bridge CS6 on my Toshiba 32 bit?, I don't know why, but when I try to run this program, then the DEP blocks Adobe Bridge, what's the problem?
This means that the program will use the incorrect memory or he is attacked by hackers or virus. See if there is an updated version.
To allow the program to function in any case type DEP in the Start menu - Help and Support.
Help
Change Data Execution Prevention settings
Data Execution Prevention (DEP) is a security feature that protects against viruses and other security threats by analyzing your programs to make sure that they use the system safely memory.
If you choose to protect all programs, you can always turn off DEP for individual programs. If you think that a program does not run correctly when DEP is enabled, check for a compatible version of the DEP program or an update from the software publisher before you change your DEP settings.
Click to open the system.
Click Advanced system settings. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
Under performance, click settings.
Click the Data Execution Prevention tab, and then click turn on DEP for all programs and services except those I select.
To turn off DEP for an individual programSelect the check box next to the program that you want to turn off DEP for and then click OK.
If the program is not in the list, click Add. Navigate to the Program files, search for the executable file of the program (it will have the .exe extension) and then click Open.
To turn on DEP for an individual programClear the check box next to the program that you want to turn on DEP for and then click OK.
-
I just uploaded my site. But more often with success, for one thing: there is an error message on the contact form. "The server has encountered an error." It's pretty generic, so I don't know why. I checked my page, everything looks good. I understand that the authorized "bug" before using the Contact form only with the catalyst has been fixed, so it must go through the fine. Ideas?
Please consult this document:
https://forums.Adobe.com/docs/doc-3581
Thank you
Sanjit
-
iTunes will not install and I don't know why.
I tried to install iTunes for some time, but it still seems to fail. I don't know why. When I get to install it says I can't access it for some reason or another. Can someone help me?
I tried to install iTunes for some time, but it still seems to fail. I don't know why. When I get to install it says I can't access it for some reason or another. Can someone help me?
Perhaps you would consider as asking questions of itunes in Apple Support communities like forums below:
Communities in support of Apple - itunes for Windows
https://discussions.Apple.com/community/iTunes/itunes_for_windows
Problem installing itunes for Windows
-
Original title: quick help please :/
my computer laptop bluetooth was working but suddenly it stopped and I don't know why... How can I make it work again please!
Hello
Hardware devices not detected or does not work - a Mr Fixit
http://support.Microsoft.com/GP/hardware_device_problemsAdd a BlueTooth device to your computer
http://Windows.Microsoft.com/en-us/Windows7/add-a-Bluetooth-enabled-device-to-your-computerSet up a Bluetooth compatible device
http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-a-Bluetooth-enabled-deviceThe problems with Bluetooth devices
http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-Bluetooth-enabled-devicesHow to set up a Bluetooth connection
http://www.vista4beginners.com/how-to-setup-a-Bluetooth-connectionThe Bluetooth item in Control Panel on a Windows Vista SP2 computer does not
as expected when you click on the element - for Windows 7 this check manually
http://support.Microsoft.com/kb/960531/en-usIf you need drivers try the support site for the manufacturer of your system and/or the site of the manufacturer of the real device.
BluetoothView is a small utility that runs in the background and monitor the activity of Bluetooth technology
devices around you. For each detected Bluetooth device, it displays the following information:
The device name, address Bluetooth, Major Device Type, minor device Type, first detection time,
Last detection time and more. BluetoothView can also warn when a new Bluetooth device
is detected, by displaying a balloon in your bar tasks or playing a little beep. -FREE
http://www.NirSoft.NET/utils/bluetooth_viewer.htmlBluetoothCL is a small console application that transforms all differential of bluetooth devices detected in
the standard output. For each Bluetooth device, the following information is displayed: MAC
Address, name, Major Device Type, minor device Type and possibly the name of the company of
the device (if the external file of MAC addresses - oui.txt is provided) - FREE
http://www.NirSoft.NET/utils/bluetoothcl.htmlBluetoothLogView is a small utility that monitors the activity of Bluetooth devices around you,
and shows a log of Bluetooth devices in the main window. Each time that a new Bluetooth
device coming to your area and when the unit comes out of your area, a new journal line is added with
the following information: device name, time of the event, address, Type of event ("peripheral
Arrival' or 'Device left'), Type of aircraft and the company that created the device. BluetoothLog-
View you can also specify a description for each device (according to its MAC address)
that appears in the column "Description". -FREE
http://www.NirSoft.NET/utils/bluetooth_log_view.html---------------------------------------------------------------------
Change settings for a Bluetooth compatible device
http://Windows.Microsoft.com/en-us/Windows7/change-settings-for-a-Bluetooth-enabled-deviceAdd a Bluetooth device to your computer
http://Windows.Microsoft.com/en-us/Windows7/add-a-Bluetooth-enabled-device-to-your-computerAdd a Bluetooth device or other wireless or network device: frequently asked questions
http://Windows.Microsoft.com/en-us/Windows7/add-a-Bluetooth-or-other-wireless-or-network-device-frequently-asked-questions---------------------------------------------------------------------
More information of possible interest to some:
What is a Bluetooth personal area network (PAN) network?
http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-a-Bluetooth-personal-area-network-PanConnect to a Bluetooth personal area network (PAN) network
http://Windows.Microsoft.com/en-us/Windows-Vista/connect-to-a-Bluetooth-personal-area-network-PanI hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="">-><- mark="" twain="" said="" it="">->
-
When I make a rectangle, the left and right edges are a bit fuzzy and thicker, then the bottom and at the top. It seems very strange and I don't know why that is.
I made a new document (72 dpi, preview mode: by default) and I tried to see if it's the same thing on another screen, and it is.
I thought that the problem would be with the 'align on the pixel grid' property but by activating / deactivating it doesn't matter. Maybe it's something with anti-aliasing? "Work of anti-aliasing" is checked in my preferences...
Here's an example, zoom level 100%.
The forms do not look sharp at all. No idea what this can be?
Lieselot,
Or you can try to switch between the GPU and CPU by pressing Ctrl / Cmd + E, or you try disabling GPU performance by clicking on the icon of the rocket in the bar of the App, or on the top of the menu bar, deselect the box Performance GPU. You may also uncheck performance GPU in your preferences.
-
I can't download IOS 9.3.1 the download starts but then an error message appears and it stops. I have enough storage, so don't know why this is happening?
Does anyone else have this problem?
It often happens when the screen times out and goes to the lock screen, when I connect to my phone that the error message is re-appeared?
I have the same problem!
Maybe you are looking for
-
Qosmio G50 asks to connect to the bluetooth device when installing BT stack
Hello I have a Toshiba G50 - 13R it asks me to connect my bluetooth device while installing is not the bluetooth built into the laptop Thanks in advance
-
HP probook 470: if I open my laptop I have the warranty?
My laptop recently got an error that it is overheating so I'll try to clean the dust inside, but if I open it to this procces will I void the warranty?
-
touch screen 15R150NR: port on which the USB 3?
Is there information on this notebook model on the site of HP? I could not find any manual/photos/what either. Thank you
-
Replace the Atheros WiFi card in HP G60T-500
Hi, several other users pointed out that there are questions compaitabilty router with the internal wireless card of Atheros who came into the HP G60T-500 and N Wireless routers so I thought I would replace the WiFi and I would appreciate your help.
-
Reference Dell W3707C warranty replacement?
I have a Dell W3707C and HDMI inputs have gone bad. When you connect via HDMI there is two huge white bars that go vertically across the screen. The Dell customer service is to send me a replacement warranty. Dell brings more LCD TVs so I was curi