Adobe Air: adding a timer through Javascript
So I am working on a small app that should run a fixed javascript routine (a refresh of a page) every 60 seconds.
First off, make sure that you have the AirAliases.js loaded:
And then run this code through Javascript:
myTimer = new air.Timer(60000, 0);
myTimer.addEventListener(air.TimerEvent.TIMER, appLoad);
myTimer.start();
}
The addEventListener is an listener that runs when the TIMER is finished, and it runs the "appLoad" function.


There are no comments for this entry.
[Add Comment]