HI Gareth,
The set time button worked for me once the page is loaded. You might
be having a similar problem to one I had. I was trying to do a set
time when a new kml file was loaded, but it did not seem to work.
Problem was the kml load was taking too long. It would start loading,
the set time function was execute, and then the kml file would finish
loading and automatically set the time to the beginning of its time
range. I got it wokring by putting the set time function call in a
framend event listener and then removed the event listener after a
short time out in the set time function. Probably a more ellgant way
of doing it, but this worked for me.
// set time to current time
google.earth.addEventListener(ge, 'frameend', setTime);
// set time function
function setTime() {
ge.getTime().setTimePrimitive(time);
setTimeout("google.earth.removeEventListener(ge, 'frameend',
setTime)",750);
}
Cheers,
Chuck