How do you find out when FF has fully loaded an audio file?

I tried this, but it only works when playback has started which
defeats the object of waiting until all audio has loaded:

audio.addEventListener("networkState", playmyAudio, true);


The documentation I used was:

https://developer.mozilla.org/En/NsIDOMHTMLMediaElement

Many Thanks,

Marcus