Welcome, Guest. Please login or register.
Did you miss your activation email?
31 Jul 2010, 11:29:28 UTC
Forum home
+  flexdeveloper.eu Forum
|-+  Flex and ActionScript 3.0
| |-+  ActionScript 3.0 (Moderators: JMWhittaker, Jan K, thewarpedcoder, James)
| | |-+  pls help with flash requests to php
« previous next »
Pages: [1] Print
Author Topic: pls help with flash requests to php (Read 356 times)
vahegrigoryan
Newbie FD
*
Posts: 2


« on: 10 Mar 2010, 12:40:46 UTC »

Hi, I've some question about flash requests to php.
I'm using amfphp to call php functions inside of flash. I know that by default flash is waiting 30 sec, and if after 30 sec there is no response for flash request then flash dispatches NetStatusEvent. Pls tell me can I short that 30sec. to 5sec.?
thanks.
Logged
flexy
flexdeveloper.eu
Guru/Addict FD
*****
Posts: 3,155


Recovering Coffee Addict & Adobe Expert


WWW
« Reply #1 on: 11 Mar 2010, 09:39:45 UTC »

This is a default in the Flash Player. 5 seconds is too short for a timeout really.

You can fudge it in Flash Player by initiating your own Timer instance, and then cancelling the RPC object if it doesn't complete before the timer completes.
Logged

vahegrigoryan
Newbie FD
*
Posts: 2


« Reply #2 on: 12 Mar 2010, 10:11:19 UTC »

I've maked function which is continously calling to server and created timer instance for that function to check if there is response or not. I think that is good solution.

thanks a lot flexy.
Logged
flexy
flexdeveloper.eu
Guru/Addict FD
*****
Posts: 3,155


Recovering Coffee Addict & Adobe Expert


WWW
« Reply #3 on: 12 Mar 2010, 11:56:27 UTC »

No problem  Smiley
Logged

Pages: [1] Print
« previous next »
Share this on: Twitter Twitter Del.icio.us del.icio.us Digg Digg
Jump to:

©2006-2010 Flexdeveloper.eu/Jodie O'Rourke. All rights reserved.
Adobe®, Adobe® Flash™, Adobe® AIR™ and Adobe® Flex™ are registered trademarks of Adobe Systems Incorporated in the United States and other countries. All rights reserved.

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC