Hi ZachLiu
At beginning I cannot access the file from Google Earth either so I add MIME type:
Extension: .kml
MIME type: application/vnd.google-earth.kml+xml
Extension: .kmz
MIME type: application/vnd.google-earth.kmz
Then Google Earth see it.
But I still got the error from the Java Script above.
Thanks,
Thanh