# Externally loaded sound - getBytesLoaded problem

**URL:** <https://forum.kirupa.com/t/externally-loaded-sound-getbytesloaded-problem/159588>\
**Category:** flash\
**Created:** [August 18, 2005, 3:34pm UTC](https://forum.kirupa.com/t/externally-loaded-sound-getbytesloaded-problem/159588 "2005-08-18T15:34:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anarcoma](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@anarcoma](https://forum.kirupa.com/u/anarcoma)\
**Post date:** [August 18, 2005, 3:34pm UTC](https://forum.kirupa.com/t/externally-loaded-sound-getbytesloaded-problem/159588/1 "2005-08-18T15:34:27Z")

</div>

Hey guys. ive run into this problem. this is my code

```auto
var clip:MovieClip = _root.createEmptyMovieClip("clip",getNextHighestDepth())
var mySound:Sound = new Sound()
mySound.loadSound("sounds/Ext_Bi_5.mp3",false)

//mySound.loadSound("sounds/Ext_Bi_5.mp3")
//mySound.loadSound("sounds/Ext_Bi_5.mp3",true)

clip.onEnterFrame = function(){
	trace(mySound.getBytesLoaded())
}

```

The Output is rather disturbing.  
If i use mySound.loadSound(“sounds/Ext\_Bi\_5.mp3”, **false** ) Then the trace in my onEnterFrame shows a getBytesTotal-value instead of the getBytesLoaded.

if i use mySound.loadSound(“sounds/Ext\_Bi\_5.mp3”) with no second parameter i get the same result as the first example.

BUT if i use mySound.loadSound(“sounds/Ext\_Bi\_5.mp3”, **true** ) the trace Starts off showing the totalBytes but after about 10 iterations it starts to show the real getBytesLoaded-value.

Can anyone spot what im doing wrong here? why doesnt my trace show the getBytesLoaded-value? I can see that its not fully loaded using the bandwidth profiler…
