# mp3 question

**URL:** <https://forum.kirupa.com/t/mp3-question/10242>\
**Category:** flash\
**Created:** [December 27, 2002, 7:47pm UTC](https://forum.kirupa.com/t/mp3-question/10242 "2002-12-27T19:47:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jazzman121](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jazzman121/32/127_2.png) [@jazzman121](https://forum.kirupa.com/u/jazzman121)\
**Post date:** [December 27, 2002, 7:47pm UTC](https://forum.kirupa.com/t/mp3-question/10242/1 "2002-12-27T19:47:01Z")

</div>

when i upload my .swf on a server… and have an mp3 streaming onto the swf… how do i get the total bytes… of that mp3 into a variable? when i try obj.getTotalBytes() … it gives a null value coz… the mp3 is streaming…,… …

---

<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:** [December 27, 2002, 9:03pm UTC](https://forum.kirupa.com/t/mp3-question/10242/2 "2002-12-27T21:03:23Z")

</div>

Paste the whole script here, it should work with getBytesLoaded and getBytesTotal, if u want something simple, try onLoad, btw, there are some threads that got some sound preloading scripts, just press on the search button above…

---

<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:** [December 28, 2002, 12:51am UTC](https://forum.kirupa.com/t/mp3-question/10242/3 "2002-12-28T00:51:54Z")

</div>

no hassels… 🙂 i got it figured out… well actually got a lotta help from **senocular** thanks dude… 🙂
