Trigger a function after 1 minute while the app is open.

Hey guys, I wrote a simple widget that reads from a rss file. My question is what's a good way to repeat a function every minute? The widget could run up to 8 hours straight..
Any ideas? I'd like to trigger bugsFeed.send(); once a minute.
thanks!

Example code:
import flash.utils.Timer;
import flash.events.TimerEvent;
// create a timer that fires every minute
public 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

Similar Messages

  • I have iphoto 9.2.1 and it will not load. The loading screen after I click on the app keeps circling. Can anyone help Please?

    I have iphoto 9.2.1 and it will not load. After I click on the app it opens but the screen continousley tries to load. Please Help

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • HT201177 My Mac book pro won't re-start. The apple sign stays on for a while, that little circle keeps spinning and nothing happens. After 10 minutes rebooting  the screen turned blue and nothing was on besides the cursor. what should I do? Thanks.

    My Mac book pro won't re-start. The apple sign stays on for a while, that little circle keeps spinning and nothing happens. After 10 minutes rebooting  the screen turned blue and nothing was on. now I just re-tried and lots of pixels came up. what should I do? Thanks anyone.

    My Mac book pro won't re-start. The apple sign stays on for a while, that little circle keeps spinning and nothing happens. After 10 minutes rebooting  the screen turned blue and nothing was on. now I just re-tried and lots of pixels came up. what should I do? Thanks anyone.

  • HT2311 After waiting 27 minutes while the new iTunes supposedly downloaded onto my computer, the Finder window did not appear, and the iTunes.mpkg icon didn't appear on my desktop (where downloads usually go).  What do I do?

    After waiting 27 minutes while the new iTunes supposedly downloaded onto my computer, the Finder window did not appear, and the iTunes.mpkg icon didn't appear on my desktop (where downloads usually go).  I also looked for the new iTunes by clicking on my Hard Drive icon but didn't see it there either.  I only see the icon for the old iTunes.  What do I do?

    The exclamation mark means that the app has lost the link to the actual file.
    First step: try and make sure the iPhoto Library is working correctly:
    Go to the App Store and check out the Purchases List. If iPhoto is there then it will be v9.6.1
    If it is there, then drag your existing iPhoto app (not the library, just the app) to the trash
    Install the App from the App Store.
    Sometimes iPhoto is not visible on the Purchases List. it may be hidden. See this article for details on how to unhide it.
    http://support.apple.com/kb/HT4928
    One question often asked: Will I lose my Photos if I reinstall?
    iPhoto the application and the iPhoto Library are two different parts of the iPhoto programme. So, reinstalling the app should not affect the Library. BUT you should always have a back up before doing this kind of work. Always.

  • HT201269 I have an iphone 4 and the screen is jumpy and after a liitle while the colors change, has anyone else had this happen and what did you do (if anything) to fix it?

    I have an iphone 4 and the screen is jumpy and after a liitle while the colors change, has anyone else had this happen and what did you do (if anything) to fix it?

    Read: http://support.apple.com/kb/TS4436
    It is pretty short so here is the entire text:
    Symptoms
    A purplish or other colored flare, haze, or spot is imaged from out-of-scene bright light sources during still image or video capture.
    Resolution
    Most small cameras, including those in every generation of iPhone, may exhibit some form of flare at the edge of the frame when capturing an image with out-of-scene light sources. This can happen when a light source is positioned at an angle (usually just outside the field of view) so that it causes a reflection off the surfaces inside the camera module and onto the camera sensor. Moving the camera slightly to change the position at which the bright light is entering the lens, or shielding the lens with your hand, should minimize or eliminate the effect.
    Which is exactly what eelw wrote.
    No one on Apple Support Communities has authority to speak on behalf of Apple, unless their avatar is accompanied by this Apple image:
    ... identifying themselves as Apple employees.

  • HT201263 after a factory reset, the apps store is no longer on my ipod touch. how do I restore it?

    after a factory reset, the apps store is no longer on my ipod touch. how do I restore it?

    - Try using the Search function to find it
    - Go to Settings>General>Reset>Reset Screen Layout
    - Is it hidden by Restrictions>Settings>General>Restrictions?
    - Restore to factory settings/new iOS device again          
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar                              

  • After updating to Yosemite, following apps not opening. App Store, Mail, Contacts, Calendars... About the Mac

    After updating to Yosemite, following apps not opening.
    App Store
    Mail
    Contacts
    Calendars
    Reminders
    Maps
    Preview
    About the Mac
    I recently updated to Yosemite and now I am having problems with the above mentioned apps, not opening at all.
    I am unable to check to which version its update to, or even update to next version.

    You ran a defective third-party "utility" such as "CleanMyMac" or "MacCleanse" that purports to "clean up" "junk" files. What it really does is to corrupt the operating system and many applications.   
    The first thing you need to do is remove that software according to the developer's instructions. Never install it, or anything like it, again. Then see below. If you use any iWork applications, you may need to delete them and redownload them from the App Store.
    If you don't already have a current backup, back up all data, then reinstall the OS.* You don't need to erase the startup volume, and you won't need the backup unless something goes wrong. If the system was upgraded from an older version of OS X, you may need the Apple ID and password you used.
    If you use FileVault 2, then before running the Installer you must launch Disk Utility and select the icon of the FileVault startup volume ("Macintosh HD," unless you gave it a different name.) It will be nested below another icon, usually with the same name. Click the Unlock button in the toolbar and enter your login password when prompted. Then quit Disk Utility to be returned to the main Recovery screen.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it. The same goes for Xcode. All other data will be preserved.
    *The linked support article refers to OS X 10.10 ("Yosemite"), but the procedure is the same for OS X 10.7 ("Lion") and later.

  • TS1702 any app I download from the app store doesn't open. after I finished downloading the app I tap it to open but it crashes as soon as i finish downloading it. yes, the downloading process works but any app I download won't launch. pls help

    any app I download from the app store doesn't open. after I finished downloading the app I tap it to open but it crashes as soon as i finish downloading it. yes, the downloading process works but any app I download won't launch. pls help

    Hi,
    Install the v10.6.6 combo update available here. It's ok to do this even though you are already running v10.6.6. The combo includes fixes that were not included in the original update.
    http://support.apple.com/kb/DL1349
    Restart your Mac and try the MAS again.
    You can download apps directly from the MAS once you have it running.
    Considering the TM backup took so long, make sure there's enough space on your Mac startup disk.
    Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. *Make sure you always have a minimum of 15% free disk space.*
    Carolyn

  • How many computers can I install iWork's on after downloading it from the app store? on

    How many computers can I install Pages on after downloading it from the app store?
    I know it is only $20 but im am stuck between getting iworks or microsoft office.

    All of them, as long as you have the same Apple I.D.
    Peter

  • How do I open/ re-install After Effects CC on my laptop, after I have put the app in the trash and deleted due to a difficulty? It is still installed in Creative Cloud.

    How do I open/ re-install After Effects CC on my laptop, after I have put the app in the trash and deleted due to a difficulty? It is still installed in Creative Cloud.

    Run the cleaner tool and reinstall.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Mylenium

  • It is possible to apply redo while the standby is open in read only mode ?

    Hi,
    I am using Oracle 11g R2 (11.2.0.1.0)
    Step 1: Two node RAC is Configured.
    Step 2: One node Data Guard RAC is configured.( i,e Standby is one node RAC).
    Primary:
    SQL> select open_mode,database_role,PROTECTION_MODE,PROTECTION_LEVEL from v$database;
    OPEN_MODE DATABASE_ROLE PROTECTION_MODE PROTECTION_LEVEL
    READ WRITE PRIMARY MAXIMUM AVAILABILITY MAXIMUM AVAILABILITY
    Standby:
    SQL> select open_mode,database_role,PROTECTION_MODE,PROTECTION_LEVEL from v$database;
    OPEN_MODE DATABASE_ROLE PROTECTION_MODE PROTECTION_LEVEL
    READ ONLY WITH APPLY PHYSICAL STANDBY MAXIMUM AVAILABILITY MAXIMUM AVAILABILITY
    Question:
    I have not purchased active dataguard license.
    In my case In Data Guard RAC it is possible to apply redo while the database is open in read only mode?
    Thanks
    Solaiman

    876149 wrote:
    SQL> select open_mode,database_role,PROTECTION_MODE,PROTECTION_LEVEL from v$database;
    OPEN_MODE DATABASE_ROLE PROTECTION_MODE PROTECTION_LEVEL
    READ ONLY WITH APPLY PHYSICAL STANDBY MAXIMUM AVAILABILITY MAXIMUM AVAILABILITY
    "READ ONLY WITH APPLY" in V$DATABASE.OPEN_MODE means Active Data Guard is enabled.
    Oracle code cannot check if you have the right license: it is up to you to know which license you have for your database environments.

  • Use an external screen as primary screen while the lid is open

    is it possible to use an external screen as primary screen while the lid is open on a white MacBook (Lion)?

    I can't get this to work either, and I really want it too!
    Noisy fans, and overheating laptops are not a pleasant experience when working next to one all day.
    Please apple, at least give us the choice!?!
    I presume running two screens rather than one also puts more of a drain on the graphic card.

  • After updating to Mavericks the apps store gives me the message "This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled."  How do I still update my apps??

    After updating to Mavericks the apps store gives me the message "This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled."  How do I still update apps such as iphoto??

    What happened was you never accepted these apps into your Mac App Store account.
    Drag & drop the apps in the Trash and use OS X Recovery to install them again. after installing the apps be sure to accept them into your account this time from the Purchases pane of the Mac App Store.
    OS X Recovery -
    http://support.apple.com/kb/HT4718

  • Have installed creative cloud, but while the apps read "up to date," they are not even installed and cannot be opened. Have uninstalled and reinstalled Creative Cloud/Adobe.

    Have installed creative cloud, but while the apps read "up to date," they are not even installed and cannot be opened. Have uninstalled and reinstalled Creative Cloud/Adobe. Horribly frustrating. This is my second computer for installing creative cloud. Does that make a difference?

    Hi Jakegosselin,
    Please refer to the below article.
    http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html
    Thanks

  • I purchased the 30 day subscription of Adobe Pro for my Mac Air and downloaded the app and opened it as instructed. Nothing appears to happen after that and I have been unable to use Adobe Pro thus far.

    I purchased the 30 day subscription of Adobe Pro for my Mac Air and downloaded the app and opened it as instructed. Nothing appears to happen after that and I have been unable to use Adobe Pro thus far.

    I previously downloaded a trial version of Adobe Pro and had used it the last 30 days. Today I just clicked on the link from my purchase confirmation and downloaded some type of installer. Once I clicked on the installer and gave it permission to do whatever it needed to do, it just sort of stalled. I am running Mac OS Yosemite. I thought Yosemitie might be part of the problem because it has given me occasional problems with Word and some other programs. 

Maybe you are looking for

  • Cabling MacBook Pro to HP Photosmart C4280 Printer

    This probably sounds ridiculous, and it's my first post, but I can't find any way to make the Belkin USB Extension Cable fit into the USB port on the back of my HP printer. Since only one end of the USB cable fits into the USB port on my MacBook Pro,

  • Enhancement in MD15

    Hi, I am using t-code MD15 (collective conversion of Planned order to Purchase requisition) My requirement is to convert multiple planned order for a material into a single purchase requistion. Could anyone suggest the enhancement that can be used fo

  • No configured Airport Base Stations Have Been found-but we are connected?

    Okay, Here is an odd one...actiontec DSL Modem/Router with Airport Extreme. I applied the update, and was having problems with my external hard drive being recognized, so I reset everything-modem and airport. Now that I have, when I launch the Airpor

  • Itunes forcing me to buy songs I own

    I just got a 30GB Ipod and hooked it up. Transferred music over... and its trying to force me to buy songs I already own. These are things I downloaded for free directly from the Artists site. ***??? I'm not going to buy songs the ARTIST gave me for

  • Firefox plugin reloading bug work around

    Hi all, I'm wondering if anyone has a work around for the firefox bug referenced here: https://bugzilla.mozilla.org/show_bug.cgi?id=90268 The bug consists of how firefox handles plugins such as flash. Firefox loses the flash objects current state whe