Start a Timer() when the application loads with it's delay property from the time the app starts till the time you wish to fire an event. For example the app starts at 8:00 am, and you want to show a pop up at 5pm to remind the user to go home, You just take the difference in time which is 9h and turn that into milliseconds and set your Timer.delay = the time difference. ( the delay is the time between firing events, so you could set it to every hour if you wanted to show a pop up every hour )
Then, register an event handler for Timer.timer or Timer.timerComplete events that accept a TimerEvent And there you go. When the Timer is complete it'll fire an event to your handler which then displays your popup. Look in the Timer, TimerEvent classes B.. -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Mark McCray Sent: Monday, December 18, 2006 1:46 PM To: [email protected] Subject: [flexcoders] scheduled functions Hey there, Could anyone point me in the right direction with the following task: Is it possible to create events that happen at specific times while the app is running? Something like cron but for a client side flex app? Can make some function that runs in its own thread or runs in the background while that might be able to fire events based on system clock time? As an example, let's say that you are in a calendar app, and you want it to pop up an alarm at 4:15pm to alert you of a meeting? Can this be done without using a server side/FDS messaging push? Thanks, mark -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***

