Groups | Blog | Home
all groups > flash actionscript > july 2005 >

flash actionscript : Data loads in browser, not with Test Movie


eloyer
7/8/2005 9:45:49 PM
Hoping someone can help--I've got a movie that "chains" several LoadVars.load
calls to PHP scripts. When one finishes, the next one starts, etc. Most of
the time when I run the movie within Flash using Test Movie it works, but
sometimes it'll get on this kick where either all the load calls will fail, or
only the first one or two will work, (and sometimes Flash will even crash). It
always works when I run the movie in a browser, but that's not too helpful when
I'm trying to debug something. Any ideas?

thanks,
Erik
eloyer
7/9/2005 12:00:00 AM
good thought, but no, they don't loop. I've got what's at least a temporary
fix--trashed my install of MX 2004 and reinstalled, and now it's working.
haven't updated to v7.2 yet, maybe i'll hold off and see if the problem comes
back...
kglad
7/9/2005 12:00:00 AM
kglad
7/9/2005 12:58:19 AM
are you using onLoad handlers to trigger the next load? if so, do they loop?
for example, the following would be problematic:

lv1=new LoadVars();
lv2=new LoadVars();
lv1.load("whatever1.php");
lv1.onLoad=function(){
lv2.load("whatever2.php");
}
lv2.onLoad=function(){
lv1.load("whatever3.php";
}
AddThis Social Bookmark Button