mcmcom
08-24-2004, 07:53 PM
Hi Guys,
Quick question. I have two simple functions that return values from my server via a perl script. they basically go like this:
_root.remoteService.getCustList();
_root.remoteService.getDealerList();
then I have these functions to retrieve the vals:
(PS Thanks tg and CyanBlue for the multi-dim array help :p)
function getDealerList_Result(rvalue)
{
_global.dlrArray = new Array();
for(var i=0; i < rvalue.length -1; i=i+2) {
_global.dlrArray.push({label:rvalue[i], data:rvalue[i+1]});
}
}
the custList return function is the exact same.
Anyways, these run at the very top of frame 1, right after my netservices code. Sometimes though, they dont load. They are to populate a combobox so sometimes the combobox does not have the data in it because for some reason the service either fails silently, or just never gets called at all! I was wondering if I could make a pre-loader scene that will ensure that the application does not even continue if the arrays are not populated from the perl script. If this is possible to do, how can i make a preloader that will gague the amount of data that has come into flash?
THANKS
MCM
Quick question. I have two simple functions that return values from my server via a perl script. they basically go like this:
_root.remoteService.getCustList();
_root.remoteService.getDealerList();
then I have these functions to retrieve the vals:
(PS Thanks tg and CyanBlue for the multi-dim array help :p)
function getDealerList_Result(rvalue)
{
_global.dlrArray = new Array();
for(var i=0; i < rvalue.length -1; i=i+2) {
_global.dlrArray.push({label:rvalue[i], data:rvalue[i+1]});
}
}
the custList return function is the exact same.
Anyways, these run at the very top of frame 1, right after my netservices code. Sometimes though, they dont load. They are to populate a combobox so sometimes the combobox does not have the data in it because for some reason the service either fails silently, or just never gets called at all! I was wondering if I could make a pre-loader scene that will ensure that the application does not even continue if the arrays are not populated from the perl script. If this is possible to do, how can i make a preloader that will gague the amount of data that has come into flash?
THANKS
MCM