# Getting byte sizes

**URL:** <https://forum.kirupa.com/t/getting-byte-sizes/192038>\
**Category:** flash\
**Created:** [June 25, 2006, 12:07pm UTC](https://forum.kirupa.com/t/getting-byte-sizes/192038 "2006-06-25T12:07:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vn5ltr](https://avatars.discourse-cdn.com/v4/letter/v/97f17d/32.png) [@vn5ltr](https://forum.kirupa.com/u/vn5ltr)\
**Post date:** [June 25, 2006, 12:07pm UTC](https://forum.kirupa.com/t/getting-byte-sizes/192038/1 "2006-06-25T12:07:00Z")

</div>

Hi all,  
Just a quick question, if i am using sound/music in a flash movie and i would like to create an instance for it then play it in actionscript, how would i go about getting the size of that sound file?  
Here is the code i used, btw the sound file has a linkage name of ‘tune’

```auto
musik = new Sound(this);
musik.attachSound("tune");
musik.start();
varsize = musik.getBytesTotal();

```

A dynamic text field is placed in the doc to show the value of varsize but when the movie loads, it shows as undefined!  
Can anyone shed some light on this?  
Thanks in advance.
