Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 09-13-2005, 12:41 PM   #1
Pope of Chilitown
Join Date: Feb 2004
Location: Lancaster, PA
Posts: 27
Send a message via AIM to chickentsunami
Default BytesLoaded equivalent for service data returned?

Is there some way to measure the progress of a service on the server? I have a service that runs a heavy search query, and it takes about 3 seconds to return a value.

Right now, I have a 'semaphore' function locking and unlocking (and showing a generic 'loading' screen) the UI based on the status of the service.

Is there any way to let the flash know how much longer the process will take?

If not, how have some of you experts implemented this?


Last edited by chickentsunami; 09-13-2005 at 12:42 PM. Reason: title too vague
chickentsunami is offline   Reply With Quote
Old 09-23-2005, 09:17 AM   #2
Registered User
Join Date: Aug 2005
Posts: 10

I was pretty intrigued by this question and took some time and looked into it. I don't think its possible. If you are using a result set you may want to look into splitting it up into multiple pages and paging through it. Each page will be a seperate request/response to the server so it would be somewhat possible to present a progress bar.

I do know from doing some AMF reverse engineering that the body of each amf message has its length sent first. So the client is aware of how much data it is going to receive, but I don't think you can get at it. Its hidden in NetConnection class which is not an AS class.
klangdon is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 09:25 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.