# Sound.getBytesLoaded() bug?

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 1, 2004, 6:32pm UTC](https://forum.kirupa.com/t/sound-getbytesloaded-bug/66017/2 "2004-10-01T18:32:14Z")

</div>

Do you mean locally when you test it? If online, does it happen even after you clear your cache?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 2, 2004, 4:50am UTC](https://forum.kirupa.com/t/sound-getbytesloaded-bug/66017/3 "2004-10-02T04:50:21Z")

</div>

> [@kennyb](#):
>
> Do you mean locally when you test it? If online, does it happen even after you clear your cache?

both local and online with cache cleared are fail.
