# Sound.getBytesLoaded() bug?

**URL:** <https://forum.kirupa.com/t/sound-getbytesloaded-bug/124268>\
**Category:** Uncategorized\
**Created:** [October 1, 2004, 3:25pm UTC](https://forum.kirupa.com/t/sound-getbytesloaded-bug/124268 "2004-10-01T15:25:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RyanC](https://avatars.discourse-cdn.com/v4/letter/r/a4c791/32.png) [@RyanC](https://forum.kirupa.com/u/RyanC)\
**Post date:** [October 1, 2004, 3:25pm UTC](https://forum.kirupa.com/t/sound-getbytesloaded-bug/124268/1 "2004-10-01T15:25:36Z")

</div>

Anyone knows whether sound.getBytesLoaded() has a bug?  
The codes i am using are:

```auto
 
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 ?
