View Full Version : Waiting for data to finish loading
pulpo
04-30-2008, 08:45 PM
how can I test that all the data from the db is loaded and parsed into their corresponding arrays?
I am having an issue where I am acting on that data before it is fully loaded, as adding extra frames to sort of 'force' a wait seems to fix it in most cases, but don't want to have to add what will amount to an unnessesary delay for most cases in this project.
_p
acolyte
05-01-2008, 11:23 AM
Hi Pulpo ,
you need to set up onResult onFault Listeners
in the amfPhp implementation a onResult event is getting Dispatched when all Data is serialized and is ready to use
hope this helps
cheers
pulpo
05-02-2008, 08:23 PM
My problems ended up being something unrelated of my own doing, but seeing how I wasn't sure that the event got dispatched when -all- the data was ready, this is very helpful.
thanks!
acolyte
05-07-2008, 09:41 PM
My problems ended up being something unrelated of my own doing, but seeing how I wasn't sure that the event got dispatched when -all- the data was ready, this is very helpful.
thanks!
Did it helped you fix your problem
as normaly once you got the result you can iterate true the result object / array / whatever / - then you know the length of it
anyways what version of actionscript are you using to do it ?!?!?
http://www.amfphp.org/docs/authenticate.html
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.