Combining the timer and loop
Somehow, I thought this might work:
for (var a: number = 0; has < total; ++);
{
code
code
code
code
var autoTimer:Timer = new Timer (4000, 1);
autoTimer.addEventListener (TimerEvent.TIMER, autoSlide);
function autoSlide(e:TimerEvent):void
{
trace (URL);
}
}
The idea is to load a URL (code charger not included in this) in an XML list every four seconds. The loop must not repeat the cycle until the function is complete. But he shakes down all 99 URL in a fraction of a second. I'm so bad (think)?
Any help much appreciated.
Thank you.
Why don't you try just a simple timer?
Well, if you really need a variable number as when you use a loop for example, you can use something like this:
var waitingTime = 1000; var xmlListLenght = 15+1; //+1 just to remember that your xmlList starts with 0 var timesToLoop = xmlListLenght; var xmlListItem = 0; var myTimer:Timer = new Timer(waitingTime, timesToLoop); myTimer.addEventListener("timer", timerFunction); //TimerEvent.TIMER myTimer.start(); function timerFunction (e:TimerEvent) { trace(String(xmlListItem) + " working"); xmlListItem++; }
I hope it works for you!
Tags: Adobe Animate
Similar Questions
-
Show only the time and a red relief
My watch does not show the clock face. If I press the bottom button, it will display the time and a symbol of red light.
Hello
Your watch has a low battery charge level and entered into mode of power reserve.
This mode displays only the time when you press the side button, in order to keep this service as long as possible.
You will need to exit this mode, press and hold the side button. However, you need to charge your watch first. Allow up to 2.5 hours for a full charge.
More information:
-
What happened to the button on the left end of the address bar which allow you to see the pages you had been so that you don't have to click the back button several times? You can look at the drop down window of pages and just choose whatever you want. I use it all the time and it is not on FF4. I want to go back to the old FF.
If you right click on your back button, or click and hold down the mouse button, it will display the list. (I prefer a click-right, because sometimes my fingers slide when I try to click and hold)
-
Is anyone having problems with the Times and the Sunday Times App
Im having problems loading from the Times and the Sunday Times app. Before I launch into a major description (I have Parkinson's disease, and typing is slow) is there a known issue with the application at the present time
There has been a lot of problems with this app as soon as they have a clear, the other seems to appear. Take a look at this link and it followed in areas where you are affected by.
http://www.thesundaytimes.co.UK/Sto/multimedia/archive/00258/Helpguide_stripped _ _258975a.pdf
-
I went to netflix for like 20 minutes, and then I closed and then I'm gone on it again 5 minutes later, he worked later I hung up it and then I just wanted to check the time and it dint work I can't see the screen I have tried pressing the home button and the stopcock one its does not work how to fix it
Try:
- iOS: do not respond or does not light
-Also try DFU mode recovery mode post-test
How to put iPod touch / iPhone in DFU "Karthik doodles."
-If failed and that you cannot completely turn completely the iOS device, leave the battery to drain completely. After loading a hour repeat the foregoing.
-Try a different cable
-Try on another computer
S ' there is still not successful that usually indicates a hardware problem and an appointment at an Apple store Genius Bar is in order.
-
Setting the time and time zone?
Hello, I have a problem, try to change my time to standard time. When I change the time and time zone, they are locked. It won't let me uncheck to set the time manually. The time zone is set to Apple Americas / U.S. (site time.apple.com)
IM El Capitan OS running on a Macbook Pro late 2011.
Thank you, James.
This isn't a time zone. It's the time protocol Server network that sets the time automatically. He is indifferent to the zone that can be set manually or by location.
You need unlock the prefpane by clicking on the padlock and authentication. Then, you can adjust the settings.
-
The 'update date and time"for numbers of 3.6 does not show the time and does not automatically update the date. What should I do? Thank you.
Hi david,
where do you find ' update of the date and time.
Quinn
-
Whenever I have turn off my pc and reboot later, the time and date go to 0.00
Original title : improve system performance slow slow start
Whenever I have turn off my pc and reboot later, the time and date go to 0.00
Probably means the ROM BIOS chip gone bad and must be replaced. Its a small coin like chip located on your motherboard. You should be able to buy one on where one sells computers and electronic products.
-
What is an application error, wmiprvse.exe? It keeps popping up all the time and its pretty boring. Can I get rid of him?
What this has to do with Windows Media?
Rwillet,
Thank you for visiting the Microsoft answers community.
The wmiprvse.exe file is otherwise known as Windows Management Instrumentation.
In research, I found a few articles that might help you:
Windows wmiprvse.exe related errors
You can run your scan virus and if necessary, perform a System Restore to a point prior to the error occurring.
I hope this helps.
Lisa
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
HP Pavilion dv6 1335 TX - Notebook PC (New Zealand)
MUTE button is red all the time and not of sound through computer speakers. # LED light is 5 according to the guidelines of the manual for the identification of your component externally.
Processor Intel Core 2 Duo T6600 CPU @ 2.20 GHz, 2200 Mhz, 2 Lossnay, 2 logical processors
Name of the OS Microsoft Windows 8 Preview version
Version 6.2.8400 Build 8400
System Type X 86-based PC
All drivers works normally and have been checked for updates that were not necessary.
Turn help would be appreciated
Hello
Mute key functionality is provided by IDT Audio software, so the problem may be that Windows 8 has installed a reference driver that does not contain. Often, the Windows 7 version works Ok, so I would try downloading and installing the following driver IDT.
http://ftp.HP.com/pub/SoftPaq/sp48501-49000/sp48830.exe
Once the installation is complete, restart the laptop.
Kind regards
DP - K
-
Clock-calendar does not maintain the time and date
The clock-calendar on my laptop does not maintain the time and date after I put it.
Usually a sign that the bios cmos battery is defective and must be replaced
-
How can I reset the time and date on Windows Vista?
How can I reset the time and date on Windows Vista
http://www.ehow.com/how_2056384_change-date-time-Windows-Vista.html
http://www.Vistax64.com/tutorials/114989-date-time-change.html
Read the information in one of the links above.
See you soon.
Mick Murphy - Microsoft partner
-
I don't know how to use the apps since all I found is on android, but apparently the Zeen is not compatible with the android apps. I have google calendar, but it doesn't work and want to only the time and date is displayed. I followed all the directions for adding applications, but they do not work or I can't understand them.
Salvation of theeagles,
The Zeen is unable to access the Android Market, but it's an Android device. There is a market for this called SlideME, and you should have the icon for it in your apps section. I have a station also, and I'm just a normal clock on mine.
Here is a link to SlideME, if you want to see what applications are available: http://slideme.org/
-
How to set the time and date on printer n911a e-all-in-one officejet pro 8600.
How do you set the time and date on printer n911a e-all-in-one officejet pro 8600. This info is not in the user's guide or the getting started guide. Thanks in advance. Jim
Jim go to settings on the 8600, click Preferences.
There is an option DATE and HOUR.
-
ETA App should help to get the time and date feature HELP!
Hi everyone, I'm doing an application where I need to get the time and date of the antone device can help, I know there is a function such as getDate or getTime but im not to know how to use it.
As far as I know,
I use this to get the time system (it returns long type)
System.currentTimeMillis();
After that, you can use SimpleDateFormat to convert date and time
SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy, HH:mm"); String time = sdf.format(new Date(System.currentTimeMilis()));
Maybe you are looking for
-
Hello I installed El Capitan on a USB key. Due to limited space (128 GB) and temporary use, I do not reinstall my applications in the new application of 'drive '. Since El Capitan seems to work very well, I will install it on my system drive (where i
-
It's maddening that I can't fix something so simple. When I click on the '+' opens a new page with entries unpopulated for Web sites. I tried the steps in 'new Page' tab and was able to drag and drop a bookmark of my "library". Guests look OK, but th
-
Satellite L300 - where can I order CDs of update for Win 7
Hi all I find my Vista starts so long time, about five minutes, and now I want to upgrade to win 7,.Where can I order the CD Update for win 7 from the Toshiba site. Thank you
-
"Error in initVXIlibrary. Impossible for kernel init device drivers. »
Hi all I'm trying to fix a WAYBACK test system - running windows 3.11 with CVI talk to a box of 1261 B VXI Racal. Everything was fine until a VXI power capacitor has failed. Astronics got the p/s fixed in a few weeks, but nothing has worked right si
-
scanned my pc of the virus-not found
scanned my pc for viruses-not found, but pc is running very slowly I continue to receive advice from my pc is infected and said "click here." Him did not. Need help.