Hey theInvestor,
You can accomplish this task by using setInterval() method.
Example when a user presses my_btn it envokes callback1 function every
1000 milliseconds after the time elapces the calling of callback1
function stopes until the my_btn is pressed again.
countTimer=0
function callback1() {
trace("interval called");
countTimer++
if(countTimer==setTimer){
trace("Time Elapced")
clearInterval(intervalID)
}
}
my_btn.onRelease=function(){
setTimer=100
intervalID = setInterval( callback1, 1000 );
}
Visit my site
www.flashforabuck.com or email at admin@flashforabuck.com
-Max
www.flashforabuck.com [quoted text, click to view] theInvestor wrote:
> Does anyone know how to set up a process that will run continually in the
> background? (like the mouse or key listner object) I need to define my listener
> object though
>
> Example: A simple reminder application
>
> I let a user input an event and select a reminder time. Then after pulling in
> the data, I continually search the list of events and check the reminder time
> for the current time. If they match, then I popup a reminder window.
>
> I thought this to be a simple practice app., but have had no luck. Thanks in
> advance
>
Does anyone know how to set up a process that will run continually in the
background? (like the mouse or key listner object) I need to define my listener
object though
Example: A simple reminder application
I let a user input an event and select a reminder time. Then after pulling in
the data, I continually search the list of events and check the reminder time
for the current time. If they match, then I popup a reminder window.
I thought this to be a simple practice app., but have had no luck. Thanks in
advance