Trigger a function after 1 minute, while the application is open.

Hey guys, I wrote a simple widget that reads from a file rss. My question is what is a good way to repeat a function every minute? The widget can run up to 8 hours straight...

Any ideas? I want to trigger a bugsFeed.send (); once per minute.

Thank you!

Example code:

import flash.utils.Timer;import flash.events.TimerEvent;

// create a timer that fires every minutepublic var timer:Timer = new Timer( 60*1000 );

public function init():void{     // add event listeners     timer.addEventListener( TimerEvent.TIMER, handleTimerEvent );

     // start the timer     timer.start();}

public function handleTimerEvent( event:TimerEvent ):void{     bugsFeed.send();}

Let me know if that helps...

Ben Edwards

Tags: Flex

Similar Questions

  • My iphone 5s does not update the use of the itunes app store. After tapping will update the application to open it

    How to upgrade an app on my iphone 5?  After the update of tapping, it opens app

    Seems to be an old question and don't understand why it has not been yet resolved thanks to the technical support

  • How can I get the screensaver to stop after a few minutes, while the screen turns off.

    original title: computer sleeps

    I leave my computer on all night.  When I'm done with it for the day, after 5 minutes, the screen saver turns on.  How can I get the screensaver to stop after a few minutes, while the screen turns off.  What we call that?  Sleep is - this Mode?  Hibernate? Thank you!

    Hi miztex37,

    ·         You want to put the computer in sleep mode?

    See the following article to see if it helps.

    Microsoft Windows XP - automatically put your computer into standby mode

    See also:

    Microsoft Windows XP - manually put your computer in sleep mode

  • Re: Satellite A200-14F - after 10 minutes, as the battery is just 10% of 100%

    Hello

    My question is simple. When I use my laptop computer and I use the battery power, the battery icon shows me after 10 minutes that the battery is just 10% of 100%. Does that mean that my battery is "dying"? Should I buy a new one?

    Thanks for help.

    Tomas Fric, Czech Republic

    I'm afraid you are right and your battery loses capacity because it doesn t work properly.
    Remove the battery and check the part number on the sticker. Use this number to order a new one.

  • My DEFY music stops after 3 minutes with the music player not on the list end

    I have a problem with the way my Defy plays music.

    I'm ciau built in music player and it works fine if I listen to it from the widget of the screen, but if I go into the player's menu and manually select a song in the list he stops playing after 3 minutes (once the screen goes black).

    It's really annoying as I'm going jogging, I can't listen to the favorite podcast that she stops after 3 minutes. I have to keep hitting the widget button 'next' until I find this podcast to listen to it without interruption.

    In addition, music player is not on the list of end in my task manager.

    Help...


  • After I send attachments, the recipient cannot open the document

    original title: documents

    Hi, am having problems after I send attachments, the recipient cannot open the document?

    That helps me, but not the recipient. We can only look at a Word, (file .doc) document, if they have the word or Word Viewer installed.

    There are many people who don't use MS Word, but almost everyone has a PDF reader. This tool allows to convert the resume in PDF and who should make it readable to the person you send him. I can't imagine a company that accepts mail resumes would not have a PDF such as Foxit or installed Adobe Reader.

    Online Doc To PDF Converter
    http://www.Doc2PDF.NET/

    Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

  • It is possible to apply again while the watch is opened in read-only mode?

    Hello

    I am using Oracle 11 g R2 (11.2.0.1.0)

    Step 1: Two-node RAC is configured.
    Step 2: A single node Data Guard RAC is configured. (i, e watch is a CCR node).

    Primary:

    SQL > select open_mode, database_role, PROTECTION_MODE, PROTECTION_LEVEL from v$ database;

    OPEN_MODE DATABASE_ROLE PROTECTION_MODE PROTECTION_LEVEL
    -------------------- ---------------- -------------------- --------------------
    MAXIMUM READING WRITING PRIMARY MAXIMUM AVAILABILITY AVAILABILITY


    Standby time:


    SQL > select open_mode, database_role, PROTECTION_MODE, PROTECTION_LEVEL from v$ database;

    OPEN_MODE DATABASE_ROLE PROTECTION_MODE PROTECTION_LEVEL
    -------------------- ---------------- -------------------- --------------------
    READING ONLY WITH APPLY A MAXIMUM OF PHYSICAL AVAILABILITY MAXIMUM STANDBY AVAILABILITY

    Question:

    I have not purchased active dataguard license.
    In my case in data custody BECAUSE it is possible to apply again while the database is opened in read-only mode?


    Thank you
    Solaiman

    876149 wrote:
    SQL > select open_mode, database_role, PROTECTION_MODE, PROTECTION_LEVEL from v$ database;

    OPEN_MODE DATABASE_ROLE PROTECTION_MODE PROTECTION_LEVEL
    -------------------- ---------------- -------------------- --------------------
    READING ONLY WITH APPLY A MAXIMUM OF PHYSICAL AVAILABILITY MAXIMUM STANDBY AVAILABILITY

    'READ ONLY WITH APPLY"in V$ DATABASE. OPEN_MODE means that active Data Guard is enabled.

    Oracle does not check if you have the right license: it's up to you to know which license, you have to your database environments.

  • Skype rings only when the application is open

    I have a Skype number for my phone a few days ago and I just noticed a problem. When people try to call me using my Skype number, it sounds only when the application is open and the phone is unlocked. However, people can still call me normally on my Skype ID, it is locked or not currently open to the app. It's a rule I missed when having a Skype number?

    I reset my phone to factory settings and it works now.

  • Skype number rings only when the application is open

    I have a Skype number for my phone a few days ago and I just noticed a problem. When people try to call me using my Skype number, it sounds only when the application is open and the phone is unlocked. However, people can still call me normally on my Skype ID, it is locked or not currently open to the app. It's a rule I missed when with a Skype number?

    (Previously posted this in the Android subforum)

    I reset my phone to factory settings and it works now.

  • Updated several CC applications last week now none of the applications update opens. I get a message that MSVCR110.dll is missing. Can I get a U44M1P7 error code.

    Updated several CC applications last week now none of the applications update opens. I get a message that MSVCR110.dll is missing. Can I get a U44M1P7 error code. Any ideas?

    Missing DLL https://helpx.adobe.com/creative-cloud/kb/missing-msvcp110dll.html can help

    or full Win10 DURATION https://www.microsoft.com/en-au/download/confirmation.aspx?id=30679

    U44... Update error http://forums.adobe.com/thread/1289956 can help

  • In the 30 days trial Lightroom, the application is opening her self, how can I stop this?

    In the 30 days trial Lightroom, the application is opening what it self and showing the import screen image. The app and the cathalog that is installed on the C: drive, but the photo files are on the disk D:. How can PLS, I stop this?

    Hi sstamant,

    Could you please let me know when the Lightroom Application opens by itself?

    You connect any external drive?

    Kind regards

    Tanuj

  • iMac restarts after 5 minutes of the heavy load of CPU/GPU and noisy fan

    Hello

    My iMac (late 2012 if I remember) restarts when under heavy load for a while.

    I work a lot with Final Cut Pro X.

    Whenever I have add clips in an event, Final Cut allows you to copy and then transcode and analyze the clips, and this task's CPU/GPU intensive (Final Cut Pro X uses OpenCL, where CPU/GPU). After a few seconds, the iMac fan begins to be really strong and seems to reach its maximum speed.

    Then, after a few minutes of this heavy burden, the iMac simply restarts, and the fan slows down and stop. After the reboot, everything is back to normal, with the exception of the warning illustrated by Mac OS X, who said that the closure was not planned.

    I'm sure that this behavior is not normal. I don't see why a computer should reboot/crash when under heavy load.

    Note: you can also, to transcode some clips or movies I used the excellent software called Handbrake, using CPU only encoder ffmpeg, and I don't remember having accidents even if the CPU has been loaded and FAN running loud too. So maybe it has something to do with GPU?

    How can I understand what is happening?

    Thank you very much.

    Thomas

    First try to reset the SMC reset management system (SCM) controller on your Mac - Apple Support

    If continuous reboot to run the Apple Hardware Test mode extended using Apple Hardware Test - Apple Support

  • Portege 3440CT freezes after some time while the files are copied

    Hello all :)

    It seems that I have the same problem as missred in this thread http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=19232 (bottom). Unfortunately I can't answer it this is why I am writing here. The version of my laptop is 3440CT.

    My test was to make a win98 HD bootable with directory i386 on it, the start of this drive and run the Setup with winnt.exe. OK, it works, but while the files are copied after awhile it just hangs. I tried with a partition and i386 on the active system partition and with two partitions and i386 on another non-system partition. I don't have floppy or CD for the laptop drive.

    Any ideas what's happening? Is it possible to install XP on the same disk, installing XP is started from?

    Can't wait for your answers ;)

    DZI

    PS: My other tests were:
    -complete the installation of XP on another computer, then move the reader
    -Installation of XP on another computer until it resets first (after you complete composing the installation files), then move the reader
    both without success. I also changed the drive to another as I suspected it is physically damaged. Now I'm ideas ;)

    > OK, it works, but while the files are copied after awhile it just hangs. I tried with a partition and i386 on the active system partition and with two partitions and i386 on another partition system
    To me it sounds more like a HARD or RAM disk as an incorrect Setup procedure failure.

    What do you think?

  • MacBook disconnects me after minimize iTunes while the mini Player is open.

    Hi all.

    I had some problems with iTunes on my late 2011 macbook pro.

    The iTunes miniplayer is open, minimize the window iTunes disconnects the user.

    I'm confused as to why. This means that I need to the full iTunes window open during the miniplayer is open, which defeated the purpose. Any ideas on how to solve this problem? I have the public beta version of Sierra and it does not have this problem, but fact of El Capitan.

    Thanks in advance

    Greetings Sharkey101,

    Thanks for your post. If I understand correctly, your Mac connects to the user account when you minimize iTunes. It's certainly not what must happen. I'll be happy to help you.

    First of all, because the computer went missing between El Capitan and the beta of Sierra, let's make sure that El Capitan is updated with Mac OS X 10.11.6: update the software on your Mac - Apple Support

    Then, if you can go to our iTunes download site and try to reinstall iTunes to see if that helps. You can find the download page here: iTunes - download iTunes - App

    After that, I would recommend this test in a new user account to see if it's a broad question system or something wrong with your user account. You can find the instructions for that here: How to test one question in another account on your Mac - Apple Support

    Take care!

  • Windows Vista's sleep mode after 20 minutes while playing PC games even though my power settings are set to NEVER.

    Windows sleeps only during the performance of PC games (not all PC games, sometimes with Call of Duty 2 but not with FIFA 07).

    According to my settings sleep mode & disable the display are set to never for both blocked in battery mode. Any help would be appreciated

    Thank you

    Hello

    1. what happens when you restart the computer from sleep? It back to windows, such as the release of sleep or does go through the normal boot process?

    2 have you done any recent software or the hardware changes on your computer?

    3. don't you face the problem only by playing games?

    Method 1:

    I suggest you to run a full scan of your computer and check.

    Microsoft Security Essentials

    http://Windows.Microsoft.com/en-us/Windows/products/security-essentials

    Note: If infections are detected during the scan, it is possible that infected files would be deleted.

    Method 2:

    I also suggest you to start your computer in a clean boot state, and check if all third-party software could be the cause. Clean boot helps eliminate software conflicts.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or Windows 7 http://support.microsoft.com/kb/929135

    Note: Don't forget to return the computer to normal after completing the troubleshooting by following the steps described in step 7.

    Method 3:

    I also suggest that you perform a clean boot material to check if the problem is caused by any device.

    Follow these steps to perform a clean boot material:

    a. disconnect all external devices.

    b. start the computer in safe mode.

    Start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

    c. click 'Start', type 'DEVMGMT.» SMC"in the search text box and press ENTER."

    d. expand "graphics cards".

    e. right click on your graphics card, select "Properties"

    f. click the "driver" tab, click on disable (disable the selected device). Click OK

    g. use the same method to disable other devices such as: map of the sound card, Modem, network, CD - R drive. Note Some devices not available must be disabled.

    h. restart the computer.

    After you turn off the devices, start in normal mode and try to activate the devices one by one and check which device is causing the problem.

Maybe you are looking for