Flex and AIR apps get enterFrame events constantly, and you can check the
time and decide to do some other action.
well yes, but that would depend on the given framerate.
Wouldn't it take a lot of performance to check for date/time on each enterframe?
lets say with a framerate of 25fps, it would check the date/time 25 times each second.. looks like overkill to me.
Would a time be a solution? The downside of a timer would be that you couldn't run the script at exactly 18.00 Hour.
Any other ideas?
You can use a timer, or calculate the value of a setTimeout call. Depends
on how accurate you need to be.
I wouldn't expect much overhead checking at the default frame rate, and you
can always lower the frame rate.
Yes, i think i would use the enterframe then, but lowering the framerate would only be posible if the application doesn't need to perform any animation.
I will make some tests and post my findings some time later on.
For now, thank you for your answers Flex harUI.
Starting with FP 10.1, the framerate automatically gets dropped (even if you
don't want it to) if the FP's window is not visible.
In AIR, we've provided a backgroundFrameRate you can use when the app is
wow, thats cool..
so i don't have to downscale my framerate programmatically when my application is not used?
Like i found in the following link;