I’m facing some problem with the flash.
- Actually when using LoadVars object which method is called first. onLoad or onData.
- Consider the scenario that i have two machines A and B. Both the machines are in intranet. However machine B is also connected to internet and has it’s own static IP.
Now my flash files and the jsp files are placed in IIS and JRun respectively on machine A. My flash files loads the data by calling jsp files from JRun. But when i try accessing the flash file from Machine A, it gives me windows error saying " A script in this movie is causing Macromedia player to run slowly" (that same old **** error of infinite loop).
have a look at the code snippet.
stop();//i’ve stopped the timeline here and won’t let it go until everything is loaded
FG_Combo_val = new LoadVars ();
FG_Combo_val.userid = userid.text;
FG_Combo_val.password = password.text;
FG_Combo_val.sendAndLoad (_root.get_eol_default_parameters, FG_Combo_val, “POST”);
FG_Combo_val.onLoad = getFG;
// This is for fetching values into the combo boxes from the bean.
function getFG (success)
{
if(success)
{
:
:
:
play();//when everything is loaded it should play
}
else
{
<some error>//if error just show error message
}
now i don’t understand how can this thing lead to an infinite loop.
@ any problem with the use of onLoad or onData(which i haven’t used).
@ or problem with the crossdomain thing (as i’m using two servers JRun to host jsp files and IIS to host flashfiles)
@ or problem of intranet and internet conflict.