: RE: [flexcoders] Sleep() method
Two ways:
function pollServer():void {
//do polling here
if(shouldcontinuepolling) setTimeout(pollServer,1000);
}
Or
function pollServer():void {
//do polling here
}
var pollInterval:uint=null;
function onCreationComplete():void {
pollInterval
] Sleep() method
I have a usecase where I need to keep polling the server for a value. How
can I achieve that without a sleep method?
On 10/2/07, Tom Chiverton < <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]> wrote:
On Tuesday 02 Oct 2007, [EMAIL PROTECTED] <mailto:[EMAIL PROTEC
I have a usecase where I need to keep polling the server for a value. How
can I achieve that without a sleep method?
On 10/2/07, Tom Chiverton <[EMAIL PROTECTED]> wrote:
>
> On Tuesday 02 Oct 2007, [EMAIL PROTECTED] wrote:
> > there is a lot of use for sleep function.
>
> There is (as opposed to s
On Tuesday 02 Oct 2007, [EMAIL PROTECTED] wrote:
> there is a lot of use for sleep function.
There is (as opposed to setTimeout which executes a method after a delay) ?
When ?
--
Tom Chiverton
Helping to continuously restore dynamic design-patterns
on: http://thefalken.livejournal.com
events with doing screen updates for animation, or timing out some
> > > pending event that's taking too long.
> > >
> > > I was curious what the OPs intention was since they explicitly asked
> > > about stopping processing.
> > >
> > > Pa
for animation, or timing out some
> > pending event that's taking too long.
> >
> > I was curious what the OPs intention was since they explicitly asked
> > about stopping processing.
> >
> > Paul
> >
> > - Original Message -----
> > *F
ing
> event that's taking too long.
>
> I was curious what the OPs intention was since they explicitly asked about
> stopping processing.
>
> Paul
>
> - Original Message -
> *From:* Willy Ci <[EMAIL PROTECTED]>
> *To:* flexcoders@yahoogroups.com
>
ders@yahoogroups.com
Sent: Tuesday, October 02, 2007 12:43 PM
Subject: Re: [flexcoders] Sleep() method
there is a lot of use for sleep function.
you can try use flash.events.TimerEvent write your own sleep().
as3 doesn't have it own sleep function.
Willy
On 9/28/07, Paul
EMAIL PROTECTED] >
> To: >
> Sent: Friday, September 28, 2007 9:11 PM
> Subject: [flexcoders] Sleep() method
>
> > Is this something like a sleep or wait method? A method that holds
> > processing for 'n' seconds? I could use a timer but that doesn't stop
- Original Message -
From: "essuark" <[EMAIL PROTECTED]>
To:
Sent: Friday, September 28, 2007 9:11 PM
Subject: [flexcoders] Sleep() method
> Is this something like a sleep or wait method? A method that holds
> processing for 'n' seconds? I could u
, September 28, 2007 4:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Sleep() method
Is this something like a sleep or wait method? A method that holds
processing for 'n' seconds? I could use a timer but that doesn't stop
the processing.
thanks
r
Is this something like a sleep or wait method? A method that holds
processing for 'n' seconds? I could use a timer but that doesn't stop
the processing.
thanks
r
12 matches
Mail list logo