Quote:
Originally posted by ironmang
actually its more of a matter of having that flash movie loaded in time, than having the childWindow load in time before you do the SetVariable.
to ensure that, i _think_ you can do this.
in the parent window, you can create a global variable and another function:
var loaded = null;
function ChildMovieIsLoaded(){
loaded = true;
}
so within your child flash movie you can have a call to getURL("JavaScript:ChildMovieIsLoaded()", _parent); when the movie has been loaded of course...
and then in your OpenChild function after you do a window.open(), you can do:
for(i=0; i < 1000000 || loaded != null; i++){}
if(loaded == null){
alert("Child Movie not fully loaded in time");
}
and do an evil little polling loop(which shouldnt be too bad if your movie doesnt take too long to load.