Music Load Question

Ok I have a sound Object on the _root timeline that plays when the page loads, that works great.

I want to preload it so that the user can see the % of it loaded. Here is my code:

[AS]_root.backgroundMusic.bytes_loaded = Math.round(_root.getBytesLoaded());
_root.backgroundMusic.bytes_total = Math.round(_root.backgroundMusic.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
loadedBox = Math.round(getPercent*100)+"%";[/AS]

The Object is names backgroundMusic it is a sound Object (duh).

When I enter that code I get a “NaN%” in the dynamic text box named loadedBox

Thanks.:cap: