# Loading Audio W/ AS

**URL:** <https://forum.kirupa.com/t/loading-audio-w-as/165607>\
**Category:** flash\
**Created:** [October 12, 2005, 2:54pm UTC](https://forum.kirupa.com/t/loading-audio-w-as/165607 "2005-10-12T14:54:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![VersusMG](https://avatars.discourse-cdn.com/v4/letter/v/898d66/32.png) [@VersusMG](https://forum.kirupa.com/u/VersusMG)\
**Post date:** [October 12, 2005, 2:54pm UTC](https://forum.kirupa.com/t/loading-audio-w-as/165607/1 "2005-10-12T14:54:13Z")

</div>

Okay I am working on an intro for a client and I created some custom audio for the project. I am using flash 8 and it is keeping the file size really low, around 22K, but if I import the audio, even if it just sits in the library, it bumps the file size up to 328K. I didn’t know if there was a faster way to get the audio to load, or if there was a smaller file size that i could use.

I know you can attach audio with actionscript but i can’t remember what the exact code is…

```auto

var d:Sound = new Sound("dance");

d.attachSound("dance");
d.setVolume(100);
d.start(0,2);

```

But even if the audio is not on the stage the file is still huge?

Does anyone know a better way to do this so I can keep my files low.
