Anyone knows whether sound.getBytesLoaded() has a bug?
The codes i am using are:
onClipEvent(load)
{
bgSound = new Sound();
bgSound.loadSound("abc.mp3");
}
onClipEvent(enterFrame)
{
percentLoaded = Math.round((bgSound.getBytesLoaded()/bgSound.getBytesTotal())*100);
_parent.display = percentLoaded + "%";
trace("loaded: "+ percentLoaded);
}
it always tells 100%.
i have trace the bgSound.getBytesLoaded(), but it tells the size same as bgSound.getBytesTotal();
Can anyone help me ?