[flexcoders] Polling vs. Timeout error vs. ???

2009-04-21 Thread flexaustin
I think I asked this question before but my searches for my messages come up 
empty (search in this forum is awful). 

I have a Flex application that I need to do polling. Because of the 
implementation/install of our app I cannot use any push technology.

So my solution, which I am not sure will work, is to create a timer on my the 
main stage that every 3 minutes tell the app to it needs to make another 
httpservice call. 

My question is can this be done or if I create a timer that loops forever will 
I get a Timeout error script has been running blah blah or what ever the time 
error says?

Or I could create a timer and have it run and when it sends out a request 
create a new timer and kill/delete/remove the last timer?

Any other way to accomplish this?



RE: [flexcoders] Polling vs. Timeout error vs. ???

2009-04-21 Thread Gregor Kiddie
Is it just the RTMP part you cannot use, or can't you use the
amf-polling stuff as well?

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of flexaustin
Sent: 21 April 2009 16:35
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Polling vs. Timeout error vs. ???

 






I think I asked this question before but my searches for my messages
come up empty (search in this forum is awful). 

I have a Flex application that I need to do polling. Because of the
implementation/install of our app I cannot use any push technology.

So my solution, which I am not sure will work, is to create a timer on
my the main stage that every 3 minutes tell the app to it needs to make
another httpservice call. 

My question is can this be done or if I create a timer that loops
forever will I get a Timeout error script has been running blah blah or
what ever the time error says?

Or I could create a timer and have it run and when it sends out a
request create a new timer and kill/delete/remove the last timer?

Any other way to accomplish this?





Re: [flexcoders] Polling vs. Timeout error vs. ???

2009-04-21 Thread John Robinson
if you only have to reload the data every 3 minutes, you should be  
fine using a timer.

You won't get the 'script running too long' error as a result of using  
a timer. That error happens basically when  code takes too long to  
process or goes into an infinite loop.

john



On Apr 21, 2009, at 11:34 AM, flexaustin wrote:

 I think I asked this question before but my searches for my messages  
 come up empty (search in this forum is awful).

 I have a Flex application that I need to do polling. Because of the  
 implementation/install of our app I cannot use any push technology.

 So my solution, which I am not sure will work, is to create a timer  
 on my the main stage that every 3 minutes tell the app to it needs  
 to make another httpservice call.

 My question is can this be done or if I create a timer that loops  
 forever will I get a Timeout error script has been running blah  
 blah or what ever the time error says?

 Or I could create a timer and have it run and when it sends out a  
 request create a new timer and kill/delete/remove the last timer?

 Any other way to accomplish this?